ant CLI arguments
Brought to you by:
roscoerush
From: Colin Sampaleanu [colinml1@exis.com
- there needs to be a mechanism to feed arguments to
the build. I very
often run ant in the form
ant clean dist run-test -Dtest.class=whatever
where I am calling three targets in sequence, and
setting a property
called test.class which is used by the last target
(assuming the
previous ones don't fail). Personally, while any
mechanism is useful, I
would find it useful to be able to just use a command-
line to specify
targets as above, with a command-history. Given the
way I work, that is
a lot faster and more useful than having to click around
in the list.
Logged In: YES
user_id=684850
We would also find this to be a very useful enhancment..in
fact necessary for our environment. We use -Dbasedir to
define a common root from which base our projects. An
ant.prop file exists in this location that allows the build
to be customized for different environments.