ant-user mailing list archives

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

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,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message