You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ma...@apache.org on 2007/10/13 15:52:40 UTC

svn commit: r584402 [2/2] - in /maven/plugins/trunk/maven-jar-plugin: ./ src/main/java/org/apache/maven/plugin/jar/ src/site/apt/ src/test/java/org/apache/maven/plugin/jar/ src/test/resources/it/ src/test/resources/it/mjar-30-01/ src/test/resources/it/...

Added: maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/mjar-80-02/src/test/resources/test-default-configuration.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/mjar-80-02/src/test/resources/test-default-configuration.properties?rev=584402&view=auto
==============================================================================
--- maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/mjar-80-02/src/test/resources/test-default-configuration.properties (added)
+++ maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/mjar-80-02/src/test/resources/test-default-configuration.properties Sat Oct 13 06:52:32 2007
@@ -0,0 +1,16 @@
+# 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.

Added: maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/mjar-80-03/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/mjar-80-03/pom.xml?rev=584402&view=auto
==============================================================================
--- maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/mjar-80-03/pom.xml (added)
+++ maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/mjar-80-03/pom.xml Sat Oct 13 06:52:32 2007
@@ -0,0 +1,61 @@
+<?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/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.apache.maven.plugins</groupId>
+  <artifactId>maven-jar-plugin-test-mjar-80-03</artifactId>
+  <version>99.0</version>
+  <name>Maven</name>
+  <packaging>jar</packaging>
+  <dependencies>
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>3.8.1</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jar-plugin</artifactId>
+        <version>2.2-it-SNAPSHOT</version>
+        <executions>
+          <execution>
+            <goals>
+              <goal>test-jar</goal>
+            </goals>
+            <phase>package</phase>
+            <configuration>
+              <excludes>
+                <exclude>**/*.txt</exclude>
+              </excludes>
+            </configuration>
+          </execution>
+        </executions>
+
+      </plugin>
+    </plugins>
+  </build>
+</project>

Added: maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/mjar-80-03/src/main/java/foo/project003/App.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/mjar-80-03/src/main/java/foo/project003/App.java?rev=584402&view=auto
==============================================================================
--- maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/mjar-80-03/src/main/java/foo/project003/App.java (added)
+++ maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/mjar-80-03/src/main/java/foo/project003/App.java Sat Oct 13 06:52:32 2007
@@ -0,0 +1,32 @@
+package foo.project003;
+
+/*
+ * 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.
+ */
+
+/**
+ * Hello world!
+ *
+ */
+public class App 
+{
+    public static void main( String[] args )
+    {
+        System.out.println( "Hello World!" );
+    }
+}

Added: maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/mjar-80-03/src/main/resources/default-configuration.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/mjar-80-03/src/main/resources/default-configuration.properties?rev=584402&view=auto
==============================================================================
--- maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/mjar-80-03/src/main/resources/default-configuration.properties (added)
+++ maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/mjar-80-03/src/main/resources/default-configuration.properties Sat Oct 13 06:52:32 2007
@@ -0,0 +1,16 @@
+# 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.

Added: maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/mjar-80-03/src/main/resources/excluded-file.txt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/mjar-80-03/src/main/resources/excluded-file.txt?rev=584402&view=auto
==============================================================================
--- maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/mjar-80-03/src/main/resources/excluded-file.txt (added)
+++ maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/mjar-80-03/src/main/resources/excluded-file.txt Sat Oct 13 06:52:32 2007
@@ -0,0 +1 @@
+This file is excluded by the custom configuration, so shouldn't end up in the end product
\ No newline at end of file

Added: maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/mjar-80-03/src/test/java/foo/project003/AppIntegrationTest.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/mjar-80-03/src/test/java/foo/project003/AppIntegrationTest.java?rev=584402&view=auto
==============================================================================
--- maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/mjar-80-03/src/test/java/foo/project003/AppIntegrationTest.java (added)
+++ maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/mjar-80-03/src/test/java/foo/project003/AppIntegrationTest.java Sat Oct 13 06:52:32 2007
@@ -0,0 +1,57 @@
+package foo.project003;
+
+/*
+ * 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.
+ */
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+/**
+ * Unit test for simple App.
+ */
+public class AppIntegrationTest 
+    extends TestCase
+{
+    /**
+     * Create the test case
+     *
+     * @param testName name of the test case
+     */
+    public AppIntegrationTest( String testName )
+    {
+        super( testName );
+    }
+
+    /**
+     * @return the suite of tests being tested
+     */
+    public static Test suite()
+    {
+        return new TestSuite( AppIntegrationTest.class );
+    }
+
+    /**
+     * Rigourous Test :-)
+     */
+    public void testApp()
+    {
+        assertTrue( true );
+    }
+}

Added: maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/mjar-80-03/src/test/java/foo/project003/AppTest.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/mjar-80-03/src/test/java/foo/project003/AppTest.java?rev=584402&view=auto
==============================================================================
--- maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/mjar-80-03/src/test/java/foo/project003/AppTest.java (added)
+++ maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/mjar-80-03/src/test/java/foo/project003/AppTest.java Sat Oct 13 06:52:32 2007
@@ -0,0 +1,57 @@
+package foo.project003;
+
+/*
+ * 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.
+ */
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+/**
+ * Unit test for simple App.
+ */
+public class AppTest 
+    extends TestCase
+{
+    /**
+     * Create the test case
+     *
+     * @param testName name of the test case
+     */
+    public AppTest( String testName )
+    {
+        super( testName );
+    }
+
+    /**
+     * @return the suite of tests being tested
+     */
+    public static Test suite()
+    {
+        return new TestSuite( AppTest.class );
+    }
+
+    /**
+     * Rigourous Test :-)
+     */
+    public void testApp()
+    {
+        assertTrue( true );
+    }
+}

Added: maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/mjar-80-03/src/test/resources/excluded-file.txt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/mjar-80-03/src/test/resources/excluded-file.txt?rev=584402&view=auto
==============================================================================
--- maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/mjar-80-03/src/test/resources/excluded-file.txt (added)
+++ maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/mjar-80-03/src/test/resources/excluded-file.txt Sat Oct 13 06:52:32 2007
@@ -0,0 +1 @@
+This file is excluded by the custom configuration, so shouldn't end up in the end product
\ No newline at end of file

Added: maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/mjar-80-03/src/test/resources/test-default-configuration.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/mjar-80-03/src/test/resources/test-default-configuration.properties?rev=584402&view=auto
==============================================================================
--- maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/mjar-80-03/src/test/resources/test-default-configuration.properties (added)
+++ maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/mjar-80-03/src/test/resources/test-default-configuration.properties Sat Oct 13 06:52:32 2007
@@ -0,0 +1,16 @@
+# 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.

Added: maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/project-004/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/project-004/pom.xml?rev=584402&view=auto
==============================================================================
--- maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/project-004/pom.xml (added)
+++ maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/project-004/pom.xml Sat Oct 13 06:52:32 2007
@@ -0,0 +1,54 @@
+<?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/maven-v4_0_0.xsd">
+	<modelVersion>4.0.0</modelVersion>
+	<groupId>org.apache.maven.plugins</groupId>
+	<artifactId>maven-jar-plugin-test-project-004</artifactId>
+	<version>99.0</version>
+	<name>Maven</name>
+	<packaging>jar</packaging>
+	<url>http://maven.apache.org</url>
+	<build>
+		<plugins>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-jar-plugin</artifactId>
+				<version>2.2-it-SNAPSHOT</version>
+				<executions>
+					<execution>
+						<phase>package</phase>
+						<goals>
+							<goal>jar</goal>
+						</goals>
+						<configuration>
+							<classifier>service</classifier>
+							<includes>
+								<include>**/service/*</include>
+							</includes>
+						</configuration>
+					</execution>
+				</executions>
+			</plugin>
+		</plugins>
+	</build>
+</project>
\ No newline at end of file

Added: maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/project-004/src/main/java/TestCompile1.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/project-004/src/main/java/TestCompile1.java?rev=584402&view=auto
==============================================================================
--- maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/project-004/src/main/java/TestCompile1.java (added)
+++ maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/project-004/src/main/java/TestCompile1.java Sat Oct 13 06:52:32 2007
@@ -0,0 +1,29 @@
+/*
+ * 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.
+ */
+
+public class TestCompile1
+{
+
+    public TestCompile1()
+    {
+
+        System.out.println("Woo Hoo!");
+    }
+
+}
\ No newline at end of file

Added: maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/project-004/src/main/java/service/TestInterface.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/project-004/src/main/java/service/TestInterface.java?rev=584402&view=auto
==============================================================================
--- maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/project-004/src/main/java/service/TestInterface.java (added)
+++ maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/project-004/src/main/java/service/TestInterface.java Sat Oct 13 06:52:32 2007
@@ -0,0 +1,23 @@
+package service;
+/*
+ * 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.
+ */
+
+public interface TestInterface {
+
+}

Added: maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/project-004/src/main/java/service/impl/TestImplementation.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/project-004/src/main/java/service/impl/TestImplementation.java?rev=584402&view=auto
==============================================================================
--- maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/project-004/src/main/java/service/impl/TestImplementation.java (added)
+++ maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/project-004/src/main/java/service/impl/TestImplementation.java Sat Oct 13 06:52:32 2007
@@ -0,0 +1,23 @@
+package service.impl;
+/*
+ * 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.
+ */
+
+public class TestImplementation {
+
+}

Added: maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/project-004/src/main/resources/notIncluded.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/project-004/src/main/resources/notIncluded.xml?rev=584402&view=auto
==============================================================================
--- maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/project-004/src/main/resources/notIncluded.xml (added)
+++ maven/plugins/trunk/maven-jar-plugin/src/test/resources/it/project-004/src/main/resources/notIncluded.xml Sat Oct 13 06:52:32 2007
@@ -0,0 +1,22 @@
+<!--
+/*
+ * 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.
+ */
+ -->
+ <root>
+ </root>
\ No newline at end of file