You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2004/08/09 17:59:07 UTC
DO NOT REPLY [Bug 30542] New: -
Javac working directory
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30542>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=30542
Javac working directory
Summary: Javac working directory
Product: Ant
Version: 1.6.2
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Core tasks
AssignedTo: dev@ant.apache.org
ReportedBy: apacheant@goots.org
Modifying our current Ant build system to work with IBM's J9 JVM. This is a CDC
JVM which does not support all the command line options that javac supports. I
managed to almost get it working using the standard options -
I had to set sourcepath to "" (it doesn't support that flag), specify the
executable, fork the process and use compiler=javac1.1 so that it doesn't use
the @files flag as that also isn't supported.
The one issue I found (currently I have hacked the source) was that when the
DefaultCompilerAdapter::executeExternalCompile function puts together the
command line it sets the working directory to the project base dir.
Due to the fact j9 does not support sourcepath flag, it is best to run it from
the root of your sourcetree so that any implicitly needed files are
automatically found.
Therefore it would be really handy if there was a way to set the working
directory e.g. perhaps if sourcepath not set, and src is set then set working
dir to that.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org