ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hi...@apache.org
Subject svn commit: r980703 - in /ant/sandbox/groovyfront/src: main/java/org/apache/ant/groovyfront/GroovyFrontProjectHelper.java test/java/org/apache/ant/groovyfront/cache/GroovyScriptCacheTest.java
Date Fri, 30 Jul 2010 09:37:00 GMT
Author: hibou
Date: Fri Jul 30 09:37:00 2010
New Revision: 980703

URL: http://svn.apache.org/viewvc?rev=980703&view=rev
Log:
stick to java 1.4 API

Modified:
    ant/sandbox/groovyfront/src/main/java/org/apache/ant/groovyfront/GroovyFrontProjectHelper.java
    ant/sandbox/groovyfront/src/test/java/org/apache/ant/groovyfront/cache/GroovyScriptCacheTest.java

Modified: ant/sandbox/groovyfront/src/main/java/org/apache/ant/groovyfront/GroovyFrontProjectHelper.java
URL: http://svn.apache.org/viewvc/ant/sandbox/groovyfront/src/main/java/org/apache/ant/groovyfront/GroovyFrontProjectHelper.java?rev=980703&r1=980702&r2=980703&view=diff
==============================================================================
--- ant/sandbox/groovyfront/src/main/java/org/apache/ant/groovyfront/GroovyFrontProjectHelper.java
(original)
+++ ant/sandbox/groovyfront/src/main/java/org/apache/ant/groovyfront/GroovyFrontProjectHelper.java
Fri Jul 30 09:37:00 2010
@@ -54,8 +54,7 @@ public class GroovyFrontProjectHelper ex
     private static final String ANT_PRIVATEDIR = ".ant";
     private static final String GROOVYFRONT_CACHE = "groovyfront-cache";
 
-    private boolean useCache = Boolean.parseBoolean(System
-            .getProperty(SYSPROP_USECACHE));
+    private boolean useCache = Boolean.getBoolean(SYSPROP_USECACHE);
 
     private long cleanerMinPeriod;
 

Modified: ant/sandbox/groovyfront/src/test/java/org/apache/ant/groovyfront/cache/GroovyScriptCacheTest.java
URL: http://svn.apache.org/viewvc/ant/sandbox/groovyfront/src/test/java/org/apache/ant/groovyfront/cache/GroovyScriptCacheTest.java?rev=980703&r1=980702&r2=980703&view=diff
==============================================================================
--- ant/sandbox/groovyfront/src/test/java/org/apache/ant/groovyfront/cache/GroovyScriptCacheTest.java
(original)
+++ ant/sandbox/groovyfront/src/test/java/org/apache/ant/groovyfront/cache/GroovyScriptCacheTest.java
Fri Jul 30 09:37:00 2010
@@ -22,6 +22,7 @@ import groovy.lang.GroovyShell;
 import groovy.lang.Script;
 
 import java.io.File;
+import java.io.FileOutputStream;
 import java.io.FileReader;
 import java.io.IOException;
 import java.io.PrintWriter;
@@ -48,7 +49,7 @@ public class GroovyScriptCacheTest exten
         groovyFile = new File(tmpDir, "test.groovy");
         helloFile = new File(tmpDir, "hello.txt");
 
-        PrintWriter writer = new PrintWriter(groovyFile);
+        PrintWriter writer = new PrintWriter(new FileOutputStream(groovyFile));
         writer.println("new File(\"" + helloFile.getAbsolutePath()
                 + "\").write(\"Hello world\")");
         writer.close();



Mime
View raw message