You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by be...@apache.org on 2010/03/21 21:04:56 UTC
svn commit: r925882 - in
/maven/plugins/trunk/maven-shade-plugin/src/it/manifest-transformed:
pom.xml verify.bsh
Author: bentmann
Date: Sun Mar 21 20:04:55 2010
New Revision: 925882
URL: http://svn.apache.org/viewvc?rev=925882&view=rev
Log:
o Strengthened IT
Modified:
maven/plugins/trunk/maven-shade-plugin/src/it/manifest-transformed/pom.xml
maven/plugins/trunk/maven-shade-plugin/src/it/manifest-transformed/verify.bsh
Modified: maven/plugins/trunk/maven-shade-plugin/src/it/manifest-transformed/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-shade-plugin/src/it/manifest-transformed/pom.xml?rev=925882&r1=925881&r2=925882&view=diff
==============================================================================
--- maven/plugins/trunk/maven-shade-plugin/src/it/manifest-transformed/pom.xml (original)
+++ maven/plugins/trunk/maven-shade-plugin/src/it/manifest-transformed/pom.xml Sun Mar 21 20:04:55 2010
@@ -63,7 +63,8 @@ under the License.
<mainClass>org.apache.maven.Main</mainClass>
</manifest>
<manifestEntries>
- <Test-Entry>PASSED</Test-Entry>
+ <Test-Entry>FAILED</Test-Entry>
+ <Original-Entry>PASSED</Original-Entry>
</manifestEntries>
</archive>
</configuration>
Modified: maven/plugins/trunk/maven-shade-plugin/src/it/manifest-transformed/verify.bsh
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-shade-plugin/src/it/manifest-transformed/verify.bsh?rev=925882&r1=925881&r2=925882&view=diff
==============================================================================
--- maven/plugins/trunk/maven-shade-plugin/src/it/manifest-transformed/verify.bsh (original)
+++ maven/plugins/trunk/maven-shade-plugin/src/it/manifest-transformed/verify.bsh Sun Mar 21 20:04:55 2010
@@ -16,6 +16,11 @@ if ( !"PASSED".equals( mf.getMainAttribu
throw new IllegalStateException( "META-INF/MANIFEST.MF is incomplete" );
}
+if ( !"PASSED".equals( mf.getMainAttributes().getValue( "Original-Entry" ) ) )
+{
+ throw new IllegalStateException( "META-INF/MANIFEST.MF is incomplete" );
+}
+
if ( !"org.apache.maven.Shade".equals( mf.getMainAttributes().getValue( "Main-Class" ) ) )
{
throw new IllegalStateException( "META-INF/MANIFEST.MF is incomplete" );