maven-surefire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dfabul...@apache.org
Subject svn commit: r597817 - in /maven/surefire/trunk/surefire-integration-tests/src/test: java/org/apache/maven/surefire/its/UmlautDirTest.java resources/junit-pathWithUmlaut/ resources/junit-pathWithÜmlaut/
Date Sat, 24 Nov 2007 06:37:53 GMT
Author: dfabulich
Date: Fri Nov 23 22:37:52 2007
New Revision: 597817

URL: http://svn.apache.org/viewvc?rev=597817&view=rev
Log:
Can't checkout Ümlaut dir on peopele.apache.org.  Check it in as Umlaut and extract it as
Ümlaut.

Added:
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit-pathWithUmlaut/
      - copied from r597766, maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit-pathWithÜmlaut/
Removed:
    maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit-pathWithÜmlaut/
Modified:
    maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/UmlautDirTest.java

Modified: maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/UmlautDirTest.java
URL: http://svn.apache.org/viewvc/maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/UmlautDirTest.java?rev=597817&r1=597816&r2=597817&view=diff
==============================================================================
--- maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/UmlautDirTest.java
(original)
+++ maven/surefire/trunk/surefire-integration-tests/src/test/java/org/apache/maven/surefire/its/UmlautDirTest.java
Fri Nov 23 22:37:52 2007
@@ -6,6 +6,7 @@
 
 import org.apache.maven.integrationtests.AbstractMavenIntegrationTestCase;
 import org.apache.maven.it.Verifier;
+import org.apache.maven.it.util.FileUtils;
 import org.apache.maven.it.util.ResourceExtractor;
 
 /**
@@ -20,7 +21,15 @@
     public void testUmlaut ()
         throws Exception
     {
-        File testDir = ResourceExtractor.simpleExtractResources( getClass(), "/junit-pathWithÜmlaut"
);
+        String tempDirPath = System.getProperty( "maven.test.tmpdir", System.getProperty(
"java.io.tmpdir" ) );
+        File tempDir = new File(tempDirPath);
+        File targetDir = new File("target");
+        if (targetDir.exists() && targetDir.isDirectory()) {
+            tempDir = targetDir;
+        }
+        File testDir = new File( tempDir, "/junit-pathWithÜmlaut" );
+        FileUtils.deleteDirectory( testDir );
+        testDir = ResourceExtractor.extractResourcePath(getClass(), "/junit-pathWithUmlaut",
testDir, true);
 
         Verifier verifier = new Verifier( testDir.getAbsolutePath() );
         verifier.executeGoal( "test" );



Mime
View raw message