R
rrothberg
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!
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!