You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by da...@apache.org on 2010/01/01 02:42:30 UTC

svn commit: r894965 - in /maven/plugins/trunk/maven-dependency-plugin/src/it/unpack: pom.xml validate.bsh

Author: dantran
Date: Fri Jan  1 01:42:30 2010
New Revision: 894965

URL: http://svn.apache.org/viewvc?rev=894965&view=rev
Log:
prepare IT for MDEP-242 where unpack tgz with excludes configuration is not working

Modified:
    maven/plugins/trunk/maven-dependency-plugin/src/it/unpack/pom.xml
    maven/plugins/trunk/maven-dependency-plugin/src/it/unpack/validate.bsh

Modified: maven/plugins/trunk/maven-dependency-plugin/src/it/unpack/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/unpack/pom.xml?rev=894965&r1=894964&r2=894965&view=diff
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/unpack/pom.xml (original)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/unpack/pom.xml Fri Jan  1 01:42:30 2010
@@ -37,6 +37,9 @@
   </properties>
   
   <build>
+  
+    <defaultGoal>package</defaultGoal>
+    
     <plugins>
       <plugin>
         <artifactId>maven-dependency-plugin</artifactId>
@@ -57,6 +60,7 @@
                   <version>1.5</version>
                   <classifier>src</classifier>
                   <type>tar.gz</type>
+                  <excludes>src</excludes> <!-- this is not working yet see MDEP-242 -->
                 </artifactItem>
               </artifactItems>
             </configuration>

Modified: maven/plugins/trunk/maven-dependency-plugin/src/it/unpack/validate.bsh
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/unpack/validate.bsh?rev=894965&r1=894964&r2=894965&view=diff
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/unpack/validate.bsh (original)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/unpack/validate.bsh Fri Jan  1 01:42:30 2010
@@ -22,4 +22,12 @@
    throw new Exception( "Missing " + file );
 }
 
+//until MDEP-242 is fixed, the next test will passed
+file = new File( file.getParent(), "src" );
+System.out.println( "Checking for existence of " + file );
+if ( !file.isDirectory() )
+{
+  
+   throw new Exception( "Missing " + file );
+}
 return true;