Author: dantran
Date: Wed Dec 30 05:10:23 2009
New Revision: 894544

URL: http://svn.apache.org/viewvc?rev=894544&view=rev
Log:
MDEP-142: add IT, not able to reproduce the issue.

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

Added: 
maven/plugins/trunk/maven-dependency-plugin/src/it/unpack/invoker.properties
URL: 
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-dependency-plugin/src/it/unpack/invoker.properties?rev=894544&view=auto
==============================================================================
--- 
maven/plugins/trunk/maven-dependency-plugin/src/it/unpack/invoker.properties 
(added)
+++ 
maven/plugins/trunk/maven-dependency-plugin/src/it/unpack/invoker.properties 
Wed Dec 30 05:10:23 2009
@@ -0,0 +1 @@
+invoker.goals = clean package

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

Added: 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=894544&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/unpack/pom.xml (added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/unpack/pom.xml Wed Dec 
30 05:10:23 2009
@@ -0,0 +1,67 @@
+<?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>
+
+  <modelVersion>4.0.0</modelVersion>
+  
+  <groupId>org.apache.maven.its.dependency</groupId>
+  <artifactId>test</artifactId>
+  <version>1.0-SNAPSHOT</version>
+
+  <name>Test</name>
+  <description>
+    Test dependency:unpack
+  </description>
+  
+  <properties>
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+  </properties>
+  
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-dependency-plugin</artifactId>
+        <version>@project.version@</version>
+        <executions>
+          <execution>
+            <id>unpack</id>
+            <goals>
+              <goal>unpack</goal>
+            </goals>
+            <configuration>
+              <!--  MDEP-138 -->
+              <outputDirectory>${project.build.directory}/output spaces 
directory</outputDirectory>
+              <artifactItems>
+                <artifactItem>
+                  <groupId>tanukisoft</groupId>
+                  <artifactId>wrapper-delta-pack</artifactId>
+                  <version>3.2.3</version>
+                  <type>tar.gz</type>
+                </artifactItem>
+              </artifactItems>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+</project>
\ No newline at end of file

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

Added: 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=894544&view=auto
==============================================================================
--- maven/plugins/trunk/maven-dependency-plugin/src/it/unpack/validate.bsh 
(added)
+++ maven/plugins/trunk/maven-dependency-plugin/src/it/unpack/validate.bsh Wed 
Dec 30 05:10:23 2009
@@ -0,0 +1,25 @@
+import java.io.*;
+
+
+File file = new File( basedir, "target/output spaces directory" );
+System.out.println( "Checking for existence of " + file );
+if ( !file.isDirectory() )
+{
+   throw new Exception( "Missing " + file );
+}
+
+file = new File( file, "wrapper-delta-pack-3.2.3" );
+System.out.println( "Checking for existence of " + file );
+if ( !file.isDirectory() )
+{
+   throw new Exception( "Missing " + file );
+}
+
+file = new File( file, "jdoc.tar.gz" );
+System.out.println( "Checking for existence of " + file );
+if ( !file.isFile() )
+{
+   throw new Exception( "Missing " + file );
+}
+
+return true;

Propchange: 
maven/plugins/trunk/maven-dependency-plugin/src/it/unpack/validate.bsh
------------------------------------------------------------------------------
    svn:eol-style = native


Reply via email to