[jboss-cvs] JBossAS SVN: r60962 - branches/Branch_AOP_1_5/aop/src/main/org/jboss/aop/ant.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Feb 27 15:49:07 EST 2007
Author: kabir.khan at jboss.com
Date: 2007-02-27 15:49:06 -0500 (Tue, 27 Feb 2007)
New Revision: 60962
Modified:
branches/Branch_AOP_1_5/aop/src/main/org/jboss/aop/ant/AopC.java
Log:
[JBAOP-369] AOPC shoiuld use -Djava.io.tmpdir instead of default /tmp
Modified: branches/Branch_AOP_1_5/aop/src/main/org/jboss/aop/ant/AopC.java
===================================================================
--- branches/Branch_AOP_1_5/aop/src/main/org/jboss/aop/ant/AopC.java 2007-02-27 20:28:15 UTC (rev 60961)
+++ branches/Branch_AOP_1_5/aop/src/main/org/jboss/aop/ant/AopC.java 2007-02-27 20:49:06 UTC (rev 60962)
@@ -66,6 +66,8 @@
private String maxmemory = null;
ArrayList sysproperties = new ArrayList();
+ File sourceFiles;
+
/**
* flag to control action on execution trouble
*/
@@ -378,6 +380,14 @@
ex, getLocation());
}
}
+ finally
+ {
+ if (sourceFiles != null)
+ {
+ //deleteOnExit does not seem to work so do it explicitly here
+ sourceFiles.delete();
+ }
+ }
}
protected void logAndAddFilesToCompile(CommandlineJava cmd)
@@ -445,7 +455,7 @@
BufferedWriter writer = null;
try
{
- File sourceFiles = File.createTempFile("src", ".tmp");
+ sourceFiles = File.createTempFile("src", ".tmp");
if (verbose)
{
System.out.println("[info] Total length of filenames to be compiled is greater than "
More information about the jboss-cvs-commits
mailing list