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

  • 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)
  • A simple question about istrue of Ant.
    ... I have written the folllowing scripts, just want to output "Foo is true." ... Ant could not find the task or a class this task relies upon. ... Fix: check your spelling. ... Remember that for JAR files to be visible to Ant tasks implemented ...
    (comp.lang.java.help)
  • Re: make not needed
    ... I would say ant is UGLY, ... its scripts will run circles around anything you cook ... up with BAT files in terms of speed.. ... http://mindprod.com Java custom programming, consulting and coaching. ...
    (comp.lang.java.programmer)
  • 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)