How to run goals repeatedly without re-entry

6 views
Skip to first unread message

Ben Hutchison

unread,
May 13, 2009, 2:58:52 AM5/13/09
to Q for Eclipse users list
I hope Im missing something obvious.

Im running q4e 0.9 and everything works. But today Ive found myself
repeatedly needing to run the same goal "liquibase:rollback" with
parameter "rollbackVersion=1".

The way Ive done it inside Eclipse is Maven2 > Execute Goal > Enter
"liquibase:rollback", Click "New" below, enter "rollbackVersion", tab,
enter "1", hit OK.

The next time I want to run the goal, I have to do everything above
again??

Surely theres an easier way than this? Is there meant to be some kind
of history of recent goals, that I can click to re-run?

-Ben

Abel Muiño

unread,
May 13, 2009, 5:00:20 AM5/13/09
to q4e-...@googlegroups.com
Firstly, since development has been moved to eclipse.org, please consider using the newsgroup instead (web access at http://www.eclipse.org/newsportal/thread.php?group=eclipse.technology.iam)

Now to the important bits...

You can set up a Run configuration (Run > instead and save it (it can be saved with the proyect so all the developers can reuse it).

Run > Run configurations... > double click Maven 2 > configure your maven launch

Another option would be to setup maven as an external tool. This bypasses IAM and allows you to run a locally installed maven in a new process (which means that, if the goal changes resources, you must refresh your project after running the goal):

Run > External tools > External Toools Configurations...
--
Abel Muiño - http://ramblingabout.wordpress.com/
Reply all
Reply to author
Forward
0 new messages