How to execte two ant targets in a given order

I need to run two ant targets in a specific order.
(like
ant first_target second_target
)

But when i highlight both ant targets in my ant window and hit Run button, the order of execution seems to be randomly chosen by Intellij.

Is there any other way to do it to ensure order?

7 comments
Comment actions Permalink

Is there any other way to do it to ensure order?


Have a third target that calls the other two?


0
Comment actions Permalink

At some point it becomes impractical to create a new target for every combination of two targets that I need to run ordered. If there is a way within Intellij to run two targets in a given order, that is what i am looking for.

0
Comment actions Permalink

Have the second target depend on the first one? (via "depends" attribute)?

--

Best regards,
Eugene Zhuravlev
JetBrains, Inc, http://www.intellij.com
"Develop with pleasure!"



0
Comment actions Permalink

Sorry, that would not work either. Sometimes i need to run the second target without the first.

I am really simply looking for a way to simulate a command line call :
ant first_target second_target

but it seems like there is no way to do it in Intellij yet ( a possible solution would be for Intellij to take notice of the order in which i highlight the targets in the droplist and then execute them in that very order). please , correct me if i am wrong.

0
Comment actions Permalink

So create a separate target that builds them both in order, then you can run
any combination of the two tasks.

Guy

"Richard Panther" <jiveadmin@jetbrains.com> wrote in message
news:6176625.1042224015430.JavaMail.jrun@is.intellij.net...

Sorry, that would not work either. Sometimes i need to run the second

target without the first.
>

I am really simply looking for a way to simulate a command line call :
ant first_target second_target

>

but it seems like there is no way to do it in Intellij yet ( a possible

solution would be for Intellij to take notice of the order in which i
highlight the targets in the droplist and then execute them in that very
order). please , correct me if i am wrong.
>


0
Comment actions Permalink

This discussion IMO promotes the following - Instead of having internal
compilation mechanism and Ant integration of any sort, base IntelliJ project
and compilation settings as much as possible on Ant. With a smart UI, this
could be very powerful. I am sure that the people at the Ant project would
be happy to even modify Ant if it would serve everybody (e.g. start faster,
be embeddable, etc.).

Working towards that would mean that Ant command line will be supported
since it is an integral part of the IDEA world, not just an integration
point.

Amnon


"Eugene Zhuravlev" <jeka@intellij.com> wrote in message
news:avn3ei$jki$1@is.intellij.net...

Have the second target depend on the first one? (via "depends" attribute)?

>

--

>

Best regards,
Eugene Zhuravlev
JetBrains, Inc, http://www.intellij.com
"Develop with pleasure!"

>
>
>


0
Comment actions Permalink

for example:

]]>

This adds at least one target to your build script for each group of
commands that you want to run, but I think that this is common makefile
practice.

-Joe


0

Please sign in to leave a comment.