Author: jdcasey
Date: Mon Mar 19 07:34:15 2007
New Revision: 519959
URL: http://svn.apache.org/viewvc?view=rev&rev=519959
Log:
Adding failing IT for MASSEMBLY-142. Now we have something we can fix.
Added:
maven/plugins/trunk/maven-assembly-plugin/src/it/mojo-configuration/manifest-with-customEntry/
maven/plugins/trunk/maven-assembly-plugin/src/it/mojo-configuration/manifest-with-customEntry/goals.txt
(with props)
maven/plugins/trunk/maven-assembly-plugin/src/it/mojo-configuration/manifest-with-customEntry/pom.xml
(with props)
maven/plugins/trunk/maven-assembly-plugin/src/it/mojo-configuration/manifest-with-customEntry/src/
maven/plugins/trunk/maven-assembly-plugin/src/it/mojo-configuration/manifest-with-customEntry/src/main/
maven/plugins/trunk/maven-assembly-plugin/src/it/mojo-configuration/manifest-with-customEntry/src/main/java/
maven/plugins/trunk/maven-assembly-plugin/src/it/mojo-configuration/manifest-with-customEntry/src/main/java/test/
maven/plugins/trunk/maven-assembly-plugin/src/it/mojo-configuration/manifest-with-customEntry/src/main/java/test/App.java
(with props)
maven/plugins/trunk/maven-assembly-plugin/src/it/mojo-configuration/manifest-with-customEntry/src/test/
maven/plugins/trunk/maven-assembly-plugin/src/it/mojo-configuration/manifest-with-customEntry/src/test/java/
maven/plugins/trunk/maven-assembly-plugin/src/it/mojo-configuration/manifest-with-customEntry/src/test/java/test/
maven/plugins/trunk/maven-assembly-plugin/src/it/mojo-configuration/manifest-with-customEntry/src/test/java/test/AppTest.java
(with props)
maven/plugins/trunk/maven-assembly-plugin/src/it/mojo-configuration/manifest-with-customEntry/verify.bsh
Modified:
maven/plugins/trunk/maven-assembly-plugin/src/it/basic-features/file-copyIntoTopDir/pom.xml
Modified:
maven/plugins/trunk/maven-assembly-plugin/src/it/basic-features/file-copyIntoTopDir/pom.xml
URL:
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-assembly-plugin/src/it/basic-features/file-copyIntoTopDir/pom.xml?view=diff&rev=519959&r1=519958&r2=519959
==============================================================================
---
maven/plugins/trunk/maven-assembly-plugin/src/it/basic-features/file-copyIntoTopDir/pom.xml
(original)
+++
maven/plugins/trunk/maven-assembly-plugin/src/it/basic-features/file-copyIntoTopDir/pom.xml
Mon Mar 19 07:34:15 2007
@@ -12,7 +12,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
- <!-- <version>testing</version> -->
+ <version>testing</version>
<configuration>
<descriptors>
<descriptor>src/assemble/bin.xml</descriptor>
Added:
maven/plugins/trunk/maven-assembly-plugin/src/it/mojo-configuration/manifest-with-customEntry/goals.txt
URL:
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-assembly-plugin/src/it/mojo-configuration/manifest-with-customEntry/goals.txt?view=auto&rev=519959
==============================================================================
---
maven/plugins/trunk/maven-assembly-plugin/src/it/mojo-configuration/manifest-with-customEntry/goals.txt
(added)
+++
maven/plugins/trunk/maven-assembly-plugin/src/it/mojo-configuration/manifest-with-customEntry/goals.txt
Mon Mar 19 07:34:15 2007
@@ -0,0 +1 @@
+package
\ No newline at end of file
Propchange:
maven/plugins/trunk/maven-assembly-plugin/src/it/mojo-configuration/manifest-with-customEntry/goals.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
maven/plugins/trunk/maven-assembly-plugin/src/it/mojo-configuration/manifest-with-customEntry/goals.txt
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added:
maven/plugins/trunk/maven-assembly-plugin/src/it/mojo-configuration/manifest-with-customEntry/pom.xml
URL:
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-assembly-plugin/src/it/mojo-configuration/manifest-with-customEntry/pom.xml?view=auto&rev=519959
==============================================================================
---
maven/plugins/trunk/maven-assembly-plugin/src/it/mojo-configuration/manifest-with-customEntry/pom.xml
(added)
+++
maven/plugins/trunk/maven-assembly-plugin/src/it/mojo-configuration/manifest-with-customEntry/pom.xml
Mon Mar 19 07:34:15 2007
@@ -0,0 +1,46 @@
+<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>test</groupId>
+ <artifactId>manifest-with-customEntry</artifactId>
+ <packaging>jar</packaging>
+ <version>1</version>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-assembly-plugin</artifactId>
+ <version>testing</version>
+ <executions>
+ <execution>
+ <id>assembly</id>
+ <phase>package</phase>
+ <goals>
+ <goal>attached</goal>
+ </goals>
+ <configuration>
+ <descriptorRefs>
+ <descriptorRef>jar-with-dependencies</descriptorRef>
+ </descriptorRefs>
+ <archive>
+ <manifest>
+ <mainClass>test.App</mainClass>
+ </manifest>
+ <manifestEntries>
+ <mode>development</mode>
+ </manifestEntries>
+ </archive>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Propchange:
maven/plugins/trunk/maven-assembly-plugin/src/it/mojo-configuration/manifest-with-customEntry/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
maven/plugins/trunk/maven-assembly-plugin/src/it/mojo-configuration/manifest-with-customEntry/pom.xml
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added:
maven/plugins/trunk/maven-assembly-plugin/src/it/mojo-configuration/manifest-with-customEntry/src/main/java/test/App.java
URL:
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-assembly-plugin/src/it/mojo-configuration/manifest-with-customEntry/src/main/java/test/App.java?view=auto&rev=519959
==============================================================================
---
maven/plugins/trunk/maven-assembly-plugin/src/it/mojo-configuration/manifest-with-customEntry/src/main/java/test/App.java
(added)
+++
maven/plugins/trunk/maven-assembly-plugin/src/it/mojo-configuration/manifest-with-customEntry/src/main/java/test/App.java
Mon Mar 19 07:34:15 2007
@@ -0,0 +1,13 @@
+package test;
+
+/**
+ * Hello world!
+ *
+ */
+public class App
+{
+ public static void main( String[] args )
+ {
+ System.out.println( "Hello World!" );
+ }
+}
Propchange:
maven/plugins/trunk/maven-assembly-plugin/src/it/mojo-configuration/manifest-with-customEntry/src/main/java/test/App.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
maven/plugins/trunk/maven-assembly-plugin/src/it/mojo-configuration/manifest-with-customEntry/src/main/java/test/App.java
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added:
maven/plugins/trunk/maven-assembly-plugin/src/it/mojo-configuration/manifest-with-customEntry/src/test/java/test/AppTest.java
URL:
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-assembly-plugin/src/it/mojo-configuration/manifest-with-customEntry/src/test/java/test/AppTest.java?view=auto&rev=519959
==============================================================================
---
maven/plugins/trunk/maven-assembly-plugin/src/it/mojo-configuration/manifest-with-customEntry/src/test/java/test/AppTest.java
(added)
+++
maven/plugins/trunk/maven-assembly-plugin/src/it/mojo-configuration/manifest-with-customEntry/src/test/java/test/AppTest.java
Mon Mar 19 07:34:15 2007
@@ -0,0 +1,38 @@
+package test;
+
+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 );
+ }
+}
Propchange:
maven/plugins/trunk/maven-assembly-plugin/src/it/mojo-configuration/manifest-with-customEntry/src/test/java/test/AppTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
maven/plugins/trunk/maven-assembly-plugin/src/it/mojo-configuration/manifest-with-customEntry/src/test/java/test/AppTest.java
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added:
maven/plugins/trunk/maven-assembly-plugin/src/it/mojo-configuration/manifest-with-customEntry/verify.bsh
URL:
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-assembly-plugin/src/it/mojo-configuration/manifest-with-customEntry/verify.bsh?view=auto&rev=519959
==============================================================================
---
maven/plugins/trunk/maven-assembly-plugin/src/it/mojo-configuration/manifest-with-customEntry/verify.bsh
(added)
+++
maven/plugins/trunk/maven-assembly-plugin/src/it/mojo-configuration/manifest-with-customEntry/verify.bsh
Mon Mar 19 07:34:15 2007
@@ -0,0 +1,20 @@
+import java.io.*;
+import java.util.jar.*;
+import java.util.*;
+import java.net.*;
+
+File file = new File( basedir,
"target/manifest-with-customEntry-1-jar-with-dependencies.jar" );
+
+System.out.println( "file: " + file + " exists? " + file.exists() );
+
+JarFile jarFile = new JarFile( file );
+
+Manifest mf = jarFile.getManifest();
+
+Attributes attrs = mf.getMainAttributes();
+
+String mode = (String) attrs.get( new Attributes.Name( "mode" ) );
+
+System.out.println( "Got mode: " + mode );
+
+return "development".equals( mode );