[jboss-cvs] JBossAS SVN: r60961 - 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:28:15 EST 2007


Author: kabir.khan at jboss.com
Date: 2007-02-27 15:28:15 -0500 (Tue, 27 Feb 2007)
New Revision: 60961

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:26:44 UTC (rev 60960)
+++ branches/Branch_AOP_1_5/aop/src/main/org/jboss/aop/ant/AopC.java	2007-02-27 20:28:15 UTC (rev 60961)
@@ -49,7 +49,7 @@
 {
    final static String SYS_OPTIMIZED = "jboss.aop.optimized";
    final static String SYS_INSTRUMENTOR = "jboss.aop.instrumentor";
-   
+
    private static String lSep = System.getProperty("line.separator");
    private int maxSrc = 1000;
 
@@ -285,7 +285,7 @@
       }
       return aopclasspath.createPath();
    }
-   
+
    public void addSysproperty(Environment.Variable property)
    {
       sysproperties.add(property);
@@ -359,7 +359,7 @@
             Environment.Variable var = (Environment.Variable)it.next();
             java.addSysproperty(var);
          }
-         
+
          if (maxmemory != null)
          {
             java.setMaxmemory(maxmemory);
@@ -434,6 +434,14 @@
       }
       else
       {
+         for (Iterator it = sysproperties.iterator() ; it.hasNext() ; )
+         {
+            Environment.Variable var = (Environment.Variable)it.next();
+            if (var.getKey().equals("java.io.tmpdir"))
+            {
+               System.setProperty("java.io.tmpdir", var.getValue());
+            }
+         }
          BufferedWriter writer = null;
          try
          {




More information about the jboss-cvs-commits mailing list