ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raymond Berg (ALLETE)" <rb...@mnpower.com>
Subject Calling ANT (CVS Task) from Java Missing Path
Date Fri, 20 Jun 2008 17:41:26 GMT
Greetings,

As part of a larger project I'm trying to invoke ANT from a Java class
using a variation of "Runtime.getRuntime.exec('ant')". However, the java
environment I'm calling from (Oracle Application Server) is not
providing many environmental variables to the ANT runtime. The Ant CVS
Task, as you probably know, requires the os path variable to run CVS.
This is not an option in this case, as the path is not configurable from
the Java runtime.

Is there a way to alter the path without creating a proxy batch file (my
current, extremely fragile solution) or configure a path that the CVS
Task will use to find 'cvs.exe'? I was hoping for a way inside build.xml
to alter the path, which doesn't appear possible

Many thanks,
Raymond

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message