ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 19765] New: - Compile tasks should not use ${user.dir} for temp files
Date Thu, 08 May 2003 14:35:56 GMT
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: dev@ant.apache.org
        ReportedBy: Jochen.Schwarze@cit.de


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.

Mime
View raw message