R
Rod
I need to write an ant script which has several targets.
The script must be able to differentiate, when invoked,
between two conditions ...call the conditions A or B.
Based on whether condition A or B is specified, the value
of several properties will be set differently. These
properties affect all other targets.
I envision calling the script something like this :
ant A targetX ( or ant B targetY )
Basically, the fact that A was specified would cause
several properties to be uniquely set and their values available
to all other targets.
I am not sure how to accomplish this.
I know I can create two targets ( A and B ) and
set the necessary parameters ..the question is then
how to pickup that second parameter ( targetX ) ...the
specific target I really wanted to execute !
( targetX / targetY in my example above )
Any ideas ?
The script must be able to differentiate, when invoked,
between two conditions ...call the conditions A or B.
Based on whether condition A or B is specified, the value
of several properties will be set differently. These
properties affect all other targets.
I envision calling the script something like this :
ant A targetX ( or ant B targetY )
Basically, the fact that A was specified would cause
several properties to be uniquely set and their values available
to all other targets.
I am not sure how to accomplish this.
I know I can create two targets ( A and B ) and
set the necessary parameters ..the question is then
how to pickup that second parameter ( targetX ) ...the
specific target I really wanted to execute !
( targetX / targetY in my example above )
Any ideas ?