cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1149313 - in /cxf/trunk/rt/frontend/jaxrs/src: main/java/org/apache/cxf/jaxrs/ext/codegen/CodeGeneratorProvider.java test/java/org/apache/cxf/jaxrs/ext/codegen/CodeGeneratorProviderTest.java
Date Thu, 21 Jul 2011 18:54:38 GMT
Author: dkulp
Date: Thu Jul 21 18:54:37 2011
New Revision: 1149313

URL: http://svn.apache.org/viewvc?rev=1149313&view=rev
Log:
Use the CXF FileUtils to find an appropriate tmp dir

Modified:
    cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/codegen/CodeGeneratorProvider.java
    cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/ext/codegen/CodeGeneratorProviderTest.java

Modified: cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/codegen/CodeGeneratorProvider.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/codegen/CodeGeneratorProvider.java?rev=1149313&r1=1149312&r2=1149313&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/codegen/CodeGeneratorProvider.java
(original)
+++ cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/codegen/CodeGeneratorProvider.java
Thu Jul 21 18:54:37 2011
@@ -63,7 +63,7 @@ public class CodeGeneratorProvider imple
     private static final Set<String> SUPPORTED_LANGUAGES = new HashSet<String>(
         Arrays.asList(new String[]{"java"}));
     
-    private static final String TMPDIR = System.getProperty("java.io.tmpdir");
+    private static final File TMPDIR = FileUtils.getDefaultTempDir();
     
     
     private Comparator<String> importsComparator;

Modified: cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/ext/codegen/CodeGeneratorProviderTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/ext/codegen/CodeGeneratorProviderTest.java?rev=1149313&r1=1149312&r2=1149313&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/ext/codegen/CodeGeneratorProviderTest.java
(original)
+++ cxf/trunk/rt/frontend/jaxrs/src/test/java/org/apache/cxf/jaxrs/ext/codegen/CodeGeneratorProviderTest.java
Thu Jul 21 18:54:37 2011
@@ -99,7 +99,7 @@ public class CodeGeneratorProviderTest e
             cgp.setUriInfo(new UriInfoImpl(m, null));
             cgp.handleRequest(m, cri);
             
-            String tmpdir = System.getProperty("java.io.tmpdir");
+            File tmpdir = FileUtils.getDefaultTempDir();
             File classes = new File(tmpdir, cgp.getStem(cri, "classes"));
             if (!classes.mkdir()) {
                 fail();



Mime
View raw message