You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ol...@apache.org on 2012/08/15 00:32:14 UTC

svn commit: r1373149 - in /maven/plugins/trunk/maven-dependency-plugin/src/it: unpack-depencies/ unpack-depencies/invoker.properties unpack-depencies/pom.xml unpack-depencies/verify.groovy unpack/validate.bsh

Author: olamy
Date: Tue Aug 14 22:32:14 2012
New Revision: 1373149

URL: http://svn.apache.org/viewvc?rev=1373149&view=rev
Log:
add it for unpack-dependencies goal

Added:
    maven/plugins/trunk/maven-dependency-plugin/src/it/unpack-depencies/
    maven/plugins/trunk/maven-dependency-plugin/src/it/unpack-depencies/invoker.properties   (with props)
    maven/plugins/trunk/maven-dependency-plugin/src/it/unpack-depencies/pom.xml   (with props)
    maven/plugins/trunk/maven-dependency-plugin/src/it/unpack-depencies/verify.groovy   (with props)
Modified:
    maven/plugins/trunk/maven-dependency-plugin/src/it/unpack/validate.bsh

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/unpack-depencies/invoker.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/unpack-depencies/invoker.properties?rev=1373149&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/unpack-depencies/invoker.properties (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/unpack-depencies/invoker.properties Tue Aug 14 22:32:14 2012
@@ -0,0 +1 @@
+invoker.goals = clean package

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/unpack-depencies/invoker.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/unpack-depencies/invoker.properties
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/unpack-depencies/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/unpack-depencies/pom.xml?rev=1373149&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/unpack-depencies/pom.xml (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/unpack-depencies/pom.xml Tue Aug 14 22:32:14 2012
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~   http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  -->
+  
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+  <modelVersion>4.0.0</modelVersion>
+  
+  <groupId>org.apache.maven.its.dependency</groupId>
+  <artifactId>unpack-dependencies</artifactId>
+  <version>1.0-SNAPSHOT</version>
+
+  <name>Test</name>
+  <description>
+    Test dependency:unpack-dependencies
+  </description>
+  
+  <properties>
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>4.10</version>
+    </dependency>
+  </dependencies>
+
+  <build>
+
+    
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-dependency-plugin</artifactId>
+        <version>@project.version@</version>
+        <executions>
+          <execution>
+            <id>unpack</id>
+            <goals>
+              <goal>unpack-dependencies</goal>
+            </goals>
+            <configuration>
+              <excludes>*.txt,META-INF/**</excludes>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+</project>
\ No newline at end of file

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/unpack-depencies/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/unpack-depencies/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/plugins/trunk/maven-dependency-plugin/src/it/unpack-depencies/verify.groovy
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/unpack-depencies/verify.groovy?rev=1373149&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/unpack-depencies/verify.groovy (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/unpack-depencies/verify.groovy Tue Aug 14 22:32:14 2012
@@ -0,0 +1,23 @@
+expected = ['org','junit']
+
+for (item in expected)
+{
+    def file = new File(basedir, 'target/dependency/' + item)
+    if (!file.exists())
+    {
+       throw new RuntimeException("Missing "+file.name);
+    }
+}
+
+notExpected = ['META-INF','LICENSE.TXT']
+
+for (item in notExpected)
+{
+    def file = new File(basedir, 'target/dependency/' + item)
+    if (file.exists())
+    {
+       throw new RuntimeException("This file shouldn't be here: "+file.name);
+    }
+}
+
+return true;

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/unpack-depencies/verify.groovy
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-dependency-plugin/src/it/unpack-depencies/verify.groovy
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

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=1373149&r1=1373148&r2=1373149&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 Tue Aug 14 22:32:14 2012
@@ -27,7 +27,6 @@ file = new File( file.getParent(), "src"
 System.out.println( "Checking for existence of " + file );
 if ( !file.isDirectory() )
 {
-  
    throw new Exception( "Missing " + file );
 }
 return true;