passing paremeters to ANT



i dont know anything about ANT and have been trying to work on a
solution by looking at our current build scripts and reading up on ANT
but haven't been able to find a solution yet.

basically I'm responsible for the CVS and BASH scripts for checking out
and compiling the code. the developers deal with the ANT and build.xml
files generally. what i want to is to pass the tag I've created with
CVS to the ANT script so that a developer can then take that tag and
build it into his java code so we know what particular CVS tag a
running application is based on.

however, i was asked to figure out how to modify the build.xml file
appropriately to at least assign to a variable the parameter i want to
pass from my BASH script.

the concept that BASH used of assigning parameters to variables (ie %1
%2, etc) doesn't appear to apply here. It almost looks like I need to
pass a variable name (property?) along with the actual variable.

Could someone perhaps give me a quick example of how I might pass
something like a variable of App20050625 and assign it to a name
(property?) of CVStag within the build.xml file?

I really appreciate any help. Thanks!

.



Relevant Pages

  • Ant considered harmful was Re: JSP still relevant
    ... I'm a shit disturber...I don't mind getting you started on how much you hate Ant. ... For that project, we went with ant, because shell scripts are neither portable nor widely understood and accepted as a serious build tool. ... Of course, a general-purpose language isn't ideal for build scripts, because there are all sorts of things you frequently need to do that are cumbersome to express. ... Tasks would just be functions with a special decorator; further decorators could be use to express particularly buildy ideas. ...
    (comp.lang.java.programmer)
  • Re: passing paremeters to ANT
    ... solution by looking at our current build scripts and reading up on ANT but haven't been able to find a solution yet. ... basically I'm responsible for the CVS and BASH scripts for checking out ... CVS to the ANT script so that a developer can then take that tag and ...
    (comp.lang.java.programmer)
  • Re: newbie : I have downloaded jfugue jar file ...now how to install it
    ... allow the project to be imported to any IDE ... A portable Ant script is very handy for that, ... one developer, or on which one developer might ... scripts, though that small amount has been positive - ...
    (comp.lang.java.help)
  • Re: Combining javascript files.
    ... There are levels of scope for the scripts. ... This will help to increase chances of a user having a primed cache. ... So, not only do the minified files download quicker, they are more likely to stay in the returning user's cache. ... Files are combined in the /build directory using the ANT task. ...
    (comp.lang.javascript)
  • Re: *Solved* Why doesnt this page display anything in IE6?
    ... short tag for, and instead requires that the end tag be ... is for these platforms and if this is your only audience then code for those ... renders but scripts broken in Opera ...
    (microsoft.public.windows.inetexplorer.ie6.browser)