[Anthill-pro] Making the Anthill build number value available to
Ant build files?
Paul Furbacher
pfurbacher at mac.com
Thu Dec 28 17:19:13 CST 2006
I'm not the build administrator, and don't have any
experience with configuring and running Anthill.
I'm doing some research so that I can present to the
build admin -- a very busy person wearing many hats
and definitely overworked -- with a ready-made solution
which he can quickly insert into his script(s).
The idea is to make JAR files more identifiable with a
particular build, so that when someone says "we deployed
the JARs we got from ...", I can just say, "look at the manifest.mf"
file to see the details about when it was built and what is the anthill
build number".
Can someone point me to the relevant section in the Anthill-pro
docs which speak directly to this with a concrete example. There's
a lot of fuzzy language about this in what I've look at so far, but
nothing concrete. (Must be looking in the wrong place, or the anthill
terminology doesn't sync with ant-speak.)
What I'm looking for is the ability to have Anthill write/replace/
replaceregexp
a property in the master build.xml or in an include file which a
build.xml
file reads, as in
--- build.xml ---
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE project [
<!ENTITY defaults SYSTEM "build/defaults.xml">
]>
<project basedir="." default="build" name="project_name">
&defaults;
...
--- end build.xml ---
--- defaults.xml ---
<property name="anthill.version.number" value="@@@anthillvnum@@@" />
...
--- end defaults.xml ---
Anthill would do a replace of @@@anthillvnum@@@ with the current
build number
prior to kicking off the main Ant build.xml target.
Thanks for any insight.
Paul Furbacher
More information about the Anthill-pro
mailing list