You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aries.apache.org by zo...@apache.org on 2011/02/27 18:50:54 UTC
svn commit: r1075095 [2/2] - in /aries/tags/eba-maven-plugin-0.1-incubating:
./ src/ src/it/ src/it/default/ src/it/default/src/
src/it/default/src/main/ src/it/default/src/main/custom/
src/it/default/src/main/eba/ src/main/ src/main/java/ src/main/jav...
Added: aries/tags/eba-maven-plugin-0.1-incubating/src/test/java/org/apache/aries/plugin/eba/EbaMojoTest.java
URL: http://svn.apache.org/viewvc/aries/tags/eba-maven-plugin-0.1-incubating/src/test/java/org/apache/aries/plugin/eba/EbaMojoTest.java?rev=1075095&view=auto
==============================================================================
--- aries/tags/eba-maven-plugin-0.1-incubating/src/test/java/org/apache/aries/plugin/eba/EbaMojoTest.java (added)
+++ aries/tags/eba-maven-plugin-0.1-incubating/src/test/java/org/apache/aries/plugin/eba/EbaMojoTest.java Sun Feb 27 17:50:52 2011
@@ -0,0 +1,224 @@
+package org.apache.aries.plugin.eba;
+
+/*
+ * 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 java.io.File;
+import java.util.ArrayList;
+import java.util.Enumeration;
+import java.util.List;
+import java.util.Iterator;
+
+import org.apache.maven.plugin.testing.AbstractMojoTestCase;
+import org.codehaus.plexus.archiver.zip.ZipEntry;
+import org.codehaus.plexus.archiver.zip.ZipFile;
+import org.codehaus.plexus.util.FileUtils;
+
+/**
+ * @author <a href="mailto:aramirez@apache.org">Allan Ramirez</a>
+ */
+public class EbaMojoTest
+ extends AbstractMojoTestCase
+{
+ public void testEbaTestEnvironment()
+ throws Exception
+ {
+ File testPom = new File( getBasedir(),
+ "target/test-classes/unit/basic-eba-test/plugin-config.xml" );
+
+ EbaMojo mojo = ( EbaMojo ) lookupMojo( "eba", testPom );
+
+ assertNotNull( mojo );
+ }
+
+ public void testBasicEba()
+ throws Exception
+ {
+ File testPom = new File( getBasedir(),
+ "target/test-classes/unit/basic-eba-test/plugin-config.xml" );
+
+ EbaMojo mojo = ( EbaMojo ) lookupMojo( "eba", testPom );
+
+ assertNotNull( mojo );
+
+ String finalName = ( String ) getVariableValueFromObject( mojo, "finalName" );
+
+ String workDir = ( String ) getVariableValueFromObject( mojo, "workDirectory" );
+
+ String outputDir = ( String ) getVariableValueFromObject( mojo, "outputDirectory" );
+
+ Boolean includeJar = ( Boolean ) getVariableValueFromObject( mojo, "includeJar" );
+
+ assertTrue( includeJar.booleanValue() );
+
+ //include the project jar to the eba
+ File projectJar = new File( getBasedir(), "src/test/resources/unit/basic-eba-test/target/test-eba.jar" );
+
+ FileUtils.copyFileToDirectory( projectJar, new File( outputDir ) );
+
+ mojo.execute();
+
+ //check the generated eba file
+ File ebaFile = new File( outputDir, finalName + ".eba" );
+
+ assertTrue( ebaFile.exists() );
+
+ //expected files/directories inside the eba file
+ List expectedFiles = new ArrayList();
+
+ expectedFiles.add( "META-INF/maven/org.apache.maven.test/maven-eba-test/pom.properties" );
+ expectedFiles.add( "META-INF/maven/org.apache.maven.test/maven-eba-test/pom.xml" );
+ expectedFiles.add( "META-INF/maven/org.apache.maven.test/maven-eba-test/" );
+ expectedFiles.add( "META-INF/maven/org.apache.maven.test/" );
+ expectedFiles.add( "META-INF/maven/" );
+// expectedFiles.add( "META-INF/MANIFEST.MF" );
+ expectedFiles.add( "META-INF/" );
+ expectedFiles.add( "maven-artifact01-1.0-SNAPSHOT.jar" );
+ expectedFiles.add( "maven-artifact02-1.0-SNAPSHOT.jar" );
+ expectedFiles.add( "test-eba.jar" );
+
+ ZipFile eba = new ZipFile( ebaFile );
+
+ Enumeration entries = eba.getEntries();
+
+ assertTrue( entries.hasMoreElements() );
+
+ assertTrue( entries.hasMoreElements() );
+
+ int missing = getSizeOfExpectedFiles(entries, expectedFiles);
+ assertEquals("Missing files: " + expectedFiles, 0, missing);
+ }
+
+ public void testBasicEbaWithDescriptor()
+ throws Exception
+ {
+ File testPom = new File( getBasedir(),
+ "target/test-classes/unit/basic-eba-with-descriptor/plugin-config.xml" );
+
+ EbaMojo mojo = ( EbaMojo ) lookupMojo( "eba", testPom );
+
+ assertNotNull( mojo );
+
+ String finalName = ( String ) getVariableValueFromObject( mojo, "finalName" );
+
+ String workDir = ( String ) getVariableValueFromObject( mojo, "workDirectory" );
+
+ String outputDir = ( String ) getVariableValueFromObject( mojo, "outputDirectory" );
+
+ mojo.execute();
+
+ //check the generated eba file
+ File ebaFile = new File( outputDir, finalName + ".eba" );
+
+ assertTrue( ebaFile.exists() );
+
+ //expected files/directories inside the eba file
+ List expectedFiles = new ArrayList();
+
+ expectedFiles.add( "META-INF/maven/org.apache.maven.test/maven-eba-test/pom.properties" );
+ expectedFiles.add( "META-INF/maven/org.apache.maven.test/maven-eba-test/pom.xml" );
+ expectedFiles.add( "META-INF/maven/org.apache.maven.test/maven-eba-test/" );
+ expectedFiles.add( "META-INF/maven/org.apache.maven.test/" );
+ expectedFiles.add( "META-INF/maven/" );
+// expectedFiles.add( "META-INF/MANIFEST.MF" );
+ expectedFiles.add( "META-INF/APPLICATION.MF" );
+ expectedFiles.add( "META-INF/" );
+ expectedFiles.add( "maven-artifact01-1.0-SNAPSHOT.jar" );
+ expectedFiles.add( "maven-artifact02-1.0-SNAPSHOT.jar" );
+
+ ZipFile eba = new ZipFile( ebaFile );
+
+ Enumeration entries = eba.getEntries();
+
+ assertTrue( entries.hasMoreElements() );
+
+ assertTrue( entries.hasMoreElements() );
+
+ int missing = getSizeOfExpectedFiles(entries, expectedFiles);
+ assertEquals("Missing files: " + expectedFiles, 0, missing);
+ }
+
+ public void testBasicEbaWithManifest()
+ throws Exception
+ {
+ File testPom = new File( getBasedir(),
+ "target/test-classes/unit/basic-eba-with-manifest/plugin-config.xml" );
+
+ EbaMojo mojo = ( EbaMojo ) lookupMojo( "eba", testPom );
+
+ assertNotNull( mojo );
+
+ String finalName = ( String ) getVariableValueFromObject( mojo, "finalName" );
+
+ String workDir = ( String ) getVariableValueFromObject( mojo, "workDirectory" );
+
+ String outputDir = ( String ) getVariableValueFromObject( mojo, "outputDirectory" );
+
+ mojo.execute();
+
+
+ //check the generated eba file
+ File ebaFile = new File( outputDir, finalName + ".eba" );
+
+ assertTrue( ebaFile.exists() );
+
+ //expected files/directories inside the eba file
+ List expectedFiles = new ArrayList();
+
+ expectedFiles.add( "META-INF/maven/org.apache.maven.test/maven-eba-test/pom.properties" );
+ expectedFiles.add( "META-INF/maven/org.apache.maven.test/maven-eba-test/pom.xml" );
+ expectedFiles.add( "META-INF/maven/org.apache.maven.test/maven-eba-test/" );
+ expectedFiles.add( "META-INF/maven/org.apache.maven.test/" );
+ expectedFiles.add( "META-INF/maven/" );
+ expectedFiles.add( "META-INF/MANIFEST.MF" );
+ expectedFiles.add( "META-INF/APPLICATION.MF" );
+ expectedFiles.add( "META-INF/" );
+ expectedFiles.add( "maven-artifact01-1.0-SNAPSHOT.jar" );
+ expectedFiles.add( "maven-artifact02-1.0-SNAPSHOT.jar" );
+
+ ZipFile eba = new ZipFile( ebaFile );
+
+ Enumeration entries = eba.getEntries();
+
+ assertTrue( entries.hasMoreElements() );
+
+ int missing = getSizeOfExpectedFiles(entries, expectedFiles);
+ assertEquals("Missing files: " + expectedFiles, 0, missing);
+ }
+
+ private int getSizeOfExpectedFiles( Enumeration entries, List expectedFiles )
+ {
+ while( entries.hasMoreElements() )
+ {
+ ZipEntry entry = ( ZipEntry ) entries.nextElement();
+
+ if( expectedFiles.contains( entry.getName() ) )
+ {
+ expectedFiles.remove( entry.getName() );
+ assertFalse( expectedFiles.contains( entry.getName() ) );
+ }
+ else
+ {
+ fail( entry.getName() + " is not included in the expected files" );
+ }
+ }
+ return expectedFiles.size();
+ }
+
+}
Added: aries/tags/eba-maven-plugin-0.1-incubating/src/test/java/org/apache/aries/plugin/eba/stubs/EbaArtifactStub.java
URL: http://svn.apache.org/viewvc/aries/tags/eba-maven-plugin-0.1-incubating/src/test/java/org/apache/aries/plugin/eba/stubs/EbaArtifactStub.java?rev=1075095&view=auto
==============================================================================
--- aries/tags/eba-maven-plugin-0.1-incubating/src/test/java/org/apache/aries/plugin/eba/stubs/EbaArtifactStub.java (added)
+++ aries/tags/eba-maven-plugin-0.1-incubating/src/test/java/org/apache/aries/plugin/eba/stubs/EbaArtifactStub.java Sun Feb 27 17:50:52 2011
@@ -0,0 +1,113 @@
+package org.apache.aries.plugin.eba.stubs;
+
+/*
+ * 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 java.io.File;
+
+import org.apache.maven.plugin.testing.stubs.ArtifactStub;
+
+/**
+ * @author <a href="mailto:aramirez@apache.org">Allan Ramirez</a>
+ */
+public class EbaArtifactStub
+ extends ArtifactStub
+{
+ private String groupId;
+
+ private String artifactId;
+
+ private String version;
+
+ private String scope;
+
+ private boolean optional;
+
+ private File file;
+
+ public String getArtifactId()
+ {
+ return artifactId;
+ }
+
+ public void setArtifactId( String artifactId )
+ {
+ this.artifactId = artifactId;
+ }
+
+ public File getFile()
+ {
+ return file;
+ }
+
+ public void setFile( File file )
+ {
+ this.file = file;
+ }
+
+ public String getGroupId()
+ {
+ return groupId;
+ }
+
+ public void setGroupId( String groupId )
+ {
+ this.groupId = groupId;
+ }
+
+ public boolean isOptional()
+ {
+ return optional;
+ }
+
+ public void setOptional( boolean optional )
+ {
+ this.optional = optional;
+ }
+
+ public String getScope()
+ {
+ return scope;
+ }
+
+ public void setScope( String scope )
+ {
+ this.scope = scope;
+ }
+
+ public String getVersion()
+ {
+ return version;
+ }
+
+ public void setVersion( String version )
+ {
+ this.version = version;
+ }
+
+ public String getId()
+ {
+ return getGroupId() + ":" + getArtifactId() + ":" + getVersion();
+ }
+
+ public String getBaseVersion()
+ {
+ return getVersion();
+ }
+}
Added: aries/tags/eba-maven-plugin-0.1-incubating/src/test/java/org/apache/aries/plugin/eba/stubs/EbaMavenProjectStub.java
URL: http://svn.apache.org/viewvc/aries/tags/eba-maven-plugin-0.1-incubating/src/test/java/org/apache/aries/plugin/eba/stubs/EbaMavenProjectStub.java?rev=1075095&view=auto
==============================================================================
--- aries/tags/eba-maven-plugin-0.1-incubating/src/test/java/org/apache/aries/plugin/eba/stubs/EbaMavenProjectStub.java (added)
+++ aries/tags/eba-maven-plugin-0.1-incubating/src/test/java/org/apache/aries/plugin/eba/stubs/EbaMavenProjectStub.java Sun Feb 27 17:50:52 2011
@@ -0,0 +1,153 @@
+package org.apache.aries.plugin.eba.stubs;
+
+/*
+ * 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 java.io.File;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+
+import org.apache.maven.artifact.Artifact;
+import org.apache.maven.model.Model;
+import org.apache.maven.model.Organization;
+import org.apache.maven.project.MavenProject;
+import org.codehaus.plexus.PlexusTestCase;
+
+/**
+ * @author <a href="mailto:aramirez@apache.org">Allan Ramirez</a>
+ */
+public class EbaMavenProjectStub
+ extends MavenProject
+{
+ private List attachedArtifacts;
+
+ public EbaMavenProjectStub()
+ {
+ super( new Model() );
+
+ super.setGroupId( getGroupId() );
+ super.setArtifactId( getArtifactId() );
+ super.setVersion( getVersion() );
+ super.setDescription( "Test description" );
+
+ Organization org = new Organization();
+ org.setName( "organization" );
+ org.setUrl( "http://www.some.org" );
+
+ super.setOrganization( org );
+ super.setFile( getFile() );
+ super.setPluginArtifacts( Collections.EMPTY_SET );
+ super.setReportArtifacts( Collections.EMPTY_SET );
+ super.setExtensionArtifacts( Collections.EMPTY_SET );
+ super.setArtifact( getArtifact() );
+ super.setRemoteArtifactRepositories( Collections.EMPTY_LIST );
+ super.setPluginArtifactRepositories( Collections.EMPTY_LIST );
+ super.setCollectedProjects( Collections.EMPTY_LIST );
+ super.setActiveProfiles( Collections.EMPTY_LIST );
+
+ super.addCompileSourceRoot( getBasedir() + "/src/test/resources/unit/basic-eba-test/src/main/java" );
+ super.addTestCompileSourceRoot( getBasedir() + "/src/test/resources/unit/basic-eba-test/src/test/java" );
+
+ super.setExecutionRoot( false );
+ }
+
+ public String getGroupId()
+ {
+ return "org.apache.maven.test";
+ }
+
+ public String getArtifactId()
+ {
+ return "maven-eba-test";
+ }
+
+ public String getVersion()
+ {
+ return "1.0-SNAPSHOT";
+ }
+
+ public File getFile()
+ {
+ return new File( getBasedir(), "src/test/resources/unit/basic-eba-test/plugin-config.xml" );
+ }
+
+ public File getBasedir()
+ {
+ return new File( PlexusTestCase.getBasedir() );
+ }
+
+ public Artifact getArtifact()
+ {
+ Artifact artifact = new EbaArtifactStub();
+
+ artifact.setGroupId( getGroupId() );
+
+ artifact.setArtifactId( getArtifactId() );
+
+ artifact.setVersion( getVersion() );
+
+ return artifact;
+ }
+
+ public Set getArtifacts()
+ {
+ Set artifacts = new HashSet();
+
+ artifacts.add( createArtifact( "org.apache.maven.test", "maven-artifact01", "1.0-SNAPSHOT", false ) );
+ artifacts.add( createArtifact( "org.apache.maven.test", "maven-artifact02", "1.0-SNAPSHOT", false ) );
+
+ return artifacts;
+ }
+
+ @Override
+ public Set getDependencyArtifacts() {
+ return getArtifacts();
+ }
+
+ public List getAttachedArtifacts()
+ {
+ if ( attachedArtifacts == null )
+ {
+ attachedArtifacts = new ArrayList();
+ }
+ return attachedArtifacts;
+ }
+
+ protected Artifact createArtifact( String groupId, String artifactId, String version, boolean optional )
+ {
+ Artifact artifact = new EbaArtifactStub();
+
+ artifact.setGroupId( groupId );
+
+ artifact.setArtifactId( artifactId );
+
+ artifact.setVersion( version );
+
+ artifact.setOptional( optional );
+
+ artifact.setFile( new File ( getBasedir() + "/src/test/remote-repo/" + artifact.getGroupId().replace( '.', '/' ) +
+ "/" + artifact.getArtifactId() + "/" + artifact.getVersion() +
+ "/" + artifact.getArtifactId() + "-" + artifact.getVersion() + ".jar" ) ) ;
+
+ return artifact;
+ }
+}
Added: aries/tags/eba-maven-plugin-0.1-incubating/src/test/java/org/apache/aries/plugin/eba/stubs/EbaMavenProjectStub2.java
URL: http://svn.apache.org/viewvc/aries/tags/eba-maven-plugin-0.1-incubating/src/test/java/org/apache/aries/plugin/eba/stubs/EbaMavenProjectStub2.java?rev=1075095&view=auto
==============================================================================
--- aries/tags/eba-maven-plugin-0.1-incubating/src/test/java/org/apache/aries/plugin/eba/stubs/EbaMavenProjectStub2.java (added)
+++ aries/tags/eba-maven-plugin-0.1-incubating/src/test/java/org/apache/aries/plugin/eba/stubs/EbaMavenProjectStub2.java Sun Feb 27 17:50:52 2011
@@ -0,0 +1,31 @@
+package org.apache.aries.plugin.eba.stubs;
+
+/*
+ * 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 java.io.File;
+
+public class EbaMavenProjectStub2
+ extends EbaMavenProjectStub
+{
+ public File getFile()
+ {
+ return new File( getBasedir(), "src/test/resources/unit/basic-eba-with-descriptor/plugin-config.xml" );
+ }
+}
Added: aries/tags/eba-maven-plugin-0.1-incubating/src/test/java/org/apache/aries/plugin/eba/stubs/EbaMavenProjectStub3.java
URL: http://svn.apache.org/viewvc/aries/tags/eba-maven-plugin-0.1-incubating/src/test/java/org/apache/aries/plugin/eba/stubs/EbaMavenProjectStub3.java?rev=1075095&view=auto
==============================================================================
--- aries/tags/eba-maven-plugin-0.1-incubating/src/test/java/org/apache/aries/plugin/eba/stubs/EbaMavenProjectStub3.java (added)
+++ aries/tags/eba-maven-plugin-0.1-incubating/src/test/java/org/apache/aries/plugin/eba/stubs/EbaMavenProjectStub3.java Sun Feb 27 17:50:52 2011
@@ -0,0 +1,31 @@
+package org.apache.aries.plugin.eba.stubs;
+
+/*
+ * 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 java.io.File;
+
+public class EbaMavenProjectStub3
+ extends EbaMavenProjectStub
+{
+ public File getFile()
+ {
+ return new File( getBasedir(), "src/test/resources/unit/basic-eba-with-manifest/plugin-config.xml" );
+ }
+}
Added: aries/tags/eba-maven-plugin-0.1-incubating/src/test/remote-repo/org/apache/maven/test/maven-artifact01/1.0-SNAPSHOT/maven-artifact01-1.0-SNAPSHOT.jar
URL: http://svn.apache.org/viewvc/aries/tags/eba-maven-plugin-0.1-incubating/src/test/remote-repo/org/apache/maven/test/maven-artifact01/1.0-SNAPSHOT/maven-artifact01-1.0-SNAPSHOT.jar?rev=1075095&view=auto
==============================================================================
--- aries/tags/eba-maven-plugin-0.1-incubating/src/test/remote-repo/org/apache/maven/test/maven-artifact01/1.0-SNAPSHOT/maven-artifact01-1.0-SNAPSHOT.jar (added)
+++ aries/tags/eba-maven-plugin-0.1-incubating/src/test/remote-repo/org/apache/maven/test/maven-artifact01/1.0-SNAPSHOT/maven-artifact01-1.0-SNAPSHOT.jar Sun Feb 27 17:50:52 2011
@@ -0,0 +1 @@
+This is not an actual jar
\ No newline at end of file
Added: aries/tags/eba-maven-plugin-0.1-incubating/src/test/remote-repo/org/apache/maven/test/maven-artifact01/1.0-SNAPSHOT/maven-artifact01-1.0-SNAPSHOT.pom
URL: http://svn.apache.org/viewvc/aries/tags/eba-maven-plugin-0.1-incubating/src/test/remote-repo/org/apache/maven/test/maven-artifact01/1.0-SNAPSHOT/maven-artifact01-1.0-SNAPSHOT.pom?rev=1075095&view=auto
==============================================================================
--- aries/tags/eba-maven-plugin-0.1-incubating/src/test/remote-repo/org/apache/maven/test/maven-artifact01/1.0-SNAPSHOT/maven-artifact01-1.0-SNAPSHOT.pom (added)
+++ aries/tags/eba-maven-plugin-0.1-incubating/src/test/remote-repo/org/apache/maven/test/maven-artifact01/1.0-SNAPSHOT/maven-artifact01-1.0-SNAPSHOT.pom Sun Feb 27 17:50:52 2011
@@ -0,0 +1,25 @@
+<?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.test</groupId>
+ <artifactId>maven-artifact01</artifactId>
+ <version>1.0-SNAPSHOT</version>
+</project>
Added: aries/tags/eba-maven-plugin-0.1-incubating/src/test/remote-repo/org/apache/maven/test/maven-artifact02/1.0-SNAPSHOT/maven-artifact02-1.0-SNAPSHOT.jar
URL: http://svn.apache.org/viewvc/aries/tags/eba-maven-plugin-0.1-incubating/src/test/remote-repo/org/apache/maven/test/maven-artifact02/1.0-SNAPSHOT/maven-artifact02-1.0-SNAPSHOT.jar?rev=1075095&view=auto
==============================================================================
--- aries/tags/eba-maven-plugin-0.1-incubating/src/test/remote-repo/org/apache/maven/test/maven-artifact02/1.0-SNAPSHOT/maven-artifact02-1.0-SNAPSHOT.jar (added)
+++ aries/tags/eba-maven-plugin-0.1-incubating/src/test/remote-repo/org/apache/maven/test/maven-artifact02/1.0-SNAPSHOT/maven-artifact02-1.0-SNAPSHOT.jar Sun Feb 27 17:50:52 2011
@@ -0,0 +1 @@
+This is not an actual jar
\ No newline at end of file
Added: aries/tags/eba-maven-plugin-0.1-incubating/src/test/remote-repo/org/apache/maven/test/maven-artifact02/1.0-SNAPSHOT/maven-artifact02-1.0-SNAPSHOT.pom
URL: http://svn.apache.org/viewvc/aries/tags/eba-maven-plugin-0.1-incubating/src/test/remote-repo/org/apache/maven/test/maven-artifact02/1.0-SNAPSHOT/maven-artifact02-1.0-SNAPSHOT.pom?rev=1075095&view=auto
==============================================================================
--- aries/tags/eba-maven-plugin-0.1-incubating/src/test/remote-repo/org/apache/maven/test/maven-artifact02/1.0-SNAPSHOT/maven-artifact02-1.0-SNAPSHOT.pom (added)
+++ aries/tags/eba-maven-plugin-0.1-incubating/src/test/remote-repo/org/apache/maven/test/maven-artifact02/1.0-SNAPSHOT/maven-artifact02-1.0-SNAPSHOT.pom Sun Feb 27 17:50:52 2011
@@ -0,0 +1,25 @@
+<?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.test</groupId>
+ <artifactId>maven-artifact02</artifactId>
+ <version>1.0-SNAPSHOT</version>
+</project>
Added: aries/tags/eba-maven-plugin-0.1-incubating/src/test/resources/unit/basic-eba-test/plugin-config.xml
URL: http://svn.apache.org/viewvc/aries/tags/eba-maven-plugin-0.1-incubating/src/test/resources/unit/basic-eba-test/plugin-config.xml?rev=1075095&view=auto
==============================================================================
--- aries/tags/eba-maven-plugin-0.1-incubating/src/test/resources/unit/basic-eba-test/plugin-config.xml (added)
+++ aries/tags/eba-maven-plugin-0.1-incubating/src/test/resources/unit/basic-eba-test/plugin-config.xml Sun Feb 27 17:50:52 2011
@@ -0,0 +1,41 @@
+<!--
+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>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>eba-maven-plugin</artifactId>
+ <configuration>
+ <ebaSourceDirectory>${basedir}/src/test/resources/unit/basic-eba-test/src/main/eba</ebaSourceDirectory>
+ <applicationManifestFile>${basedir}/src/test/resources/unit/basic-eba-test/src/main/eba/META-INF/APPLICATION.MF</applicationManifestFile>
+ <includeJar>true</includeJar>
+ <addMavenDescriptor>true</addMavenDescriptor>
+ <includeEmptyDirs>true</includeEmptyDirs>
+ <manifestFile>${basedir}/src/main/eba/META-INF/MANIFEST.MF</manifestFile>
+ <workDirectory>${basedir}/target/unit/basic-eba-test/target/eba-test</workDirectory>
+ <sharedResources>${basedir}/target/unit/basic-eba-test/target/maven-shared-archive-resources</sharedResources>
+ <outputDirectory>${basedir}/target/unit/basic-eba-test/target</outputDirectory>
+ <finalName>test-eba</finalName>
+ <project implementation="org.apache.aries.plugin.eba.stubs.EbaMavenProjectStub" />
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Added: aries/tags/eba-maven-plugin-0.1-incubating/src/test/resources/unit/basic-eba-with-descriptor/plugin-config.xml
URL: http://svn.apache.org/viewvc/aries/tags/eba-maven-plugin-0.1-incubating/src/test/resources/unit/basic-eba-with-descriptor/plugin-config.xml?rev=1075095&view=auto
==============================================================================
--- aries/tags/eba-maven-plugin-0.1-incubating/src/test/resources/unit/basic-eba-with-descriptor/plugin-config.xml (added)
+++ aries/tags/eba-maven-plugin-0.1-incubating/src/test/resources/unit/basic-eba-with-descriptor/plugin-config.xml Sun Feb 27 17:50:52 2011
@@ -0,0 +1,41 @@
+<!--
+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>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>eba-maven-plugin</artifactId>
+ <configuration>
+ <ebaSourceDirectory>${basedir}/src/test/resources/unit/basic-eba-with-descriptor/src/main/eba</ebaSourceDirectory>
+ <applicationManifestFile>${basedir}/src/test/resources/unit/basic-eba-with-descriptor/src/main/eba/META-INF/APPLICATION.MF</applicationManifestFile>
+ <includeJar>false</includeJar>
+ <addMavenDescriptor>true</addMavenDescriptor>
+ <includeEmptyDirs>true</includeEmptyDirs>
+ <manifestFile>${basedir}/src/test/resources/unit/basic-eba-with-descriptor/src/main/eba/META-INF/MANIFEST.MF</manifestFile>
+ <workDirectory>${basedir}/target/unit/basic-eba-with-descriptor/target/eba-test-with-descriptor</workDirectory>
+ <sharedResources>${basedir}/target/unit/basic-eba-with-descriptor/target/maven-shared-archive-resources</sharedResources>
+ <outputDirectory>${basedir}/target/unit/basic-eba-with-descriptor/target</outputDirectory>
+ <finalName>test-eba-with-descriptor</finalName>
+ <project implementation="org.apache.aries.plugin.eba.stubs.EbaMavenProjectStub2" />
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Added: aries/tags/eba-maven-plugin-0.1-incubating/src/test/resources/unit/basic-eba-with-descriptor/src/main/eba/META-INF/APPLICATION.MF
URL: http://svn.apache.org/viewvc/aries/tags/eba-maven-plugin-0.1-incubating/src/test/resources/unit/basic-eba-with-descriptor/src/main/eba/META-INF/APPLICATION.MF?rev=1075095&view=auto
==============================================================================
--- aries/tags/eba-maven-plugin-0.1-incubating/src/test/resources/unit/basic-eba-with-descriptor/src/main/eba/META-INF/APPLICATION.MF (added)
+++ aries/tags/eba-maven-plugin-0.1-incubating/src/test/resources/unit/basic-eba-with-descriptor/src/main/eba/META-INF/APPLICATION.MF Sun Feb 27 17:50:52 2011
@@ -0,0 +1,12 @@
+Manifest-Version: 1.0
+Application-ManifestVersion: 1.0
+Application-Name: Bank Account
+Application-SymbolicName: com.mybank.account.app
+Application-Version: 1.0
+Application-Content:
+ com.mybank.account.bankWeb; version=1.0.0,
+ com.mybank.account.bankAccount; version=1.0.0,
+ com.mybank.account.common; version=1.0.0,
+ com.mybank.account.utility; version=1.0.0
+Application-ExportService: com.mybank.account.service.AccountService
+Application-ImportService: com.mybank.security.UserAuthService;filter="(security=strong)"
Added: aries/tags/eba-maven-plugin-0.1-incubating/src/test/resources/unit/basic-eba-with-manifest/plugin-config.xml
URL: http://svn.apache.org/viewvc/aries/tags/eba-maven-plugin-0.1-incubating/src/test/resources/unit/basic-eba-with-manifest/plugin-config.xml?rev=1075095&view=auto
==============================================================================
--- aries/tags/eba-maven-plugin-0.1-incubating/src/test/resources/unit/basic-eba-with-manifest/plugin-config.xml (added)
+++ aries/tags/eba-maven-plugin-0.1-incubating/src/test/resources/unit/basic-eba-with-manifest/plugin-config.xml Sun Feb 27 17:50:52 2011
@@ -0,0 +1,41 @@
+<!--
+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>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>eba-maven-plugin</artifactId>
+ <configuration>
+ <ebaSourceDirectory>${basedir}/src/test/resources/unit/basic-eba-with-manifest/src/main/eba</ebaSourceDirectory>
+ <applicationManifestFile>${basedir}/src/test/resources/unit/basic-eba-with-manifest/src/main/eba/META-INF/APPLICATION.MF</applicationManifestFile>
+ <includeJar>false</includeJar>
+ <addMavenDescriptor>true</addMavenDescriptor>
+ <includeEmptyDirs>true</includeEmptyDirs>
+ <manifestFile>${basedir}/src/test/resources/unit/basic-eba-with-manifest/src/main/eba/META-INF/MANIFEST.MF</manifestFile>
+ <workDirectory>${basedir}/target/unit/basic-eba-with-manifest/target/eba-test-with-manifest</workDirectory>
+ <sharedResources>${basedir}/target/unit/basic-eba-with-manifest/target/maven-shared-archive-resources</sharedResources>
+ <outputDirectory>${basedir}/target/unit/basic-eba-with-manifest/target</outputDirectory>
+ <finalName>test-eba-with-manifest</finalName>
+ <project implementation="org.apache.aries.plugin.eba.stubs.EbaMavenProjectStub3" />
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Added: aries/tags/eba-maven-plugin-0.1-incubating/src/test/resources/unit/basic-eba-with-manifest/src/main/eba/META-INF/APPLICATION.MF
URL: http://svn.apache.org/viewvc/aries/tags/eba-maven-plugin-0.1-incubating/src/test/resources/unit/basic-eba-with-manifest/src/main/eba/META-INF/APPLICATION.MF?rev=1075095&view=auto
==============================================================================
--- aries/tags/eba-maven-plugin-0.1-incubating/src/test/resources/unit/basic-eba-with-manifest/src/main/eba/META-INF/APPLICATION.MF (added)
+++ aries/tags/eba-maven-plugin-0.1-incubating/src/test/resources/unit/basic-eba-with-manifest/src/main/eba/META-INF/APPLICATION.MF Sun Feb 27 17:50:52 2011
@@ -0,0 +1,12 @@
+Manifest-Version: 1.0
+Application-ManifestVersion: 1.0
+Application-Name: Bank Account
+Application-SymbolicName: com.mybank.account.app
+Application-Version: 1.0
+Application-Content:
+ com.mybank.account.bankWeb; version=1.0.0,
+ com.mybank.account.bankAccount; version=1.0.0,
+ com.mybank.account.common; version=1.0.0,
+ com.mybank.account.utility; version=1.0.0
+Application-ExportService: com.mybank.account.service.AccountService
+Application-ImportService: com.mybank.security.UserAuthService;filter="(security=strong)"
Added: aries/tags/eba-maven-plugin-0.1-incubating/src/test/resources/unit/basic-eba-with-manifest/src/main/eba/META-INF/MANIFEST.MF
URL: http://svn.apache.org/viewvc/aries/tags/eba-maven-plugin-0.1-incubating/src/test/resources/unit/basic-eba-with-manifest/src/main/eba/META-INF/MANIFEST.MF?rev=1075095&view=auto
==============================================================================
--- aries/tags/eba-maven-plugin-0.1-incubating/src/test/resources/unit/basic-eba-with-manifest/src/main/eba/META-INF/MANIFEST.MF (added)
+++ aries/tags/eba-maven-plugin-0.1-incubating/src/test/resources/unit/basic-eba-with-manifest/src/main/eba/META-INF/MANIFEST.MF Sun Feb 27 17:50:52 2011
@@ -0,0 +1,12 @@
+Manifest-Version: test
+Archiver-Version: test
+Created-By: Apache Maven
+Built-By: aqr
+Build-Jdk: 1.4.2_11
+Extension-Name: maven-rar-test
+Specification-Title: Test description
+Specification-Vendor: organization
+Implementation-Vendor: organization
+Implementation-Title: maven-rar-test
+Implementation-Version: 1.0-SNAPSHOT
+