You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by kk...@apache.org on 2014/03/14 20:16:54 UTC

svn commit: r1577665 - /tomcat/trunk/test/org/apache/jasper/TestJspC.java

Author: kkolinko
Date: Fri Mar 14 19:16:54 2014
New Revision: 1577665

URL: http://svn.apache.org/r1577665
Log:
1. Do not hardcode the path to output directory. It can be controlled via build.properties.
2. Cleanup after the test.

Modified:
    tomcat/trunk/test/org/apache/jasper/TestJspC.java

Modified: tomcat/trunk/test/org/apache/jasper/TestJspC.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/test/org/apache/jasper/TestJspC.java?rev=1577665&r1=1577664&r2=1577665&view=diff
==============================================================================
--- tomcat/trunk/test/org/apache/jasper/TestJspC.java (original)
+++ tomcat/trunk/test/org/apache/jasper/TestJspC.java Fri Mar 14 19:16:54 2014
@@ -24,6 +24,7 @@ import java.nio.file.Path;
 import java.nio.file.SimpleFileVisitor;
 import java.nio.file.attribute.BasicFileAttributes;
 
+import org.junit.After;
 import org.junit.Assert;
 import org.junit.Before;
 import org.junit.Test;
@@ -35,8 +36,15 @@ public class TestJspC {
 
     @Before
     public void init() {
+        File tempDir = new File(System.getProperty("tomcat.test.temp",
+                "output/tmp"));
+        outputDir = new File(tempDir, "jspc");
         jspc = new JspC();
-        outputDir = new File("output/jspc");
+    }
+
+    @After
+    public void cleanup() throws IOException {
+        remove(outputDir);
     }
 
     @Test



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org