I would not use maven-antrun-plugin in this case. Instead I would just
use Ant with a build.xml file.

Then if you need to use this Ant task during your build, you can call
it from m-a-p.

Wayne

On 3/30/07, Farrukh S. Najmi <[EMAIL PROTECTED]> wrote:

I am using maven-antrun-plugin in my pom to run a java program.
I do not need it to be tied to any phase.
All I need is to be able to run it on demand by specifying an
appropriate goal and some command line options using -D.

So far I am able make it work but only if it is tied to a phase. See my
pom at:

    <http://ebxmlrr.sourceforge.net/private/pom.xml>

Ideally I wish it not be tied to a phase and instead tied to a task name
that I can invoke from the command line.
If it must be tied to a phase then I would like to have conditional
processing in the ant task
so that if certain required properties are not set in command line I can
simply skip the execution of
the core steps in the ant task silently.

I feel I am close. Any idea how to get the phase independent execution
and/or conditional execution?

Thanks in advance.

--
Regards,
Farrukh

Web: http://www.wellfleetsoftware.com



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to