Bug 19765 - Compile tasks should not use ${user.dir} for temp files
Summary: Compile tasks should not use ${user.dir} for temp files
Status: RESOLVED FIXED
Alias: None
Product: Ant
Classification: Unclassified
Component: Core tasks (show other bugs)
Version: 1.5.3
Hardware: All other
: P3 normal (vote)
Target Milestone: 1.6
Assignee: Ant Notifications List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-08 14:35 UTC by Jochen Schwarze
Modified: 2004-11-16 19:05 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jochen Schwarze 2003-05-08 14:35:55 UTC
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.
Comment 1 Stefan Bodewig 2003-05-15 12:47:55 UTC
tempdir attribute in <javac> appears in nightly build 2003-05-16.