You cant really "set" the environman. On some tasks you can set the executable
to use (e.g. or ).
But I think it would be easier to have a batch file which invokes Ant with the
right environment.
@echo off
set JAVA_HOME=...
set ANT_HOME=...
set PATH=...some...stan
or you can simply use
svnversion -c
on your working directory
(both before and after an 'svn update' for starting and ending revision
numbers to generate changelogs for the build)
> -Original Message-
> From: Mark Reibert [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 10, 20
Is there any way to set up my jdk environment from within the Ant file? I'm on
Windows Vista and build different products with different JDK versions from
within a DOS window and would like the build.xml to load the respective jdk.
But not sure how Ant can overwrite the system environment. A
That is not likely to happen. Ant build scripts come in many shapes and
sizes and it is very unlikely that someone will have one that will work
in your environment. You will want to start with the manual:
http://ant.apache.org/manual/index.html, and create your script. Along
the way you can post