maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r642698 - in /maven/plugins/trunk/maven-verifier-plugin/src/test: java/org/apache/maven/plugin/verifier/VerifierMojoTest.java resources/File Exists.xml resources/FileExists.xml
Date Sun, 30 Mar 2008 09:14:35 GMT
Author: hboutemy
Date: Sun Mar 30 02:14:34 2008
New Revision: 642698

URL: http://svn.apache.org/viewvc?rev=642698&view=rev
Log:
don't fail if there is a space in filename

Added:
    maven/plugins/trunk/maven-verifier-plugin/src/test/resources/File Exists.xml
      - copied, changed from r642560, maven/plugins/trunk/maven-verifier-plugin/src/test/resources/FileExists.xml
Removed:
    maven/plugins/trunk/maven-verifier-plugin/src/test/resources/FileExists.xml
Modified:
    maven/plugins/trunk/maven-verifier-plugin/src/test/java/org/apache/maven/plugin/verifier/VerifierMojoTest.java

Modified: maven/plugins/trunk/maven-verifier-plugin/src/test/java/org/apache/maven/plugin/verifier/VerifierMojoTest.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-verifier-plugin/src/test/java/org/apache/maven/plugin/verifier/VerifierMojoTest.java?rev=642698&r1=642697&r2=642698&view=diff
==============================================================================
--- maven/plugins/trunk/maven-verifier-plugin/src/test/java/org/apache/maven/plugin/verifier/VerifierMojoTest.java
(original)
+++ maven/plugins/trunk/maven-verifier-plugin/src/test/java/org/apache/maven/plugin/verifier/VerifierMojoTest.java
Sun Mar 30 02:14:34 2008
@@ -54,7 +54,7 @@
         throws Exception
     {
         VerifierMojo mojo = new VerifierMojo();
-        File file = new File( getClass().getResource( "/FileDoesNotExist.xml" ).getFile()
);
+        File file = new File( getClass().getResource( "/FileDoesNotExist.xml" ).toURI() );
         mojo.setBaseDir( new File( "c:/some/path" ) );
         mojo.setVerificationFile( file );
         mojo.setFailOnError( true );
@@ -83,7 +83,7 @@
         throws Exception
     {
         VerifierMojo mojo = new VerifierMojo();
-        File file = new File( getClass().getResource( "/FileExists.xml" ).getFile() );
+        File file = new File( getClass().getResource( "/File Exists.xml" ).toURI() );
         mojo.setBaseDir( file.getParentFile() );
         mojo.setVerificationFile( file );
         mojo.setFailOnError( true );
@@ -104,7 +104,7 @@
         throws Exception
     {
         VerifierMojo mojo = new VerifierMojo();
-        File file = new File( getClass().getResource( "/InexistentFile.xml" ).getFile() );
+        File file = new File( getClass().getResource( "/InexistentFile.xml" ).toURI() );
         mojo.setBaseDir( new File( "c:/some/path" ) );
         mojo.setVerificationFile( file );
         mojo.setVerificationResultPrinter( new VerificationResultPrinter()
@@ -124,7 +124,7 @@
         throws Exception
     {
         VerifierMojo mojo = new VerifierMojo();
-        File file = new File( getClass().getResource( "/InexistentFileThatExists.xml" ).getFile()
);
+        File file = new File( getClass().getResource( "/InexistentFileThatExists.xml" ).toURI()
);
         mojo.setBaseDir( file.getParentFile() );
         mojo.setVerificationFile( file );
         mojo.setFailOnError( true );
@@ -153,7 +153,7 @@
         throws Exception
     {
         VerifierMojo mojo = new VerifierMojo();
-        File file = new File( getClass().getResource( "/FileExistsValidContent.xml" ).getFile()
);
+        File file = new File( getClass().getResource( "/FileExistsValidContent.xml" ).toURI()
);
         mojo.setBaseDir( file.getParentFile() );
         mojo.setVerificationFile( file );
         mojo.setVerificationResultPrinter( new VerificationResultPrinter()
@@ -173,7 +173,7 @@
         throws Exception
     {
         VerifierMojo mojo = new VerifierMojo();
-        File file = new File( getClass().getResource( "/FileExistsInvalidContent.xml" ).getFile()
);
+        File file = new File( getClass().getResource( "/FileExistsInvalidContent.xml" ).toURI()
);
         mojo.setBaseDir( file.getParentFile() );
         mojo.setVerificationFile( file );
         mojo.setFailOnError( true );

Copied: maven/plugins/trunk/maven-verifier-plugin/src/test/resources/File Exists.xml (from
r642560, maven/plugins/trunk/maven-verifier-plugin/src/test/resources/FileExists.xml)
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-verifier-plugin/src/test/resources/File%20Exists.xml?p2=maven/plugins/trunk/maven-verifier-plugin/src/test/resources/File%20Exists.xml&p1=maven/plugins/trunk/maven-verifier-plugin/src/test/resources/FileExists.xml&r1=642560&r2=642698&rev=642698&view=diff
==============================================================================
--- maven/plugins/trunk/maven-verifier-plugin/src/test/resources/FileExists.xml (original)
+++ maven/plugins/trunk/maven-verifier-plugin/src/test/resources/File Exists.xml Sun Mar 30
02:14:34 2008
@@ -20,7 +20,7 @@
 <verifications>
   <files>
     <file>
-      <location>FileExists.xml</location>
+      <location>File Exists.xml</location>
     </file>
   </files>
 </verifications>



Mime
View raw message