Farrukh S. Najmi
2007-03-30 14:15:38 UTC
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.
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
Regards,
Farrukh
Web: http://www.wellfleetsoftware.com