DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19765>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19765

Compile tasks should not use ${user.dir} for temp files

           Summary: Compile tasks should not use ${user.dir} for temp files
           Product: Ant
           Version: 1.5.3
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core tasks
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Various compile tasks create temp files in the current working directory (via 
the user.dir system property, see method org.apache.tools.ant.taskdefs.
compilers.DefaultCompilerAdapter.executeExternalCompile). There should be a way 
to define a different temp directory here (or use the java.io.tmpdir directory 
from Java 1.2 on). 




In a server installation with a bundled Ant, or in networked build 
environments, 
the current working directory may be read-only (eg, some /opt/... path).




The same is probably true for other tasks that use the org.apache.tools.ant.
taskdefs.FileUtils.createTempFile method with a null directory, like javadoc, 
cvstagdiff, and cab.

Reply via email to