maven-assembly-plugin-2.2~beta5/0000755000175000017500000000000011361635327016660 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/pom.xml0000644000175000017500000003461111306776655020213 0ustar twernertwerner 4.0.0 maven-plugins org.apache.maven.plugins 16 maven-assembly-plugin 2.2-beta-5 maven-plugin Maven Assembly Plugin A Maven 2 plugin to create archives of your project's sources, classes, dependencies etc. from flexible assembly descriptors. 2.0.6 scm:svn:http://svn.apache.org/repos/asf/maven/plugins/tags/maven-assembly-plugin-2.2-beta-5 scm:svn:https://svn.apache.org/repos/asf/maven/plugins/tags/maven-assembly-plugin-2.2-beta-5 http://svn.apache.org/viewvc/maven/plugins/tags/maven-assembly-plugin-2.2-beta-5 jira http://jira.codehaus.org/browse/MASSEMBLY 1.1.1 org.apache.maven.shared maven-common-artifact-filters 1.1 org.codehaus.plexus plexus-interpolation 1.7 org.codehaus.plexus plexus-archiver 1.0-alpha-12 org.codehaus.plexus plexus-component-api org.apache.maven.shared file-management 1.1 org.apache.maven.shared maven-shared-io 1.1 org.apache.maven.shared maven-filtering 1.0-beta-2 org.codehaus.plexus plexus-active-collections 1.0-beta-2 org.codehaus.plexus plexus-component-api org.codehaus.plexus plexus-io 1.0-alpha-4 org.codehaus.plexus plexus-component-api org.apache.maven maven-plugin-api 2.0.4 org.apache.maven maven-project 2.0.4 org.apache.maven maven-archiver 2.4 org.codehaus.plexus plexus-container-default 1.0-alpha-9-stable-1 org.codehaus.plexus plexus-utils 2.0.1 org.apache.maven maven-artifact 2.0.4 org.apache.maven maven-model 2.0.4 org.apache.maven.shared maven-repository-builder 1.0-alpha-2 org.apache.maven.shared maven-plugin-testing-tools 1.0-alpha-1 test org.apache.maven.shared maven-test-tools 1.0-alpha-1 test easymock easymockclassextension 1.2 test jdom jdom 1.0 test jaxen jaxen 1.0-FCS test saxpath saxpath 1.0-FCS test junit junit 3.8.1 test codehaus.org http://snapshots.repository.codehaus.org false codehaus.snapshots http://snapshots.repository.codehaus.org org.codehaus.plexus plexus-maven-plugin 1.3.8 create-component-descriptor generate-resources descriptor merge ${project.build.outputDirectory}/META-INF/plexus/components.xml ${project.build.outputDirectory}/META-INF/plexus/components.xml src/main/resources/META-INF/plexus/components.xml generate-resources merge-descriptors org.codehaus.modello modello-maven-plugin 1.0 ${mdoVersion} mdo generate-sources xpp3-reader xpp3-writer java xsd src/main/mdo/descriptor.mdo src/main/mdo/component.mdo mdo-site pre-site xdoc xsd src/main/mdo/descriptor.mdo src/main/mdo/component.mdo maven-surefire-plugin **/BasicAbstractAssemblyMojoFeaturesTest* **/AllTests* **/testutils/* true run-its apache.snapshots http://repository.apache.org/snapshots false 1.3 ${java.io.tmpdir}/assembly-ITs/it-project-parent ${java.io.tmpdir}/assembly-ITs/projects ${project.build.directory}/local-repository file://${project.build.testOutputDirectory}/remote-repository **/pom.xml false ${project.version} maven-antrun-plugin del-IT-clone-destination package run maven-invoker-plugin ${invokerPluginVersion} ${localRepositoryPath} ${testVersion} ${localRepositoryPath} ${invokerPluginVersion} setup-integration-test-env pre-integration-test install run true install src/it/it-project-parent ${itParent} pom.xml true integration-test integration-test run src/it/projects ${itProjects} test.properties true ${it.pomIncludes} ${it.streamLogs} repositories/repo-with-snapshot-parents/pom.xml bugs/massembly-285/massembly-285-*/pom.xml **/child*/pom.xml **/module*/pom.xml **/descriptor/pom.xml **/handler-def/pom.xml **/assembly/pom.xml verify org.apache.maven.plugins maven-plugin-plugin 2.4.3 maven-assembly-plugin-2.2~beta5/integration-test-archetype/0000755000175000017500000000000011361635305024136 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/integration-test-archetype/pom.xml0000644000175000017500000000165310772073123025457 0ustar twernertwerner 4.0.0 org.apache.maven.archetypes assembly-plugin-it-archetype maven-archetype Maven Assembly Plugin Integration Test Archetype 1.0-SNAPSHOT org.apache.maven.archetype archetype-packaging 2.0-alpha-2 maven-archetype-plugin 2.0-alpha-2 true integration.test.repo ${test.remote.repo.url} maven-assembly-plugin-2.2~beta5/integration-test-archetype/src/0000755000175000017500000000000011361635305024725 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/integration-test-archetype/src/main/0000755000175000017500000000000011361635305025651 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/integration-test-archetype/src/main/resources/0000755000175000017500000000000011361635305027663 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/integration-test-archetype/src/main/resources/archetype-resources/0000755000175000017500000000000011361635305033657 5ustar twernertwerner././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/integration-test-archetype/src/main/resources/archetype-resources/pom.xmlmaven-assembly-plugin-2.2~beta5/integration-test-archetype/src/main/resources/archetype-resources/po0000644000175000017500000000234311062272056034220 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 ${artifactId} jar junit junit 3.8.1 test maven-assembly-plugin src/main/assembly/bin.xml single-assembly package single ././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/integration-test-archetype/src/main/resources/archetype-resources/goals.txtmaven-assembly-plugin-2.2~beta5/integration-test-archetype/src/main/resources/archetype-resources/go0000644000175000017500000000016110772073123034204 0ustar twernertwerner# Specify the goals to be run here, one per line. Lines beginning with a hash '#' will be ignored. clean package ././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/integration-test-archetype/src/main/resources/archetype-resources/verify.bshmaven-assembly-plugin-2.2~beta5/integration-test-archetype/src/main/resources/archetype-resources/ve0000644000175000017500000000047611051105371034212 0ustar twernertwernerimport java.io.File; /* This is where you verify the results of the assembly build. You may need to check the existence of a file, or even peek within a jar file to determine whether the assembly did the right thing. */ return new File( basedir, "target/${artifactId}-${version}-bin.dir/lib/junit.jar" ).exists(); ././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/integration-test-archetype/src/main/resources/archetype-resources/src/maven-assembly-plugin-2.2~beta5/integration-test-archetype/src/main/resources/archetype-resources/sr0000755000175000017500000000000011361635305034224 5ustar twernertwerner././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/integration-test-archetype/src/main/resources/archetype-resources/src/main/maven-assembly-plugin-2.2~beta5/integration-test-archetype/src/main/resources/archetype-resources/sr0000755000175000017500000000000011361635305034224 5ustar twernertwerner././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/integration-test-archetype/src/main/resources/archetype-resources/src/main/java/maven-assembly-plugin-2.2~beta5/integration-test-archetype/src/main/resources/archetype-resources/sr0000755000175000017500000000000011361635305034224 5ustar twernertwerner././@LongLink0000000000000000000000000000017100000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/integration-test-archetype/src/main/resources/archetype-resources/src/main/java/App.javamaven-assembly-plugin-2.2~beta5/integration-test-archetype/src/main/resources/archetype-resources/sr0000644000175000017500000000025511123544663034232 0ustar twernertwernerpackage ${package}; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000016500000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/integration-test-archetype/src/main/resources/archetype-resources/src/main/assembly/maven-assembly-plugin-2.2~beta5/integration-test-archetype/src/main/resources/archetype-resources/sr0000755000175000017500000000000011361635305034224 5ustar twernertwerner././@LongLink0000000000000000000000000000017400000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/integration-test-archetype/src/main/resources/archetype-resources/src/main/assembly/bin.xmlmaven-assembly-plugin-2.2~beta5/integration-test-archetype/src/main/resources/archetype-resources/sr0000644000175000017500000000126711162606221034226 0ustar twernertwerner bin dir false ${test} lib ${artifact.artifactId}.${artifact.extension} false ././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/integration-test-archetype/src/main/resources/archetype-resources/src/java/maven-assembly-plugin-2.2~beta5/integration-test-archetype/src/main/resources/archetype-resources/sr0000755000175000017500000000000011361635305034224 5ustar twernertwerner././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/integration-test-archetype/src/main/resources/archetype-resources/src/java/AppTest.javamaven-assembly-plugin-2.2~beta5/integration-test-archetype/src/main/resources/archetype-resources/sr0000644000175000017500000000126411123544663034233 0ustar twernertwernerpackage ${package}; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; /** * Unit ${package} for simple App. */ public class AppTest extends TestCase { /** * Create the ${package} case * * @param ${package}Name name of the ${package} case */ public AppTest( String ${package}Name ) { super( ${package}Name ); } /** * @return the suite of ${package}s being ${package}ed */ public static Test suite() { return new TestSuite( AppTest.class ); } /** * Rigourous Test :-) */ public void ${package}App() { assertTrue( true ); } } maven-assembly-plugin-2.2~beta5/integration-test-archetype/src/main/resources/META-INF/0000755000175000017500000000000011361635305031023 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/integration-test-archetype/src/main/resources/META-INF/maven/0000755000175000017500000000000011361635305032131 5ustar twernertwerner././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/integration-test-archetype/src/main/resources/META-INF/maven/archetype.xmlmaven-assembly-plugin-2.2~beta5/integration-test-archetype/src/main/resources/META-INF/maven/archety0000644000175000017500000000060710772073123033515 0ustar twernertwerner assembly-integration-test src/main/java/App.java src/java/AppTest.java goals.txt src/assemble/bin.xml verify.bsh ././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/integration-test-archetype/src/main/resources/META-INF/maven/archetype-metadata.xmlmaven-assembly-plugin-2.2~beta5/integration-test-archetype/src/main/resources/META-INF/maven/archety0000644000175000017500000000200010772073123033502 0ustar twernertwerner src/main/java **/*.java src/test/java **/*.java src/main/assembly **/*.xml goals.txt verify.bsh maven-assembly-plugin-2.2~beta5/required-docs.txt0000644000175000017500000000030010534142613022150 0ustar twernertwernerAssembly Plugin Required Docs * Component Descriptors: o include in usage.html: + how are they used? + what can they specify? o include examples of usage maven-assembly-plugin-2.2~beta5/src/0000755000175000017500000000000011361635317017446 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/functional-tests/0000755000175000017500000000000011361635311022742 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/0000755000175000017500000000000011361635310025665 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/directory-inline/0000755000175000017500000000000011361635310031145 5ustar twernertwerner././@LongLink0000000000000000000000000000016600000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/directory-inline/dependency-set-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/directory-inline/dependency-set-0000644000175000017500000000257210464261541034066 0ustar twernertwerner maven-assembly-plugin ${basedir}/src/test/resources/assemblies/dependencySet-default.xml ${basedir} ${basedir}/target/test-harness/directory-inlince/dependency-set/target directory-dependency-set true ././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/directory-inline/min-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/directory-inline/min-plugin-conf0000644000175000017500000000252510771721652034107 0ustar twernertwerner maven-assembly-plugin ${basedir}/src/test/resources/assemblies/simple.xml ${basedir} ${basedir}/target/test-harness/directory-inline/min/target directory-inline-min true maven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/directory/0000755000175000017500000000000011361635310027671 5ustar twernertwerner././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/directory/dependency-set-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/directory/dependency-set-plugin-0000644000175000017500000000273210771721652034111 0ustar twernertwerner maven-assembly-plugin ${basedir}/src/test/resources/assemblies/dependencySet-default.xml ${basedir} ${basedir}/target/test-harness/directory/dependency-set/target directory-dependency-set true ././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/directory/min-plugin-config-with-exceptions.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/directory/min-plugin-config-with0000644000175000017500000000254210771721652034123 0ustar twernertwerner maven-assembly-plugin ${basedir}/src/test/resources/assemblies/simple.xml ${basedir} ${basedir}/target/test-harness/directory-inline/min/target directory-inline-min true ././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/directory/appendAssemblyId-false-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/directory/appendAssemblyId-false0000644000175000017500000000302310771721652034137 0ustar twernertwerner maven-assembly-plugin ${basedir}/src/test/resources/assemblies/dependencySet-default.xml ${basedir} ${basedir}/target/test-harness/directory/appendAssemblyId-false/target directory-appendAssemblyId-false false classifier maven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/directory/min-plugin-config.xml0000644000175000017500000000266110771721652033753 0ustar twernertwerner maven-assembly-plugin ${basedir}/src/test/resources/assemblies/fileSet.xml ${basedir} ${basedir}/target/test-harness/directory/min/target directory-min true ././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/basicAbstractAssemblyMojoFeaturesTest/maven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/basicAbstractAssemblyMojoFeature0000755000175000017500000000000011361635310034214 5ustar twernertwerner././@LongLink0000000000000000000000000000022100000000000011560 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/basicAbstractAssemblyMojoFeaturesTest/outputFileNameMapping-pluginConfig.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/basicAbstractAssemblyMojoFeature0000644000175000017500000001063010464261541034222 0ustar twernertwerner maven-assembly-plugin ${basedir} packager org.test 0 test org.test 1 ${basedir}/target/test-harness/basicAbstractAssemblyMojoFeaturesTest/outputFileNameMapping/dependencies/test.jar test2 org.test.2 2 ${basedir}/target/test-harness/basicAbstractAssemblyMojoFeaturesTest/outputFileNameMapping/dependencies/test2.jar ${basedir}/src/test/resources/basicAbstractAssemblyMojoFeaturesTest/outputFileNameMapping-assemblyDescriptor.xml ${basedir}/target/test-harness/basicAbstractAssemblyMojoFeaturesTest/outputFileNameMapping/target basicAbstractAssemblyMojoFeaturesTest-ouputFileNameMapping ${basedir}/target/test-harness/basicAbstractAssemblyMojoFeaturesTest/outputFileNameMapping/work ${localRepository} packager org.test 0 test org.test 1 ${basedir}/target/test-harness/basicAbstractAssemblyMojoFeaturesTest/outputFileNameMapping/dependencies/test.jar test2 org.test.2 2 ${basedir}/target/test-harness/basicAbstractAssemblyMojoFeaturesTest/outputFileNameMapping/dependencies/test2.jar maven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/0000755000175000017500000000000011361635310027504 5ustar twernertwerner././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/fileSet-lineEndings-exception-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/fileSet-lineEndings-exc0000644000175000017500000000413710464261541034045 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/fileSet-lineEndings-exception/target assembly ${basedir}/target/test-harness/assembly/fileSet-lineEndings-exception/work ${localRepository} fileSet-lineEndings-exception warn ${basedir} ${basedir}/target/test-harness/assembly/fileSet-lineEndings-exception/archive-tmp ${basedir}/target/test-harness/assembly/fileSet-lineEndings-exception/site false true ././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/classifier-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/classifier-plugin-confi0000644000175000017500000000370410464261541034153 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/classifier/target assembly ${basedir}/target/test-harness/assembly/classifier/work ${localRepository} test-harness simple warn ${basedir} ${basedir}/target/test-harness/assembly/classifier/archive-tmp ${basedir}/target/test-harness/assembly/classifier/site false false ././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/moduleSet-excludes-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/moduleSet-excludes-plug0000644000175000017500000000457210464261541034163 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/moduleSet-excludes/target assembly ${basedir}/target/test-harness/assembly/moduleSet-excludes/work ${localRepository} ${basedir}/target/test-harness/assembly/moduleSet-excludes moduleSet-excludes warn ${basedir} ${basedir}/target/test-harness/assembly/moduleSet-excludes/archive-tmp ${basedir}/target/test-harness/assembly/moduleSet-excludes/site false true ././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/fileSet-doesnt-exist-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/fileSet-doesnt-exist-pl0000644000175000017500000000417310464261541034070 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/fileSet-doesnt-exist/target assembly ${basedir}/target/test-harness/assembly/fileSet-doesnt-exist/work ${localRepository} fileSet-doesnt-exist warn ${basedir} ${basedir}/target/test-harness/assembly/fileSet-doesnt-exist/archive-tmp ${basedir}/target/test-harness/assembly/fileSet-doesnt-exist/site false true ${basedir}/target/test-classes ././@LongLink0000000000000000000000000000016600000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/fileSet-lf-lineEndings-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/fileSet-lf-lineEndings-0000644000175000017500000000406210464261541033741 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/fileSet-lf-lineEndings/target assembly ${basedir}/target/test-harness/assembly/fileSet-lf-lineEndings/work ${localRepository} fileSet-lf-lineEndings warn ${basedir} ${basedir}/target/test-harness/assembly/fileSet-lf-lineEndings/archive-tmp ${basedir}/target/test-harness/assembly/fileSet-lf-lineEndings/site false true ././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/fileItem-fileMode-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/fileItem-fileMode-plugi0000644000175000017500000000403110464261541034027 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/fileItem-fileMode/target assembly ${basedir}/target/test-harness/assembly/fileItem-fileMode/work ${localRepository} fileItem-fileMode warn ${basedir} ${basedir}/target/test-harness/assembly/fileItem-fileMode/archive-tmp ${basedir}/target/test-harness/assembly/fileItem-fileMode/site false true ././@LongLink0000000000000000000000000000020600000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/depSet-filename-mapping-and-classifier-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/depSet-filename-mapping0000644000175000017500000000425110464261541034070 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/depSet-filename-mapping-and-classifier/target assembly ${basedir}/target/test-harness/assembly/depSet-filename-mapping-and-classifier/work ${localRepository} dependencySet-filename-mapping-and-classifier warn ${basedir} ${basedir}/target/test-harness/assembly/depSet-filename-mapping-and-classifier/archive-tmp ${basedir}/target/test-harness/assembly/depSet-filename-mapping-and-classifier/site false true ././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/includeSite-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/includeSite-plugin-conf0000644000175000017500000000374410464261541034132 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/includeSite/target assembly ${basedir}/target/test-harness/assembly/includeSite/work ${localRepository} ${basedir}/src/test/resources/assemblies/simple.xml warn ${basedir} ${basedir}/target/test-harness/assembly/includeSite/archive-tmp ${basedir}/target/test-harness/assembly/includeSite/site true false ././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/repository-with-metadata-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/repository-with-metadat0000644000175000017500000000407410464261541034245 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/repository-with-metadata/target assembly ${basedir}/target/test-harness/assembly/repository-with-metadata/work ${localRepository} repository-with-metadata warn ${basedir} ${basedir}/target/test-harness/assembly/repository-with-metadata/archive-tmp ${basedir}/target/test-harness/assembly/repository-with-metadata/site false true ././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/fileSet-dos-lineEndings-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/fileSet-dos-lineEndings0000644000175000017500000000406710464261541034055 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/fileSet-dos-lineEndings/target assembly ${basedir}/target/test-harness/assembly/fileSet-dos-lineEndings/work ${localRepository} fileSet-dos-lineEndings warn ${basedir} ${basedir}/target/test-harness/assembly/fileSet-dos-lineEndings/archive-tmp ${basedir}/target/test-harness/assembly/fileSet-dos-lineEndings/site false true ././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/NoSuchArchiverException-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/NoSuchArchiverException0000644000175000017500000000404610464261541034201 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/NoSuchArchiverException/target assembly ${basedir}/target/test-harness/assembly/NoSuchArchiverException/work ${localRepository} ${basedir}/src/test/resources/assemblies/NoSuchArchiverException.xml warn ${basedir} ${basedir}/target/test-harness/assembly/NoSuchArchiverException/archive-tmp ${basedir}/target/test-harness/assembly/NoSuchArchiverException/site false false ././@LongLink0000000000000000000000000000020200000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/manifestFile-FileNotFoundException-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/manifestFile-FileNotFou0000644000175000017500000000432610464261541034056 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/manifestFile-NoSuchFileException/target assembly ${basedir}/target/test-harness/assembly/manifestFile-NoSuchFileException/work ${localRepository} ${basedir}/src/test/resources/assemblies/simple.xml warn ${basedir} ${basedir}/target/test-harness/assembly/manifestFile-NoSuchFileException/archive-tmp ${basedir}/target/test-harness/assembly/manifestFile-NoSuchFileException/site false false ${basedir}/target/test-harness/assembly/manifestFile/no-such-manifest.file ././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/repository-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/repository-plugin-confi0000644000175000017500000000402710464261541034245 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/repository/target assembly ${basedir}/target/test-harness/assembly/repository/work ${localRepository} ${basedir}/src/test/resources/assemblies/repository.xml warn ${basedir} ${basedir}/target/test-harness/assembly/repository/archive-tmp ${basedir}/target/test-harness/assembly/repository/site false true ././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/manifest-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/manifest-plugin-config.0000644000175000017500000000417510464261541034065 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/manifestFile/target assembly ${basedir}/target/test-harness/assembly/manifestFile/work ${localRepository} ${basedir}/src/test/resources/assemblies/simple.xml warn ${basedir} ${basedir}/target/test-harness/assembly/manifestFile/archive-tmp ${basedir}/target/test-harness/assembly/manifestFile/site false false org.apache.sample.main ././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/moduleSet-includes-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/moduleSet-includes-plug0000644000175000017500000000457210464261541034155 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/moduleSet-includes/target assembly ${basedir}/target/test-harness/assembly/moduleSet-includes/work ${localRepository} ${basedir}/target/test-harness/assembly/moduleSet-includes moduleSet-includes warn ${basedir} ${basedir}/target/test-harness/assembly/moduleSet-includes/archive-tmp ${basedir}/target/test-harness/assembly/moduleSet-includes/site false true ././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/moduleSet-packed-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/moduleSet-packed-plugin0000644000175000017500000000455610464261541034127 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/moduleSet-packed/target assembly ${basedir}/target/test-harness/assembly/moduleSet-packed/work ${localRepository} ${basedir}/target/test-harness/assembly/moduleSet-packed moduleSet-packed warn ${basedir} ${basedir}/target/test-harness/assembly/moduleSet-packed/archive-tmp ${basedir}/target/test-harness/assembly/moduleSet-packed/site false true ././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/tar-bz2-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/tar-bz2-plugin-config.x0000644000175000017500000000372610464261541033731 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/tar-bz2/target assembly ${basedir}/target/test-harness/assembly/tar-bz2/work ${localRepository} ${basedir}/src/test/resources/assemblies/tar-bz2.xml fail ${basedir} ${basedir}/target/test-harness/assembly/tar-bz2/archive-tmp ${basedir}/target/test-harness/assembly/tar-bz2/site false false ././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/fileSet-crlf-lineEndings-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/fileSet-crlf-lineEnding0000644000175000017500000000407110464261541034026 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/fileSet-crlf-lineEndings/target assembly ${basedir}/target/test-harness/assembly/fileSet-crlf-lineEndings/work ${localRepository} fileSet-crlf-lineEndings warn ${basedir} ${basedir}/target/test-harness/assembly/fileSet-crlf-lineEndings/archive-tmp ${basedir}/target/test-harness/assembly/fileSet-crlf-lineEndings/site false true ././@LongLink0000000000000000000000000000016600000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/fileSet-archiveBaseDir-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/fileSet-archiveBaseDir-0000644000175000017500000000421610464261541033757 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/fileSet-archiveBaseDir/target assembly ${basedir}/target/test-harness/assembly/fileSet-archiveBaseDir/work ${localRepository} fileSet-archiveBaseDirectory warn ${basedir} ${basedir}/target/test-harness/assembly/fileSet-archiveBaseDir/archive-tmp ${basedir}/target/test-harness/assembly/fileSet-archiveBaseDir/site false true ${basedir}/target/test-classes ././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/manifestFile-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/manifestFile-plugin-con0000644000175000017500000000420310464261541034111 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/manifestFile/target assembly ${basedir}/target/test-harness/assembly/manifestFile/work ${localRepository} ${basedir}/src/test/resources/assemblies/simple.xml warn ${basedir} ${basedir}/target/test-harness/assembly/manifestFile/archive-tmp ${basedir}/target/test-harness/assembly/manifestFile/site false false ${basedir}/target/test-harness/assembly/manifestFile/test-manifest.file ././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/component-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/component-plugin-config0000644000175000017500000000375510464261541034206 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/component/target assembly ${basedir}/target/test-harness/assembly/component/work ${localRepository} empty warn ${basedir} ${basedir}/target/test-harness/assembly/component/archive-tmp ${basedir}/target/test-harness/assembly/component/site false true ././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/fileSet-unix-lineEndings-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/fileSet-unix-lineEnding0000644000175000017500000000407410464261541034066 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/fileSet-unix-lineEndings/target assembly ${basedir}/target/test-harness/assembly/fileSet-unix-lineEndings/work ${localRepository} fileSet-unix-lineEndings warn ${basedir} ${basedir}/target/test-harness/assembly/fileSet-unix-lineEndings/archive-tmp ${basedir}/target/test-harness/assembly/fileSet-unix-lineEndings/site false true ././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/fileSet-no-directory-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/fileSet-no-directory-pl0000644000175000017500000000405010464261541034052 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/fileSet-no-directory/target assembly ${basedir}/target/test-harness/assembly/fileSet-no-directory/work ${localRepository} fileSet-no-directory warn ${basedir} ${basedir}/target/test-harness/assembly/fileSet-no-directory/archive-tmp ${basedir}/target/test-harness/assembly/fileSet-no-directory/site false true ././@LongLink0000000000000000000000000000021100000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/repository-groupVersionAlignment-excludes-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/repository-groupVersion0000644000175000017500000000422110464261541034351 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/repository-groupVersionAlignment-excludes/target assembly ${basedir}/target/test-harness/assembly/repository-groupVersionAlignment-excludes/work ${localRepository} repository-groupVersionAlignment-excludes warn ${basedir} ${basedir}/target/test-harness/assembly/repository-groupVersionAlignment-excludes/archive-tmp ${basedir}/target/test-harness/assembly/repository-groupVersionAlignment-excludes/site false true ././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/depSet-includes-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/depSet-includes-plugin-0000644000175000017500000000404010464261541034032 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/depSet-includes/target assembly ${basedir}/target/test-harness/assembly/depSet-includes/work ${localRepository} dependencySet-includes warn ${basedir} ${basedir}/target/test-harness/assembly/depSet-includes/archive-tmp ${basedir}/target/test-harness/assembly/depSet-includes/site false true ././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/fileItem-lineEndings-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/fileItem-lineEndings-pl0000644000175000017500000000405010464261541034036 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/fileItem-lineEndings/target assembly ${basedir}/target/test-harness/assembly/fileItem-lineEndings/work ${localRepository} fileItem-lineEndings warn ${basedir} ${basedir}/target/test-harness/assembly/fileItem-lineEndings/archive-tmp ${basedir}/target/test-harness/assembly/fileItem-lineEndings/site false true ././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/tar-gz-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/tar-gz-plugin-config.xm0000644000175000017500000000372110464261541034024 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/tar-gz/target assembly ${basedir}/target/test-harness/assembly/tar-gz/work ${localRepository} ${basedir}/src/test/resources/assemblies/tar-gz.xml warn ${basedir} ${basedir}/target/test-harness/assembly/tar-gz/archive-tmp ${basedir}/target/test-harness/assembly/tar-gz/site false false ././@LongLink0000000000000000000000000000017100000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/descriptorSourceDirectory-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/descriptorSourceDirecto0000644000175000017500000000411210464261541034302 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/descriptorSourceDirectory/target assembly ${basedir}/target/test-harness/assembly/descriptorSourceDirectory/work ${localRepository} ${basedir}/src/test/resources/assemblies/descriptorSourceDirectory warn ${basedir} ${basedir}/target/test-harness/assembly/descriptorSourceDirectory/archive-tmp ${basedir}/target/test-harness/assembly/descriptorSourceDirectory/site false false ././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/MASSEMBLY-98-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/MASSEMBLY-98-plugin-con0000644000175000017500000000400010464261541033270 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/MASSEMBLY-98/target assembly ${basedir}/target/test-harness/assembly/MASSEMBLY-98/work ${localRepository} MASSEMBLY-98 warn ${basedir} ${basedir}/target/test-harness/assembly/MASSEMBLY-98/archive-tmp ${basedir}/target/test-harness/assembly/MASSEMBLY-98/site false true ././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/fileItem-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/fileItem-plugin-config.0000644000175000017500000000375410464261541034017 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/fileItem/target assembly ${basedir}/target/test-harness/assembly/fileItem/work ${localRepository} fileItem warn ${basedir} ${basedir}/target/test-harness/assembly/fileItem/archive-tmp ${basedir}/target/test-harness/assembly/fileItem/site false true maven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/min-plugin-config.xml0000644000175000017500000000370410771721652033565 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/min/target assembly ${basedir}/target/test-harness/assembly/min/work ${localRepository} ${basedir}/src/test/resources/assemblies/simple.xml warn ${basedir} ${basedir}/target/test-harness/assembly/min/archive-tmp ${basedir}/target/test-harness/assembly/min/site false false ././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/depSet-filename-mapping-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/depSet-filename-mapping0000644000175000017500000000411010771721652034067 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/depSet-filename-mapping/target assembly ${basedir}/target/test-harness/assembly/depSet-filename-mapping/work ${localRepository} dependencySet-filename-mapping warn ${basedir} ${basedir}/target/test-harness/assembly/depSet-filename-mapping/archive-tmp ${basedir}/target/test-harness/assembly/depSet-filename-mapping/site false true ././@LongLink0000000000000000000000000000015600000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/depSet-default-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/depSet-default-plugin-c0000644000175000017500000000403210771721652034021 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/depSet-default/target assembly ${basedir}/target/test-harness/assembly/depSet-default/work ${localRepository} dependencySet-default warn ${basedir} ${basedir}/target/test-harness/assembly/depSet-default/archive-tmp ${basedir}/target/test-harness/assembly/depSet-default/site false true ././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/depSet-scoped-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/depSet-scoped-plugin-co0000644000175000017500000000402610771721652034034 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/depSet-scoped/target assembly ${basedir}/target/test-harness/assembly/depSet-scoped/work ${localRepository} dependencySet-scoped warn ${basedir} ${basedir}/target/test-harness/assembly/depSet-scoped/archive-tmp ${basedir}/target/test-harness/assembly/depSet-scoped/site false true maven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/war-plugin-config.xml0000644000175000017500000000370210464261541033564 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/war/target assembly ${basedir}/target/test-harness/assembly/war/work ${localRepository} ${basedir}/src/test/resources/assemblies/war.xml warn ${basedir} ${basedir}/target/test-harness/assembly/war/archive-tmp ${basedir}/target/test-harness/assembly/war/site false false ././@LongLink0000000000000000000000000000020700000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/moduleSet-packed-including-dependencies-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/moduleSet-packed-includ0000644000175000017500000000461210464261541034100 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/moduleSet-packed-including-dependencies/target assembly ${basedir}/target/test-harness/assembly/moduleSet-packed-including-dependencies/work ${localRepository} ${basedir}/target/test-harness/assembly/moduleSet-packed-including-dependencies moduleSet-packed-including-dependencies warn ${basedir} ${basedir}/target/test-harness/assembly/moduleSet-packed-including-dependencies/archive-tmp ${basedir}/target/test-harness/assembly/moduleSet-packed-including-dependencies/site false true ././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/fileItem-filter-file-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/fileItem-filter-file-pl0000644000175000017500000000424010464261541034002 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/fileItem-filter-file/target assembly ${basedir}/target/test-harness/assembly/fileItem-filter-file/work ${localRepository} fileItem-filter-file warn target/test-classes/fileSet/filterFile.properties ${basedir} ${basedir}/target/test-harness/assembly/fileItem-filter-file/archive-tmp ${basedir}/target/test-harness/assembly/fileItem-filter-file/site false true ././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/plexus-components-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/plexus-components-plugi0000644000175000017500000000401010464261541034247 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/plexus-components/target assembly ${basedir}/target/test-harness/assembly/plexus-components/work ${localRepository} ${basedir}/src/test/resources/assemblies/plexus-components.xml warn ${basedir} ${basedir}/target/test-harness/assembly/plexus-components/archive-tmp ${basedir}/target/test-harness/assembly/plexus-components/site false false ././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/fileSet-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/fileSet-plugin-config.x0000644000175000017500000000374710771721652034053 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/fileSet/target assembly ${basedir}/target/test-harness/assembly/fileSet/work ${localRepository} fileSet warn ${basedir} ${basedir}/target/test-harness/assembly/fileSet/archive-tmp ${basedir}/target/test-harness/assembly/fileSet/site false true ././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/depSet-unpack-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/depSet-unpack-plugin-co0000644000175000017500000000402610771721652034040 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/depSet-unpack/target assembly ${basedir}/target/test-harness/assembly/depSet-unpack/work ${localRepository} dependencySet-unpack warn ${basedir} ${basedir}/target/test-harness/assembly/depSet-unpack/archive-tmp ${basedir}/target/test-harness/assembly/depSet-unpack/site false true ././@LongLink0000000000000000000000000000020000000000000011555 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/repository-groupVersionAlignment-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/repository-groupVersion0000644000175000017500000000414410464261541034355 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/repository-groupVersionAlignment/target assembly ${basedir}/target/test-harness/assembly/repository-groupVersionAlignment/work ${localRepository} repository-groupVersionAlignment warn ${basedir} ${basedir}/target/test-harness/assembly/repository-groupVersionAlignment/archive-tmp ${basedir}/target/test-harness/assembly/repository-groupVersionAlignment/site false true ././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/fileItem-filtered-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/fileItem-filtered-plugi0000644000175000017500000000403110464261541034101 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/fileItem-filtered/target assembly ${basedir}/target/test-harness/assembly/fileItem-filtered/work ${localRepository} fileItem-filtered warn ${basedir} ${basedir}/target/test-harness/assembly/fileItem-filtered/archive-tmp ${basedir}/target/test-harness/assembly/fileItem-filtered/site false true ././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/moduleSet-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/moduleSet-plugin-config0000644000175000017500000000450410464261541034136 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/moduleSet/target assembly ${basedir}/target/test-harness/assembly/moduleSet/work ${localRepository} ${basedir}/target/test-harness/assembly/moduleSet moduleSet warn ${basedir} ${basedir}/target/test-harness/assembly/moduleSet/archive-tmp ${basedir}/target/test-harness/assembly/moduleSet/site false true ././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/depSet-excludes-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/depSet-excludes-plugin-0000644000175000017500000000404010464261541034040 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/depSet-excludes/target assembly ${basedir}/target/test-harness/assembly/depSet-excludes/work ${localRepository} dependencySet-excludes warn ${basedir} ${basedir}/target/test-harness/assembly/depSet-excludes/archive-tmp ${basedir}/target/test-harness/assembly/depSet-excludes/site false true ././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/fileItem-output-name-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/fileItem-output-name-pl0000644000175000017500000000405010464261541034055 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/fileItem-output-name/target assembly ${basedir}/target/test-harness/assembly/fileItem-output-name/work ${localRepository} fileItem-output-name warn ${basedir} ${basedir}/target/test-harness/assembly/fileItem-output-name/archive-tmp ${basedir}/target/test-harness/assembly/fileItem-output-name/site false true ././@LongLink0000000000000000000000000000017600000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/moduleSet-include-dependencies-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/moduleSet-include-depen0000644000175000017500000000470210464261541034111 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/moduleSet-include-dependencies/target assembly ${basedir}/target/test-harness/assembly/moduleSet-include-dependencies/work ${localRepository} ${basedir}/target/test-harness/assembly/moduleSet-include-dependencies moduleSet-include-dependencies warn ${basedir} ${basedir}/target/test-harness/assembly/moduleSet-include-dependencies/archive-tmp ${basedir}/target/test-harness/assembly/moduleSet-include-dependencies/site false true ././@LongLink0000000000000000000000000000017100000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/fileSet-includes-excludes-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/fileSet-includes-exclud0000644000175000017500000000407110464261541034116 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/fileSet-include-exclude/target assembly ${basedir}/target/test-harness/assembly/fileSet-include-exclude/work ${localRepository} fileSet-includes-excludes warn ${basedir} ${basedir}/target/test-harness/assembly/fileSet-include-exclude/archive-tmp ${basedir}/target/test-harness/assembly/fileSet-include-exclude/site false true ././@LongLink0000000000000000000000000000021100000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/repository-groupVersionAlignment-includes-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/assembly/repository-groupVersion0000644000175000017500000000422110464261541034351 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/assembly/repository-groupVersionAlignment-includes/target assembly ${basedir}/target/test-harness/assembly/repository-groupVersionAlignment-includes/work ${localRepository} repository-groupVersionAlignment-includes warn ${basedir} ${basedir}/target/test-harness/assembly/repository-groupVersionAlignment-includes/archive-tmp ${basedir}/target/test-harness/assembly/repository-groupVersionAlignment-includes/site false true maven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/attached/0000755000175000017500000000000011361635310027442 5ustar twernertwerner././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/attached/depSet-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/attached/depSet-plugin-config.xm0000644000175000017500000000360710464261541034005 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/attached/depSet/target assembly ${basedir}/target/test-harness/attached/depSet/work ${localRepository} dependencySet-default warn ${basedir} ${basedir}/target/test-harness/attached/depSet/archive-tmp ${basedir}/target/test-harness/attached/depSet/site false true maven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/attached/min-plugin-config.xml0000644000175000017500000000352610464261541033520 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/attached/min/target assembly ${basedir}/target/test-harness/attached/min/work ${localRepository} ${basedir}/src/test/resources/assemblies/simple.xml warn ${basedir} ${basedir}/target/test-harness/attached/min/archive-tmp ${basedir}/target/test-harness/attached/min/site false false maven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/unpack/0000755000175000017500000000000011361635310027146 5ustar twernertwerner././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/unpack/archiver-manager-exception-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/unpack/archiver-manager-exceptio0000644000175000017500000000271310771721652034136 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/unpack/archiver-manager-exception/target unpack-min ${basedir}/target/test-harness/unpack/archiver-manager-exception/work ${localRepository} ././@LongLink0000000000000000000000000000015600000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/unpack/unpack-exception-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/unpack/unpack-exception-plugin-c0000644000175000017500000000265210771721652034100 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/unpack/unpack-exception/target unpack-min ${basedir}/target/test-harness/unpack/unpack-exception/work ${localRepository} ././@LongLink0000000000000000000000000000016300000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/unpack/with-reactor-projects-plugin-config.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/unpack/with-reactor-projects-plu0000644000175000017500000000323610771721652034143 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/unpack/with-reactor-projects/target unpack-min ${basedir}/target/test-harness/unpack/with-reactor-projects/work ${localRepository} maven-assembly-plugin-2.2~beta5/src/functional-tests/plugin-configs/unpack/min-plugin-config.xml0000644000175000017500000000262010771721652033223 0ustar twernertwerner maven-assembly-plugin ${basedir}/target/test-harness/unpack/min/target unpack-min ${basedir}/target/test-harness/unpack/min/work ${localRepository} maven-assembly-plugin-2.2~beta5/src/functional-tests/remote-repo/0000755000175000017500000000000011361635311025200 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/functional-tests/remote-repo/assembly/0000755000175000017500000000000011361635311027017 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/functional-tests/remote-repo/assembly/dependency-artifact/0000755000175000017500000000000011361635311032730 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/functional-tests/remote-repo/assembly/dependency-artifact/1.0/0000755000175000017500000000000011361635311033226 5ustar twernertwerner././@LongLink0000000000000000000000000000017600000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/remote-repo/assembly/dependency-artifact/1.0/dependency-artifact-1.0.pommaven-assembly-plugin-2.2~beta5/src/functional-tests/remote-repo/assembly/dependency-artifact/1.0/de0000644000175000017500000000027410464261541033547 0ustar twernertwerner 4.0.0 assembly dependency-artifact 1.0 jar maven-assembly-plugin-2.2~beta5/src/functional-tests/remote-repo/assembly/dependency-artifact/1.1/0000755000175000017500000000000011361635311033227 5ustar twernertwerner././@LongLink0000000000000000000000000000017600000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/remote-repo/assembly/dependency-artifact/1.1/dependency-artifact-1.1.pommaven-assembly-plugin-2.2~beta5/src/functional-tests/remote-repo/assembly/dependency-artifact/1.1/de0000644000175000017500000000027410464261541033550 0ustar twernertwerner 4.0.0 assembly dependency-artifact 1.1 jar maven-assembly-plugin-2.2~beta5/src/functional-tests/java/0000755000175000017500000000000011361635306023667 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/0000755000175000017500000000000011361635306024456 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/0000755000175000017500000000000011361635306025677 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/0000755000175000017500000000000011361635306027005 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/0000755000175000017500000000000011361635306030303 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/assembly/0000755000175000017500000000000011361635307032123 5ustar twernertwerner././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/assembly/UnpackMojoTest.javamaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/assembly/UnpackMoj0000644000175000017500000001004211123544663033732 0ustar twernertwernerpackage org.apache.maven.plugin.assembly; /* * Copyright 2001-2006 The Apache Software Foundation. * * Licensed 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 org.apache.maven.plugin.MojoExecutionException; import org.apache.maven.plugin.assembly.mojos.UnpackMojo; import org.apache.maven.plugin.assembly.stubs.ArchiverManagerStub; import org.apache.maven.plugin.assembly.stubs.UnArchiverWithException; import org.apache.maven.plugin.testing.AbstractMojoTestCase; import org.apache.maven.project.MavenProject; import org.codehaus.plexus.PlexusTestCase; import org.codehaus.plexus.archiver.manager.NoSuchArchiverException; import java.io.File; /** * @author Edwin Punzalan */ public class UnpackMojoTest extends AbstractMojoTestCase { public void testMinConfiguration() throws Exception { executeMojo( "min-plugin-config.xml" ); } public void testMinConfigurationAgainWithoutClean() throws Exception { executeMojo( "min-plugin-config.xml" ); } public void testMinConfigurationWithReactorProjects() throws Exception { executeMojo( "with-reactor-projects-plugin-config.xml" ); } public void testArchiverManagerException() throws Exception { try { UnpackMojo mojo = getMojo( "archiver-manager-exception-plugin-config.xml" ); mojo.execute(); MavenProject project = (MavenProject) getVariableValueFromObject( mojo, "project" ); String filename = project.getArtifact().getFile().getName(); String dir = filename.substring( 0, filename.lastIndexOf( '.' ) ); File workDir = (File) getVariableValueFromObject( mojo, "workDirectory" ); File unpackDir = new File( workDir, dir ); File unpacked = new File( unpackDir, filename + ".extracted" ); assertFalse( "Test extracted project artifact", unpacked.exists() ); } catch ( NoSuchArchiverException e ) { fail( "Expected exception in ArchiverManager should not fail the build" ); } } public void testUnpackException() throws Exception { try { UnpackMojo mojo = getMojo( "unpack-exception-plugin-config.xml" ); ArchiverManagerStub archiverManager = (ArchiverManagerStub) getVariableValueFromObject( mojo, "archiverManager" ); archiverManager.setUnArchiver( new UnArchiverWithException() ); mojo.execute(); fail( "Expected exception not thrown" ); } catch ( MojoExecutionException e ) { //expected } } public UnpackMojo getMojo( String pluginXml ) throws Exception { return (UnpackMojo) lookupMojo( "unpack", PlexusTestCase.getBasedir() + "/src/test/plugin-configs/unpack/" + pluginXml ); } public void executeMojo( String pluginXml ) throws Exception { UnpackMojo mojo = getMojo( pluginXml ); mojo.execute(); MavenProject project = (MavenProject) getVariableValueFromObject( mojo, "project" ); String filename = project.getArtifact().getFile().getName(); String dir = filename.substring( 0, filename.lastIndexOf( '.' ) ); File workDir = (File) getVariableValueFromObject( mojo, "workDirectory" ); File unpackDir = new File( workDir, dir ); File unpacked = new File( unpackDir, filename + ".extracted" ); assertTrue( "Test extracted project artifact", unpacked.exists() ); } } ././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/assembly/DirectoryInlineMojoTest.javamaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/assembly/Directory0000644000175000017500000000522411123544663034015 0ustar twernertwernerpackage org.apache.maven.plugin.assembly; import org.apache.maven.plugin.assembly.mojos.DirectoryInlineMojo; import org.apache.maven.plugin.assembly.stubs.ArchiverManagerStub; import org.apache.maven.plugin.testing.AbstractMojoTestCase; import org.apache.maven.project.MavenProject; import org.apache.maven.artifact.Artifact; import java.io.File; import java.util.Map; import java.util.Set; import java.util.Iterator; /* * Copyright 2001-2006 The Apache Software Foundation. * * Licensed 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 DirectoryInlineMojoTest extends AbstractMojoTestCase { public void testAssemblyDirectory() throws Exception { File testPom = new File( getBasedir(), "src/test/plugin-configs/directory-inline/min-plugin-config.xml" ); DirectoryInlineMojo mojo = ( DirectoryInlineMojo ) lookupMojo( "directory-inline", testPom ); assertNotNull( mojo ); mojo.execute(); Map filesArchived = ArchiverManagerStub.archiverStub.getFiles(); Set files = filesArchived.keySet(); assertEquals( 1, files.size() ); } public void testDependencySet() throws Exception { File testPom = new File( getBasedir(), "src/test/plugin-configs/directory-inline/dependency-set-plugin-config.xml" ); DirectoryInlineMojo mojo = ( DirectoryInlineMojo ) lookupMojo( "directory-inline", testPom ); assertNotNull( mojo ); MavenProject project = ( MavenProject ) getVariableValueFromObject( mojo, "project" ); Set artifacts = project.getArtifacts(); mojo.execute(); Map filesArchived = ArchiverManagerStub.archiverStub.getFiles(); Set files = filesArchived.keySet(); for( Iterator iter = artifacts.iterator(); iter.hasNext(); ) { Artifact artifact = ( Artifact ) iter.next(); assertTrue( files.contains( artifact.getFile() ) ); assertTrue( artifact.getFile().getName().endsWith( ".jar" ) ); } assertTrue( "Test project is in archive", files.contains( project.getArtifact().getFile() ) ); } } maven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/assembly/stubs/0000755000175000017500000000000011361635307033263 5ustar twernertwerner././@LongLink0000000000000000000000000000017600000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/assembly/stubs/UnArchiverWithException.javamaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/assembly/stubs/UnA0000644000175000017500000000200011123544663033661 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.stubs; import org.codehaus.plexus.archiver.ArchiverException; import java.io.IOException; /* * Copyright 2001-2006 The Apache Software Foundation. * * Licensed 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. */ /** * @author Edwin Punzalan */ public class UnArchiverWithException extends UnArchiverStub { public void extract() throws ArchiverException, IOException { throw new ArchiverException( "exception explicitly thrown for testing" ); } } ././@LongLink0000000000000000000000000000017400000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/assembly/stubs/DirectoryArchiverStub.javamaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/assembly/stubs/Dir0000644000175000017500000000172211123544663033726 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.stubs; import org.codehaus.plexus.archiver.ArchiverException; import java.io.IOException; /* * Copyright 2001-2006 The Apache Software Foundation. * * Licensed 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. */ /** * @author Allan Ramirez */ public class DirectoryArchiverStub extends JarArchiverStub { public void createArchive() throws ArchiverException, IOException { getDestFile().mkdirs(); } } ././@LongLink0000000000000000000000000000016600000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/assembly/stubs/TarArchiverStub.javamaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/assembly/stubs/Tar0000644000175000017500000001206611123544663033741 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.stubs; /* * Copyright 2001-2006 The Apache Software Foundation. * * Licensed 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 org.codehaus.plexus.archiver.tar.TarArchiver; import org.codehaus.plexus.archiver.tar.TarLongFileMode; import org.codehaus.plexus.archiver.ArchiverException; import java.util.Map; import java.util.HashMap; import java.io.File; import java.io.IOException; /** * @author Edwin Punzalan */ public class TarArchiverStub extends TarArchiver { private Map files = new HashMap(); private File destFile; private int fileMode = 0; private int dirMode = 0; private boolean includeEmptyDirs = false; private TarCompressionMethod tarCompressionMethod; private TarLongFileMode longFileMode; public void setLongfile( TarLongFileMode mode ) { this.longFileMode = mode; } public void setCompression( TarCompressionMethod mode ) { tarCompressionMethod = mode; } public void createArchive() throws ArchiverException, IOException { destFile.getParentFile().mkdirs(); destFile.delete(); if ( !destFile.createNewFile() ) { throw new ArchiverException( "Unable to create archive file: " + destFile.getAbsolutePath() ); } } public void addDirectory( File file ) throws ArchiverException { addDirectory( file, "" ); } public void addDirectory( File file, String string ) throws ArchiverException { addDirectory( file, string, null, null ); } public void addDirectory( File file, String[] strings, String[] strings1 ) throws ArchiverException { addDirectory( file, file.getName(), strings, strings1 ); } public void addDirectory( File file, String string, String[] includes, String[] excludes ) throws ArchiverException { System.out.println( "Adding dir " + file.getPath() ); files.put( file, new ArchiverFile( file, string, includes, excludes ) ); } public void addFile( File file, String string ) throws ArchiverException { addFile( file, string, 0 ); } public void addFile( File file, String string, int i ) throws ArchiverException { System.out.println( "Adding file " + file.getPath() ); ArchiverFile archiverFile = new ArchiverFile( file, string, null, null ); archiverFile.setFileMode( i ); files.put( file, archiverFile ); } public File getDestFile() { return destFile; } public void setDestFile( File file ) { destFile = file; } public void setDefaultFileMode( int i ) { fileMode = i; } public int getDefaultFileMode() { return fileMode; } public void setDefaultDirectoryMode( int i ) { dirMode = i; } public int getDefaultDirectoryMode() { return dirMode; } public boolean getIncludeEmptyDirs() { return includeEmptyDirs; } public void setIncludeEmptyDirs( boolean b ) { includeEmptyDirs = b; } public Map getFiles() { return files; } public class ArchiverFile { private File file; private String outputName; private String[] includes, excludes; private int fileMode; private ArchiverFile( File file, String outputName, String[] includes, String[] excludes ) { this.file = file; this.outputName = outputName; this.includes = includes; this.excludes = excludes; } public File getFile() { return file; } public void setFile( File file ) { this.file = file; } public String getOutputName() { return outputName; } public void setOutputName( String outputName ) { this.outputName = outputName; } public String[] getIncludes() { return includes; } public void setIncludes( String[] includes ) { this.includes = includes; } public String[] getExcludes() { return excludes; } public void setExcludes( String[] excludes ) { this.excludes = excludes; } public int getFileMode() { return fileMode; } public void setFileMode( int fileMode ) { this.fileMode = fileMode; } } } ././@LongLink0000000000000000000000000000016600000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/assembly/stubs/WarArchiverStub.javamaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/assembly/stubs/War0000644000175000017500000001164611123544663033747 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.stubs; /* * Copyright 2001-2006 The Apache Software Foundation. * * Licensed 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 org.codehaus.plexus.archiver.war.WarArchiver; import org.codehaus.plexus.archiver.ArchiverException; import java.util.Map; import java.util.HashMap; import java.io.File; import java.io.IOException; /** * @author Edwin Punzalan */ public class WarArchiverStub extends WarArchiver { private Map files = new HashMap(); private File destFile; private int fileMode = 0; private int dirMode = 0; private boolean includeEmptyDirs = false; private boolean ignoreWebxml = false; public void createArchive() throws ArchiverException, IOException { destFile.getParentFile().mkdirs(); destFile.delete(); if ( !destFile.createNewFile() ) { throw new ArchiverException( "Unable to create archive file: " + destFile.getAbsolutePath() ); } } public void addDirectory( File file ) throws ArchiverException { addDirectory( file, "" ); } public void addDirectory( File file, String string ) throws ArchiverException { addDirectory( file, string, null, null ); } public void addDirectory( File file, String[] strings, String[] strings1 ) throws ArchiverException { addDirectory( file, file.getName(), strings, strings1 ); } public void addDirectory( File file, String string, String[] includes, String[] excludes ) throws ArchiverException { System.out.println( "Adding dir " + file.getPath() ); files.put( file, new ArchiverFile( file, string, includes, excludes ) ); } public void addFile( File file, String string ) throws ArchiverException { addFile( file, string, 0 ); } public void addFile( File file, String string, int i ) throws ArchiverException { System.out.println( "Adding file " + file.getPath() ); ArchiverFile archiverFile = new ArchiverFile( file, string, null, null ); archiverFile.setFileMode( i ); files.put( file, archiverFile ); } public File getDestFile() { return destFile; } public void setDestFile( File file ) { destFile = file; } public void setDefaultFileMode( int i ) { fileMode = i; } public int getDefaultFileMode() { return fileMode; } public void setDefaultDirectoryMode( int i ) { dirMode = i; } public int getDefaultDirectoryMode() { return dirMode; } public boolean getIncludeEmptyDirs() { return includeEmptyDirs; } public void setIncludeEmptyDirs( boolean b ) { includeEmptyDirs = b; } public Map getFiles() { return files; } public void setIgnoreWebxml( boolean ignore ) { this.ignoreWebxml = ignore; } public boolean getIgnoreWebxml() { return ignoreWebxml; } public class ArchiverFile { private File file; private String outputName; private String[] includes, excludes; private int fileMode; private ArchiverFile( File file, String outputName, String[] includes, String[] excludes ) { this.file = file; this.outputName = outputName; this.includes = includes; this.excludes = excludes; } public File getFile() { return file; } public void setFile( File file ) { this.file = file; } public String getOutputName() { return outputName; } public void setOutputName( String outputName ) { this.outputName = outputName; } public String[] getIncludes() { return includes; } public void setIncludes( String[] includes ) { this.includes = includes; } public String[] getExcludes() { return excludes; } public void setExcludes( String[] excludes ) { this.excludes = excludes; } public int getFileMode() { return fileMode; } public void setFileMode( int fileMode ) { this.fileMode = fileMode; } } } ././@LongLink0000000000000000000000000000020400000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/assembly/stubs/MavenProjectWithArtifactsStub.javamaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/assembly/stubs/Mav0000644000175000017500000000252711123544663033737 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.stubs; import org.apache.maven.artifact.Artifact; import java.util.Set; import java.util.HashSet; /* * Copyright 2001-2006 The Apache Software Foundation. * * Licensed 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. */ /** * @author Edwin Punzalan */ public class MavenProjectWithArtifactsStub extends AssemblyMavenProjectStub { public MavenProjectWithArtifactsStub() { Set artifacts = new HashSet(); artifacts.add( new ArtifactStub( "assembly", "dependency-artifact1", "1.0", "jar", Artifact.SCOPE_COMPILE ) ); artifacts.add( new ArtifactStub( "assembly", "dependency-artifact2", "1.0", "jar", Artifact.SCOPE_RUNTIME ) ); artifacts.add( new ArtifactStub( "assembly", "dependency-artifact3", "1.0", "jar", Artifact.SCOPE_TEST ) ); setArtifacts( artifacts ); } } ././@LongLink0000000000000000000000000000017200000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/assembly/stubs/ArchiverManagerStub.javamaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/assembly/stubs/Arc0000644000175000017500000000636211123544663033722 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.stubs; /* * Copyright 2001-2006 The Apache Software Foundation. * * Licensed 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 org.codehaus.plexus.archiver.Archiver; import org.codehaus.plexus.archiver.UnArchiver; import org.codehaus.plexus.archiver.manager.ArchiverManager; import org.codehaus.plexus.archiver.manager.NoSuchArchiverException; import java.io.File; /** * @author Edwin Punzalan */ public class ArchiverManagerStub implements ArchiverManager { public static Archiver archiverStub; public static UnArchiverStub unArchiverStub; public ArchiverManagerStub() { archiverStub = null; unArchiverStub = null; } public Archiver getArchiver( String string ) throws NoSuchArchiverException { if ( archiverStub == null ) { if( "dir".equals( string ) ) { archiverStub = new DirectoryArchiverStub(); } else if ( "tar".equals( string ) ) { archiverStub = new TarArchiverStub(); } else if ( "war".equals( string ) ) { archiverStub = new WarArchiverStub(); } else if ( "zip".equals( string ) || "jar".equals( string ) ) { archiverStub = new JarArchiverStub(); } else { throw new NoSuchArchiverException( string ); } } return archiverStub; } public void setArchiver( JarArchiverStub archiver ) { archiverStub = archiver; } public UnArchiver getUnArchiver( String string ) throws NoSuchArchiverException { if ( unArchiverStub == null ) { if ( "jar".equals( string ) ) { unArchiverStub = new SignedUnArchiver(); } else { unArchiverStub = new UnArchiverStub(); } } return unArchiverStub; } public UnArchiver getUnArchiver( File file ) throws NoSuchArchiverException { if ( unArchiverStub == null ) { String filename = file.getName(); unArchiverStub = (UnArchiverStub) getUnArchiver( filename.substring( filename.lastIndexOf( '.' ) + 1 ) ); } return unArchiverStub; } public Archiver getArchiver( File string ) throws NoSuchArchiverException { if ( archiverStub == null ) { archiverStub = new JarArchiverStub(); } return archiverStub; } public void setUnArchiver( UnArchiverStub unArchiver ) { unArchiverStub = unArchiver; } } ././@LongLink0000000000000000000000000000017700000000000011572 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/assembly/stubs/AssemblyMavenProjectStub.javamaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/assembly/stubs/Ass0000644000175000017500000001040411123544663033733 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.stubs; /* * Copyright 2001-2006 The Apache Software Foundation. * * Licensed 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 org.apache.maven.plugin.testing.stubs.MavenProjectStub; import org.apache.maven.artifact.Artifact; import org.apache.maven.artifact.DefaultArtifact; import org.apache.maven.artifact.repository.DefaultArtifactRepository; import org.apache.maven.artifact.repository.ArtifactRepository; import org.apache.maven.artifact.repository.layout.DefaultRepositoryLayout; import org.apache.maven.artifact.handler.DefaultArtifactHandler; import org.apache.maven.artifact.versioning.VersionRange; import org.apache.maven.model.Model; import org.apache.maven.model.Build; import org.codehaus.plexus.PlexusTestCase; import java.util.Set; import java.util.Collections; import java.util.Properties; import java.util.List; import java.io.File; /** * @author Edwin Punzalan */ public class AssemblyMavenProjectStub extends MavenProjectStub { private String groupId, artifactId, version; private Artifact artifact; private Set artifacts; private Model model; private File basedir; public Build getBuild() { return model.getBuild(); } public List getRemoteArtifactRepositories() { ArtifactRepository repository = new DefaultArtifactRepository( "central", "file://" + PlexusTestCase.getBasedir() + "/src/test/remote-repo", new DefaultRepositoryLayout() ); return Collections.singletonList( repository ); } public AssemblyMavenProjectStub() { groupId = "assembly"; artifactId = "test-project"; version = "1.0"; } public Set getDependencyArtifacts() { return Collections.singleton( new DefaultArtifact( "assembly", "dependency-artifact", VersionRange.createFromVersion( "1.0" ), Artifact.SCOPE_COMPILE, "jar", null, new DefaultArtifactHandler( "jar" ), false ) ); } public File getBasedir() { if ( basedir == null ) { basedir = new File( PlexusTestCase.getBasedir() ); } return basedir; } public Artifact getArtifact() { if ( artifact == null ) { artifact = new ArtifactStub( groupId, artifactId, version, "jar", Artifact.SCOPE_COMPILE ); } return artifact; } public Model getModel() { if ( model == null ) { model = new Model(); model.setProperties( new Properties() ); model.setGroupId( getGroupId() ); model.setArtifactId( getArtifactId() ); model.setVersion( getVersion() ); Build build = new Build(); build.setFinalName( getArtifactId() + "-" + getVersion() ); model.setBuild( build ); } return model; } public Set getArtifacts() { if ( artifacts == null ) { artifacts = Collections.EMPTY_SET; } return artifacts; } public void setArtifacts( Set artifacts ) { this.artifacts = artifacts; } public Properties getProperties() { return new Properties(); } public String getGroupId() { return groupId; } public void setGroupId( String groupId ) { this.groupId = groupId; } public String getArtifactId() { return artifactId; } public void setArtifactId( String artifactId ) { this.artifactId = artifactId; } public String getVersion() { return version; } public void setVersion( String version ) { this.version = version; } } ././@LongLink0000000000000000000000000000016500000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/assembly/stubs/UnArchiverStub.javamaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/assembly/stubs/UnA0000644000175000017500000000544511123544663033701 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.stubs; /* * Copyright 2001-2006 The Apache Software Foundation. * * Licensed 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 org.codehaus.plexus.archiver.ArchiverException; import org.codehaus.plexus.archiver.UnArchiver; import java.io.File; import java.io.IOException; /** * @author Edwin Punzalan */ public class UnArchiverStub implements UnArchiver { private File sourceFile, destDir; public void extract() throws ArchiverException, IOException { File extractedFile = new File( getDestDirectory(), getSourceFile().getName() + ".extracted" ); if ( !extractedFile.exists() ) { extractedFile.createNewFile(); } } public File getDestDirectory() { return destDir; } public void setDestDirectory( File file ) { destDir = file; } public File getDestFile() { return null; } public void setDestFile( File file ) { } public File getSourceFile() { return sourceFile; } public void setSourceFile( File file ) { this.sourceFile = file; } public void setOverwrite( boolean b ) { } // // public List getUnpackedFiles() // { // return unpackedFiles; // } // // public class UnpackedArchive // { // private File sourceFile, destDirectory; // // private UnpackedArchive( File sourceFile, File destDirectory ) // { // this.sourceFile = sourceFile; // this.destDirectory = destDirectory; // } // // public File getSourceFile() // { // return sourceFile; // } // // public File getDestDirectory() // { // return destDirectory; // } // // public boolean equals( Object obj ) // { // boolean equal = false; // // if ( obj instanceof UnpackedArchive ) // { // UnpackedArchive unpacked = (UnpackedArchive) obj; // if ( unpacked.getSourceFile().equals( getSourceFile() ) && // unpacked.getDestDirectory().equals( getDestDirectory() ) ) // { // equal = true; // } // } // // return equal; // } // } } ././@LongLink0000000000000000000000000000021700000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/assembly/stubs/MavenProjectWithDependencyClassifierStub.javamaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/assembly/stubs/Mav0000644000175000017500000000265111123544663033735 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.stubs; import org.apache.maven.artifact.Artifact; import java.util.Set; import java.util.HashSet; /* * Copyright 2001-2006 The Apache Software Foundation. * * Licensed 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. */ /** * @author Edwin Punzalan */ public class MavenProjectWithDependencyClassifierStub extends MavenProjectWithArtifactsStub { public MavenProjectWithDependencyClassifierStub() { Set artifacts = new HashSet(); artifacts.add( new ArtifactStub( "assembly", "dependency-artifact1", "1.0", "jar", "classifier", Artifact.SCOPE_COMPILE ) ); artifacts.add( new ArtifactStub( "assembly", "dependency-artifact2", "1.0", "jar", Artifact.SCOPE_RUNTIME ) ); artifacts.add( new ArtifactStub( "assembly", "dependency-artifact3", "1.0", "jar", Artifact.SCOPE_TEST ) ); setArtifacts( artifacts ); } } ././@LongLink0000000000000000000000000000017600000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/assembly/stubs/ReactorMavenProjectStub.javamaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/assembly/stubs/Rea0000644000175000017500000001056211123544663033721 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.stubs; /* * Copyright 2001-2006 The Apache Software Foundation. * * Licensed 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 org.apache.maven.artifact.Artifact; import org.apache.maven.model.Build; import org.apache.maven.model.Model; import org.apache.maven.model.Reporting; import org.apache.maven.plugin.testing.stubs.MavenProjectStub; import org.apache.maven.project.MavenProject; import org.codehaus.plexus.util.FileUtils; import java.io.File; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Properties; import java.util.Set; /** * @author Edwin Punzalan */ public class ReactorMavenProjectStub extends MavenProjectStub { public static List reactorProjects = new ArrayList(); private MavenProject parent; private Model model; private File basedir; public ReactorMavenProjectStub() { this( "jar" ); } public ReactorMavenProjectStub( String packaging ) { super(); reactorProjects.add( this ); setGroupId( "assembly" ); setArtifactId( "reactor-project-" + reactorProjects.size() ); setVersion( "1.0" ); setPackaging( packaging ); setArtifact( new ArtifactStub( getGroupId(), getArtifactId(), getVersion(), getPackaging(), Artifact.SCOPE_COMPILE ) ); } public String getId() { return getGroupId() + ":" + getArtifactId() + ":" + getVersion() + ":" + getPackaging(); } public Set getArtifacts() { Set artifacts = new HashSet(); artifacts.add( new ArtifactStub( "assembly", "reactor-dependency", "1.0", "jar", Artifact.SCOPE_COMPILE ) ); return artifacts; } public File getBasedir() { File basedir = super.getBasedir(); if ( parent != null ) { basedir = parent.getBasedir(); } return new File( basedir, getArtifactId() ); } public Reporting getReporting() { return model.getReporting(); } public Model getModel() { if ( model == null ) { model = new Model(); model.setGroupId( getGroupId() ); model.setArtifactId( getArtifactId() ); model.setVersion( getVersion() ); model.setPackaging( getPackaging() ); model.setProperties( new Properties() ); Build build = new Build(); build.setFinalName( getArtifactId() + "-" + getVersion() + "." + getPackaging() ); if ( parent != null ) { build.setDirectory( parent.getBasedir().getAbsolutePath() + "/" + getArtifactId() + "/target" ); FileUtils.mkdir( build.getDirectory() ); build.setOutputDirectory( parent.getBasedir().getAbsolutePath() + "/" + getArtifactId() + "/target/classes" ); FileUtils.mkdir( build.getOutputDirectory() ); build.setTestOutputDirectory( parent.getBasedir().getAbsolutePath() + "/" + getArtifactId() + "/target/test-classes" ); FileUtils.mkdir( build.getTestOutputDirectory() ); Reporting reporting = new Reporting(); reporting.setOutputDirectory( parent.getBasedir().getAbsolutePath() + "/" + getArtifactId() + "/target/site" ); FileUtils.mkdir( reporting.getOutputDirectory() ); model.setReporting( reporting ); } model.setBuild( build ); } return model; } public Build getBuild() { return getModel().getBuild(); } public void setParent( MavenProject parent ) { this.parent = parent; } public MavenProject getParent() { return parent; } } ././@LongLink0000000000000000000000000000020700000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/assembly/stubs/ArchiverManagerWithExceptionStub.javamaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/assembly/stubs/Arc0000644000175000017500000000316011123544663033713 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.stubs; import java.io.File; import org.codehaus.plexus.archiver.Archiver; import org.codehaus.plexus.archiver.UnArchiver; import org.codehaus.plexus.archiver.manager.NoSuchArchiverException; /* * Copyright 2001-2006 The Apache Software Foundation. * * Licensed 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. */ /** * @author Edwin Punzalan */ public class ArchiverManagerWithExceptionStub extends ArchiverManagerStub { public UnArchiver getUnArchiver( String string ) throws NoSuchArchiverException { throw new NoSuchArchiverException( "Expected exception" ); } public Archiver getArchiver( String string ) throws NoSuchArchiverException { throw new NoSuchArchiverException( "Expected exception" ); } public UnArchiver getUnArchiver( File string ) throws NoSuchArchiverException { throw new NoSuchArchiverException( "Expected exception" ); } public Archiver getArchiver( File string ) throws NoSuchArchiverException { throw new NoSuchArchiverException( "Expected exception" ); } } ././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/assembly/stubs/SignedUnArchiver.javamaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/assembly/stubs/Sig0000644000175000017500000000351111123544663033730 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.stubs; import org.codehaus.plexus.archiver.ArchiverException; import java.io.IOException; import java.io.File; /* * Copyright 2001-2006 The Apache Software Foundation. * * Licensed 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. */ /** * @author Edwin Punzalan */ public class SignedUnArchiver extends UnArchiverStub { public void extract() throws ArchiverException, IOException { super.extract(); File signatureDir = new File( getDestDirectory(), "META-INF" ); signatureDir.mkdirs(); File signatureFile = new File( signatureDir, "security-file.RSA" ); signatureFile.createNewFile(); signatureFile = new File( signatureDir, "security-file.DSA" ); signatureFile.createNewFile(); signatureFile = new File( signatureDir, "security-file.SF" ); signatureFile.createNewFile(); signatureFile = new File( signatureDir, "security-file.rsa" ); signatureFile.createNewFile(); signatureFile = new File( signatureDir, "security-file.dsa" ); signatureFile.createNewFile(); signatureFile = new File( signatureDir, "security-file.sf" ); signatureFile.createNewFile(); signatureFile = new File( signatureDir, "non-security-file" ); signatureFile.createNewFile(); } } ././@LongLink0000000000000000000000000000016600000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/assembly/stubs/JarArchiverStub.javamaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/assembly/stubs/Jar0000644000175000017500000001205211123544663033722 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.stubs; /* * Copyright 2001-2006 The Apache Software Foundation. * * Licensed 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 org.codehaus.plexus.archiver.ArchiverException; import org.codehaus.plexus.archiver.jar.JarArchiver; import org.codehaus.plexus.archiver.jar.Manifest; import org.codehaus.plexus.archiver.jar.ManifestException; import java.io.File; import java.io.IOException; import java.util.HashMap; import java.util.Map; /** * @author Edwin Punzalan */ public class JarArchiverStub extends JarArchiver { private Map files = new HashMap(); private File destFile; private int fileMode = 0; private int dirMode = 0; private boolean includeEmptyDirs = false; private Manifest manifest; public void createArchive() throws ArchiverException, IOException { destFile.getParentFile().mkdirs(); destFile.delete(); if ( !destFile.createNewFile() ) { throw new ArchiverException( "Unable to create archive file: " + destFile.getAbsolutePath() ); } } public void addDirectory( File file ) throws ArchiverException { addDirectory( file, "" ); } public void addDirectory( File file, String string ) throws ArchiverException { addDirectory( file, string, null, null ); } public void addDirectory( File file, String[] strings, String[] strings1 ) throws ArchiverException { addDirectory( file, file.getName(), strings, strings1 ); } public void addDirectory( File file, String string, String[] includes, String[] excludes ) throws ArchiverException { System.out.println( "Adding dir " + file.getPath() ); files.put( file, new ArchiverFile( file, string, includes, excludes ) ); } public void addFile( File file, String string ) throws ArchiverException { addFile( file, string, 0 ); } public void addFile( File file, String string, int i ) throws ArchiverException { System.out.println( "Adding file " + file.getPath() ); ArchiverFile archiverFile = new ArchiverFile( file, string, null, null ); archiverFile.setFileMode( i ); files.put( file, archiverFile ); } public File getDestFile() { return destFile; } public void setDestFile( File file ) { destFile = file; } public void setDefaultFileMode( int i ) { fileMode = i; } public int getDefaultFileMode() { return fileMode; } public void setDefaultDirectoryMode( int i ) { dirMode = i; } public int getDefaultDirectoryMode() { return dirMode; } public boolean getIncludeEmptyDirs() { return includeEmptyDirs; } public void setIncludeEmptyDirs( boolean b ) { includeEmptyDirs = b; } public Map getFiles() { return files; } public void addConfiguredManifest( Manifest newManifest ) throws ManifestException { manifest = newManifest; } public Manifest getManifest() { return manifest; } public class ArchiverFile { private File file; private String outputName; private String[] includes, excludes; private int fileMode; private ArchiverFile( File file, String outputName, String[] includes, String[] excludes ) { this.file = file; this.outputName = outputName; this.includes = includes; this.excludes = excludes; } public File getFile() { return file; } public void setFile( File file ) { this.file = file; } public String getOutputName() { return outputName; } public void setOutputName( String outputName ) { this.outputName = outputName; } public String[] getIncludes() { return includes; } public void setIncludes( String[] includes ) { this.includes = includes; } public String[] getExcludes() { return excludes; } public void setExcludes( String[] excludes ) { this.excludes = excludes; } public int getFileMode() { return fileMode; } public void setFileMode( int fileMode ) { this.fileMode = fileMode; } } } ././@LongLink0000000000000000000000000000016300000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/assembly/stubs/ArtifactStub.javamaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/assembly/stubs/Art0000644000175000017500000000343411123544663033740 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.stubs; /* * Copyright 2001-2006 The Apache Software Foundation. * * Licensed 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 org.apache.maven.artifact.DefaultArtifact; import org.apache.maven.artifact.handler.DefaultArtifactHandler; import org.apache.maven.artifact.versioning.VersionRange; import org.codehaus.plexus.PlexusTestCase; import java.io.File; /** * @author Edwin Punzalan */ public class ArtifactStub extends DefaultArtifact { public ArtifactStub( String groupId, String artifactId, String version, String packaging, String scope ) { this( groupId, artifactId, version, packaging, null, scope ); } public ArtifactStub( String groupId, String artifactId, String version, String packaging, String classifier, String scope ) { super( groupId, artifactId, VersionRange.createFromVersion( version ), scope, packaging, classifier, new DefaultArtifactHandler( packaging ), false ); } public File getFile() { return new File( PlexusTestCase.getBasedir() + "/target/local-repo", getArtifactId() + "-" + getVersion() + "." + getType() ) { public long lastModified() { return System.currentTimeMillis(); } }; } } ././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/assembly/AssemblyMojoTest.javamaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/assembly/AssemblyM0000644000175000017500000020422511123544663033747 0ustar twernertwernerpackage org.apache.maven.plugin.assembly; /* * Copyright 2001-2006 The Apache Software Foundation. * * Licensed 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 org.apache.maven.artifact.Artifact; import org.apache.maven.plugin.MojoFailureException; import org.apache.maven.plugin.MojoExecutionException; import org.apache.maven.plugin.Mojo; import org.apache.maven.plugin.assembly.mojos.AssemblyMojo; import org.apache.maven.plugin.assembly.stubs.ArchiverManagerStub; import org.apache.maven.plugin.assembly.stubs.JarArchiverStub; import org.apache.maven.plugin.assembly.stubs.ReactorMavenProjectStub; import org.apache.maven.plugin.assembly.stubs.WarArchiverStub; import org.apache.maven.plugin.testing.AbstractMojoTestCase; import org.apache.maven.project.MavenProject; import org.codehaus.plexus.PlexusTestCase; import org.codehaus.plexus.archiver.jar.Manifest; import org.codehaus.plexus.archiver.tar.TarArchiver; import org.codehaus.plexus.archiver.tar.TarLongFileMode; import org.codehaus.plexus.archiver.ArchiverException; import org.codehaus.plexus.util.FileUtils; import org.codehaus.plexus.util.StringUtils; import org.codehaus.plexus.util.xml.Xpp3DomBuilder; import java.io.File; import java.io.FileReader; import java.io.FilenameFilter; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; /** * @author Edwin Punzalan */ public class AssemblyMojoTest extends AbstractMojoTestCase { private String basedir = PlexusTestCase.getBasedir(); public void testMinConfiguration() throws Exception { executeMojo( "min-plugin-config.xml" ); } public void testProjectWithClassifier() throws Exception { executeMojo( "classifier-plugin-config.xml" ); File assemblyJar = ArchiverManagerStub.archiverStub.getDestFile(); assertTrue( "Test if archive ends with the classifier", assemblyJar.getName().endsWith( "test-harness.zip" ) ); } public void testDescriptorSourceDirectory() throws Exception { executeMojo( "descriptorSourceDirectory-plugin-config.xml" ); } public void testPackedDependencySet() throws Exception { AssemblyMojo mojo = getMojo( "depSet-default-plugin-config.xml" ); MavenProject project = (MavenProject) getVariableValueFromObject( mojo, "executedProject" ); Set artifactSet = project.getArtifacts(); mojo.execute(); Map archiveMap = ArchiverManagerStub.archiverStub.getFiles(); Collection archivedFiles = archiveMap.keySet(); assertEquals( "Test number of files in archive", artifactSet.size() + 1, archivedFiles.size() ); for ( Iterator artifacts = artifactSet.iterator(); artifacts.hasNext(); ) { Artifact expected = (Artifact) artifacts.next(); assertTrue( "Test expected dependency artifacts in archive", archivedFiles.contains( expected.getFile() ) ); assertTrue( "Test expected dependency is not unpacked", expected.getFile().getName().endsWith( ".jar" ) ); JarArchiverStub.ArchiverFile archiveFile = (JarArchiverStub.ArchiverFile) archiveMap.get( expected.getFile() ); String archivePath = archiveFile.getOutputName(); assertTrue( "Test includeBaseDirectory", archivePath.startsWith( "assembly/" ) ); } assertTrue( "Test project is in archive", archivedFiles.contains( project.getArtifact().getFile() ) ); assertTrue( "Test project is not unpacked", project.getArtifact().getFile().getName().endsWith( ".jar" ) ); JarArchiverStub.ArchiverFile archiveFile = (JarArchiverStub.ArchiverFile) archiveMap.get( project.getArtifact().getFile() ); String archivePath = archiveFile.getOutputName(); assertTrue( "Test includeBaseDirectory", archivePath.startsWith( "assembly/" ) ); } public void testPackedDependencySetWithFilenameMapping() throws Exception { AssemblyMojo mojo = getMojo( "depSet-filename-mapping-plugin-config.xml" ); MavenProject project = (MavenProject) getVariableValueFromObject( mojo, "executedProject" ); Set artifactSet = project.getArtifacts(); mojo.execute(); Map archiveMap = ArchiverManagerStub.archiverStub.getFiles(); Collection archivedFiles = archiveMap.keySet(); assertEquals( "Test number of files in archive", artifactSet.size() + 1, archivedFiles.size() ); for ( Iterator artifacts = artifactSet.iterator(); artifacts.hasNext(); ) { Artifact expected = (Artifact) artifacts.next(); assertTrue( "Test expected dependency artifacts in archive", archivedFiles.contains( expected.getFile() ) ); assertTrue( "Test expected dependency is not unpacked", expected.getFile().getName().endsWith( ".jar" ) ); JarArchiverStub.ArchiverFile archiveFile = (JarArchiverStub.ArchiverFile) archiveMap.get( expected.getFile() ); String archivePath = archiveFile.getOutputName(); String expectedName = "libs/" + expected.getVersion() + "-" + expected.getArtifactId() + "-" + expected.getGroupId(); assertTrue( "Test filename mapping was used", archivePath.equals( expectedName ) ); assertFalse( "Test includeBaseDirectory", archivePath.startsWith( "assembly/" ) ); } assertTrue( "Test project is in archive", archivedFiles.contains( project.getArtifact().getFile() ) ); assertTrue( "Test project is not unpacked", project.getArtifact().getFile().getName().endsWith( ".jar" ) ); JarArchiverStub.ArchiverFile archiveFile = (JarArchiverStub.ArchiverFile) archiveMap.get( project.getArtifact().getFile() ); String archivePath = archiveFile.getOutputName(); assertFalse( "Test includeBaseDirectory", archivePath.startsWith( "assembly/" ) ); } public void testPackedDependencySetWithFilenameMappingAndClassifier() throws Exception { AssemblyMojo mojo = getMojo( "depSet-filename-mapping-and-classifier-plugin-config.xml" ); MavenProject project = (MavenProject) getVariableValueFromObject( mojo, "executedProject" ); Set artifactSet = project.getArtifacts(); mojo.execute(); Map archiveMap = ArchiverManagerStub.archiverStub.getFiles(); Collection archivedFiles = archiveMap.keySet(); assertEquals( "Test number of files in archive", artifactSet.size() + 1, archivedFiles.size() ); for ( Iterator artifacts = artifactSet.iterator(); artifacts.hasNext(); ) { Artifact expected = (Artifact) artifacts.next(); assertTrue( "Test expected dependency artifacts in archive", archivedFiles.contains( expected.getFile() ) ); assertTrue( "Test expected dependency is not unpacked", expected.getFile().getName().endsWith( ".jar" ) ); JarArchiverStub.ArchiverFile archiveFile = (JarArchiverStub.ArchiverFile) archiveMap.get( expected.getFile() ); String archivePath = archiveFile.getOutputName(); String expectedName; if ( StringUtils.isEmpty( expected.getClassifier() ) ) { expectedName = "libs/" + expected.getVersion() + "." + expected.getArtifactId() + "." + expected.getGroupId(); } else { expectedName = "libs/" + expected.getVersion() + "." + expected.getArtifactId() + "-classifier" + "." + expected.getGroupId(); } assertEquals( "Test filename mapping was used", archivePath, expectedName ); assertFalse( "Test includeBaseDirectory", archivePath.startsWith( "assembly/" ) ); } assertTrue( "Test project is in archive", archivedFiles.contains( project.getArtifact().getFile() ) ); assertTrue( "Test project is not unpacked", project.getArtifact().getFile().getName().endsWith( ".jar" ) ); JarArchiverStub.ArchiverFile archiveFile = (JarArchiverStub.ArchiverFile) archiveMap.get( project.getArtifact().getFile() ); String archivePath = archiveFile.getOutputName(); assertFalse( "Test includeBaseDirectory", archivePath.startsWith( "assembly/" ) ); } public void testPackedDependencySetWithScope() throws Exception { AssemblyMojo mojo = getMojo( "depSet-scoped-plugin-config.xml" ); MavenProject project = (MavenProject) getVariableValueFromObject( mojo, "executedProject" ); Set artifactSet = project.getArtifacts(); mojo.execute(); Map archiveMap = ArchiverManagerStub.archiverStub.getFiles(); Collection archivedFiles = archiveMap.keySet(); for ( Iterator artifacts = artifactSet.iterator(); artifacts.hasNext(); ) { Artifact expected = (Artifact) artifacts.next(); if ( !expected.getScope().equals( Artifact.SCOPE_TEST ) ) { assertTrue( "Test expected dependency artifacts in archive", archivedFiles.contains( expected.getFile() ) ); assertTrue( "Test expected dependency is not unpacked", expected.getFile().getName().endsWith( ".jar" ) ); JarArchiverStub.ArchiverFile archiveFile = (JarArchiverStub.ArchiverFile) archiveMap.get( expected.getFile() ); String archivePath = archiveFile.getOutputName(); assertTrue( "Test includeBaseDirectory", archivePath.startsWith( "assembly/" ) ); } else { assertFalse( "Test unexpected dependency artifacts in archive", archivedFiles.contains( expected.getFile() ) ); } } assertTrue( "Test project is in archive", archivedFiles.contains( project.getArtifact().getFile() ) ); assertTrue( "Test project is not unpacked", project.getArtifact().getFile().getName().endsWith( ".jar" ) ); JarArchiverStub.ArchiverFile archiveFile = (JarArchiverStub.ArchiverFile) archiveMap.get( project.getArtifact().getFile() ); String archivePath = archiveFile.getOutputName(); assertTrue( "Test includeBaseDirectory", archivePath.startsWith( "assembly/" ) ); } public void testPackedDependencySetIncludes() throws Exception { AssemblyMojo mojo = getMojo( "depSet-includes-plugin-config.xml" ); MavenProject project = (MavenProject) getVariableValueFromObject( mojo, "executedProject" ); Set artifactSet = project.getArtifacts(); mojo.execute(); Map archiveMap = ArchiverManagerStub.archiverStub.getFiles(); Collection archivedFiles = archiveMap.keySet(); assertEquals( "Test number of files in archive", 1, archivedFiles.size() ); for ( Iterator artifacts = artifactSet.iterator(); artifacts.hasNext(); ) { Artifact depArtifact = (Artifact) artifacts.next(); if ( depArtifact.getArtifactId().equals( "dependency-artifact1" ) ) { assertTrue( "Test expected dependency artifacts in archive", archivedFiles.contains( depArtifact.getFile() ) ); assertTrue( "Test expected dependency is not unpacked", depArtifact.getFile().getName().endsWith( ".jar" ) ); JarArchiverStub.ArchiverFile archiveFile = (JarArchiverStub.ArchiverFile) archiveMap.get( depArtifact.getFile() ); String archivePath = archiveFile.getOutputName(); assertTrue( "Test includeBaseDirectory", archivePath.startsWith( "assembly/" ) ); } else { assertFalse( "Test dependency artifacts is NOT in archive", archivedFiles.contains( depArtifact.getFile() ) ); } } assertFalse( "Test project is NOT in archive", archivedFiles.contains( project.getArtifact().getFile() ) ); } public void testPackedDependencySetExcludes() throws Exception { AssemblyMojo mojo = getMojo( "depSet-excludes-plugin-config.xml" ); MavenProject project = (MavenProject) getVariableValueFromObject( mojo, "executedProject" ); Set artifactSet = project.getArtifacts(); mojo.execute(); Map archiveMap = ArchiverManagerStub.archiverStub.getFiles(); Collection archivedFiles = archiveMap.keySet(); assertEquals( "Test number of files in archive", artifactSet.size(), archivedFiles.size() ); for ( Iterator artifacts = artifactSet.iterator(); artifacts.hasNext(); ) { Artifact depArtifact = (Artifact) artifacts.next(); if ( !depArtifact.getArtifactId().equals( "dependency-artifact1" ) ) { assertTrue( "Test expected dependency artifacts in archive", archivedFiles.contains( depArtifact.getFile() ) ); assertTrue( "Test expected dependency is not unpacked", depArtifact.getFile().getName().endsWith( ".jar" ) ); JarArchiverStub.ArchiverFile archiveFile = (JarArchiverStub.ArchiverFile) archiveMap.get( depArtifact.getFile() ); String archivePath = archiveFile.getOutputName(); assertTrue( "Test includeBaseDirectory", archivePath.startsWith( "assembly/" ) ); } else { assertFalse( "Test dependency artifacts is NOT in archive", archivedFiles.contains( depArtifact.getFile() ) ); } } assertTrue( "Test project is in archive", archivedFiles.contains( project.getArtifact().getFile() ) ); assertTrue( "Test project is not unpacked", project.getArtifact().getFile().getName().endsWith( ".jar" ) ); JarArchiverStub.ArchiverFile archiveFile = (JarArchiverStub.ArchiverFile) archiveMap.get( project.getArtifact().getFile() ); String archivePath = archiveFile.getOutputName(); assertTrue( "Test includeBaseDirectory", archivePath.startsWith( "assembly/" ) ); } public void testUnpackedDependencySet() throws Exception { AssemblyMojo mojo = getMojo( "depSet-unpack-plugin-config.xml" ); MavenProject project = (MavenProject) getVariableValueFromObject( mojo, "executedProject" ); Set artifactSet = project.getArtifacts(); File workDir = (File) getVariableValueFromObject( mojo, "workDirectory" ); mojo.execute(); Collection archivedFileSet = ArchiverManagerStub.archiverStub.getFiles().keySet(); assertEquals( "Test number of files in archive", artifactSet.size() + 1, archivedFileSet.size() ); for ( Iterator artifacts = artifactSet.iterator(); artifacts.hasNext(); ) { Artifact dependency = (Artifact) artifacts.next(); String name = dependency.getArtifactId() + "-" + dependency.getVersion() + "." + dependency.getType(); File workPath = new File( workDir, name ); assertTrue( "Test if expected dependency is unpacked", workPath.exists() && workPath.isDirectory() ); assertTrue( "Test if expected dependency is in the archive", archivedFileSet.contains( workPath ) ); } String name = project.getArtifact().getArtifactId() + "-" + project.getArtifact().getVersion() + "." + project.getArtifact().getType(); File workPath = new File( workDir, name ); assertTrue( "Test if project is unpacked", workPath.exists() && workPath.isDirectory() ); assertTrue( "Test if project is in the archive", archivedFileSet.contains( workPath ) ); } public void testFileSet() throws Exception { generateTestFileSets( "\r\n" ); AssemblyMojo mojo = executeMojo( "fileSet-plugin-config.xml" ); Map archiverFiles = ArchiverManagerStub.archiverStub.getFiles(); assertEquals( "Test archive adds", archiverFiles.size(), 1 ); File key = new File( basedir, "target/test-classes/fileSet" ); JarArchiverStub.ArchiverFile file = (JarArchiverStub.ArchiverFile) archiverFiles.get( key ); assertNotNull( "Test expected FileSet", file ); assertNull( "Test includes", file.getIncludes() ); assertTrue( "Test excludes", assertEquals( FileUtils.getDefaultExcludesAsList().toArray( new String[0] ), file.getExcludes() ) ); } public void testFileSetWithArchiveBaseDir() throws Exception { generateTestFileSets( "\r\n" ); AssemblyMojo mojo = executeMojo( "fileSet-archiveBaseDir-plugin-config.xml" ); Map archiverFiles = ArchiverManagerStub.archiverStub.getFiles(); assertEquals( "Test archive adds", archiverFiles.size(), 1 ); File key = new File( basedir, "target/test-classes/fileSet" ); JarArchiverStub.ArchiverFile file = (JarArchiverStub.ArchiverFile) archiverFiles.get( key ); assertNotNull( "Test expected FileSet", file ); assertNull( "Test includes", file.getIncludes() ); assertTrue( "Test excludes", assertEquals( FileUtils.getDefaultExcludesAsList().toArray( new String[0] ), file.getExcludes() ) ); } public void testFileSetIncludesExcludes() throws Exception { generateTestFileSets( "\r\n" ); AssemblyMojo mojo = executeMojo( "fileSet-includes-excludes-plugin-config.xml" ); Map archiverFiles = ArchiverManagerStub.archiverStub.getFiles(); assertEquals( "Test archive adds", archiverFiles.size(), 1 ); File key = new File( basedir, "target/test-classes/fileSet" ); JarArchiverStub.ArchiverFile file = (JarArchiverStub.ArchiverFile) archiverFiles.get( key ); assertNotNull( "Test expected FileSet", file ); assertTrue( "Test includes", assertEquals( new String[]{"**/*.txt"}, file.getIncludes() ) ); List excludesList = new ArrayList(); excludesList.add( "**/*.xml" ); excludesList.addAll( FileUtils.getDefaultExcludesAsList() ); assertTrue( "Test excludes", assertEquals( excludesList.toArray( new String[0] ), file.getExcludes() ) ); } public void testFileSetUnixLineEndings() throws Exception { generateTestFileSets( "\r\n" ); AssemblyMojo mojo = executeMojo( "fileSet-unix-lineEndings-plugin-config.xml" ); Map archiverFiles = ArchiverManagerStub.archiverStub.getFiles(); assertEquals( "Test archive adds", archiverFiles.size(), 1 ); File key = new File( basedir, "target/test-classes/fileSet" ); JarArchiverStub.ArchiverFile file = (JarArchiverStub.ArchiverFile) archiverFiles.get( key ); assertNull( "Test original FileSet is not in archive", file ); File tempRoot = (File) getVariableValueFromObject( mojo, "tempRoot" ); File tempDir = (File) archiverFiles.keySet().iterator().next(); assertTrue( "Test if dir is in tempRoot", tempDir.getAbsolutePath().startsWith( tempRoot.getAbsolutePath() ) ); String newFile = tempDir.getAbsolutePath() + "/hibernate.hbm.xml"; String unixContents = FileUtils.fileRead( newFile ); assertTrue( "Test if modified file exists in tempRoot", FileUtils.fileExists( newFile ) ); assertTrue( "Test if all \\r\\n are replaced", unixContents.indexOf( "\r\n" ) < 0 ); newFile = tempDir.getAbsolutePath() + "/LICENSE.txt"; unixContents = FileUtils.fileRead( newFile ); assertTrue( "Test if modified file exists in tempRoot", FileUtils.fileExists( newFile ) ); assertTrue( "Test if all \\r\\n are replaced", unixContents.indexOf( "\r\n" ) < 0 ); newFile = tempDir.getAbsolutePath() + "/README.txt"; unixContents = FileUtils.fileRead( newFile ); assertTrue( "Test if modified file exists in tempRoot", FileUtils.fileExists( newFile ) ); assertTrue( "Test if all \\r\\n are replaced", unixContents.indexOf( "\r\n" ) < 0 ); newFile = tempDir.getAbsolutePath() + "/configs/config.txt"; unixContents = FileUtils.fileRead( newFile ); assertTrue( "Test if modified file exists in tempRoot", FileUtils.fileExists( newFile ) ); assertTrue( "Test if all \\r\\n are replaced", unixContents.indexOf( "\r\n" ) < 0 ); } public void testFileSetLFLineEndings() throws Exception { generateTestFileSets( "\r\n" ); AssemblyMojo mojo = executeMojo( "fileSet-lf-lineEndings-plugin-config.xml" ); Map archiverFiles = ArchiverManagerStub.archiverStub.getFiles(); assertEquals( "Test archive adds", archiverFiles.size(), 1 ); File key = new File( basedir, "target/test-classes/fileSet" ); JarArchiverStub.ArchiverFile file = (JarArchiverStub.ArchiverFile) archiverFiles.get( key ); assertNull( "Test original FileSet is not in archive", file ); File tempRoot = (File) getVariableValueFromObject( mojo, "tempRoot" ); File tempDir = (File) archiverFiles.keySet().iterator().next(); assertTrue( "Test if dir is in tempRoot", tempDir.getAbsolutePath().startsWith( tempRoot.getAbsolutePath() ) ); String newFile = tempDir.getAbsolutePath() + "/hibernate.hbm.xml"; String unixContents = FileUtils.fileRead( newFile ); assertTrue( "Test if modified file exists in tempRoot", FileUtils.fileExists( newFile ) ); assertTrue( "Test if all \\r\\n are replaced", unixContents.indexOf( "\r\n" ) < 0 ); newFile = tempDir.getAbsolutePath() + "/LICENSE.txt"; unixContents = FileUtils.fileRead( newFile ); assertTrue( "Test if modified file exists in tempRoot", FileUtils.fileExists( newFile ) ); assertTrue( "Test if all \\r\\n are replaced", unixContents.indexOf( "\r\n" ) < 0 ); newFile = tempDir.getAbsolutePath() + "/README.txt"; unixContents = FileUtils.fileRead( newFile ); assertTrue( "Test if modified file exists in tempRoot", FileUtils.fileExists( newFile ) ); assertTrue( "Test if all \\r\\n are replaced", unixContents.indexOf( "\r\n" ) < 0 ); newFile = tempDir.getAbsolutePath() + "/configs/config.txt"; unixContents = FileUtils.fileRead( newFile ); assertTrue( "Test if modified file exists in tempRoot", FileUtils.fileExists( newFile ) ); assertTrue( "Test if all \\r\\n are replaced", unixContents.indexOf( "\r\n" ) < 0 ); } public void testFileSetDOSLineEndings() throws Exception { generateTestFileSets( "\n" ); AssemblyMojo mojo = executeMojo( "fileSet-dos-lineEndings-plugin-config.xml" ); Map archiverFiles = ArchiverManagerStub.archiverStub.getFiles(); assertEquals( "Test archive adds", archiverFiles.size(), 1 ); File key = new File( basedir, "target/test-classes/fileSet" ); JarArchiverStub.ArchiverFile file = (JarArchiverStub.ArchiverFile) archiverFiles.get( key ); assertNull( "Test original FileSet is not in archive", file ); File tempRoot = (File) getVariableValueFromObject( mojo, "tempRoot" ); File tempDir = (File) archiverFiles.keySet().iterator().next(); assertTrue( "Test if dir is in tempRoot", tempDir.getAbsolutePath().startsWith( tempRoot.getAbsolutePath() ) ); String newFile = tempDir.getAbsolutePath() + "/hibernate.hbm.xml"; String unixContents = FileUtils.fileRead( newFile ); assertTrue( "Test if modified file exists in tempRoot", FileUtils.fileExists( newFile ) ); assertTrue( "Test if all \\r\\n are replaced", unixContents.indexOf( "\r\n" ) >= 0 ); newFile = tempDir.getAbsolutePath() + "/LICENSE.txt"; unixContents = FileUtils.fileRead( newFile ); assertTrue( "Test if modified file exists in tempRoot", FileUtils.fileExists( newFile ) ); assertTrue( "Test if all \\r\\n are replaced", unixContents.indexOf( "\r\n" ) >= 0 ); newFile = tempDir.getAbsolutePath() + "/README.txt"; unixContents = FileUtils.fileRead( newFile ); assertTrue( "Test if modified file exists in tempRoot", FileUtils.fileExists( newFile ) ); assertTrue( "Test if all \\r\\n are replaced", unixContents.indexOf( "\r\n" ) >= 0 ); newFile = tempDir.getAbsolutePath() + "/configs/config.txt"; unixContents = FileUtils.fileRead( newFile ); assertTrue( "Test if modified file exists in tempRoot", FileUtils.fileExists( newFile ) ); assertTrue( "Test if all \\r\\n are replaced", unixContents.indexOf( "\r\n" ) >= 0 ); } public void testFileSetCRLFLineEndings() throws Exception { generateTestFileSets( "\n" ); AssemblyMojo mojo = executeMojo( "fileSet-crlf-lineEndings-plugin-config.xml" ); Map archiverFiles = ArchiverManagerStub.archiverStub.getFiles(); assertEquals( "Test archive adds", archiverFiles.size(), 1 ); File key = new File( basedir, "target/test-classes/fileSet" ); JarArchiverStub.ArchiverFile file = (JarArchiverStub.ArchiverFile) archiverFiles.get( key ); assertNull( "Test original FileSet is not in archive", file ); File tempRoot = (File) getVariableValueFromObject( mojo, "tempRoot" ); File tempDir = (File) archiverFiles.keySet().iterator().next(); assertTrue( "Test if dir is in tempRoot", tempDir.getAbsolutePath().startsWith( tempRoot.getAbsolutePath() ) ); String newFile = tempDir.getAbsolutePath() + "/hibernate.hbm.xml"; String unixContents = FileUtils.fileRead( newFile ); assertTrue( "Test if modified file exists in tempRoot", FileUtils.fileExists( newFile ) ); assertTrue( "Test if all \\r\\n are replaced", unixContents.indexOf( "\r\n" ) >= 0 ); newFile = tempDir.getAbsolutePath() + "/LICENSE.txt"; unixContents = FileUtils.fileRead( newFile ); assertTrue( "Test if modified file exists in tempRoot", FileUtils.fileExists( newFile ) ); assertTrue( "Test if all \\r\\n are replaced", unixContents.indexOf( "\r\n" ) >= 0 ); newFile = tempDir.getAbsolutePath() + "/README.txt"; unixContents = FileUtils.fileRead( newFile ); assertTrue( "Test if modified file exists in tempRoot", FileUtils.fileExists( newFile ) ); assertTrue( "Test if all \\r\\n are replaced", unixContents.indexOf( "\r\n" ) >= 0 ); newFile = tempDir.getAbsolutePath() + "/configs/config.txt"; unixContents = FileUtils.fileRead( newFile ); assertTrue( "Test if modified file exists in tempRoot", FileUtils.fileExists( newFile ) ); assertTrue( "Test if all \\r\\n are replaced", unixContents.indexOf( "\r\n" ) >= 0 ); } public void testFileSetInvalidLineEndings() throws Exception { try { executeMojo( "fileSet-lineEndings-exception-plugin-config.xml" ); fail( "Expected exception not thrown" ); } catch ( MojoFailureException e ) { // expected } } public void testFileSetDirectoryDoesntExist() throws Exception { executeMojo( "fileSet-doesnt-exist-plugin-config.xml" ); assertTrue( true ); } public void testFileSetWithNoDirectoryInAssemblyXml() throws Exception { AssemblyMojo mojo = executeMojo( "fileSet-no-directory-plugin-config.xml" ); File basedir = (File) getVariableValueFromObject( mojo, "basedir" ); Map archivedFiles = ArchiverManagerStub.archiverStub.getFiles(); assertNotNull( "Test if basedir is used when is not given", archivedFiles.remove( basedir ) ); assertTrue( "Test that there are no other files added", archivedFiles.isEmpty() ); } public void testFileItem() throws Exception { generateTestFileSets( "\r\n" ); AssemblyMojo mojo = executeMojo( "fileItem-plugin-config.xml" ); Map archiverFiles = ArchiverManagerStub.archiverStub.getFiles(); assertEquals( "Test archive files", 2, archiverFiles.size() ); Iterator files = archiverFiles.keySet().iterator(); File archivedFile = (File) files.next(); assertTrue( "Test if archived file exists", archivedFile.exists() ); if ( "README.txt".equals( archivedFile.getName() ) ) { String contents = FileUtils.fileRead( archivedFile.getAbsolutePath() ); assertTrue( "Test if file filtering is disabled", contents.indexOf( "${project.artifactId}" ) >= 0 ); } archivedFile = (File) files.next(); assertTrue( "Test if archived file exists", archivedFile.exists() ); if ( "README.txt".equals( archivedFile.getName() ) ) { String contents = FileUtils.fileRead( archivedFile.getAbsolutePath() ); assertTrue( "Test if file filtering is disabled", contents.indexOf( "${project.artifactId}" ) >= 0 ); } } public void testFileItemWithOutputName() throws Exception { generateTestFileSets( "\r\n" ); executeMojo( "fileItem-output-name-plugin-config.xml" ); Map archiverFiles = ArchiverManagerStub.archiverStub.getFiles(); assertEquals( "Test archive files", 1, archiverFiles.size() ); File archivedFile = (File) archiverFiles.keySet().iterator().next(); JarArchiverStub.ArchiverFile file = (JarArchiverStub.ArchiverFile) archiverFiles.get( archivedFile ); assertEquals( "Test archive file path", "assembly/output/READTHIS.txt", file.getOutputName() ); assertTrue( "Test if archived file exists", archivedFile.exists() ); String contents = FileUtils.fileRead( archivedFile.getAbsolutePath() ); assertTrue( "Test if file filtering is disabled", contents.indexOf( "${project.artifactId}" ) >= 0 ); } public void testFileItemWithFiltering() throws Exception { generateTestFileSets( "\r\n" ); executeMojo( "fileItem-filtered-plugin-config.xml" ); Map archiverFiles = ArchiverManagerStub.archiverStub.getFiles(); assertEquals( "Test archive files", 1, archiverFiles.size() ); File archivedFile = (File) archiverFiles.keySet().iterator().next(); assertTrue( "Test if archived file exists", archivedFile.exists() ); String contents = FileUtils.fileRead( archivedFile.getAbsolutePath() ); assertTrue( "Test if file filtering is enabled", contents.indexOf( "${project.artifactId}" ) < 0 ); } public void testFileItemFilteringWithFilterFile() throws Exception { generateTestFileSets( "\n" ); File filterFile = new File( basedir, "target/test-classes/fileSet/filterFile.properties" ); String fileContents = "sentence=This sentence came from a filter file."; FileUtils.fileWrite( filterFile.getAbsolutePath(), fileContents ); executeMojo( "fileItem-filter-file-plugin-config.xml" ); Map archiverFiles = ArchiverManagerStub.archiverStub.getFiles(); assertEquals( "Test archive files", 1, archiverFiles.size() ); File archivedFile = (File) archiverFiles.keySet().iterator().next(); assertTrue( "Test if archived file exists", archivedFile.exists() ); String contents = FileUtils.fileRead( archivedFile.getAbsolutePath() ); assertTrue( "Test if file filtering for ${project} is enabled", contents.indexOf( "${project.artifactId}" ) < 0 ); assertTrue( "Test if file filtering for ${sentence} is enabled", contents.indexOf( "${sentence}" ) < 0 ); } public void testFileItemLineEndings() throws Exception { generateTestFileSets( "\r\n" ); executeMojo( "fileItem-lineEndings-plugin-config.xml" ); Map archiverFiles = ArchiverManagerStub.archiverStub.getFiles(); assertEquals( "Test archive files", 1, archiverFiles.size() ); File archivedFile = (File) archiverFiles.keySet().iterator().next(); assertTrue( "Test if archived file exists", archivedFile.exists() ); String contents = FileUtils.fileRead( archivedFile.getAbsolutePath() ); assertTrue( "Test file line endings", contents.indexOf( "\r\n" ) < 0 ); } public void testFileItemFileMode() throws Exception { generateTestFileSets( "\r\n" ); executeMojo( "fileItem-fileMode-plugin-config.xml" ); Map archiverFiles = ArchiverManagerStub.archiverStub.getFiles(); assertEquals( "Test archive files", 1, archiverFiles.size() ); File archivedFile = (File) archiverFiles.keySet().iterator().next(); assertTrue( "Test if archived file exists", archivedFile.exists() ); JarArchiverStub.ArchiverFile file = (JarArchiverStub.ArchiverFile) archiverFiles.get( archivedFile ); assertEquals( "Test file mode", 777, file.getFileMode() ); } public void testModuleSet() throws Exception { AssemblyMojo mojo = getMojo( "moduleSet-plugin-config.xml" ); MavenProject project = (MavenProject) getVariableValueFromObject( mojo, "executedProject" ); List reactorProjectsList = (List) getVariableValueFromObject( mojo, "reactorProjects" ); for ( Iterator reactorProjects = reactorProjectsList.iterator(); reactorProjects.hasNext(); ) { MavenProject reactorProject = (MavenProject) reactorProjects.next(); reactorProject.setParent( project ); } mojo.execute(); assertTrue( "Test an archive was created", ArchiverManagerStub.archiverStub.getDestFile().exists() ); File workDir = (File) getVariableValueFromObject( mojo, "workDirectory" ); Map archiverFiles = ArchiverManagerStub.archiverStub.getFiles(); for ( Iterator reactorProjects = reactorProjectsList.iterator(); reactorProjects.hasNext(); ) { MavenProject reactorProject = (MavenProject) reactorProjects.next(); File unpacked = new File( workDir, reactorProject.getBuild().getFinalName() ); assertTrue( "Test if reactor project was unpacked in work directory", unpacked.exists() ); assertTrue( "Test if unpacked directory is in the archive", archiverFiles.containsKey( unpacked ) ); archiverFiles.remove( unpacked ); File metaInf = new File( unpacked, "META-INF" ); if ( metaInf.exists() && metaInf.listFiles().length > 0 ) { testSignatureFiles( metaInf ); } File srcDir = reactorProject.getBasedir(); assertTrue( "Test if reactor sources is in the archive", archiverFiles.containsKey( srcDir ) ); archiverFiles.remove( srcDir ); } assertEquals( "Test that there are no other archive files added", 0, archiverFiles.size() ); } public void testModuleSetIncludes() throws Exception { ReactorMavenProjectStub.reactorProjects.clear(); AssemblyMojo mojo = getMojo( "moduleSet-includes-plugin-config.xml" ); MavenProject project = (MavenProject) getVariableValueFromObject( mojo, "executedProject" ); List reactorProjectsList = (List) getVariableValueFromObject( mojo, "reactorProjects" ); for ( Iterator reactorProjects = reactorProjectsList.iterator(); reactorProjects.hasNext(); ) { MavenProject reactorProject = (MavenProject) reactorProjects.next(); reactorProject.setParent( project ); } mojo.execute(); assertTrue( "Test an archive was created", ArchiverManagerStub.archiverStub.getDestFile().exists() ); Map archiverFiles = ArchiverManagerStub.archiverStub.getFiles(); File workDir = (File) getVariableValueFromObject( mojo, "workDirectory" ); File unpacked = new File( workDir, "reactor-project-1-1.0.jar" ); assertTrue( "Test if reactor project was unpacked in work directory", unpacked.exists() ); assertTrue( "Test if unpacked directory is in the archive", archiverFiles.containsKey( unpacked ) ); archiverFiles.remove( unpacked ); File metaInf = new File( unpacked, "META-INF" ); if ( metaInf.exists() && metaInf.listFiles().length > 0 ) { testSignatureFiles( metaInf ); } File srcDir = new File( workDir.getParentFile(), "reactor-project-1" ); assertTrue( "Test if reactor project sources is in the archive", archiverFiles.containsKey( srcDir ) ); archiverFiles.remove( srcDir ); assertEquals( "Test that there are no other archive files added", 0, archiverFiles.size() ); } public void testModuleSetExcludes() throws Exception { ReactorMavenProjectStub.reactorProjects.clear(); AssemblyMojo mojo = getMojo( "moduleSet-excludes-plugin-config.xml" ); MavenProject project = (MavenProject) getVariableValueFromObject( mojo, "executedProject" ); List reactorProjectsList = (List) getVariableValueFromObject( mojo, "reactorProjects" ); for ( Iterator reactorProjects = reactorProjectsList.iterator(); reactorProjects.hasNext(); ) { MavenProject reactorProject = (MavenProject) reactorProjects.next(); reactorProject.setParent( project ); } mojo.execute(); assertTrue( "Test an archive was created", ArchiverManagerStub.archiverStub.getDestFile().exists() ); Map archiverFiles = ArchiverManagerStub.archiverStub.getFiles(); File workDir = (File) getVariableValueFromObject( mojo, "workDirectory" ); File unpacked = new File( workDir, "reactor-project-2-1.0.jar" ); assertTrue( "Test if reactor project was unpacked in work directory", unpacked.exists() ); assertTrue( "Test if unpacked directory is in the archive", archiverFiles.containsKey( unpacked ) ); archiverFiles.remove( unpacked ); File metaInf = new File( unpacked, "META-INF" ); if ( metaInf.exists() && metaInf.listFiles().length > 0 ) { testSignatureFiles( metaInf ); } File srcDir = new File( workDir.getParentFile(), "reactor-project-2" ); assertTrue( "Test if reactor project sources is in the archive", archiverFiles.containsKey( srcDir ) ); archiverFiles.remove( srcDir ); assertEquals( "Test that there are no other archive files added", 0, archiverFiles.size() ); } public void testModuleSetIncludeDependencies() throws Exception { AssemblyMojo mojo = getMojo( "moduleSet-include-dependencies-plugin-config.xml" ); MavenProject project = (MavenProject) getVariableValueFromObject( mojo, "executedProject" ); List reactorProjectsList = (List) getVariableValueFromObject( mojo, "reactorProjects" ); for ( Iterator reactorProjects = reactorProjectsList.iterator(); reactorProjects.hasNext(); ) { MavenProject reactorProject = (MavenProject) reactorProjects.next(); reactorProject.setParent( project ); } mojo.execute(); assertTrue( "Test an archive was created", ArchiverManagerStub.archiverStub.getDestFile().exists() ); File workDir = (File) getVariableValueFromObject( mojo, "workDirectory" ); Map archiverFiles = ArchiverManagerStub.archiverStub.getFiles(); for ( Iterator reactorProjects = reactorProjectsList.iterator(); reactorProjects.hasNext(); ) { MavenProject reactorProject = (MavenProject) reactorProjects.next(); File unpacked = new File( workDir, reactorProject.getBuild().getFinalName() ); assertTrue( "Test if reactor project is unpacked in work directory", unpacked.exists() ); File dependency = new File( unpacked, "reactor-dependency-1.0.jar.extracted" ); assertTrue( "Test if reactor dependency is also unpacked", dependency.exists() ); assertTrue( "Test if unpacked directory is in the archive", archiverFiles.containsKey( unpacked ) ); archiverFiles.remove( unpacked ); File metaInf = new File( unpacked, "META-INF" ); if ( metaInf.exists() && metaInf.listFiles().length > 0 ) { testSignatureFiles( metaInf ); } File srcDir = reactorProject.getBasedir(); assertTrue( "Test if reactor sources is in the archive", archiverFiles.containsKey( srcDir ) ); archiverFiles.remove( srcDir ); } assertEquals( "Test that there are no other archive files added", 0, archiverFiles.size() ); } public void testModuleSetPacked() throws Exception { ReactorMavenProjectStub.reactorProjects.clear(); AssemblyMojo mojo = getMojo( "moduleSet-packed-plugin-config.xml" ); MavenProject project = (MavenProject) getVariableValueFromObject( mojo, "executedProject" ); List reactorProjectsList = (List) getVariableValueFromObject( mojo, "reactorProjects" ); for ( Iterator reactorProjects = reactorProjectsList.iterator(); reactorProjects.hasNext(); ) { MavenProject reactorProject = (MavenProject) reactorProjects.next(); reactorProject.setParent( project ); } mojo.execute(); assertTrue( "Test an archive was created", ArchiverManagerStub.archiverStub.getDestFile().exists() ); Map archiverFiles = ArchiverManagerStub.archiverStub.getFiles(); File workDir = (File) getVariableValueFromObject( mojo, "workDirectory" ); for ( Iterator reactorProjects = reactorProjectsList.iterator(); reactorProjects.hasNext(); ) { MavenProject reactorProject = (MavenProject) reactorProjects.next(); assertFalse( "Test if work directory is used", workDir.exists() ); File reactorProjectFile = reactorProject.getArtifact().getFile(); assertNotNull( "Test if reactor project is in the archive", archiverFiles.remove( reactorProjectFile ) ); Artifact artifact = (Artifact) reactorProject.getArtifacts().iterator().next(); File depFile = artifact.getFile(); assertNull( "Test if reactor dependency is not in the archive", archiverFiles.remove( depFile ) ); } assertTrue( "Test that there are no other archive files added", archiverFiles.isEmpty() ); } public void testModuleSetPackedIncludingDependencies() throws Exception { ReactorMavenProjectStub.reactorProjects.clear(); AssemblyMojo mojo = getMojo( "moduleSet-packed-including-dependencies-plugin-config.xml" ); MavenProject project = (MavenProject) getVariableValueFromObject( mojo, "executedProject" ); List reactorProjectsList = (List) getVariableValueFromObject( mojo, "reactorProjects" ); for ( Iterator reactorProjects = reactorProjectsList.iterator(); reactorProjects.hasNext(); ) { MavenProject reactorProject = (MavenProject) reactorProjects.next(); reactorProject.setParent( project ); } mojo.execute(); assertTrue( "Test an archive was created", ArchiverManagerStub.archiverStub.getDestFile().exists() ); Map archiverFiles = ArchiverManagerStub.archiverStub.getFiles(); File workDir = (File) getVariableValueFromObject( mojo, "workDirectory" ); for ( Iterator reactorProjects = reactorProjectsList.iterator(); reactorProjects.hasNext(); ) { MavenProject reactorProject = (MavenProject) reactorProjects.next(); assertFalse( "Test if work directory is used", workDir.exists() ); File reactorProjectFile = reactorProject.getArtifact().getFile(); assertNotNull( "Test if reactor project is in the archive", archiverFiles.remove( reactorProjectFile ) ); Artifact artifact = (Artifact) reactorProject.getArtifacts().iterator().next(); File depFile = artifact.getFile(); assertNotNull( "Test if reactor dependency is also in the archive", archiverFiles.remove( depFile ) ); } assertTrue( "Test that there are no other archive files added", archiverFiles.isEmpty() ); } public void testRepository() throws Exception { AssemblyMojo mojo = executeMojo( "repository-plugin-config.xml" ); File tempRoot = (File) getVariableValueFromObject( mojo, "tempRoot" ); File tmpRepositoryDir = new File( tempRoot, "repository" ); assertTrue( "Test if repository output directory is used", tmpRepositoryDir.exists() ); String repoPath = "assembly/dependency-artifact/1.0/dependency-artifact-1.0."; File tmpArtifactJar = new File( tmpRepositoryDir, repoPath + "jar" ); assertTrue( "Test if dependency artifact is in repository", tmpArtifactJar.exists() ); assertTrue( "Test if md5 was generated", new File( tmpRepositoryDir, repoPath + "jar.md5" ).exists() ); assertTrue( "Test if sha1 was generated", new File( tmpRepositoryDir, repoPath + "jar.sha1" ).exists() ); File tmpArtifactPom = new File( tmpRepositoryDir, repoPath + "pom" ); assertTrue( "Test if dependency artifact is in repository", tmpArtifactPom.exists() ); assertTrue( "Test if md5 was generated", new File( tmpRepositoryDir, repoPath + "pom.md5" ).exists() ); assertTrue( "Test if sha1 was generated", new File( tmpRepositoryDir, repoPath + "pom.sha1" ).exists() ); } public void testRepositoryWithMetadata() throws Exception { AssemblyMojo mojo = executeMojo( "repository-with-metadata-plugin-config.xml" ); File tempRoot = (File) getVariableValueFromObject( mojo, "tempRoot" ); File tmpRepositoryDir = new File( tempRoot, "repository" ); assertTrue( "Test if repository output directory is used", tmpRepositoryDir.exists() ); String repoPath = "assembly/dependency-artifact/1.0/dependency-artifact-1.0."; File tmpArtifactJar = new File( tmpRepositoryDir, repoPath + "jar" ); assertTrue( "Test if dependency artifact is in repository", tmpArtifactJar.exists() ); assertTrue( "Test if md5 was generated", new File( tmpRepositoryDir, repoPath + "jar.md5" ).exists() ); assertTrue( "Test if sha1 was generated", new File( tmpRepositoryDir, repoPath + "jar.sha1" ).exists() ); File tmpArtifactPom = new File( tmpRepositoryDir, repoPath + "pom" ); assertTrue( "Test if dependency artifact is in repository", tmpArtifactPom.exists() ); assertTrue( "Test if md5 was generated", new File( tmpRepositoryDir, repoPath + "pom.md5" ).exists() ); assertTrue( "Test if sha1 was generated", new File( tmpRepositoryDir, repoPath + "pom.sha1" ).exists() ); File tmpArtifactMetadatadir = new File( tmpRepositoryDir, "assembly/dependency-artifact" ); File metadataXml = new File( tmpArtifactMetadatadir, "maven-metadata.xml" ); assertTrue( "Test if metadata was created", metadataXml.exists() ); assertTrue( "Test if metadata md5 was generated", new File( tmpArtifactMetadatadir, "maven-metadata.xml.md5" ).exists() ); assertTrue( "Test if metadata md5 was generated", new File( tmpArtifactMetadatadir, "maven-metadata.xml.sha1" ).exists() ); metadataXml = new File( tmpArtifactMetadatadir, "maven-metadata-central.xml" ); assertTrue( "Test if metadata was created", metadataXml.exists() ); assertTrue( "Test if metadata md5 was generated", new File( tmpArtifactMetadatadir, "maven-metadata-central.xml.md5" ).exists() ); assertTrue( "Test if metadata md5 was generated", new File( tmpArtifactMetadatadir, "maven-metadata-central.xml.sha1" ).exists() ); } public void testRepositoryGroupVersionAlignment() throws Exception { AssemblyMojo mojo = executeMojo( "repository-groupVersionAlignment-plugin-config.xml" ); File tempRoot = (File) getVariableValueFromObject( mojo, "tempRoot" ); File tmpRepositoryDir = new File( tempRoot, "repository" ); assertTrue( "Test if repository output directory is used", tmpRepositoryDir.exists() ); String repoPath = "assembly/dependency-artifact/1.1/dependency-artifact-1.1."; File tmpArtifactJar = new File( tmpRepositoryDir, repoPath + "jar" ); assertTrue( "Test if dependency artifact is in repository", tmpArtifactJar.exists() ); assertTrue( "Test if md5 was generated", new File( tmpRepositoryDir, repoPath + "jar.md5" ).exists() ); assertTrue( "Test if sha1 was generated", new File( tmpRepositoryDir, repoPath + "jar.sha1" ).exists() ); File tmpArtifactPom = new File( tmpRepositoryDir, repoPath + "pom" ); assertTrue( "Test if dependency artifact is in repository", tmpArtifactPom.exists() ); assertTrue( "Test if md5 was generated", new File( tmpRepositoryDir, repoPath + "pom.md5" ).exists() ); assertTrue( "Test if sha1 was generated", new File( tmpRepositoryDir, repoPath + "pom.sha1" ).exists() ); } public void testRepositoryGroupVersionAlignmentExcludes() throws Exception { AssemblyMojo mojo = executeMojo( "repository-groupVersionAlignment-excludes-plugin-config.xml" ); File tempRoot = (File) getVariableValueFromObject( mojo, "tempRoot" ); File tmpRepositoryDir = new File( tempRoot, "repository" ); assertTrue( "Test if repository output directory is used", tmpRepositoryDir.exists() ); String repoPath = "assembly/dependency-artifact/1.0/dependency-artifact-1.0."; File tmpArtifactJar = new File( tmpRepositoryDir, repoPath + "jar" ); assertTrue( "Test if dependency artifact is in repository", tmpArtifactJar.exists() ); assertTrue( "Test if md5 was generated", new File( tmpRepositoryDir, repoPath + "jar.md5" ).exists() ); assertTrue( "Test if sha1 was generated", new File( tmpRepositoryDir, repoPath + "jar.sha1" ).exists() ); File tmpArtifactPom = new File( tmpRepositoryDir, repoPath + "pom" ); assertTrue( "Test if dependency artifact is in repository", tmpArtifactPom.exists() ); assertTrue( "Test if md5 was generated", new File( tmpRepositoryDir, repoPath + "pom.md5" ).exists() ); assertTrue( "Test if sha1 was generated", new File( tmpRepositoryDir, repoPath + "pom.sha1" ).exists() ); } public void testMASSEMBLY98() throws Exception { AssemblyMojo mojo = executeMojo( "MASSEMBLY-98-plugin-config.xml" ); File tempRoot = (File) getVariableValueFromObject( mojo, "tempRoot" ); File tmpRepositoryDir = new File( tempRoot, "repository" ); assertTrue( "Test if repository output directory is used", tmpRepositoryDir.exists() ); String repoPath = "assembly/dependency-artifact/1.1/dependency-artifact-1.1."; File tmpArtifactJar = new File( tmpRepositoryDir, repoPath + "jar" ); assertTrue( "Test if dependency artifact is in repository", tmpArtifactJar.exists() ); assertTrue( "Test if md5 was generated", new File( tmpRepositoryDir, repoPath + "jar.md5" ).exists() ); assertTrue( "Test if sha1 was generated", new File( tmpRepositoryDir, repoPath + "jar.sha1" ).exists() ); File tmpArtifactPom = new File( tmpRepositoryDir, repoPath + "pom" ); assertTrue( "Test if dependency artifact is in repository", tmpArtifactPom.exists() ); assertTrue( "Test if md5 was generated", new File( tmpRepositoryDir, repoPath + "pom.md5" ).exists() ); assertTrue( "Test if sha1 was generated", new File( tmpRepositoryDir, repoPath + "pom.sha1" ).exists() ); } public void testComponents() throws Exception { AssemblyMojo mojo = executeMojo( "component-plugin-config.xml" ); Map archivedFiles = ArchiverManagerStub.archiverStub.getFiles(); MavenProject project = (MavenProject) getVariableValueFromObject( mojo, "project" ); assertNotNull( "Test if project jar is in archive", archivedFiles.remove( project.getArtifact().getFile() ) ); File fileSetDir = new File( PlexusTestCase.getBasedir(), "target/test-classes/fileSet" ); assertNotNull( "Test if FileSet is in the archive", archivedFiles.remove( fileSetDir ) ); File readme = new File( PlexusTestCase.getBasedir(), "target/test-classes/fileSet/README.txt" ); assertNotNull( "Test if FileItem README.txt is in the archive", archivedFiles.remove( readme ) ); File license = new File( PlexusTestCase.getBasedir(), "target/test-classes/fileSet/LICENSE.txt" ); assertNotNull( "Test if FileItem LICENSE.txt is in the archive", archivedFiles.remove( license ) ); assertTrue( "Test there are no more files in the archive", archivedFiles.isEmpty() ); } public void testPlexusComponents() throws Exception { File plexusDir = new File( basedir + "/target/test-classes/fileSet/META-INF/plexus" ); plexusDir.mkdirs(); String fileContents = "\n \n \n class.Role" + "\n class.Implementation\n \n " + "\n"; FileUtils.fileWrite( new File( plexusDir, "components.xml" ).getAbsolutePath(), fileContents ); AssemblyMojo mojo = executeMojo( "plexus-components-plugin-config.xml" ); Map files = ArchiverManagerStub.archiverStub.getFiles(); File fileSetDir = new File( PlexusTestCase.getBasedir() + "/target/test-classes/fileSet" ); assertNotNull( "Test if FileSet is in the archive", files.remove( fileSetDir ) ); File componentXml = (File) files.keySet().iterator().next(); files.remove( componentXml ); assertTrue( "Test if componentXml tmp file was created", componentXml.exists() ); FileReader fileReader = new FileReader( componentXml ); assertNotNull( "Test if componentXml is correctly created", Xpp3DomBuilder.build( fileReader ) ); assertTrue( "Test there are no more files in the archive", files.isEmpty() ); } public void testIncludeSiteDirectory() throws Exception { AssemblyMojo mojo = getMojo( "includeSite-plugin-config.xml" ); File siteDir = (File) getVariableValueFromObject( mojo, "siteDirectory" ); siteDir.mkdirs(); mojo.execute(); assertTrue( "Test an archive was created", ArchiverManagerStub.archiverStub.getDestFile().exists() ); Map files = ArchiverManagerStub.archiverStub.getFiles(); assertTrue( "Test if site directory was added", files.containsKey( siteDir ) ); } public void testTarGzipArchive() throws Exception { executeMojo( "tar-gz-plugin-config.xml" ); TarArchiver.TarCompressionMethod method = (TarArchiver.TarCompressionMethod) getVariableValueFromObject( ArchiverManagerStub.archiverStub, "tarCompressionMethod" ); assertEquals( "Test Tar compression method", "gzip", method.getValue() ); TarLongFileMode longFileMode = (TarLongFileMode) getVariableValueFromObject( ArchiverManagerStub.archiverStub, "longFileMode" ); assertTrue( "Test tar long file mode default", longFileMode.isWarnMode() ); } public void testTarBzip2Archive() throws Exception { executeMojo( "tar-bz2-plugin-config.xml" ); TarArchiver.TarCompressionMethod method = (TarArchiver.TarCompressionMethod) getVariableValueFromObject( ArchiverManagerStub.archiverStub, "tarCompressionMethod" ); assertEquals( "Test Tar compression method", "bzip2", method.getValue() ); TarLongFileMode longFileMode = (TarLongFileMode) getVariableValueFromObject( ArchiverManagerStub.archiverStub, "longFileMode" ); assertTrue( "Test tar long file mode default", longFileMode.isFailMode() ); } public void testWarArchive() throws Exception { executeMojo( "war-plugin-config.xml" ); WarArchiverStub archiver = (WarArchiverStub) ArchiverManagerStub.archiverStub; assertFalse( "Test that web.xml is not ignored", archiver.getIgnoreWebxml() ); } public void testManifestFile() throws Exception { String contents = "Manifest-Version: 1.0\n" + "Archiver-Version: Plexus Archiver\n" + "Created-By: Apache Maven\n" + "Built-By: User\n" + "Build-Jdk: 1.4.2_10\n" + "Extension-Name: maven-assembly-plugin\n" + "Specification-Title: Maven Plugins\n" + "Specification-Vendor: Apache Software Foundation\n" + "Implementation-Vendor: Apache Software Foundation\n" + "Implementation-Title: maven-assembly-plugin\n" + "Implementation-Version: 2.2-SNAPSHOT"; File manifestFile = new File( PlexusTestCase.getBasedir() + "/target/test-harness/assembly/manifestFile/test-manifest.file" ); manifestFile.getParentFile().mkdirs(); FileUtils.fileWrite( manifestFile.getAbsolutePath(), contents ); executeMojo( "manifestFile-plugin-config.xml" ); JarArchiverStub archiver = (JarArchiverStub) ArchiverManagerStub.archiverStub; assertEquals( "Test if provided manifest is used", new Manifest( new FileReader( manifestFile ) ), archiver.getManifest() ); } public void testManifest() throws Exception { executeMojo( "manifest-plugin-config.xml" ); JarArchiverStub archiver = (JarArchiverStub) ArchiverManagerStub.archiverStub; Manifest manifest = archiver.getManifest(); manifest.write( new PrintWriter( System.out ) ); } public void testManifestFileNotFoundException() throws Exception { try { executeMojo( "manifestFile-FileNotFoundException-plugin-config.xml" ); fail( "Expected exception not thrown" ); } catch ( MojoFailureException e ) { assertTrue( "Test for expected exception", e.getMessage().startsWith( "Manifest not found: " ) ); } } public void testNoSuchArchiverException() throws Exception { try { executeMojo( "NoSuchArchiverException-plugin-config.xml" ); fail( "Expected exception not thrown" ); } catch ( MojoFailureException e ) { assertTrue( "Test for expected exception", e.getMessage().startsWith( "Unable to obtain archiver for extension" ) ); } } public void testArchiverExceptionOnAddDirectoryMethod() throws Exception { generateTestFileSets( "\n" ); AssemblyMojo mojo = getMojo( "fileSet-plugin-config.xml" ); ArchiverManagerStub.archiverStub = new JarArchiverStub() { public void addDirectory( File file, String string, String[] includes, String[] excludes ) throws ArchiverException { throw new ArchiverException( "Intentional exception" ); } }; try { mojo.execute(); fail( "Expected exception not thrown" ); } catch ( MojoExecutionException e ) { assertTrue( "Test thrown exception", e.getMessage().startsWith( "Error adding directory to archive: ") ); } } public void testArchiverExceptionInModuleSet() throws Exception { AssemblyMojo mojo = getMojo( "moduleSet-plugin-config.xml" ); MavenProject project = (MavenProject) getVariableValueFromObject( mojo, "executedProject" ); List reactorProjectsList = (List) getVariableValueFromObject( mojo, "reactorProjects" ); for ( Iterator reactorProjects = reactorProjectsList.iterator(); reactorProjects.hasNext(); ) { MavenProject reactorProject = (MavenProject) reactorProjects.next(); reactorProject.setParent( project ); } ArchiverManagerStub.archiverStub = new JarArchiverStub() { public void addDirectory( File file, String string, String[] includes, String[] excludes ) throws ArchiverException { throw new ArchiverException( "Intentional exception" ); } }; try { mojo.execute(); fail( "Expected exception not thrown" ); } catch ( MojoExecutionException e ) { assertTrue( "Test thrown exception", e.getMessage().startsWith( "Error adding directory to archive: ") ); } } public void testAttachedMojo() throws Exception { Mojo mojo = lookupMojo( "attached", basedir + "/src/test/plugin-configs/attached/min-plugin-config.xml" ); mojo.execute(); assertTrue( "Test an archive was created", ArchiverManagerStub.archiverStub.getDestFile().exists() ); } public void testAttachedMojoDependencySet() throws Exception { Mojo mojo = lookupMojo( "attached", basedir + "/src/test/plugin-configs/attached/depSet-plugin-config.xml" ); mojo.execute(); MavenProject project = (MavenProject) getVariableValueFromObject( mojo, "project" ); Set artifactSet = project.getArtifacts(); Map archiveMap = ArchiverManagerStub.archiverStub.getFiles(); Collection archivedFiles = archiveMap.keySet(); assertEquals( "Test number of files in archive", artifactSet.size() + 1, archivedFiles.size() ); for ( Iterator artifacts = artifactSet.iterator(); artifacts.hasNext(); ) { Artifact expected = (Artifact) artifacts.next(); assertTrue( "Test expected dependency artifacts in archive", archivedFiles.contains( expected.getFile() ) ); assertTrue( "Test expected dependency is not unpacked", expected.getFile().getName().endsWith( ".jar" ) ); JarArchiverStub.ArchiverFile archiveFile = (JarArchiverStub.ArchiverFile) archiveMap.get( expected.getFile() ); String archivePath = archiveFile.getOutputName(); assertTrue( "Test includeBaseDirectory", archivePath.startsWith( "assembly/" ) ); } assertTrue( "Test project is in archive", archivedFiles.contains( project.getArtifact().getFile() ) ); assertTrue( "Test project is not unpacked", project.getArtifact().getFile().getName().endsWith( ".jar" ) ); JarArchiverStub.ArchiverFile archiveFile = (JarArchiverStub.ArchiverFile) archiveMap.get( project.getArtifact().getFile() ); String archivePath = archiveFile.getOutputName(); assertTrue( "Test includeBaseDirectory", archivePath.startsWith( "assembly/" ) ); } private AssemblyMojo getMojo( String pluginXml ) throws Exception { return (AssemblyMojo) lookupMojo( "assembly", basedir + "/src/test/plugin-configs/assembly/" + pluginXml ); } private AssemblyMojo executeMojo( String pluginXml ) throws Exception { AssemblyMojo mojo = getMojo( pluginXml ); mojo.execute(); assertTrue( "Test an archive was created", ArchiverManagerStub.archiverStub.getDestFile().exists() ); return mojo; } private boolean assertEquals( Object[] obj1, Object[] obj2 ) { boolean equal = false; if ( obj1.length == obj2.length ) { for ( int ctr = 0; ctr < obj1.length; ctr++ ) { if ( !obj1[ctr].equals( obj2[ctr] ) ) { break; } } equal = true; } return equal; } private void generateTestFileSets( String lineEnding ) throws Exception { generateTestFileSets( basedir, lineEnding ); } static void generateTestFileSets( String basedir, String lineEnding ) throws Exception { String fileSetDir = basedir + "/target/test-classes/fileSet"; /* ensure that we start with a fresh dir, else we get all manner of dross from other tests */ FileUtils.deleteDirectory(fileSetDir); FileUtils.mkdir( fileSetDir + "/configs" ); String fileContents = "" + lineEnding + " " + lineEnding + " " + lineEnding + " " + lineEnding + ""; FileUtils.fileWrite( fileSetDir + "/hibernate.hbm.xml", fileContents ); fileContents = "Copyright 2001-2006 The Apache Software Foundation." + lineEnding + lineEnding + "Licensed under the Apache License, Version 2.0 (the \"License\");" + lineEnding + "you may not use this file except in compliance with the License." + lineEnding + "You may obtain a copy of the License at" + lineEnding + lineEnding + " http://www.apache.org/licenses/LICENSE-2.0" + lineEnding + lineEnding + "Unless required by applicable law or agreed to in writing, software" + lineEnding + "distributed under the License is distributed on an \"AS IS\" BASIS," + lineEnding + "WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied." + lineEnding + "See the License for the specific language governing permissions and" + lineEnding + "limitations under the License."; FileUtils.fileWrite( fileSetDir + "/LICENSE.txt", fileContents ); fileContents = "Readme file with only one line for ${project.artifactId}. ${sentence}"; FileUtils.fileWrite( fileSetDir + "/README.txt", fileContents ); fileContents = "sample configuration file line 1" + lineEnding + "sample configuration file line 2" + lineEnding + "sample configuration file line 3" + lineEnding + "sample configuration file line 4"; FileUtils.fileWrite( fileSetDir + "/configs/config.txt", fileContents ); } private void testSignatureFiles( File metaInf ) { File[] metaInfFiles = metaInf.listFiles( new FilenameFilter() { String[] signatureExt = { ".rsa", ".dsa", ".sf" }; public boolean accept( File dir, String name ) { for ( int idx = 0; idx < signatureExt.length; idx++ ) { if ( name.toLowerCase().endsWith( signatureExt[ idx ] ) ) { return true; } } return false; } } ); assertEquals( "Test for signature files", 0, metaInfFiles.length ); } } ././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/assembly/DirectoryMojoTest.javamaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/assembly/Directory0000644000175000017500000001200111123544663034004 0ustar twernertwernerpackage org.apache.maven.plugin.assembly; /* * Copyright 2001-2005 The Apache Software Foundation. * * Licensed 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 org.apache.maven.plugin.assembly.mojos.DirectoryMojo; import org.apache.maven.plugin.assembly.stubs.ArchiverManagerStub; import org.apache.maven.plugin.testing.AbstractMojoTestCase; import org.apache.maven.project.MavenProject; import org.apache.maven.artifact.Artifact; import java.io.File; import java.util.Map; import java.util.Set; import java.util.Iterator; /** * @author Allan Q. Ramirez */ public class DirectoryMojoTest extends AbstractMojoTestCase { public void testEnvironment() throws Exception { File testPom = new File( getBasedir(), "src/test/plugin-configs/directory/min-plugin-config.xml" ); DirectoryMojo mojo = ( DirectoryMojo ) lookupMojo( "directory", testPom ); assertNotNull( mojo ); } public void testAssemblyDirectory() throws Exception { File testPom = new File( getBasedir(), "src/test/plugin-configs/directory/min-plugin-config.xml" ); DirectoryMojo mojo = ( DirectoryMojo ) lookupMojo( "directory", testPom ); assertNotNull( mojo ); AssemblyMojoTest.generateTestFileSets(getBasedir(), "\n"); mojo.execute(); Map filesArchived = ArchiverManagerStub.archiverStub.getFiles(); Set files = filesArchived.keySet(); assertEquals( 1, files.size() ); } public void testAssemblyDirectoryWithAppendAssemblyIdAsFalse() throws Exception { File testPom = new File( getBasedir(), "src/test/plugin-configs/directory/appendAssemblyId-false-plugin-config.xml" ); DirectoryMojo mojo = ( DirectoryMojo ) lookupMojo( "directory", testPom ); assertNotNull( mojo ); String classifier = ( String ) getVariableValueFromObject( mojo, "classifier" ); String finalName = ( String ) getVariableValueFromObject( mojo, "finalName" ); File outputDir = ( File ) getVariableValueFromObject( mojo, "outputDirectory" ); MavenProject project = ( MavenProject ) getVariableValueFromObject( mojo, "executedProject" ); Set artifacts = project.getArtifacts(); mojo.execute(); File dir = new File( outputDir, finalName + "-" + classifier ); assertTrue( dir.exists() ); Map filesArchived = ArchiverManagerStub.archiverStub.getFiles(); Set files = filesArchived.keySet(); for( Iterator iter = artifacts.iterator(); iter.hasNext(); ) { Artifact artifact = ( Artifact ) iter.next(); assertTrue( files.contains( artifact.getFile() ) ); assertTrue( artifact.getFile().getName().endsWith( ".jar" ) ); } assertTrue( "Test project is in archive", files.contains( project.getArtifact().getFile() ) ); } public void testAssemblyDirectoryWithDependencySet() throws Exception { File testPom = new File( getBasedir(), "src/test/plugin-configs/directory/dependency-set-plugin-config.xml" ); DirectoryMojo mojo = ( DirectoryMojo ) lookupMojo( "directory", testPom ); assertNotNull( mojo ); MavenProject project = ( MavenProject ) getVariableValueFromObject( mojo, "executedProject" ); Set artifacts = project.getArtifacts(); mojo.execute(); Map filesArchived = ArchiverManagerStub.archiverStub.getFiles(); Set files = filesArchived.keySet(); for( Iterator iter = artifacts.iterator(); iter.hasNext(); ) { Artifact artifact = ( Artifact ) iter.next(); assertTrue( files.contains( artifact.getFile() ) ); assertTrue( artifact.getFile().getName().endsWith( ".jar" ) ); } assertTrue( "Test project is in archive", files.contains( project.getArtifact().getFile() ) ); } public void testAssemblyDirectoryToThrowNoSuchArchiverException() throws Exception { File testPom = new File( getBasedir(), "src/test/plugin-configs/directory/min-plugin-config-with-exceptions.xml" ); DirectoryMojo mojo = ( DirectoryMojo ) lookupMojo( "directory", testPom ); assertNotNull( mojo ); try { mojo.execute(); fail( "Failure Expected" ); } catch( Exception e ) { //expected } } } ././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/assembly/interpolation/maven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/assembly/interpola0000755000175000017500000000000011361635307034041 5ustar twernertwerner././@LongLink0000000000000000000000000000020700000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/assembly/interpolation/AssemblyInterpolatorTest.javamaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/assembly/interpola0000644000175000017500000000262211123544663034045 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.interpolation; import org.apache.maven.model.Model; import org.apache.maven.plugins.assembly.model.Assembly; import org.apache.maven.plugins.assembly.model.DependencySet; import java.io.IOException; import java.util.Collections; import java.util.List; import junit.framework.TestCase; public class AssemblyInterpolatorTest extends TestCase { public void testDependencyOutputFileNameMappingsAreNotInterpolated() throws IOException, AssemblyInterpolationException { AssemblyInterpolator interpolator = new AssemblyInterpolator(); Model model = new Model(); model.setArtifactId( "artifact-id" ); model.setGroupId( "group.id" ); model.setVersion( "1" ); Assembly assembly = new Assembly(); DependencySet set = new DependencySet(); set.setOutputFileNameMapping( "${artifact.artifactId}.${artifact.extension}" ); assembly.addDependencySet( set ); Assembly outputAssembly = interpolator.interpolate( assembly, model, Collections.EMPTY_MAP ); List outputDependencySets = outputAssembly.getDependencySets(); assertEquals( 1, outputDependencySets.size() ); DependencySet outputSet = (DependencySet) outputDependencySets.get( 0 ); assertEquals( set.getOutputFileNameMapping(), outputSet.getOutputFileNameMapping() ); } } ././@LongLink0000000000000000000000000000020600000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/assembly/BasicAbstractAssemblyMojoFeaturesTest.javamaven-assembly-plugin-2.2~beta5/src/functional-tests/java/org/apache/maven/plugin/assembly/BasicAbst0000644000175000017500000004530211123544663033705 0ustar twernertwernerpackage org.apache.maven.plugin.assembly; import org.apache.maven.artifact.Artifact; import org.apache.maven.artifact.handler.ArtifactHandler; import org.apache.maven.artifact.metadata.ArtifactMetadata; import org.apache.maven.artifact.repository.ArtifactRepository; import org.apache.maven.artifact.resolver.filter.ArtifactFilter; import org.apache.maven.artifact.versioning.ArtifactVersion; import org.apache.maven.artifact.versioning.OverConstrainedVersionException; import org.apache.maven.artifact.versioning.VersionRange; import org.apache.maven.model.Model; import org.apache.maven.plugin.Mojo; import org.apache.maven.plugin.testing.AbstractMojoTestCase; import org.apache.maven.plugin.testing.stubs.MavenProjectStub; import org.codehaus.plexus.archiver.Archiver; import org.codehaus.plexus.archiver.ArchiverException; import org.codehaus.plexus.archiver.UnArchiver; import org.codehaus.plexus.archiver.manager.ArchiverManager; import org.codehaus.plexus.archiver.manager.NoSuchArchiverException; import org.codehaus.plexus.util.DirectoryScanner; import org.codehaus.plexus.util.FileUtils; import org.codehaus.plexus.util.IOUtil; import org.codehaus.plexus.util.StringUtils; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.io.Writer; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.Iterator; import java.util.LinkedHashSet; import java.util.List; import java.util.Map; import java.util.Properties; import java.util.Set; /** * Test common features of all assembly mojos. * * @todo Switch to use test-only mojos, once we can generate descriptors for those... */ public class BasicAbstractAssemblyMojoFeaturesTest extends AbstractMojoTestCase { public void testOutputFileNameMapping() throws Exception { String pluginConfig = "outputFileNameMapping-pluginConfig.xml"; List requiredDependencies = new ArrayList(); requiredDependencies.add( "dependencies/test.jar" ); requiredDependencies.add( "dependencies/test2.jar" ); Mojo mojo = run( pluginConfig, "directory-inline" ); assertFilesAdded( mojo, requiredDependencies ); } public void testModuleSetSourceIncludedBinariesNotIncluded() throws Exception { String pluginConfig = "moduleSetSourceIncludedBinariesNotIncluded-pluginConfig.xml"; Mojo mojo = run( pluginConfig, "attached" ); List required = Collections.singletonList( "sources/module1/src/main/java/org/test/module1/App.java" ); assertFilesAdded( mojo, required ); } private Mojo run( String pluginConfig, String mojoName ) throws Exception { String pluginConfigResource = "basicAbstractAssemblyMojoFeaturesTest/" + pluginConfig; File pluginConfigFile = new File( getBasedir(), "src/test/plugin-configs/" + pluginConfigResource ); assertTrue( "Cannot find plugin-configuration: \'" + pluginConfigResource + "\' in context-classloader\'s classpath.", pluginConfigFile.exists() ); // TODO: Need to replace this with test-only mojos... Mojo mojo = (Mojo) lookupMojo( mojoName, pluginConfigFile.getAbsolutePath() ); FileLoggingArchiverManagerStub archiverManager = (FileLoggingArchiverManagerStub) getVariableValueFromObject( mojo, "archiverManager" ); archiverManager.clearArchiver(); mojo.execute(); return mojo; } private void assertFilesAdded( Mojo mojo, List requiredDependencies ) throws Exception { FileLoggingArchiverManagerStub archiverManager = (FileLoggingArchiverManagerStub) getVariableValueFromObject( mojo, "archiverManager" ); FileLoggingArchiverStub archiver = (FileLoggingArchiverStub) archiverManager.getArchiver( (File)null ); Set addedFiles = archiver.getAddedFiles(); System.out.println( "The following files were added to the test assembly:\n" + addedFiles.toString().replace(',', '\n' ) ); for ( Iterator it = requiredDependencies.iterator(); it.hasNext(); ) { String targetPath = (String) it.next(); assertTrue( "Required dependency path missing: \'" + targetPath + "\'", addedFiles.contains( targetPath ) ); } } public static final class BasedirSettableMavenProjectStub extends MavenProjectStub { File basedir; public File getBasedir() { return basedir; } public void setBasedir( File basedir ) { this.basedir = basedir; } } public static final class FileLoggingArchiverManagerStub implements ArchiverManager { private FileLoggingArchiverStub archiverStub; public Archiver getArchiver( String string ) throws NoSuchArchiverException { if ( archiverStub == null ) { archiverStub = new FileLoggingArchiverStub(); } return archiverStub; } void clearArchiver() { archiverStub = null; } public UnArchiver getUnArchiver( String arg0 ) throws NoSuchArchiverException { // TODO Auto-generated method stub return null; } public UnArchiver getUnArchiver( File arg0 ) throws NoSuchArchiverException { // TODO Auto-generated method stub return null; } public Archiver getArchiver( File arg0 ) throws NoSuchArchiverException { // TODO Auto-generated method stub return null; } } public static final class FileLoggingArchiverStub implements Archiver { private Set files = new LinkedHashSet(); private DirectoryScanner scanner = new DirectoryScanner(); public void addFile( File file, String targetPath, int mode ) throws ArchiverException { files.add( targetPath ); } public void addFile( File file, String targetPath ) throws ArchiverException { files.add( targetPath ); } public Set getAddedFiles() { return files; } public void addDirectory( File dir ) throws ArchiverException { System.out.println( "Add dir 1" ); addDirectory_( dir, null, null, null ); } public void addDirectory( File dir, String prefix ) throws ArchiverException { System.out.println( "Add dir 2" ); addDirectory_( dir, prefix, null, null ); } public void addDirectory( File dir, String[] includes, String[] excludes ) throws ArchiverException { System.out.println( "Add dir 3" ); addDirectory_( dir, null, includes, excludes ); } public void addDirectory( File dir, String prefix, String[] includes, String[] excludes ) throws ArchiverException { System.out.println( "Add dir 3" ); addDirectory_( dir, prefix, includes, excludes ); } private void addDirectory_( File dir, String prefix, String[] includes, String[] excludes ) throws ArchiverException { try { String include = StringUtils.join( includes, "," ); String exclude = StringUtils.join( excludes, "," ); String prepend = prefix; if ( prepend != null && !prepend.endsWith( "/" ) ) { prepend += "/"; } System.out.println( "Scanning: " + dir + "\nwith includes: " + include + "\nand excludes: " + exclude + "\nand prepending dir prefix: " + prepend ); List fileNames = FileUtils.getFileNames( dir, include, exclude, false ); for ( Iterator it = fileNames.iterator(); it.hasNext(); ) { String name = (String) it.next(); String fn = prepend + dir.getPath() + "/" + name; fn.replace( '\\', '/' ); System.out.println( "Adding: " + fn ); files.add( fn ); } } catch ( IOException e ) { throw new ArchiverException( "Error scanning for file names.", e ); } } public void createArchive() throws ArchiverException, IOException { // TODO Auto-generated method stub } public int getDefaultDirectoryMode() { // TODO Auto-generated method stub return 0; } public int getDefaultFileMode() { // TODO Auto-generated method stub return 0; } public File getDestFile() { // TODO Auto-generated method stub return null; } public Map getFiles() { // TODO Auto-generated method stub return null; } public boolean getIncludeEmptyDirs() { // TODO Auto-generated method stub return false; } public void setDefaultDirectoryMode( int arg0 ) { // TODO Auto-generated method stub } public void setDefaultFileMode( int arg0 ) { // TODO Auto-generated method stub } public void setDestFile( File arg0 ) { // TODO Auto-generated method stub } public void setIncludeEmptyDirs( boolean arg0 ) { // TODO Auto-generated method stub } } public static final class TwoDependencyReactorProjectStub extends MavenProjectStub { private String groupId = "org.test.project"; private String artifactId = "test-project"; private String version = "1"; private String packaging = "jar"; private String scope = "compile"; private String depOneArtifactId; private String depOneGroupId; private String depOneVersion; private String depOneType = "jar"; private String depOneScope = "compile"; private File depOneFile; private String depTwoArtifactId; private String depTwoGroupId; private String depTwoVersion; private String depTwoType = "jar"; private String depTwoScope = "compile"; private File depTwoFile; private LinkedHashSet artifacts; public Set getArtifacts() { artifacts = new LinkedHashSet(); addArtifact( depOneGroupId, depOneArtifactId, depOneVersion, depOneType, depOneScope, depOneFile ); addArtifact( depTwoGroupId, depTwoArtifactId, depTwoVersion, depTwoType, depTwoScope, depTwoFile ); return artifacts; } private void addArtifact( String groupId, String artifactId, String version, String type, String scope, File file ) { Artifact artifact = new HandlerEquippedArtifactStub( groupId, artifactId, version, type, scope ); artifact.setFile( file ); artifacts .add( artifact ); } public Artifact getArtifact() { return new HandlerEquippedArtifactStub( groupId, artifactId, version, packaging, scope ); } public TwoDependencyReactorProjectStub() { Model model = getModel(); if( model == null ) { model = new Model(); setModel( model ); } Properties props = model.getProperties(); if ( props == null ) { props = new Properties(); model.setProperties( props ); } } } public static final class HandlerEquippedArtifactStub implements Artifact { private String type; private String artifactId; private String groupId; private String version; private String classifier; private String scope; private File file; public HandlerEquippedArtifactStub( String groupId, String artifactId, String version, String type, String scope ) { this.groupId = groupId; this.artifactId = artifactId; this.version = version; this.type = type; this.scope = scope; } public HandlerEquippedArtifactStub() { } public ArtifactHandler getArtifactHandler() { ArtifactHandler handler = new ArtifactHandler() { public String getClassifier() { return classifier; } public String getDirectory() { return null; } public String getExtension() { return type; } public String getLanguage() { return "java"; } public String getPackaging() { return type; } public boolean isAddedToClasspath() { return true; } public boolean isIncludesDependencies() { return true; } }; return handler; } public void addMetadata( ArtifactMetadata arg0 ) { // TODO Auto-generated method stub } public String getArtifactId() { return artifactId; } public List getAvailableVersions() { return Collections.singletonList( version ); } public String getBaseVersion() { return version; } public String getClassifier() { return classifier; } public String getDependencyConflictId() { return groupId + ":" + artifactId + ":" + type + ":" + version; } public ArtifactFilter getDependencyFilter() { // TODO Auto-generated method stub return null; } public List getDependencyTrail() { // TODO Auto-generated method stub return null; } public String getDownloadUrl() { // TODO Auto-generated method stub return null; } public File getFile() { return file; } public String getGroupId() { return groupId; } public String getId() { return getDependencyConflictId() + ":" + scope; } public Collection getMetadataList() { return null; } public ArtifactRepository getRepository() { return null; } public String getScope() { return scope; } public ArtifactVersion getSelectedVersion() throws OverConstrainedVersionException { return null; } public String getType() { return type; } public String getVersion() { return version; } public VersionRange getVersionRange() { return VersionRange.createFromVersion( version ); } public boolean hasClassifier() { return classifier != null; } public boolean isOptional() { return false; } public boolean isRelease() { return false; } public boolean isResolved() { return true; } public boolean isSelectedVersionKnown() throws OverConstrainedVersionException { return true; } public boolean isSnapshot() { return false; } public void selectVersion( String arg0 ) { } public void setArtifactHandler( ArtifactHandler arg0 ) { } public void setArtifactId( String artifactId ) { this.artifactId = artifactId; } public void setAvailableVersions( List arg0 ) { } public void setBaseVersion( String version ) { this.version = version; } public void setDependencyFilter( ArtifactFilter arg0 ) { } public void setDependencyTrail( List arg0 ) { } public void setDownloadUrl( String arg0 ) { } public void setFile( File file ) { this.file = file; if ( file.exists() ) { Writer writer = null; try { writer = new FileWriter( file ); writer.write( "test artifact" ); } catch ( IOException e ) { IllegalArgumentException error = new IllegalArgumentException( "Cannot write test file: " + file + ". Reason: " + e.getMessage() ); error.initCause( e ); throw error; } finally { IOUtil.close( writer ); } } } public void setGroupId( String groupId ) { this.groupId = groupId; } public void setRelease( boolean arg0 ) { } public void setRepository( ArtifactRepository arg0 ) { } public void setResolved( boolean arg0 ) { } public void setResolvedVersion( String version ) { this.version = version; } public void setScope( String scope ) { this.scope = scope; } public void setVersion( String version ) { this.version = version; } public void setVersionRange( VersionRange arg0 ) { } public void updateVersion( String arg0, ArtifactRepository arg1 ) { } public int compareTo( Object o ) { return 0; } public void setOptional( boolean optional ) { } } }maven-assembly-plugin-2.2~beta5/src/functional-tests/resources/0000755000175000017500000000000011361635311024754 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/0000755000175000017500000000000011361635311027103 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/fileSet.xml0000644000175000017500000000213511162606221031216 0ustar twernertwerner fileSet zip target/test-classes/fileSet ././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/repository-with-metadata.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/repository-with-metadata.x0000644000175000017500000000223111162606221034235 0ustar twernertwerner repositories zip repository true maven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/fileSet-no-directory.xml0000644000175000017500000000204511162606221033632 0ustar twernertwerner fileSet zip ././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/fileSet-lf-lineEndings.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/fileSet-lf-lineEndings.xml0000644000175000017500000000217711162606221034060 0ustar twernertwerner fileSet zip target/test-classes/fileSet lf maven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/fileItem-filtered.xml0000644000175000017500000000216711162606221033162 0ustar twernertwerner fileItem zip target/test-classes/fileSet/README.txt true ././@LongLink0000000000000000000000000000016600000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/moduleSet-packed-including-dependencies.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/moduleSet-packed-including0000644000175000017500000000225011162606221034162 0ustar twernertwerner moduleSet zip false true maven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/tar-gz.xml0000644000175000017500000000226211162606221031030 0ustar twernertwerner simple tar.gz target/test-harness/assembly/tar-gz/target *.jar ././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/fileSet-unix-lineEndings.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/fileSet-unix-lineEndings.x0000644000175000017500000000220111162606221034075 0ustar twernertwerner fileSet zip target/test-classes/fileSet unix ././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/fileSet-crlf-lineEndings.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/fileSet-crlf-lineEndings.x0000644000175000017500000000220111162606221034040 0ustar twernertwerner fileSet zip target/test-classes/fileSet crlf maven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/MASSEMBLY-98.xml0000644000175000017500000000300511162606221031412 0ustar twernertwerner repositories zip repository assembly 1.1 assembly2 1.0 dependency-artifact maven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/fileItem-output-name.xml0000644000175000017500000000225711162606221033642 0ustar twernertwerner fileItem zip target/test-classes/fileSet/README.txt output READTHIS.txt ././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/descriptorSourceDirectory/maven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/descriptorSourceDirectory/0000755000175000017500000000000011361635310034326 5ustar twernertwerner././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/descriptorSourceDirectory/simple.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/descriptorSourceDirectory/0000644000175000017500000000230211162606221034323 0ustar twernertwerner simple zip target/test-harness/assembly/descriptorSourceDirectory/target *.jar maven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/empty.xml0000644000175000017500000000252011162606221030757 0ustar twernertwerner empty zip src/test/resources/assemblies/components/dependencySet.xml src/test/resources/assemblies/components/FileItem.xml src/test/resources/assemblies/components/FileSet.xml ././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/repository-groupVersionAlignment-excludes.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/repository-groupVersionAli0000644000175000017500000000260611162606221034374 0ustar twernertwerner repositories zip repository assembly 1.1 dependency-artifact maven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/repository.xml0000644000175000017500000000215311162606221032042 0ustar twernertwerner repositories zip repository ././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/dependencySet-filename-mapping.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/dependencySet-filename-map0000644000175000017500000000250611162606221034151 0ustar twernertwerner dependencySet-filename-mapping zip false ${version}-${artifactId}-${groupId} false libs test maven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/moduleSet-includes.xml0000644000175000017500000000225211162606221033370 0ustar twernertwerner moduleSet zip assembly:reactor-project-1 maven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/fileItem-fileMode.xml0000644000175000017500000000216611162606221033107 0ustar twernertwerner fileItem zip target/test-classes/fileSet/README.txt 777 ././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/fileSet-includes-excludes.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/fileSet-includes-excludes.0000644000175000017500000000235311162606221034115 0ustar twernertwerner fileSet zip target/test-classes/fileSet **/*.txt **/*.xml maven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/tar-bz2.xml0000644000175000017500000000226411162606221031107 0ustar twernertwerner simple tar.bz2 target/test-harness/assembly/tar-bz2/target *.jar ././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/fileSet-dos-lineEndings.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/fileSet-dos-lineEndings.xm0000644000175000017500000000220011162606221034053 0ustar twernertwerner fileSet zip target/test-classes/fileSet dos maven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/fileSet-doesnt-exist.xml0000644000175000017500000000215411162606221033643 0ustar twernertwerner fileSet zip donkey unix ././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/dependencySet-excludes.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/dependencySet-excludes.xml0000644000175000017500000000241011162606221034223 0ustar twernertwerner dependencySet-excludes zip false test assembly:dependency-artifact1 maven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/components/0000755000175000017500000000000011361635310031267 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/components/FileSet.xml0000644000175000017500000000141010464261541033344 0ustar twernertwerner target/test-classes/fileSet ././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/components/dependencySet.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/components/dependencySet.x0000644000175000017500000000151010464261541034253 0ustar twernertwerner false test maven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/components/FileItem.xml0000644000175000017500000000152710464261541033520 0ustar twernertwerner target/test-classes/fileSet/README.txt target/test-classes/fileSet/LICENSE.txt maven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/simple.xml0000644000175000017500000000234611162606221031120 0ustar twernertwerner simple zip target/test-harness/assembly/min/target *.jar maven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/plexus-components.xml0000644000175000017500000000230411162606221033324 0ustar twernertwerner plexus-components zip target/test-classes/fileSet META-INF/plexus/components.xml maven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/moduleSet.xml0000644000175000017500000000212111162606221031557 0ustar twernertwerner moduleSet zip maven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/dependencySet-scoped.xml0000644000175000017500000000222011162606221033663 0ustar twernertwerner dependencySet-scoped zip false maven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/dependencySet-default.xml0000644000175000017500000000225311162606221034040 0ustar twernertwerner dependencySet-default zip false test maven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/fileItem-filter-file.xml0000644000175000017500000000216711162606221033566 0ustar twernertwerner fileItem zip target/test-classes/fileSet/README.txt true ././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/moduleSet-include-dependencies.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/moduleSet-include-dependen0000644000175000017500000000223211162606221034164 0ustar twernertwerner moduleSet zip true ././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/repository-groupVersionAlignment.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/repository-groupVersionAli0000644000175000017500000000245011162606221034371 0ustar twernertwerner repositories zip repository assembly 1.1 maven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/dependencySet-unpack.xml0000644000175000017500000000225111162606221033673 0ustar twernertwerner dependencySet-unpack zip true test maven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/moduleSet-packed.xml0000644000175000017500000000216011162606221033007 0ustar twernertwerner moduleSet zip false ././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/fileSet-lineEndings-exception.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/fileSet-lineEndings-except0000644000175000017500000000220411162606221034137 0ustar twernertwerner fileSet zip target/test-classes/fileSet invalid ././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/fileSet-archiveBaseDirectory.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/fileSet-archiveBaseDirecto0000644000175000017500000000215511162606221034145 0ustar twernertwerner fileSet zip fileSet keep ././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/repository-groupVersionAlignment-includes.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/repository-groupVersionAli0000644000175000017500000000260611162606221034374 0ustar twernertwerner repositories zip repository assembly 1.1 dependency-artifact ././@LongLink0000000000000000000000000000017400000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/dependencySet-filename-mapping-and-classifier.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/dependencySet-filename-map0000644000175000017500000000250611162606221034151 0ustar twernertwerner dependencySet-filename-mapping zip false ${version}.${artifactId}.${groupId} false libs test maven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/fileItem.xml0000644000175000017500000000225511162606221031364 0ustar twernertwerner fileItem zip target/test-classes/fileSet/README.txt target/test-classes/fileSet/LICENSE.txt maven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/war.xml0000644000175000017500000000225411162606221030416 0ustar twernertwerner simple war target/test-harness/assembly/war/target *.jar maven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/fileItem-lineEndings.xml0000644000175000017500000000217311162606221033620 0ustar twernertwerner fileItem zip target/test-classes/fileSet/README.txt unix maven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/moduleSet-excludes.xml0000644000175000017500000000225211162606221033376 0ustar twernertwerner moduleSet zip assembly:reactor-project-1 ././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/dependencySet-includes.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/dependencySet-includes.xml0000644000175000017500000000241011162606221034215 0ustar twernertwerner dependencySet-includes zip false test assembly:dependency-artifact1 ././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/NoSuchArchiverException.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/assemblies/NoSuchArchiverException.xm0000644000175000017500000000225411162606221034213 0ustar twernertwerner simple txt target/test-harness/assembly/min/target *.jar ././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/basicAbstractAssemblyMojoFeaturesTest/maven-assembly-plugin-2.2~beta5/src/functional-tests/resources/basicAbstractAssemblyMojoFeaturesTest0000755000175000017500000000000011361635311034326 5ustar twernertwerner././@LongLink0000000000000000000000000000022200000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/basicAbstractAssemblyMojoFeaturesTest/outputFileNameMapping-assemblyDescriptor.xmlmaven-assembly-plugin-2.2~beta5/src/functional-tests/resources/basicAbstractAssemblyMojoFeaturesTest0000644000175000017500000000142111162606221034323 0ustar twernertwerner outputFileNameMapping dir false org.test:test org.test.2:test2 /dependencies/ ${artifact.artifactId}.${artifact.extension} maven-assembly-plugin-2.2~beta5/src/test/0000755000175000017500000000000011361635306020423 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/test/java/0000755000175000017500000000000011361635305021343 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/test/java/org/0000755000175000017500000000000011361635305022132 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/0000755000175000017500000000000011361635305023353 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/0000755000175000017500000000000011361635305024461 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/0000755000175000017500000000000011361635305025757 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/0000755000175000017500000000000011361635306027577 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/io/0000755000175000017500000000000011361635306030206 5ustar twernertwerner././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/io/DefaultAssemblyReaderTest.javamaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/io/DefaultAssemblyRea0000644000175000017500000011711711123544663033656 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.io; /* * 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.io.FileOutputStream; import java.io.IOException; import java.io.OutputStreamWriter; import java.io.StringReader; import java.io.StringWriter; import java.io.Writer; import java.util.ArrayList; import java.util.Collections; import java.util.Iterator; import java.util.List; import junit.framework.TestCase; import org.apache.maven.artifact.Artifact; import org.apache.maven.artifact.repository.ArtifactRepository; import org.apache.maven.model.Model; import org.apache.maven.plugin.assembly.AssemblerConfigurationSource; import org.apache.maven.plugin.assembly.InvalidAssemblerConfigurationException; import org.apache.maven.plugin.assembly.model.Assembly; import org.apache.maven.plugin.assembly.model.Component; import org.apache.maven.plugin.assembly.model.ContainerDescriptorHandlerConfig; import org.apache.maven.plugin.assembly.model.DependencySet; import org.apache.maven.plugin.assembly.model.FileItem; import org.apache.maven.plugin.assembly.model.FileSet; import org.apache.maven.plugin.assembly.model.Repository; import org.apache.maven.plugin.assembly.model.io.xpp3.AssemblyXpp3Writer; import org.apache.maven.plugin.assembly.model.io.xpp3.ComponentXpp3Writer; import org.apache.maven.plugin.assembly.testutils.MockManager; import org.apache.maven.plugin.assembly.testutils.TestFileManager; import org.apache.maven.project.MavenProject; import org.codehaus.plexus.util.IOUtil; import org.easymock.MockControl; public class DefaultAssemblyReaderTest extends TestCase { private TestFileManager fileManager; private MockManager mockManager; private MockControl configSourceControl; private AssemblerConfigurationSource configSource; public void setUp() { fileManager = new TestFileManager( "assembly-reader.test.", ".xml" ); mockManager = new MockManager(); configSourceControl = MockControl.createControl( AssemblerConfigurationSource.class ); mockManager.add( configSourceControl ); configSource = (AssemblerConfigurationSource) configSourceControl.getMock(); MockControl localRepoControl = MockControl.createControl( ArtifactRepository.class ); ArtifactRepository localRepo = (ArtifactRepository) localRepoControl.getMock(); mockManager.add( localRepoControl ); configSource.getLocalRepository(); configSourceControl.setReturnValue( localRepo, MockControl.ZERO_OR_MORE ); configSource.getRemoteRepositories(); configSourceControl.setReturnValue( Collections.EMPTY_LIST, MockControl.ZERO_OR_MORE ); configSource.getMavenSession(); configSourceControl.setReturnValue( null, MockControl.ZERO_OR_MORE ); } public void tearDown() throws IOException { fileManager.cleanUp(); } public void testIncludeSiteInAssembly_ShouldFailIfSiteDirectoryNonExistent() throws IOException { File siteDir = File.createTempFile( "assembly-reader.", ".test" ); siteDir.delete(); configSource.getSiteDirectory(); configSourceControl.setReturnValue( siteDir, MockControl.ZERO_OR_MORE ); Assembly assembly = new Assembly(); mockManager.replayAll(); try { new DefaultAssemblyReader().includeSiteInAssembly( assembly, configSource ); fail( "Should fail when site directory is non-existent." ); } catch ( InvalidAssemblerConfigurationException e ) { // this should happen. } mockManager.verifyAll(); } public void testIncludeSiteInAssembly_ShouldAddSiteDirFileSetWhenDirExists() throws IOException, InvalidAssemblerConfigurationException { File siteDir = fileManager.createTempDir(); configSource.getSiteDirectory(); configSourceControl.setReturnValue( siteDir, MockControl.ZERO_OR_MORE ); Assembly assembly = new Assembly(); mockManager.replayAll(); new DefaultAssemblyReader().includeSiteInAssembly( assembly, configSource ); List fileSets = assembly.getFileSets(); assertNotNull( fileSets ); assertEquals( 1, fileSets.size() ); FileSet fs = (FileSet) fileSets.get( 0 ); assertEquals( siteDir.getPath(), fs.getDirectory() ); mockManager.verifyAll(); } // public void testReadComponent_ShouldReadComponentFromXml() // throws IOException, AssemblyReadException // { // Component component = new Component(); // // FileSet fileSet = new FileSet(); // fileSet.setDirectory( "/dir" ); // // component.addFileSet( fileSet ); // // StringWriter sw = new StringWriter(); // // ComponentXpp3Writer componentWriter = new ComponentXpp3Writer(); // // componentWriter.write( sw, component ); // // Component result = new DefaultAssemblyReader().readComponent( new StringReader( sw.toString() ) ); // // List fileSets = result.getFileSets(); // // assertNotNull( fileSets ); // assertEquals( 1, fileSets.size() ); // // FileSet fs = (FileSet) fileSets.get( 0 ); // // assertEquals( "/dir", fs.getDirectory() ); // } // // public void testGetComponentFromFile_ShouldReadComponent() // throws IOException, AssemblyReadException // { // Component component = new Component(); // // FileSet fileSet = new FileSet(); // fileSet.setDirectory( "/dir" ); // // component.addFileSet( fileSet ); // // File componentFile = fileManager.createTempFile(); // // FileWriter writer = null; // // try // { // writer = new FileWriter( componentFile ); // // ComponentXpp3Writer componentWriter = new ComponentXpp3Writer(); // // componentWriter.write( writer, component ); // } // finally // { // IOUtil.close( writer ); // } // // File basedir = componentFile.getParentFile(); // String filename = componentFile.getName(); // // configSource.getBasedir(); // configSourceControl.setReturnValue( basedir ); // // mockManager.replayAll(); // // Component result = new DefaultAssemblyReader().getComponentFromFile( filename, configSource ); // // List fileSets = result.getFileSets(); // // assertNotNull( fileSets ); // assertEquals( 1, fileSets.size() ); // // FileSet fs = (FileSet) fileSets.get( 0 ); // // assertEquals( "/dir", fs.getDirectory() ); // // mockManager.verifyAll(); // } public void testMergeComponentWithAssembly_ShouldAddOneFileSetToExistingListOfTwo() { Assembly assembly = new Assembly(); FileSet fs = new FileSet(); fs.setDirectory( "/dir" ); assembly.addFileSet( fs ); fs = new FileSet(); fs.setDirectory( "/other-dir" ); assembly.addFileSet( fs ); fs = new FileSet(); fs.setDirectory( "/third-dir" ); Component component = new Component(); component.addFileSet( fs ); new DefaultAssemblyReader().mergeComponentWithAssembly( component, assembly ); List fileSets = assembly.getFileSets(); assertNotNull( fileSets ); assertEquals( 3, fileSets.size() ); FileSet rfs1 = (FileSet) fileSets.get( 0 ); assertEquals( "/dir", rfs1.getDirectory() ); FileSet rfs2 = (FileSet) fileSets.get( 1 ); assertEquals( "/other-dir", rfs2.getDirectory() ); FileSet rfs3 = (FileSet) fileSets.get( 2 ); assertEquals( "/third-dir", rfs3.getDirectory() ); } public void testMergeComponentWithAssembly_ShouldAddOneFileItemToExistingListOfTwo() { Assembly assembly = new Assembly(); FileItem fi = new FileItem(); fi.setSource( "file" ); assembly.addFile( fi ); fi = new FileItem(); fi.setSource( "file2" ); assembly.addFile( fi ); fi = new FileItem(); fi.setSource( "file3" ); Component component = new Component(); component.addFile( fi ); new DefaultAssemblyReader().mergeComponentWithAssembly( component, assembly ); List fileItems = assembly.getFiles(); assertNotNull( fileItems ); assertEquals( 3, fileItems.size() ); FileItem rf1 = (FileItem) fileItems.get( 0 ); assertEquals( "file", rf1.getSource() ); FileItem rf2 = (FileItem) fileItems.get( 1 ); assertEquals( "file2", rf2.getSource() ); FileItem rf3 = (FileItem) fileItems.get( 2 ); assertEquals( "file3", rf3.getSource() ); } public void testMergeComponentWithAssembly_ShouldAddOneDependencySetToExistingListOfTwo() { Assembly assembly = new Assembly(); DependencySet ds = new DependencySet(); ds.setScope( Artifact.SCOPE_RUNTIME ); assembly.addDependencySet( ds ); ds = new DependencySet(); ds.setScope( Artifact.SCOPE_COMPILE ); assembly.addDependencySet( ds ); Component component = new Component(); ds = new DependencySet(); ds.setScope( Artifact.SCOPE_SYSTEM ); component.addDependencySet( ds ); new DefaultAssemblyReader().mergeComponentWithAssembly( component, assembly ); List depSets = assembly.getDependencySets(); assertNotNull( depSets ); assertEquals( 3, depSets.size() ); assertEquals( Artifact.SCOPE_RUNTIME, ( (DependencySet) depSets.get( 0 ) ).getScope() ); assertEquals( Artifact.SCOPE_COMPILE, ( (DependencySet) depSets.get( 1 ) ).getScope() ); assertEquals( Artifact.SCOPE_SYSTEM, ( (DependencySet) depSets.get( 2 ) ).getScope() ); } public void testMergeComponentWithAssembly_ShouldAddOneRepositoryToExistingListOfTwo() { Assembly assembly = new Assembly(); Repository repo = new Repository(); repo.setScope( Artifact.SCOPE_RUNTIME ); assembly.addRepository( repo ); repo = new Repository(); repo.setScope( Artifact.SCOPE_COMPILE ); assembly.addRepository( repo ); Component component = new Component(); repo = new Repository(); repo.setScope( Artifact.SCOPE_SYSTEM ); component.addRepository( repo ); new DefaultAssemblyReader().mergeComponentWithAssembly( component, assembly ); List depSets = assembly.getRepositories(); assertNotNull( depSets ); assertEquals( 3, depSets.size() ); assertEquals( Artifact.SCOPE_RUNTIME, ( (Repository) depSets.get( 0 ) ).getScope() ); assertEquals( Artifact.SCOPE_COMPILE, ( (Repository) depSets.get( 1 ) ).getScope() ); assertEquals( Artifact.SCOPE_SYSTEM, ( (Repository) depSets.get( 2 ) ).getScope() ); } public void testMergeComponentWithAssembly_ShouldAddOneContainerDescriptorHandlerToExistingListOfTwo() { Assembly assembly = new Assembly(); ContainerDescriptorHandlerConfig cfg = new ContainerDescriptorHandlerConfig(); cfg.setHandlerName( "one" ); assembly.addContainerDescriptorHandler( cfg ); cfg = new ContainerDescriptorHandlerConfig(); cfg.setHandlerName( "two" ); assembly.addContainerDescriptorHandler( cfg ); Component component = new Component(); cfg = new ContainerDescriptorHandlerConfig(); cfg.setHandlerName( "three" ); component.addContainerDescriptorHandler( cfg ); new DefaultAssemblyReader().mergeComponentWithAssembly( component, assembly ); List result = assembly.getContainerDescriptorHandlers(); assertNotNull( result ); assertEquals( 3, result.size() ); Iterator it = result.iterator(); assertEquals( "one", ( (ContainerDescriptorHandlerConfig) it.next() ).getHandlerName() ); assertEquals( "two", ( (ContainerDescriptorHandlerConfig) it.next() ).getHandlerName() ); assertEquals( "three", ( (ContainerDescriptorHandlerConfig) it.next() ).getHandlerName() ); } // FIXME: Deep merging should take place... // public void // testMergeComponentWithAssembly_ShouldMergeOneFileSetToOneOfExistingTwo() // { // Assembly assembly = new Assembly(); // // FileSet fs = new FileSet(); // fs.setDirectory( "/dir" ); // fs.addInclude( "**/test.txt" ); // // assembly.addFileSet( fs ); // // fs = new FileSet(); // fs.setDirectory( "/other-dir" ); // assembly.addFileSet( fs ); // // fs = new FileSet(); // fs.setDirectory( "/dir" ); // fs.addInclude( "**/components.txt" ); // // Component component = new Component(); // // component.addFileSet( fs ); // // new DefaultAssemblyReader().mergeComponentWithAssembly( component, // assembly ); // // List fileSets = assembly.getFileSets(); // // assertNotNull( fileSets ); // assertEquals( 2, fileSets.size() ); // // FileSet rfs1 = (FileSet) fileSets.get( 0 ); // assertEquals( "/dir", rfs1.getDirectory() ); // // List includes = rfs1.getIncludes(); // // assertNotNull( includes ); // assertEquals( 2, includes.size() ); // assertTrue( includes.contains( "**/test.txt" ) ); // assertTrue( includes.contains( "**/components.txt" ) ); // // FileSet rfs2 = (FileSet) fileSets.get( 1 ); // assertEquals( "/other-dir", rfs2.getDirectory() ); // // } public void testMergeComponentsWithMainAssembly_ShouldAddOneFileSetToAssembly() throws IOException, AssemblyReadException { Component component = new Component(); FileSet fileSet = new FileSet(); fileSet.setDirectory( "/dir" ); component.addFileSet( fileSet ); File componentFile = fileManager.createTempFile(); Writer writer = null; try { writer = new OutputStreamWriter( new FileOutputStream( componentFile ), "UTF-8" ); ComponentXpp3Writer componentWriter = new ComponentXpp3Writer(); componentWriter.write( writer, component ); writer.flush(); } finally { IOUtil.close( writer ); } String filename = componentFile.getName(); Assembly assembly = new Assembly(); assembly.addComponentDescriptor( filename ); File basedir = componentFile.getParentFile(); configSource.getBasedir(); configSourceControl.setReturnValue( basedir, MockControl.ZERO_OR_MORE ); mockManager.replayAll(); new DefaultAssemblyReader().mergeComponentsWithMainAssembly( assembly, configSource ); List fileSets = assembly.getFileSets(); assertNotNull( fileSets ); assertEquals( 1, fileSets.size() ); FileSet fs = (FileSet) fileSets.get( 0 ); assertEquals( "/dir", fs.getDirectory() ); mockManager.verifyAll(); } public void testReadAssembly_ShouldReadAssemblyWithoutComponentsInterpolationOrSiteDirInclusion() throws IOException, AssemblyReadException, InvalidAssemblerConfigurationException { Assembly assembly = new Assembly(); assembly.setId( "test" ); StringWriter sw = new StringWriter(); AssemblyXpp3Writer assemblyWriter = new AssemblyXpp3Writer(); assemblyWriter.write( sw, assembly ); StringReader sr = new StringReader( sw.toString() ); File basedir = fileManager.createTempDir(); configSource.getBasedir(); configSourceControl.setReturnValue( basedir, MockControl.ZERO_OR_MORE ); Model model = new Model(); model.setGroupId( "group" ); model.setArtifactId( "artifact" ); model.setVersion( "version" ); MavenProject project = new MavenProject( model ); configSource.getProject(); configSourceControl.setReturnValue( project, MockControl.ZERO_OR_MORE ); configSource.isSiteIncluded(); configSourceControl.setReturnValue( false, MockControl.ZERO_OR_MORE ); mockManager.replayAll(); Assembly result = new DefaultAssemblyReader().readAssembly( sr, "testLocation", configSource ); assertEquals( assembly.getId(), result.getId() ); mockManager.verifyAll(); } public void testReadAssembly_ShouldReadAssemblyWithSiteDirInclusionFromAssemblyWithoutComponentsOrInterpolation() throws IOException, AssemblyReadException, InvalidAssemblerConfigurationException { Assembly assembly = new Assembly(); assembly.setId( "test" ); assembly.setIncludeSiteDirectory( true ); StringWriter sw = new StringWriter(); AssemblyXpp3Writer assemblyWriter = new AssemblyXpp3Writer(); assemblyWriter.write( sw, assembly ); StringReader sr = new StringReader( sw.toString() ); File siteDir = fileManager.createTempDir(); configSource.getSiteDirectory(); configSourceControl.setReturnValue( siteDir, MockControl.ZERO_OR_MORE ); File basedir = fileManager.createTempDir(); configSource.getBasedir(); configSourceControl.setReturnValue( basedir, MockControl.ZERO_OR_MORE ); Model model = new Model(); model.setGroupId( "group" ); model.setArtifactId( "artifact" ); model.setVersion( "version" ); MavenProject project = new MavenProject( model ); configSource.getProject(); configSourceControl.setReturnValue( project, MockControl.ZERO_OR_MORE ); configSource.isSiteIncluded(); configSourceControl.setReturnValue( false, MockControl.ZERO_OR_MORE ); mockManager.replayAll(); Assembly result = new DefaultAssemblyReader().readAssembly( sr, "testLocation", configSource ); assertEquals( assembly.getId(), result.getId() ); List fileSets = result.getFileSets(); assertEquals( 1, fileSets.size() ); assertEquals( "/site", ( (FileSet) fileSets.get( 0 ) ).getOutputDirectory() ); mockManager.verifyAll(); } public void testReadAssembly_ShouldReadAssemblyWithSiteDirInclusionFromConfigWithoutComponentsOrInterpolation() throws IOException, AssemblyReadException, InvalidAssemblerConfigurationException { Assembly assembly = new Assembly(); assembly.setId( "test" ); StringWriter sw = new StringWriter(); AssemblyXpp3Writer assemblyWriter = new AssemblyXpp3Writer(); assemblyWriter.write( sw, assembly ); StringReader sr = new StringReader( sw.toString() ); File siteDir = fileManager.createTempDir(); configSource.getSiteDirectory(); configSourceControl.setReturnValue( siteDir, MockControl.ZERO_OR_MORE ); File basedir = fileManager.createTempDir(); configSource.getBasedir(); configSourceControl.setReturnValue( basedir, MockControl.ZERO_OR_MORE ); Model model = new Model(); model.setGroupId( "group" ); model.setArtifactId( "artifact" ); model.setVersion( "version" ); MavenProject project = new MavenProject( model ); configSource.getProject(); configSourceControl.setReturnValue( project, MockControl.ZERO_OR_MORE ); configSource.isSiteIncluded(); configSourceControl.setReturnValue( true, MockControl.ZERO_OR_MORE ); mockManager.replayAll(); Assembly result = new DefaultAssemblyReader().readAssembly( sr, "testLocation", configSource ); assertEquals( assembly.getId(), result.getId() ); List fileSets = result.getFileSets(); assertEquals( 1, fileSets.size() ); assertEquals( "/site", ( (FileSet) fileSets.get( 0 ) ).getOutputDirectory() ); mockManager.verifyAll(); } public void testReadAssembly_ShouldReadAssemblyWithComponentWithoutSiteDirInclusionOrInterpolation() throws IOException, AssemblyReadException, InvalidAssemblerConfigurationException { File componentsFile = fileManager.createTempFile(); File basedir = componentsFile.getParentFile(); String componentsFilename = componentsFile.getName(); Component component = new Component(); FileSet fs = new FileSet(); fs.setDirectory( "/dir" ); component.addFileSet( fs ); Writer fw = null; try { fw = new OutputStreamWriter( new FileOutputStream( componentsFile ), "UTF-8" ); new ComponentXpp3Writer().write( fw, component ); } finally { IOUtil.close( fw ); } Assembly assembly = new Assembly(); assembly.setId( "test" ); assembly.addComponentDescriptor( componentsFilename ); StringWriter sw = new StringWriter(); AssemblyXpp3Writer assemblyWriter = new AssemblyXpp3Writer(); assemblyWriter.write( sw, assembly ); StringReader sr = new StringReader( sw.toString() ); configSource.getBasedir(); configSourceControl.setReturnValue( basedir, MockControl.ZERO_OR_MORE ); Model model = new Model(); model.setGroupId( "group" ); model.setArtifactId( "artifact" ); model.setVersion( "version" ); MavenProject project = new MavenProject( model ); configSource.getProject(); configSourceControl.setReturnValue( project, MockControl.ZERO_OR_MORE ); configSource.isSiteIncluded(); configSourceControl.setReturnValue( false, MockControl.ZERO_OR_MORE ); mockManager.replayAll(); Assembly result = new DefaultAssemblyReader().readAssembly( sr, "testLocation", configSource ); assertEquals( assembly.getId(), result.getId() ); List fileSets = result.getFileSets(); assertEquals( 1, fileSets.size() ); assertEquals( "/dir", ( (FileSet) fileSets.get( 0 ) ).getDirectory() ); mockManager.verifyAll(); } public void testReadAssembly_ShouldReadAssemblyWithComponentInterpolationWithoutSiteDirInclusionOrAssemblyInterpolation() throws IOException, AssemblyReadException, InvalidAssemblerConfigurationException { File componentsFile = fileManager.createTempFile(); File basedir = componentsFile.getParentFile(); String componentsFilename = componentsFile.getName(); Component component = new Component(); FileSet fs = new FileSet(); fs.setDirectory( "${groupId}-dir" ); component.addFileSet( fs ); Writer fw = null; try { fw = new OutputStreamWriter( new FileOutputStream( componentsFile ), "UTF-8" ); new ComponentXpp3Writer().write( fw, component ); } finally { IOUtil.close( fw ); } Assembly assembly = new Assembly(); assembly.setId( "test" ); assembly.addComponentDescriptor( componentsFilename ); StringWriter sw = new StringWriter(); AssemblyXpp3Writer assemblyWriter = new AssemblyXpp3Writer(); assemblyWriter.write( sw, assembly ); StringReader sr = new StringReader( sw.toString() ); configSource.getBasedir(); configSourceControl.setReturnValue( basedir, MockControl.ONE_OR_MORE ); Model model = new Model(); model.setGroupId( "group" ); model.setArtifactId( "artifact" ); model.setVersion( "version" ); MavenProject project = new MavenProject( model ); configSource.getProject(); configSourceControl.setReturnValue( project ); configSource.isSiteIncluded(); configSourceControl.setReturnValue( false ); mockManager.replayAll(); Assembly result = new DefaultAssemblyReader().readAssembly( sr, "testLocation", configSource ); assertEquals( assembly.getId(), result.getId() ); List fileSets = result.getFileSets(); assertEquals( 1, fileSets.size() ); assertEquals( "group-dir", ( (FileSet) fileSets.get( 0 ) ).getDirectory() ); mockManager.verifyAll(); } public void testReadAssembly_ShouldReadAssemblyWithInterpolationWithoutComponentsOrSiteDirInclusion() throws IOException, AssemblyReadException, InvalidAssemblerConfigurationException { Assembly assembly = new Assembly(); assembly.setId( "${groupId}-assembly" ); StringWriter sw = new StringWriter(); AssemblyXpp3Writer assemblyWriter = new AssemblyXpp3Writer(); assemblyWriter.write( sw, assembly ); StringReader sr = new StringReader( sw.toString() ); File basedir = fileManager.createTempDir(); configSource.getBasedir(); configSourceControl.setReturnValue( basedir, MockControl.ZERO_OR_MORE ); Model model = new Model(); model.setGroupId( "group" ); model.setArtifactId( "artifact" ); model.setVersion( "version" ); MavenProject project = new MavenProject( model ); configSource.getProject(); configSourceControl.setReturnValue( project, MockControl.ZERO_OR_MORE ); configSource.isSiteIncluded(); configSourceControl.setReturnValue( false, MockControl.ZERO_OR_MORE ); mockManager.replayAll(); Assembly result = new DefaultAssemblyReader().readAssembly( sr, "testLocation", configSource ); assertEquals( "group-assembly", result.getId() ); mockManager.verifyAll(); } public void testGetAssemblyFromDescriptorFile_ShouldReadAssembly() throws IOException, AssemblyReadException, InvalidAssemblerConfigurationException { Assembly assembly = new Assembly(); assembly.setId( "test" ); FileSet fs = new FileSet(); fs.setDirectory( "/dir" ); assembly.addFileSet( fs ); File assemblyFile = fileManager.createTempFile(); File basedir = assemblyFile.getParentFile(); configSource.getBasedir(); configSourceControl.setReturnValue( basedir, MockControl.ZERO_OR_MORE ); configSource.getProject(); configSourceControl.setReturnValue( new MavenProject( new Model() ), MockControl.ZERO_OR_MORE ); configSource.isSiteIncluded(); configSourceControl.setReturnValue( false, MockControl.ZERO_OR_MORE ); Writer writer = null; try { writer = new OutputStreamWriter( new FileOutputStream( assemblyFile ), "UTF-8" ); new AssemblyXpp3Writer().write( writer, assembly ); } finally { IOUtil.close( writer ); } mockManager.replayAll(); Assembly result = new DefaultAssemblyReader().getAssemblyFromDescriptorFile( assemblyFile, configSource ); assertEquals( assembly.getId(), result.getId() ); mockManager.verifyAll(); } public void testGetAssemblyForDescriptorReference_ShouldReadBinaryAssemblyRef() throws IOException, AssemblyReadException, InvalidAssemblerConfigurationException { File basedir = fileManager.createTempDir(); configSource.getBasedir(); configSourceControl.setReturnValue( basedir, MockControl.ZERO_OR_MORE ); configSource.getProject(); configSourceControl.setReturnValue( new MavenProject( new Model() ), MockControl.ZERO_OR_MORE ); configSource.isSiteIncluded(); configSourceControl.setReturnValue( false, MockControl.ZERO_OR_MORE ); configSource.isIgnoreMissingDescriptor(); configSourceControl.setReturnValue( false, MockControl.ZERO_OR_MORE ); mockManager.replayAll(); Assembly result = new DefaultAssemblyReader().getAssemblyForDescriptorReference( "bin", configSource ); assertEquals( "bin", result.getId() ); mockManager.verifyAll(); } public void testReadAssemblies_ShouldGetAssemblyDescriptorFromSingleFile() throws IOException, AssemblyReadException, InvalidAssemblerConfigurationException { Assembly assembly = new Assembly(); assembly.setId( "test" ); FileSet fs = new FileSet(); fs.setDirectory( "/dir" ); assembly.addFileSet( fs ); File basedir = fileManager.createTempDir(); List files = writeAssembliesToFile( Collections.singletonList( assembly ), basedir ); String assemblyFile = (String) files.get( 0 ); List assemblies = performReadAssemblies( basedir, assemblyFile, null, null, null, null ); assertNotNull( assemblies ); assertEquals( 1, assemblies.size() ); Assembly result = (Assembly) assemblies.get( 0 ); assertEquals( assembly.getId(), result.getId() ); } public void testReadAssemblies_ShouldFailWhenSingleDescriptorFileMissing() throws IOException, InvalidAssemblerConfigurationException { File basedir = fileManager.createTempDir(); File assemblyFile = new File( basedir, "test.xml" ); assemblyFile.delete(); try { performReadAssemblies( basedir, assemblyFile.getAbsolutePath(), null, null, null, null, false ); fail( "Should fail when descriptor file is missing and ignoreDescriptors == false" ); } catch ( AssemblyReadException e ) { // expected. } } public void testReadAssemblies_ShouldIgnoreMissingSingleDescriptorFileWhenIgnoreIsConfigured() throws IOException, InvalidAssemblerConfigurationException { File basedir = fileManager.createTempDir(); File assemblyFile = new File( basedir, "test.xml" ); assemblyFile.delete(); try { performReadAssemblies( basedir, assemblyFile.getAbsolutePath(), null, null, null, null, true ); } catch ( AssemblyReadException e ) { e.printStackTrace(); fail( "Setting ignoreMissingDescriptor == true (true flag in performReadAssemblies, above) should NOT produce an exception." ); } } public void testReadAssemblies_ShouldGetAssemblyDescriptorFromSingleRef() throws IOException, AssemblyReadException, InvalidAssemblerConfigurationException { File basedir = fileManager.createTempDir(); List assemblies = performReadAssemblies( basedir, null, "bin", null, null, null ); assertNotNull( assemblies ); assertEquals( 1, assemblies.size() ); Assembly result = (Assembly) assemblies.get( 0 ); assertEquals( "bin", result.getId() ); } public void testReadAssemblies_ShouldGetAssemblyDescriptorFromFileArray() throws IOException, AssemblyReadException, InvalidAssemblerConfigurationException { Assembly assembly1 = new Assembly(); assembly1.setId( "test" ); Assembly assembly2 = new Assembly(); assembly2.setId( "test2" ); List assemblies = new ArrayList(); assemblies.add( assembly1 ); assemblies.add( assembly2 ); File basedir = fileManager.createTempDir(); List files = writeAssembliesToFile( assemblies, basedir ); List results = performReadAssemblies( basedir, null, null, (String[]) files.toArray( new String[0] ), null, null ); assertNotNull( results ); assertEquals( 2, results.size() ); Assembly result1 = (Assembly) assemblies.get( 0 ); assertEquals( assembly1.getId(), result1.getId() ); Assembly result2 = (Assembly) assemblies.get( 1 ); assertEquals( assembly2.getId(), result2.getId() ); } public void testReadAssemblies_ShouldGetAssemblyDescriptorFromMultipleRefs() throws IOException, AssemblyReadException, InvalidAssemblerConfigurationException { File basedir = fileManager.createTempDir(); List assemblies = performReadAssemblies( basedir, null, null, null, new String[] { "bin", "src" }, null ); assertNotNull( assemblies ); assertEquals( 2, assemblies.size() ); Assembly result = (Assembly) assemblies.get( 0 ); assertEquals( "bin", result.getId() ); Assembly result2 = (Assembly) assemblies.get( 1 ); assertEquals( "src", result2.getId() ); } public void testReadAssemblies_ShouldGetAssemblyDescriptorFromDirectory() throws IOException, AssemblyReadException, InvalidAssemblerConfigurationException { Assembly assembly1 = new Assembly(); assembly1.setId( "test" ); Assembly assembly2 = new Assembly(); assembly2.setId( "test2" ); List assemblies = new ArrayList(); assemblies.add( assembly1 ); assemblies.add( assembly2 ); File basedir = fileManager.createTempDir(); writeAssembliesToFile( assemblies, basedir ); List results = performReadAssemblies( basedir, null, null, null, null, basedir ); assertNotNull( results ); assertEquals( 2, results.size() ); Assembly result1 = (Assembly) assemblies.get( 0 ); assertEquals( assembly1.getId(), result1.getId() ); Assembly result2 = (Assembly) assemblies.get( 1 ); assertEquals( assembly2.getId(), result2.getId() ); } public void testReadAssemblies_ShouldGetTwoAssemblyDescriptorsFromDirectoryWithThreeFiles() throws IOException, AssemblyReadException, InvalidAssemblerConfigurationException { Assembly assembly1 = new Assembly(); assembly1.setId( "test" ); Assembly assembly2 = new Assembly(); assembly2.setId( "test2" ); List assemblies = new ArrayList(); assemblies.add( assembly1 ); assemblies.add( assembly2 ); File basedir = fileManager.createTempDir(); writeAssembliesToFile( assemblies, basedir ); fileManager.createFile( basedir, "readme.txt", "This is just a readme file, not a descriptor." ); List results = performReadAssemblies( basedir, null, null, null, null, basedir ); assertNotNull( results ); assertEquals( 2, results.size() ); Assembly result1 = (Assembly) assemblies.get( 0 ); assertEquals( assembly1.getId(), result1.getId() ); Assembly result2 = (Assembly) assemblies.get( 1 ); assertEquals( assembly2.getId(), result2.getId() ); } private List writeAssembliesToFile( List assemblies, File dir ) throws IOException { List files = new ArrayList(); for ( Iterator it = assemblies.iterator(); it.hasNext(); ) { Assembly assembly = (Assembly) it.next(); File assemblyFile = new File( dir, assembly.getId() + ".xml" ); Writer writer = null; try { writer = new OutputStreamWriter( new FileOutputStream( assemblyFile ), "UTF-8" ); new AssemblyXpp3Writer().write( writer, assembly ); } finally { IOUtil.close( writer ); } files.add( assemblyFile.getAbsolutePath() ); } return files; } private List performReadAssemblies( File basedir, String descriptor, String descriptorRef, String[] descriptors, String[] descriptorRefs, File descriptorDir ) throws AssemblyReadException, InvalidAssemblerConfigurationException { return performReadAssemblies( basedir, descriptor, descriptorRef, descriptors, descriptorRefs, descriptorDir, false ); } private List performReadAssemblies( File basedir, String descriptor, String descriptorRef, String[] descriptors, String[] descriptorRefs, File descriptorDir, boolean ignoreMissing ) throws AssemblyReadException, InvalidAssemblerConfigurationException { configSource.getDescriptor(); configSourceControl.setReturnValue( descriptor ); configSource.getDescriptorId(); configSourceControl.setReturnValue( descriptorRef ); configSource.getDescriptorReferences(); configSourceControl.setReturnValue( descriptorRefs ); configSource.getDescriptors(); configSourceControl.setReturnValue( descriptors ); configSource.getDescriptorSourceDirectory(); configSourceControl.setReturnValue( descriptorDir ); configSource.getBasedir(); configSourceControl.setReturnValue( basedir, MockControl.ZERO_OR_MORE ); configSource.getProject(); configSourceControl.setReturnValue( new MavenProject( new Model() ), MockControl.ZERO_OR_MORE ); configSource.isSiteIncluded(); configSourceControl.setReturnValue( false, MockControl.ZERO_OR_MORE ); configSource.isIgnoreMissingDescriptor(); configSourceControl.setReturnValue( ignoreMissing, MockControl.ZERO_OR_MORE ); mockManager.replayAll(); List assemblies = new DefaultAssemblyReader().readAssemblies( configSource ); mockManager.verifyAll(); return assemblies; } } ././@LongLink0000000000000000000000000000017400000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/io/PrefixedClasspathLocatorStrategyTest.javamaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/io/PrefixedClasspathL0000644000175000017500000000517111306533772033665 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.io; /* * 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 org.apache.maven.shared.io.location.Location; import org.apache.maven.shared.io.location.LocatorStrategy; import org.apache.maven.shared.io.logging.DefaultMessageHolder; import org.apache.maven.shared.io.logging.MessageHolder; import junit.framework.TestCase; /** * @author Benjamin Bentmann */ public class PrefixedClasspathLocatorStrategyTest extends TestCase { public void testResolvePrefixWithLeadingSlashAndWithTrailingSlash() { MessageHolder mh = new DefaultMessageHolder(); LocatorStrategy ls = new PrefixedClasspathLocatorStrategy( "/assemblies/" ); Location location = ls.resolve( "empty.xml", mh ); assertNotNull( location ); assertEquals( 0, mh.size() ); } public void testResolvePrefixWithLeadingSlashAndWithoutTrailingSlash() { MessageHolder mh = new DefaultMessageHolder(); LocatorStrategy ls = new PrefixedClasspathLocatorStrategy( "/assemblies" ); Location location = ls.resolve( "empty.xml", mh ); assertNotNull( location ); assertEquals( 0, mh.size() ); } public void testResolvePrefixWithoutLeadingSlashAndWithTrailingSlash() { MessageHolder mh = new DefaultMessageHolder(); LocatorStrategy ls = new PrefixedClasspathLocatorStrategy( "assemblies/" ); Location location = ls.resolve( "empty.xml", mh ); assertNotNull( location ); assertEquals( 0, mh.size() ); } public void testResolvePrefixWithoutLeadingSlashAndWithoutTrailingSlash() { MessageHolder mh = new DefaultMessageHolder(); LocatorStrategy ls = new PrefixedClasspathLocatorStrategy( "assemblies" ); Location location = ls.resolve( "empty.xml", mh ); assertNotNull( location ); assertEquals( 0, mh.size() ); } } maven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/utils/0000755000175000017500000000000011361635305030736 5ustar twernertwerner././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/utils/TypeConversionUtilsTest.javamaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/utils/TypeConversionU0000644000175000017500000001022411123544663033776 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.utils; /* * 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 org.apache.maven.plugin.assembly.format.AssemblyFormattingException; import org.codehaus.plexus.logging.Logger; import org.codehaus.plexus.logging.console.ConsoleLogger; import org.codehaus.plexus.util.StringOutputStream; import java.io.PrintStream; import java.util.ArrayList; import java.util.Collections; import java.util.Iterator; import java.util.List; import junit.framework.TestCase; public class TypeConversionUtilsTest extends TestCase { public void testModeToInt_InterpretAsOctalWithoutLeadingZero() throws AssemblyFormattingException { int check = Integer.decode( "0777" ).intValue(); int test = TypeConversionUtils.modeToInt( "777", new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ); assertEquals( check, test ); } public void testModeToInt_InterpretValuesWithLeadingZeroAsOctal() throws AssemblyFormattingException { int check = Integer.decode( "0777" ).intValue(); int test = TypeConversionUtils.modeToInt( "0777", new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ); assertEquals( check, test ); } public void testModeToInt_FailOnInvalidOctalValue() { try { TypeConversionUtils.modeToInt( "493", new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ); fail( "'493' is an invalid mode and should trigger an exception." ); } catch ( AssemblyFormattingException e ) { // expected. } } public void testVerifyModeSanity_WarnOnNonsensicalOctalValue_002() { List messages = new ArrayList( 2 ); messages.add( "World has write access, but user does not." ); messages.add( "World has write access, but group does not." ); checkFileModeSanity( "002", false, messages ); } public void testVerifyModeSanity_WarnOnNonsensicalOctalValue_020() { List messages = new ArrayList( 1 ); messages.add( "Group has write access, but user does not." ); checkFileModeSanity( "020", false, messages ); } public void testVerifyModeSanity_ReturnTrueForValidOctalValue_775() { checkFileModeSanity( "775", true, Collections.EMPTY_LIST ); } private void checkFileModeSanity( String mode, boolean isSane, List messagesToCheckIfInsane ) { StringOutputStream sos = new StringOutputStream(); PrintStream ps = new PrintStream( sos ); PrintStream oldOut = System.out; PrintStream oldErr = System.err; try { System.setOut( ps ); System.setErr( ps ); assertEquals( "Mode sanity should be: " + isSane, isSane, TypeConversionUtils.verifyModeSanity( Integer.parseInt( mode, 8 ), new ConsoleLogger( Logger.LEVEL_WARN, "test" ) ) ); } finally { System.setOut( oldOut ); System.setErr( oldErr ); } if ( !isSane && messagesToCheckIfInsane != null && !messagesToCheckIfInsane.isEmpty() ) { String message = sos.toString(); for ( Iterator it = messagesToCheckIfInsane.iterator(); it.hasNext(); ) { String checkMessage = (String) it.next(); assertTrue( "\'" + checkMessage + "\' is not present in output.", message.indexOf( checkMessage ) > -1 ); } } } } ././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/utils/AssemblyFileUtilsTest.javamaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/utils/AssemblyFileUti0000644000175000017500000001427711123544663033737 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.utils; /* * 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.io.FileReader; import java.io.IOException; import java.io.StringReader; import java.io.StringWriter; import junit.framework.TestCase; import org.apache.maven.plugin.assembly.archive.ArchiveExpansionException; import org.apache.maven.plugin.assembly.format.AssemblyFormattingException; import org.apache.maven.plugin.assembly.testutils.MockManager; import org.apache.maven.plugin.assembly.testutils.TestFileManager; import org.codehaus.plexus.archiver.ArchiverException; import org.codehaus.plexus.archiver.UnArchiver; import org.codehaus.plexus.archiver.manager.ArchiverManager; import org.codehaus.plexus.archiver.manager.NoSuchArchiverException; import org.codehaus.plexus.util.IOUtil; import org.easymock.MockControl; public class AssemblyFileUtilsTest extends TestCase { private TestFileManager fileManager = new TestFileManager( "file-utils.test.", "" ); public void tearDown() throws IOException { fileManager.cleanUp(); } public void testUnpack_ShouldSetSourceAndDestinationAndCallExtract() throws IOException, ArchiveExpansionException, NoSuchArchiverException { MockManager mockManager = new MockManager(); File source = fileManager.createTempFile(); File destDir = fileManager.createTempDir(); MockControl unarchiverCtl = MockControl.createControl( UnArchiver.class ); mockManager.add( unarchiverCtl ); UnArchiver unarchiver = (UnArchiver) unarchiverCtl.getMock(); MockControl archiverManagerCtl = MockControl.createControl( ArchiverManager.class ); mockManager.add( archiverManagerCtl ); ArchiverManager archiverManager = (ArchiverManager) archiverManagerCtl.getMock(); try { archiverManager.getUnArchiver( source ); archiverManagerCtl.setReturnValue( unarchiver ); } catch ( NoSuchArchiverException e ) { fail( "Should never happen." ); } unarchiver.setSourceFile( source ); unarchiver.setDestDirectory( destDir ); try { unarchiver.extract(); } catch ( ArchiverException e ) { fail( "Should never happen." ); } mockManager.replayAll(); AssemblyFileUtils.unpack( source, destDir, archiverManager ); mockManager.verifyAll(); } public void testGetLineEndingChars_ShouldReturnDosLineEnding() throws AssemblyFormattingException { assertEquals( "\r\n", AssemblyFileUtils.getLineEndingCharacters( "dos" ) ); assertEquals( "\r\n", AssemblyFileUtils.getLineEndingCharacters( "crlf" ) ); } public void testGetLineEndingChars_ShouldReturnUnixLineEnding() throws AssemblyFormattingException { assertEquals( "\n", AssemblyFileUtils.getLineEndingCharacters( "unix" ) ); assertEquals( "\n", AssemblyFileUtils.getLineEndingCharacters( "lf" ) ); } public void testGetLineEndingChars_ShouldReturnNullLineEnding() throws AssemblyFormattingException { assertNull( AssemblyFileUtils.getLineEndingCharacters( "keep" ) ); } public void testGetLineEndingChars_ShouldThrowFormattingExceptionWithInvalidHint() { try { AssemblyFileUtils.getLineEndingCharacters( "invalid" ); fail( "Invalid line-ending hint should throw a formatting exception." ); } catch ( AssemblyFormattingException e ) { } } // TODO: Fix the end-of-document problem with line-ending conversions. public void testConvertLineEndings_ShouldReplaceLFWithCRLF() throws IOException { String test = "This is a \ntest."; String check = "This is a \r\ntest.\r\n"; testConversion( test, check, "\r\n" ); } // TODO: Fix the end-of-document problem with line-ending conversions. public void testConvertLineEndings_ShouldReplaceCRLFWithLF() throws IOException { String test = "This is a \r\ntest."; String check = "This is a \ntest.\n"; testConversion( test, check, "\n" ); } // TODO: Fix the end-of-document problem with line-ending conversions. public void testConvertLineEndings_ShouldReplaceLFWithLF() throws IOException { String test = "This is a \ntest."; String check = "This is a \ntest.\n"; testConversion( test, check, "\n" ); } // TODO: Fix the end-of-document problem with line-ending conversions. public void testConvertLineEndings_ShouldReplaceCRLFWithCRLF() throws IOException { String test = "This is a \r\ntest."; String check = "This is a \r\ntest.\r\n"; testConversion( test, check, "\r\n" ); } private void testConversion( String test, String check, String lineEndingChars ) throws IOException { File dest = File.createTempFile( "line-conversion-test.", "" ); dest.deleteOnExit(); AssemblyFileUtils.convertLineEndings( new StringReader( test ), dest, lineEndingChars ); FileReader reader = null; StringWriter writer = new StringWriter(); try { reader = new FileReader( dest ); IOUtil.copy( reader, writer ); } finally { IOUtil.close( reader ); } assertEquals( check, writer.toString() ); } } ././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/utils/AssemblyFormatUtilsTest.javamaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/utils/AssemblyFormatU0000644000175000017500000007012411123544663033744 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.utils; /* * 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 org.apache.maven.execution.MavenSession; import org.apache.maven.model.Build; import org.apache.maven.model.Model; import org.apache.maven.plugin.assembly.AssemblerConfigurationSource; import org.apache.maven.plugin.assembly.archive.task.testutils.ArtifactMock; import org.apache.maven.plugin.assembly.format.AssemblyFormattingException; import org.apache.maven.plugin.assembly.model.Assembly; import org.apache.maven.plugin.assembly.testutils.MockManager; import org.apache.maven.project.MavenProject; import org.easymock.MockControl; import org.easymock.classextension.MockClassControl; import java.util.Properties; import junit.framework.TestCase; public class AssemblyFormatUtilsTest extends TestCase { private MockManager mockManager = new MockManager(); public void testGetDistroName_ShouldUseJustFinalNameWithNoAppendAssemblyIdOrClassifier() { verifyDistroName( "assembly", null, "finalName", false, "finalName" ); } public void testGetDistroName_ShouldUseFinalNamePlusClassifierWhenAppendAssemblyIdIsNull() { verifyDistroName( "assembly", "classifier", "finalName", false, "finalName-classifier" ); } public void testGetOutputDir_ShouldResolveGroupIdInOutDir_UseArtifactInfo() throws AssemblyFormattingException { verifyOutputDirUsingArtifactProject( "${artifact.groupId}", null, "group", null, null, null, null, "group/" ); } public void testGetOutputDir_ShouldResolveArtifactIdInOutDir_UseArtifactInfo() throws AssemblyFormattingException { verifyOutputDirUsingArtifactProject( "${artifact.artifactId}", null, null, "artifact", null, null, null, "artifact/" ); } public void testGetOutputDir_ShouldResolveVersionInOutDir_UseArtifactInfo() throws AssemblyFormattingException { verifyOutputDirUsingArtifactProject( "${artifact.version}", null, null, null, "version", null, null, "version/" ); } public void testGetOutputDir_ShouldResolveBuildFinalNameInOutDir_UseArtifactInfo() throws AssemblyFormattingException { verifyOutputDirUsingArtifactProject( "${artifact.build.finalName}", null, null, null, null, "finalName", null, "finalName/" ); } public void testGetOutputDir_ShouldResolveGroupIdInOutDir_UseModuleInfo() throws AssemblyFormattingException { verifyOutputDirUsingModuleProject( "${module.groupId}", null, "group", null, null, null, null, "group/" ); } public void testGetOutputDir_ShouldResolveArtifactIdInOutDir_UseModuleInfo() throws AssemblyFormattingException { verifyOutputDirUsingModuleProject( "${module.artifactId}", null, null, "artifact", null, null, null, "artifact/" ); } public void testGetOutputDir_ShouldResolveVersionInOutDir_UseModuleInfo() throws AssemblyFormattingException { verifyOutputDirUsingModuleProject( "${module.version}", null, null, null, "version", null, null, "version/" ); } public void testGetOutputDir_ShouldResolveBuildFinalNameInOutDir_UseModuleInfo() throws AssemblyFormattingException { verifyOutputDirUsingModuleProject( "${module.build.finalName}", null, null, null, null, "finalName", null, "finalName/" ); } public void testGetOutputDir_ShouldResolveGroupIdInOutDir_UseExplicitMainProject() throws AssemblyFormattingException { verifyOutputDirUsingMainProject( "${pom.groupId}", null, "group", null, null, null, null, "group/" ); } public void testGetOutputDir_ShouldResolveArtifactIdInOutDir_UseExplicitMainProject() throws AssemblyFormattingException { verifyOutputDirUsingMainProject( "${pom.artifactId}", null, null, "artifact", null, null, null, "artifact/" ); } public void testGetOutputDir_ShouldResolveVersionInOutDir_UseExplicitMainProject() throws AssemblyFormattingException { verifyOutputDirUsingMainProject( "${pom.version}", null, null, null, "version", null, null, "version/" ); } public void testGetOutputDir_ShouldResolveBuildFinalNameInOutDir_UseExplicitMainProject() throws AssemblyFormattingException { verifyOutputDirUsingMainProject( "${pom.build.finalName}", null, null, null, null, "finalName", null, "finalName/" ); } public void testGetOutputDir_ShouldResolveGroupIdInOutDir_UseExplicitMainProject_projectRef() throws AssemblyFormattingException { verifyOutputDirUsingMainProject( "${project.groupId}", null, "group", null, null, null, null, "group/" ); } public void testGetOutputDir_ShouldResolveArtifactIdInOutDir_UseExplicitMainProject_projectRef() throws AssemblyFormattingException { verifyOutputDirUsingMainProject( "${project.artifactId}", null, null, "artifact", null, null, null, "artifact/" ); } public void testGetOutputDir_ShouldResolveVersionInOutDir_UseExplicitMainProject_projectRef() throws AssemblyFormattingException { verifyOutputDirUsingMainProject( "${project.version}", null, null, null, "version", null, null, "version/" ); } public void testGetOutputDir_ShouldResolveBuildFinalNameInOutDir_UseExplicitMainProject_projectRef() throws AssemblyFormattingException { verifyOutputDir( "${project.build.finalName}", null, "finalName", "finalName/" ); } public void testGetOutputDir_ShouldNotAlterOutDirWhenIncludeBaseFalseAndNoExpressions() throws AssemblyFormattingException { verifyOutputDir( "dir/", "finalName", null, "dir/" ); } public void testGetOutputDir_ShouldNotAlterOutDirWhenIncludeBaseFalseAndNoExpressions_CheckWithBackslash() throws AssemblyFormattingException { verifyOutputDir( "dir\\", "finalName", null, "dir\\" ); } public void testGetOutputDir_ShouldAppendSlashToOutDirWhenMissingAndIncludeBaseFalseAndNoExpressions() throws AssemblyFormattingException { verifyOutputDir( "dir", "finalName", null, "dir/" ); } public void testGetOutputDir_ShouldResolveGroupIdInOutDir() throws AssemblyFormattingException { verifyOutputDirUsingMainProject( "${groupId}", "finalName", "group", null, null, null, null, "group/" ); } public void testGetOutputDir_ShouldResolveArtifactIdInOutDir() throws AssemblyFormattingException { verifyOutputDirUsingMainProject( "${artifactId}", "finalName", null, "artifact", null, null, null, "artifact/" ); } public void testGetOutputDir_ShouldResolveVersionInOutDir() throws AssemblyFormattingException { verifyOutputDirUsingMainProject( "${version}", "finalName", null, null, "version", null, null, "version/" ); } public void testGetOutputDir_ShouldResolveVersionInLargerOutDirExpr() throws AssemblyFormattingException { verifyOutputDirUsingMainProject( "my-special-${version}", "finalName", null, null, "99", null, null, "my-special-99/" ); } public void testGetOutputDir_ShouldResolveFinalNameInOutDir() throws AssemblyFormattingException { verifyOutputDir( "${finalName}", "finalName", null, "finalName/" ); } public void testGetOutputDir_ShouldResolveBuildFinalNameInOutDir() throws AssemblyFormattingException { verifyOutputDir( "${build.finalName}", "finalName", null, "finalName/" ); } public void testGetOutputDir_ShouldReturnEmptyPathWhenAllInputIsEmptyAndIncludeBaseFalse() throws AssemblyFormattingException { verifyOutputDir( null, null, null, "" ); } public void testGetOutputDir_ShouldResolveProjectProperty() throws AssemblyFormattingException { Properties props = new Properties(); props.setProperty( "myProperty", "value" ); verifyOutputDirUsingMainProject( "file.${myProperty}", null, null, null, null, null, props, "file.value/" ); } public void testGetOutputDir_ShouldResolveProjectPropertyAltExpr() throws AssemblyFormattingException { Properties props = new Properties(); props.setProperty( "myProperty", "value" ); verifyOutputDirUsingMainProject( "file.${pom.properties.myProperty}", null, null, null, null, null, props, "file.value/" ); } public void testEvalFileNameMapping_ShouldResolveArtifactIdAndBaseVersionInOutDir_UseArtifactInfo_WithValidMainProject() throws AssemblyFormattingException { MavenProject mainProject = createProject( "group", "main", "1", null ); String artifactVersion = "2-20070807.112233-1"; String artifactBaseVersion = "2-SNAPSHOT"; MavenProject artifactProject = createProject( "group", "artifact", artifactVersion, null ); ArtifactMock artifactMock = new ArtifactMock( mockManager, "group", "artifact", artifactVersion, "jar", true, artifactBaseVersion ); artifactProject.setArtifact( artifactMock.getArtifact() ); MockControl sessionCtl = MockClassControl.createControl( MavenSession.class ); mockManager.add( sessionCtl ); MavenSession session = (MavenSession) sessionCtl.getMock(); session.getExecutionProperties(); sessionCtl.setReturnValue( null, MockControl.ZERO_OR_MORE ); MockControl csCtl = MockControl.createControl( AssemblerConfigurationSource.class ); mockManager.add( csCtl ); AssemblerConfigurationSource cs = (AssemblerConfigurationSource) csCtl.getMock(); cs.getMavenSession(); csCtl.setReturnValue( session, MockControl.ZERO_OR_MORE ); mockManager.replayAll(); String result = AssemblyFormatUtils.evaluateFileNameMapping( "${artifact.artifactId}-${artifact.baseVersion}", artifactMock.getArtifact(), mainProject, artifactProject, cs ); assertEquals( "artifact-2-SNAPSHOT", result ); mockManager.verifyAll(); // clear out for next call. mockManager.clear(); } public void testEvalFileNameMapping_ShouldResolveGroupIdInOutDir_UseArtifactInfo() throws AssemblyFormattingException { verifyEvalFileNameMappingUsingArtifactProject( "${artifact.groupId}", null, "group", null, null, null, "group", null ); } public void testEvalFileNameMapping_ShouldResolveArtifactIdInOutDir_UseArtifactInfo() throws AssemblyFormattingException { verifyEvalFileNameMappingUsingArtifactProject( "${artifact.artifactId}", null, null, "artifact", null, null, "artifact", null ); } public void testEvalFileNameMapping_ShouldResolveVersionInOutDir_UseArtifactInfo() throws AssemblyFormattingException { verifyEvalFileNameMappingUsingArtifactProject( "${artifact.version}", null, null, null, "version", null, "version", null ); } public void testEvalFileNameMapping_ShouldResolveGroupIdInOutDir_UseArtifactInfoAndModulePrefix() throws AssemblyFormattingException { verifyEvalFileNameMappingUsingModuleProject( "${module.groupId}", null, "group", null, null, null, "group", null ); } public void testEvalFileNameMapping_ShouldResolveArtifactIdInOutDir_UseArtifactInfoAndModulePrefix() throws AssemblyFormattingException { verifyEvalFileNameMappingUsingModuleProject( "${module.artifactId}", null, null, "artifact", null, null, "artifact", null ); } public void testEvalFileNameMapping_ShouldResolveVersionInOutDir_UseArtifactInfoAndModulePrefix() throws AssemblyFormattingException { verifyEvalFileNameMappingUsingModuleProject( "${module.version}", null, null, null, "version", null, "version", null ); } public void testEvalFileNameMapping_ShouldResolveGroupIdInOutDir_UseExplicitMainProject() throws AssemblyFormattingException { verifyEvalFileNameMappingUsingMainProject( "${pom.groupId}", null, "group", null, null, null, "group", null ); } public void testEvalFileNameMapping_ShouldResolveArtifactIdInOutDir_UseExplicitMainProject() throws AssemblyFormattingException { verifyEvalFileNameMappingUsingMainProject( "${pom.artifactId}", null, null, "artifact", null, null, "artifact", null ); } public void testEvalFileNameMapping_ShouldResolveVersionInOutDir_UseExplicitMainProject() throws AssemblyFormattingException { verifyEvalFileNameMappingUsingMainProject( "${pom.version}", null, null, null, "version", null, "version", null ); } public void testEvalFileNameMapping_ShouldResolveGroupIdInOutDir_UseExplicitMainProject_projectRef() throws AssemblyFormattingException { verifyEvalFileNameMappingUsingMainProject( "${project.groupId}", null, "group", null, null, null, "group", null ); } public void testEvalFileNameMapping_ShouldResolveArtifactIdInOutDir_UseExplicitMainProject_projectRef() throws AssemblyFormattingException { verifyEvalFileNameMappingUsingMainProject( "${project.artifactId}", null, null, "artifact", null, null, "artifact", null ); } public void testEvalFileNameMapping_ShouldResolveVersionInOutDir_UseExplicitMainProject_projectRef() throws AssemblyFormattingException { verifyEvalFileNameMappingUsingMainProject( "${project.version}", null, null, null, "version", null, "version", null ); } public void testEvalFileNameMapping_ShouldPassExpressionThroughUnchanged() throws AssemblyFormattingException { verifyEvalFileNameMapping( "filename", null, null, "filename", null ); } public void testEvalFileNameMapping_ShouldInsertClassifierAheadOfExtension() throws AssemblyFormattingException { verifyEvalFileNameMapping( "filename-${artifact.classifier}.ext", "classifier", null, "filename-classifier.ext", null ); } public void testEvalFileNameMapping_ShouldAppendDashClassifierWhenClassifierPresent() throws AssemblyFormattingException { verifyEvalFileNameMapping( "filename${dashClassifier?}", "classifier", null, "filename-classifier", null ); } public void testEvalFileNameMapping_ShouldNotAppendDashClassifierWhenClassifierMissing() throws AssemblyFormattingException { verifyEvalFileNameMapping( "filename${dashClassifier?}", null, null, "filename", null ); } public void testEvalFileNameMapping_ShouldResolveGroupId() throws AssemblyFormattingException { verifyEvalFileNameMappingUsingMainProject( "${groupId}", null, "group", null, null, null, "group", null ); } public void testEvalFileNameMapping_ShouldResolveArtifactId() throws AssemblyFormattingException { verifyEvalFileNameMappingUsingMainProject( "${artifactId}", null, null, "artifact", null, null, "artifact", null ); } public void testEvalFileNameMapping_ShouldResolveVersion() throws AssemblyFormattingException { verifyEvalFileNameMappingUsingMainProject( "${version}", null, null, null, "version", null, "version", null ); } public void testEvalFileNameMapping_ShouldResolveExtension() throws AssemblyFormattingException { verifyEvalFileNameMapping( "file.${artifact.extension}", null, "ext", "file.ext", null ); } public void testEvalFileNameMapping_ShouldResolveProjectProperty() throws AssemblyFormattingException { Properties props = new Properties(); props.setProperty( "myProperty", "value" ); verifyEvalFileNameMapping( "file.${myProperty}", null, null, "file.value", props ); } public void testEvalFileNameMapping_ShouldResolveProjectPropertyAltExpr() throws AssemblyFormattingException { Properties props = new Properties(); props.setProperty( "myProperty", "value" ); verifyEvalFileNameMapping( "file.${pom.properties.myProperty}", null, null, "file.value", props ); } public void testEvalFileNameMapping_ShouldResolveSystemPropertyWithoutMainProjectPresent() throws AssemblyFormattingException { verifyEvalFileNameMapping( "file.${java.version}", null, null, "file." + System.getProperty( "java.version" ), null ); } private void verifyEvalFileNameMapping( String expression, String classifier, String extension, String checkValue, Properties projectProperties ) throws AssemblyFormattingException { verifyEvalFileNameMappingUsingMainProject( expression, classifier, null, null, null, extension, checkValue, projectProperties ); } private void verifyEvalFileNameMappingUsingMainProject( String expression, String classifier, String groupId, String artifactId, String version, String extension, String checkValue, Properties projectProperties ) throws AssemblyFormattingException { MavenProject mainProject = createProject( groupId, artifactId, version, projectProperties ); MavenProject artifactProject = createProject( "unknown", "unknown", "unknown", null ); MavenProject moduleProject = createProject( "unknown", "unknown", "unknown", null ); verifyEvalFileNameMapping( expression, classifier, extension, mainProject, moduleProject, artifactProject, checkValue ); } private void verifyEvalFileNameMappingUsingArtifactProject( String expression, String classifier, String groupId, String artifactId, String version, String extension, String checkValue, Properties projectProperties ) throws AssemblyFormattingException { MavenProject artifactProject = createProject( groupId, artifactId, version, projectProperties ); MavenProject mainProject = createProject( "unknown", "unknown", "unknown", null ); MavenProject moduleProject = createProject( "unknown", "unknown", "unknown", null ); verifyEvalFileNameMapping( expression, classifier, extension, mainProject, moduleProject, artifactProject, checkValue ); } private void verifyEvalFileNameMappingUsingModuleProject( String expression, String classifier, String groupId, String artifactId, String version, String extension, String checkValue, Properties projectProperties ) throws AssemblyFormattingException { MavenProject moduleProject = createProject( groupId, artifactId, version, projectProperties ); MavenProject mainProject = createProject( "unknown", "unknown", "unknown", null ); MavenProject artifactProject = createProject( "unknown", "unknown", "unknown", null ); verifyEvalFileNameMapping( expression, classifier, extension, mainProject, moduleProject, artifactProject, checkValue ); } private MavenProject createProject( String groupId, String artifactId, String version, Properties projectProperties ) { if ( artifactId == null ) { artifactId = "artifact"; } if ( groupId == null ) { groupId = "group"; } if ( version == null ) { version = "version"; } Model model = new Model(); model.setGroupId( groupId ); model.setArtifactId( artifactId ); model.setVersion( version ); model.setProperties( projectProperties ); return new MavenProject( model ); } private void verifyEvalFileNameMapping( String expression, String classifier, String extension, MavenProject mainProject, MavenProject moduleProject, MavenProject artifactProject, String checkValue ) throws AssemblyFormattingException { ArtifactMock artifactMock = new ArtifactMock( mockManager, artifactProject.getGroupId(), artifactProject.getArtifactId(), artifactProject.getVersion(), extension, classifier, false, null ); ArtifactMock moduleArtifactMock = new ArtifactMock( mockManager, moduleProject.getGroupId(), moduleProject.getArtifactId(), moduleProject.getVersion(), "jar", false, null ); MockControl sessionCtl = MockClassControl.createControl( MavenSession.class ); mockManager.add( sessionCtl ); MavenSession session = (MavenSession) sessionCtl.getMock(); session.getExecutionProperties(); sessionCtl.setReturnValue( System.getProperties(), MockControl.ZERO_OR_MORE ); MockControl csCtl = MockControl.createControl( AssemblerConfigurationSource.class ); mockManager.add( csCtl ); AssemblerConfigurationSource cs = (AssemblerConfigurationSource) csCtl.getMock(); cs.getMavenSession(); csCtl.setReturnValue( session, MockControl.ZERO_OR_MORE ); mockManager.replayAll(); String result = AssemblyFormatUtils.evaluateFileNameMapping( expression, artifactMock.getArtifact(), mainProject, moduleProject, moduleArtifactMock.getArtifact(), artifactProject, cs ); assertEquals( checkValue, result ); mockManager.verifyAll(); // clear out for next call. mockManager.clear(); } private void verifyOutputDir( String outDir, String finalName, String projectFinalName, String checkValue ) throws AssemblyFormattingException { verifyOutputDirUsingMainProject( outDir, finalName, null, null, null, projectFinalName, null, checkValue ); } private void verifyOutputDirUsingMainProject( String outDir, String finalName, String groupId, String artifactId, String version, String projectFinalName, Properties properties, String checkValue ) throws AssemblyFormattingException { MavenProject project = createProject( groupId, artifactId, version, properties ); if ( projectFinalName != null ) { Build build = new Build(); build.setFinalName( projectFinalName ); project.getModel().setBuild( build ); } MavenProject mainProject = project; MavenProject moduleProject = createProject( "unknown", "unknown", "unknown", null ); MavenProject artifactProject = createProject( "unknown", "unknown", "unknown", null ); verifyOutputDir( outDir, finalName, mainProject, moduleProject, artifactProject, checkValue ); } private void verifyOutputDirUsingModuleProject( String outDir, String finalName, String groupId, String artifactId, String version, String projectFinalName, Properties properties, String checkValue ) throws AssemblyFormattingException { MavenProject project = createProject( groupId, artifactId, version, properties ); if ( projectFinalName != null ) { Build build = new Build(); build.setFinalName( projectFinalName ); project.getModel().setBuild( build ); } MavenProject moduleProject = project; MavenProject mainProject = createProject( "unknown", "unknown", "unknown", null ); MavenProject artifactProject = createProject( "unknown", "unknown", "unknown", null ); verifyOutputDir( outDir, finalName, mainProject, moduleProject, artifactProject, checkValue ); } private void verifyOutputDirUsingArtifactProject( String outDir, String finalName, String groupId, String artifactId, String version, String projectFinalName, Properties properties, String checkValue ) throws AssemblyFormattingException { MavenProject project = createProject( groupId, artifactId, version, properties ); if ( projectFinalName != null ) { Build build = new Build(); build.setFinalName( projectFinalName ); project.getModel().setBuild( build ); } MavenProject artifactProject = project; MavenProject moduleProject = createProject( "unknown", "unknown", "unknown", null ); MavenProject mainProject = createProject( "unknown", "unknown", "unknown", null ); verifyOutputDir( outDir, finalName, mainProject, moduleProject, artifactProject, checkValue ); } private void verifyOutputDir( String outDir, String finalName, MavenProject mainProject, MavenProject moduleProject, MavenProject artifactProject, String checkValue ) throws AssemblyFormattingException { MockControl sessionCtl = MockClassControl.createControl( MavenSession.class ); mockManager.add( sessionCtl ); MavenSession session = (MavenSession) sessionCtl.getMock(); session.getExecutionProperties(); sessionCtl.setReturnValue( System.getProperties(), MockControl.ZERO_OR_MORE ); MockControl csCtl = MockControl.createControl( AssemblerConfigurationSource.class ); mockManager.add( csCtl ); AssemblerConfigurationSource cs = (AssemblerConfigurationSource) csCtl.getMock(); cs.getMavenSession(); csCtl.setReturnValue( session, MockControl.ZERO_OR_MORE ); String result; mockManager.replayAll(); result = AssemblyFormatUtils.getOutputDirectory( outDir, mainProject, moduleProject, artifactProject, finalName, cs ); assertEquals( checkValue, result ); mockManager.verifyAll(); mockManager.clear(); } private void verifyDistroName( String assemblyId, String classifier, String finalName, boolean appendAssemblyId, String checkValue ) { MockAndControlForGetDistroName mac = new MockAndControlForGetDistroName( finalName, appendAssemblyId, classifier ); mockManager.replayAll(); Assembly assembly = new Assembly(); assembly.setId( assemblyId ); String result = AssemblyFormatUtils.getDistributionName( assembly, mac.configSource ); assertEquals( checkValue, result ); mockManager.verifyAll(); // clear it out for the next call. mockManager.clear(); } private final class MockAndControlForGetDistroName { MockControl control; AssemblerConfigurationSource configSource; private final String classifier; private final boolean isAssemblyIdAppended; private final String finalName; public MockAndControlForGetDistroName( String finalName, boolean isAssemblyIdAppended, String classifier ) { this.finalName = finalName; this.isAssemblyIdAppended = isAssemblyIdAppended; this.classifier = classifier; control = MockControl.createControl( AssemblerConfigurationSource.class ); mockManager.add( control ); configSource = (AssemblerConfigurationSource) control.getMock(); enableExpectations(); } private void enableExpectations() { configSource.getClassifier(); control.setReturnValue( classifier, MockControl.ONE_OR_MORE ); configSource.isAssemblyIdAppended(); control.setReturnValue( isAssemblyIdAppended, MockControl.ONE_OR_MORE ); configSource.getFinalName(); control.setReturnValue( finalName, MockControl.ONE_OR_MORE ); } } } ././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/utils/FilterUtilsTest.javamaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/utils/FilterUtilsTest0000644000175000017500000003330011123544663033770 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.utils; /* * 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 org.apache.maven.artifact.Artifact; import org.apache.maven.artifact.resolver.filter.ArtifactFilter; import org.apache.maven.model.Model; import org.apache.maven.plugin.assembly.InvalidAssemblerConfigurationException; import org.apache.maven.plugin.assembly.testutils.MockManager; import org.apache.maven.project.MavenProject; import org.codehaus.plexus.logging.Logger; import org.codehaus.plexus.logging.console.ConsoleLogger; import org.easymock.MockControl; import java.util.ArrayList; import java.util.Collections; import java.util.HashSet; import java.util.List; import java.util.Set; import junit.framework.TestCase; public class FilterUtilsTest extends TestCase { private MockManager mockManager = new MockManager(); private Logger logger; public void setUp() { clearAll(); } private void clearAll() { mockManager.clear(); logger = new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ); } public void testFilterArtifacts_ShouldThrowExceptionUsingStrictModeWithUnmatchedInclude() { MockControl artifactCtl = MockControl.createControl( Artifact.class ); Artifact artifact = (Artifact) artifactCtl.getMock(); mockManager.add( artifactCtl ); artifact.getGroupId(); artifactCtl.setReturnValue( "group", MockControl.ONE_OR_MORE ); artifact.getArtifactId(); artifactCtl.setReturnValue( "artifact", MockControl.ONE_OR_MORE ); artifact.getId(); artifactCtl.setReturnValue( "group:artifact:type:version", MockControl.ONE_OR_MORE ); artifact.getDependencyConflictId(); artifactCtl.setReturnValue( "group:artifact:type", MockControl.ONE_OR_MORE ); List includes = new ArrayList(); includes.add( "other.group:other-artifact:type:version" ); List excludes = Collections.EMPTY_LIST; Set artifacts = new HashSet(); artifacts.add( artifact ); mockManager.replayAll(); try { FilterUtils.filterArtifacts( artifacts, includes, excludes, true, false, Collections.EMPTY_LIST, logger ); fail( "Should fail because of unmatched include." ); } catch ( InvalidAssemblerConfigurationException e ) { // expected. } mockManager.verifyAll(); } public void testFilterArtifacts_ShouldNotRemoveArtifactDirectlyIncluded() throws InvalidAssemblerConfigurationException { verifyArtifactInclusion( "group", "artifact", "group:artifact", null, null, null ); verifyArtifactInclusion( "group", "artifact", "group:artifact:jar", null, null, null ); } public void testFilterArtifacts_ShouldNotRemoveArtifactTransitivelyIncluded() throws InvalidAssemblerConfigurationException { verifyArtifactInclusion( "group", "artifact", "group:dependentArtifact", null, Collections .singletonList( "group:dependentArtifact:jar:version" ), null ); } public void testFilterArtifacts_ShouldRemoveArtifactTransitivelyExcluded() throws InvalidAssemblerConfigurationException { verifyArtifactExclusion( "group", "artifact", null, "group:dependentArtifact", Collections .singletonList( "group:dependentArtifact:jar:version" ), null ); } public void testFilterArtifacts_ShouldRemoveArtifactDirectlyExcluded() throws InvalidAssemblerConfigurationException { verifyArtifactExclusion( "group", "artifact", null, "group:artifact", null, null ); clearAll(); verifyArtifactExclusion( "group", "artifact", null, "group:artifact:jar", null, null ); } public void testFilterArtifacts_ShouldNotRemoveArtifactNotIncludedAndNotExcluded() throws InvalidAssemblerConfigurationException { verifyArtifactInclusion( "group", "artifact", null, null, null, null ); verifyArtifactInclusion( "group", "artifact", null, null, null, null ); } public void testFilterArtifacts_ShouldRemoveArtifactExcludedByAdditionalFilter() throws InvalidAssemblerConfigurationException { ArtifactFilter filter = new ArtifactFilter() { public boolean include( Artifact artifact ) { return false; } }; verifyArtifactExclusion( "group", "artifact", "fail:fail", null, null, filter ); } public void testFilterProjects_ShouldNotRemoveProjectDirectlyIncluded() { verifyProjectInclusion( "group", "artifact", "group:artifact", null, null ); verifyProjectInclusion( "group", "artifact", "group:artifact:jar", null, null ); } public void testFilterProjects_ShouldNotRemoveProjectTransitivelyIncluded() { verifyProjectInclusion( "group", "artifact", "group:dependentArtifact", null, Collections .singletonList( "group:dependentArtifact:jar:version" ) ); } public void testFilterProjects_ShouldRemoveProjectTransitivelyExcluded() { verifyProjectExclusion( "group", "artifact", null, "group:dependentArtifact", Collections .singletonList( "group:dependentArtifact:jar:version" ) ); } public void testFilterProjects_ShouldRemoveProjectDirectlyExcluded() { verifyProjectExclusion( "group", "artifact", null, "group:artifact", null ); verifyProjectExclusion( "group", "artifact", null, "group:artifact:jar", null ); } public void testFilterProjects_ShouldNotRemoveProjectNotIncludedAndNotExcluded() { verifyProjectInclusion( "group", "artifact", null, null, null ); verifyProjectInclusion( "group", "artifact", null, null, null ); } private void verifyArtifactInclusion( String groupId, String artifactId, String inclusionPattern, String exclusionPattern, List depTrail, ArtifactFilter additionalFilter ) throws InvalidAssemblerConfigurationException { verifyArtifactFiltering( groupId, artifactId, inclusionPattern, exclusionPattern, depTrail, true, additionalFilter ); } private void verifyArtifactExclusion( String groupId, String artifactId, String inclusionPattern, String exclusionPattern, List depTrail, ArtifactFilter additionalFilter ) throws InvalidAssemblerConfigurationException { verifyArtifactFiltering( groupId, artifactId, inclusionPattern, exclusionPattern, depTrail, false, additionalFilter ); } private void verifyArtifactFiltering( String groupId, String artifactId, String inclusionPattern, String exclusionPattern, List depTrail, boolean verifyInclusion, ArtifactFilter additionalFilter ) throws InvalidAssemblerConfigurationException { ArtifactMockAndControl mac = new ArtifactMockAndControl( groupId, artifactId, depTrail ); mockManager.replayAll(); List inclusions; if ( inclusionPattern != null ) { inclusions = Collections.singletonList( inclusionPattern ); } else { inclusions = Collections.EMPTY_LIST; } List exclusions; if ( exclusionPattern != null ) { exclusions = Collections.singletonList( exclusionPattern ); } else { exclusions = Collections.EMPTY_LIST; } List filters; if ( additionalFilter != null ) { filters = Collections.singletonList( additionalFilter ); } else { filters = Collections.EMPTY_LIST; } Set artifacts = new HashSet(); artifacts.add( mac.artifact ); FilterUtils.filterArtifacts( artifacts, inclusions, exclusions, false, depTrail != null, filters, logger ); if ( verifyInclusion ) { assertEquals( 1, artifacts.size() ); assertEquals( mac.artifact.getDependencyConflictId(), ( (Artifact) artifacts.iterator().next() ) .getDependencyConflictId() ); } else { // just make sure this trips, to meet the mock's expectations. mac.artifact.getDependencyConflictId(); assertTrue( artifacts.isEmpty() ); } mockManager.verifyAll(); // get ready for multiple calls per test. mockManager.clear(); } private void verifyProjectInclusion( String groupId, String artifactId, String inclusionPattern, String exclusionPattern, List depTrail ) { verifyProjectFiltering( groupId, artifactId, inclusionPattern, exclusionPattern, depTrail, true ); } private void verifyProjectExclusion( String groupId, String artifactId, String inclusionPattern, String exclusionPattern, List depTrail ) { verifyProjectFiltering( groupId, artifactId, inclusionPattern, exclusionPattern, depTrail, false ); } private void verifyProjectFiltering( String groupId, String artifactId, String inclusionPattern, String exclusionPattern, List depTrail, boolean verifyInclusion ) { ProjectWithArtifactMockControl pmac = new ProjectWithArtifactMockControl( groupId, artifactId, depTrail ); mockManager.replayAll(); // make sure the mock is satisfied...you can't disable this expectation. pmac.mac.artifact.getDependencyConflictId(); Set projects = new HashSet(); projects.add( pmac ); List inclusions; if ( inclusionPattern != null ) { inclusions = Collections.singletonList( inclusionPattern ); } else { inclusions = Collections.EMPTY_LIST; } List exclusions; if ( exclusionPattern != null ) { exclusions = Collections.singletonList( exclusionPattern ); } else { exclusions = Collections.EMPTY_LIST; } Logger logger = new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ); FilterUtils.filterProjects( projects, inclusions, exclusions, depTrail != null, logger ); if ( verifyInclusion ) { assertEquals( 1, projects.size() ); assertEquals( pmac.getId(), ( (MavenProject) projects.iterator().next() ).getId() ); } else { assertTrue( projects.isEmpty() ); } mockManager.verifyAll(); // get ready for multiple calls per test. mockManager.clear(); } private static Model buildModel( String groupId, String artifactId ) { Model model = new Model(); model.setGroupId( groupId ); model.setArtifactId( artifactId ); return model; } private final class ProjectWithArtifactMockControl extends MavenProject { ArtifactMockAndControl mac; ProjectWithArtifactMockControl( String groupId, String artifactId, List depTrail ) { super( buildModel( groupId, artifactId ) ); mac = new ArtifactMockAndControl( groupId, artifactId, depTrail ); setArtifact( mac.artifact ); } } private final class ArtifactMockAndControl { MockControl control; Artifact artifact; String groupId; String artifactId; List dependencyTrail; ArtifactMockAndControl( String groupId, String artifactId, List dependencyTrail ) { this.groupId = groupId; this.artifactId = artifactId; this.dependencyTrail = dependencyTrail; control = MockControl.createControl( Artifact.class ); mockManager.add( control ); artifact = (Artifact) control.getMock(); // this is always enabled, for verification purposes. enableGetDependencyConflictId(); enableGetGroupIdArtifactIdAndId(); if ( dependencyTrail != null ) { enableGetDependencyTrail(); } } void enableGetDependencyTrail() { artifact.getDependencyTrail(); control.setReturnValue( dependencyTrail, MockControl.ZERO_OR_MORE ); } void enableGetDependencyConflictId() { artifact.getDependencyConflictId(); control.setReturnValue( groupId + ":" + artifactId + ":jar", MockControl.ZERO_OR_MORE ); } void enableGetGroupIdArtifactIdAndId() { artifact.getGroupId(); control.setReturnValue( groupId, MockControl.ZERO_OR_MORE ); artifact.getArtifactId(); control.setReturnValue( artifactId, MockControl.ZERO_OR_MORE ); artifact.getId(); control.setReturnValue( groupId + ":" + artifactId + ":version:null:jar", MockControl.ZERO_OR_MORE ); } } } ././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/utils/ProjectUtilsTest.javamaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/utils/ProjectUtilsTes0000644000175000017500000001755711123544663034005 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.utils; /* * 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.io.IOException; import java.util.ArrayList; import java.util.Collections; import java.util.Iterator; import java.util.List; import java.util.Set; import junit.framework.TestCase; import org.apache.maven.model.Model; import org.apache.maven.project.MavenProject; import org.codehaus.plexus.logging.Logger; import org.codehaus.plexus.logging.console.ConsoleLogger; public class ProjectUtilsTest extends TestCase { private MavenProject createTestProject( String artifactId, String groupId, String version ) { Model model = new Model(); model.setArtifactId( artifactId ); model.setGroupId( groupId ); model.setVersion( version ); MavenProject project = new MavenProject( model ); return project; } public void testGetProjectModules_ShouldIncludeDirectModuleOfMasterProject() throws IOException { MavenProject master = createTestProject( "test", "testGroup", "1.0" ); master.setFile( new File( "pom.xml" ) ); master.getModel().addModule( "module" ); MavenProject module = createTestProject( "module", "testGroup", "1.0" ); module.setFile( new File( "module/pom.xml" ) ); List projects = new ArrayList( 2 ); projects.add( master ); projects.add( module ); Set result = ProjectUtils.getProjectModules( master, projects, true, new ConsoleLogger( Logger.LEVEL_INFO, "test" ) ); assertNotNull( result ); assertEquals( 1, result.size() ); assertEquals( module.getId(), ( ( MavenProject ) result.iterator().next() ).getId() ); } public void testGetProjectModules_ShouldNotIncludeMasterProject() throws IOException { MavenProject master = createTestProject( "test", "testGroup", "1.0" ); Set result = ProjectUtils.getProjectModules( master, Collections.singletonList( master ), true, new ConsoleLogger( Logger.LEVEL_INFO, "test" ) ); assertNotNull( result ); assertTrue( result.isEmpty() ); } public void testGetProjectModules_ShouldIncludeInDirectModuleOfMasterWhenIncludeSubModulesIsTrue() throws IOException { MavenProject master = createTestProject( "test", "testGroup", "1.0" ); master.setFile( new File( "project/pom.xml" ) ); master.getModel().addModule( "module" ); MavenProject module = createTestProject( "module", "testGroup", "1.0" ); module.getModel().addModule( "submodule" ); module.setFile( new File( "project/module/pom.xml" ) ); MavenProject subModule = createTestProject( "sub-module", "testGroup", "1.0" ); subModule.setFile( new File( "project/module/submodule/pom.xml" ) ); List projects = new ArrayList( 3 ); projects.add( master ); projects.add( module ); projects.add( subModule ); Set result = ProjectUtils.getProjectModules( master, projects, true, new ConsoleLogger( Logger.LEVEL_INFO, "test" ) ); assertNotNull( result ); assertEquals( 2, result.size() ); List verify = new ArrayList( projects ); verify.remove( master ); verifyProjectsPresent( verify, result ); } public void testGetProjectModules_ShouldExcludeInDirectModuleOfMasterWhenIncludeSubModulesIsFalse() throws IOException { MavenProject master = createTestProject( "test", "testGroup", "1.0" ); master.setFile( new File( "project/pom.xml" ) ); master.getModel().addModule( "module" ); MavenProject module = createTestProject( "module", "testGroup", "1.0" ); module.getModel().addModule( "submodule" ); module.setFile( new File( "project/module/pom.xml" ) ); MavenProject subModule = createTestProject( "sub-module", "testGroup", "1.0" ); subModule.setFile( new File( "project/module/submodule/pom.xml" ) ); List projects = new ArrayList( 3 ); projects.add( master ); projects.add( module ); projects.add( subModule ); Set result = ProjectUtils.getProjectModules( master, projects, false, new ConsoleLogger( Logger.LEVEL_INFO, "test" ) ); assertNotNull( result ); assertEquals( 1, result.size() ); List verify = new ArrayList( projects ); verify.remove( master ); verify.remove( subModule ); verifyProjectsPresent( verify, result ); } public void testGetProjectModules_ShouldExcludeNonModuleOfMasterProject() throws IOException { MavenProject master = createTestProject( "test", "testGroup", "1.0" ); master.setFile( new File( "project/pom.xml" ) ); MavenProject other = createTestProject( "other", "testGroup", "1.0" ); other.setFile( new File( "other/pom.xml" ) ); List projects = new ArrayList( 3 ); projects.add( master ); projects.add( other ); Set result = ProjectUtils.getProjectModules( master, projects, true, new ConsoleLogger( Logger.LEVEL_INFO, "test" ) ); assertNotNull( result ); assertTrue( result.isEmpty() ); } private void verifyProjectsPresent( List verify, Set result ) { List verifyCopy = new ArrayList( verify ); List unexpected = new ArrayList(); for ( Iterator it = result.iterator(); it.hasNext(); ) { MavenProject project = ( MavenProject ) it.next(); boolean removed = false; for ( Iterator verifyIterator = verifyCopy.iterator(); verifyIterator.hasNext(); ) { MavenProject verification = ( MavenProject ) verifyIterator.next(); if ( verification.getId().equals( project.getId() ) ) { verifyIterator.remove(); removed = true; } } if ( !removed ) { unexpected.add( project ); } } if ( !verifyCopy.isEmpty() ) { fail( "Failed to verify presence of: " + verifyCopy ); } if ( !unexpected.isEmpty() ) { fail( "Found unexpected projects in result: " + unexpected ); } } // private void verifyProjectsNotPresent( List verify, Set result ) // { // List verifyCopy = new ArrayList( verify ); // // for ( Iterator it = result.iterator(); it.hasNext(); ) // { // MavenProject project = (MavenProject) it.next(); // // for ( Iterator verifyIterator = verifyCopy.iterator(); verifyIterator.hasNext(); ) // { // MavenProject verification = (MavenProject) verifyIterator.next(); // // if ( verification.getId().equals( project.getId() ) ) // { // verifyIterator.remove(); // } // } // } // // if ( verifyCopy.size() != verify.size() ) // { // List found = new ArrayList( verify ); // found.removeAll( verifyCopy ); // // fail( "Failed to verify absence of: " + found ); // } // } } ././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/utils/PropertyUtilsTest.javamaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/utils/PropertyUtilsTe0000644000175000017500000001264111123544663034025 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.utils; /* * 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 org.apache.maven.plugin.assembly.format.AssemblyFormattingException; import org.codehaus.plexus.util.IOUtil; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.util.Properties; import junit.framework.TestCase; public class PropertyUtilsTest extends TestCase { public void testShouldNotTouchPropertiesWithNoExpressions() throws IOException, AssemblyFormattingException { Properties props = new Properties(); props.setProperty( "key", "value" ); props.setProperty( "key2", "value2" ); File propsFile = getTempFile(); writePropertiesTo( propsFile, props ); Properties result = PropertyUtils.getInterpolatedPropertiesFromFile( propsFile, true, false ); assertEquals( "value", result.getProperty( "key" ) ); assertEquals( "value2", result.getProperty( "key2" ) ); } public void testShouldResolveExpressionReferringToExistingKeyWithoutExpressionPrefix() throws IOException, AssemblyFormattingException { Properties props = new Properties(); props.setProperty( "key", "value" ); props.setProperty( "key2", "${key}" ); File propsFile = getTempFile(); writePropertiesTo( propsFile, props ); Properties result = PropertyUtils.getInterpolatedPropertiesFromFile( propsFile, true, false ); assertEquals( "value", result.getProperty( "key" ) ); assertEquals( "value", result.getProperty( "key2" ) ); } public void testShouldResolveExpressionReferringToSysPropKeyWithoutExpressionPrefix() throws IOException, AssemblyFormattingException { Properties props = new Properties(); props.setProperty( "key", "value" ); props.setProperty( "key2", "${user.name}" ); String userName = System.getProperty( "user.name" ); File propsFile = getTempFile(); writePropertiesTo( propsFile, props ); Properties result = PropertyUtils.getInterpolatedPropertiesFromFile( propsFile, true, true ); assertEquals( userName, result.getProperty( "key2" ) ); } public void testShouldNotTouchExpressionReferringToNonExistentKeyWithoutExpressionPrefix() throws IOException, AssemblyFormattingException { Properties props = new Properties(); props.setProperty( "key", "value" ); props.setProperty( "key2", "${foo.bar.gobbledy.gook}" ); File propsFile = getTempFile(); writePropertiesTo( propsFile, props ); Properties result = PropertyUtils.getInterpolatedPropertiesFromFile( propsFile, true, false ); assertEquals( "${foo.bar.gobbledy.gook}", result.getProperty( "key2" ) ); } public void testShouldNotIncludeSystemProperties() throws IOException, AssemblyFormattingException { Properties props = new Properties(); File propsFile = getTempFile(); writePropertiesTo( propsFile, props ); Properties result = PropertyUtils.getInterpolatedPropertiesFromFile( propsFile, true, false ); assertNull( result.getProperty( "user.name" ) ); } public void testShouldFailWhenGivenNonExistentPropertiesFileLocation() throws IOException, AssemblyFormattingException { File propsFile = getTempFile(); propsFile.delete(); try { PropertyUtils.getInterpolatedPropertiesFromFile( propsFile, true, false ); fail( "Should throw FileNotFoundException when properties file doesn't exist, and fail flag is set." ); } catch ( FileNotFoundException e ) { // expected. } } private File getTempFile() throws IOException { File tempFile = File.createTempFile( "properties-test.", "" ); tempFile.deleteOnExit(); return tempFile; } private void writePropertiesTo( File propsFile, Properties properties ) throws IOException { FileOutputStream out = null; try { propsFile.getParentFile().mkdirs(); out = new FileOutputStream( propsFile ); properties.store( out, "unit test properties file for: " + getMethodAndClass() ); } finally { IOUtil.close( out ); } } private String getMethodAndClass() { NullPointerException npe = new NullPointerException(); StackTraceElement callerInfo = npe.getStackTrace()[2]; return callerInfo.getClassName() + ":" + callerInfo.getMethodName() + "@" + callerInfo.getLineNumber(); } } maven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/testutils/0000755000175000017500000000000011361635305031636 5ustar twernertwerner././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/testutils/TestUtils.javamaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/testutils/TestUtils.j0000644000175000017500000000454511123544663033763 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.testutils; /* * 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.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; import java.io.StringWriter; import org.codehaus.plexus.util.IOUtil; public final class TestUtils { private TestUtils() { } /** * Write a text to a file using platform encoding. */ public static void writeToFile( File file, String testStr ) throws IOException { FileWriter fw = null; try { fw = new FileWriter( file ); // platform encoding fw.write( testStr ); } finally { IOUtil.close( fw ); } } /** * Read file content using platform encoding and converting line endings to \\n. */ public static String readFile( File file ) throws IOException { StringBuffer buffer = new StringBuffer(); BufferedReader reader = new BufferedReader( new FileReader( file ) ); // platform encoding String line = null; while( ( line = reader.readLine() ) != null ) { if ( buffer.length() > 0 ) { buffer.append( '\n' ); } buffer.append( line ); } return buffer.toString(); } public static String toString( Throwable error ) { StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter( sw ); error.printStackTrace( pw ); return sw.toString(); } } ././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/testutils/ConfigSourceStub.javamaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/testutils/ConfigSourc0000644000175000017500000000553711243306471034012 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.testutils; import java.io.File; import java.util.List; import org.apache.maven.archiver.MavenArchiveConfiguration; import org.apache.maven.artifact.repository.ArtifactRepository; import org.apache.maven.execution.MavenSession; import org.apache.maven.plugin.assembly.AssemblerConfigurationSource; import org.apache.maven.project.MavenProject; import org.apache.maven.shared.filtering.MavenFileFilter; public class ConfigSourceStub implements AssemblerConfigurationSource { private String archiverConfig; private MavenProject project; public File getArchiveBaseDirectory() { return null; } public File getBasedir() { return null; } public String getClassifier() { return null; } public String getDescriptor() { return null; } public String getDescriptorId() { return null; } public String[] getDescriptorReferences() { return null; } public File getDescriptorSourceDirectory() { return null; } public String[] getDescriptors() { return null; } public List getFilters() { return null; } public String getFinalName() { return null; } public MavenArchiveConfiguration getJarArchiveConfiguration() { return null; } public ArtifactRepository getLocalRepository() { return null; } public MavenSession getMavenSession() { return null; } public File getOutputDirectory() { return null; } public MavenProject getProject() { return project; } public List getReactorProjects() { return null; } public List getRemoteRepositories() { return null; } public File getSiteDirectory() { return null; } public String getTarLongFileMode() { return null; } public File getTemporaryRootDirectory() { return null; } public File getWorkingDirectory() { return null; } public boolean isAssemblyIdAppended() { return false; } public boolean isDryRun() { return false; } public boolean isIgnoreDirFormatExtensions() { return false; } public boolean isIgnoreMissingDescriptor() { return false; } public boolean isSiteIncluded() { return false; } public void setArchiverConfig( String archiverConfig ) { this.archiverConfig = archiverConfig; } public String getArchiverConfig() { return archiverConfig; } public MavenFileFilter getMavenFileFilter() { return null; } public void setProject( MavenProject mavenProject ) { this.project = mavenProject; } } ././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/testutils/MockManager.javamaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/testutils/MockManager0000644000175000017500000000316111123544663033750 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.testutils; /* * 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.util.HashSet; import java.util.Iterator; import java.util.Set; import org.easymock.MockControl; public class MockManager { private Set mockControls = new HashSet(); public void add( MockControl control ) { mockControls.add( control ); } public void clear() { mockControls.clear(); } public void replayAll() { for ( Iterator it = mockControls.iterator(); it.hasNext(); ) { MockControl control = (MockControl) it.next(); control.replay(); } } public void verifyAll() { for ( Iterator it = mockControls.iterator(); it.hasNext(); ) { MockControl control = (MockControl) it.next(); control.verify(); } } } ././@LongLink0000000000000000000000000000015600000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/testutils/TestFileManager.javamaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/testutils/TestFileMan0000644000175000017500000001306711123544663033745 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.testutils; /* * 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 org.codehaus.plexus.util.FileUtils; import org.codehaus.plexus.util.IOUtil; import java.io.File; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import junit.framework.Assert; public class TestFileManager { public static final String TEMP_DIR_PATH = System.getProperty( "java.io.tmpdir" ); private List filesToDelete = new ArrayList(); private final String baseFilename; private final String fileSuffix; private StackTraceElement callerInfo; private Thread cleanupWarning; private boolean warnAboutCleanup = false; public TestFileManager( String baseFilename, String fileSuffix ) { this.baseFilename = baseFilename; this.fileSuffix = fileSuffix; initializeCleanupMonitoring(); } private void initializeCleanupMonitoring() { callerInfo = new NullPointerException().getStackTrace()[2]; Runnable warning = new Runnable() { public void run() { maybeWarnAboutCleanUp(); } }; cleanupWarning = new Thread( warning ); Runtime.getRuntime().addShutdownHook( cleanupWarning ); } private void maybeWarnAboutCleanUp() { if ( warnAboutCleanup ) { System.out.println( "[WARNING] TestFileManager from: " + callerInfo.getClassName() + " not cleaned up!" ); } } public void markForDeletion( File toDelete ) { filesToDelete.add( toDelete ); warnAboutCleanup = true; } public synchronized File createTempDir() { try { Thread.sleep( 20 ); } catch ( InterruptedException e ) { } File dir = new File( TEMP_DIR_PATH, baseFilename + System.currentTimeMillis() ); dir.mkdirs(); markForDeletion( dir ); return dir; } public synchronized File createTempFile() throws IOException { File tempFile = File.createTempFile( baseFilename, fileSuffix ); tempFile.deleteOnExit(); markForDeletion( tempFile ); return tempFile; } public void cleanUp() { for ( Iterator it = filesToDelete.iterator(); it.hasNext(); ) { File file = ( File ) it.next(); if ( file.exists() ) { try { FileUtils.forceDelete( file ); } catch ( Exception e ) { System.err.println( "Error while deleting test file/dir: " + file + "; ignoring." ); } } it.remove(); } warnAboutCleanup = false; } public void assertFileExistence( File dir, String filename, boolean shouldExist ) { File file = new File( dir, filename ); if ( shouldExist ) { Assert.assertTrue( file.exists() ); } else { Assert.assertFalse( file.exists() ); } } public void assertFileContents( File dir, String filename, String contentsTest ) throws IOException { assertFileExistence( dir, filename, true ); File file = new File( dir, filename ); Assert.assertEquals( contentsTest, getFileContents( file ) ); } /** * NOTE: the file content is written using platform encoding. */ public File createFile( File dir, String filename, String contents ) throws IOException { File file = new File( dir, filename ); file.getParentFile().mkdirs(); FileWriter writer = null; try { writer = new FileWriter( file ); // platform encoding writer.write( contents ); } finally { IOUtil.close( writer ); } markForDeletion( file ); return file; } /** * NOTE: the file content is read using platform encoding. */ public String getFileContents( File file ) throws IOException { String result = null; FileReader reader = null; try { reader = new FileReader( file ); // platform encoding result = IOUtil.toString( reader ); } finally { IOUtil.close( reader ); } return result; } protected void finalize() throws Throwable { maybeWarnAboutCleanUp(); super.finalize(); } public File createFile( String filename, String content ) throws IOException { File dir = createTempDir(); return createFile( dir, filename, content ); } } maven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/archive/0000755000175000017500000000000011361635306031220 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/archive/phase/0000755000175000017500000000000011361635306032320 5ustar twernertwerner././@LongLink0000000000000000000000000000017400000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/archive/phase/FileItemAssemblyPhaseTest.javamaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/archive/phase/FileIte0000644000175000017500000004174711123544663033602 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.archive.phase; /* * 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 org.apache.maven.model.Model; import org.apache.maven.plugin.assembly.AssemblerConfigurationSource; import org.apache.maven.plugin.assembly.archive.ArchiveCreationException; import org.apache.maven.plugin.assembly.format.AssemblyFormattingException; import org.apache.maven.plugin.assembly.model.Assembly; import org.apache.maven.plugin.assembly.model.FileItem; import org.apache.maven.plugin.assembly.testutils.MockManager; import org.apache.maven.plugin.assembly.testutils.TestFileManager; import org.apache.maven.plugin.assembly.utils.TypeConversionUtils; import org.apache.maven.project.MavenProject; import org.codehaus.plexus.archiver.Archiver; import org.codehaus.plexus.archiver.ArchiverException; import org.codehaus.plexus.logging.Logger; import org.codehaus.plexus.logging.console.ConsoleLogger; import org.easymock.MockControl; import java.io.File; import java.io.IOException; import junit.framework.Assert; import junit.framework.TestCase; public class FileItemAssemblyPhaseTest extends TestCase { private TestFileManager fileManager = new TestFileManager( "file-item-phase.test.", "" ); public void tearDown() throws IOException { fileManager.cleanUp(); } public void testExecute_ShouldAddNothingWhenNoFileItemsArePresent() throws ArchiveCreationException, AssemblyFormattingException { MockManager mm = new MockManager(); MockAndControlForConfigSource macCS = new MockAndControlForConfigSource( mm ); File basedir = fileManager.createTempDir(); macCS.expectGetBasedir( basedir ); MockAndControlForLogger macLogger = new MockAndControlForLogger( mm ); Assembly assembly = new Assembly(); assembly.setId( "test" ); mm.replayAll(); createPhase( macLogger.logger ).execute( assembly, null, macCS.configSource ); mm.verifyAll(); } public void testExecute_ShouldAddAbsoluteFileNoFilterNoLineEndingConversion() throws ArchiveCreationException, AssemblyFormattingException, IOException { MockManager mm = new MockManager(); MockAndControlForConfigSource macCS = new MockAndControlForConfigSource( mm ); File basedir = fileManager.createTempDir(); File file = fileManager.createFile( basedir, "file.txt", "This is a test file." ); macCS.expectGetBasedir( basedir ); File tempRoot = fileManager.createTempDir(); macCS.expectGetTemporaryRootDirectory( tempRoot ); macCS.expectGetProject( new MavenProject( new Model() ) ); macCS.expectGetFinalName( "final-name" ); MockAndControlForLogger macLogger = new MockAndControlForLogger( mm ); MockAndControlForArchiver macArchiver = new MockAndControlForArchiver( mm ); Assembly assembly = new Assembly(); assembly.setId( "test" ); FileItem fi = new FileItem(); fi.setSource( file.getAbsolutePath() ); fi.setFiltered( false ); fi.setLineEnding( "keep" ); fi.setFileMode( "777" ); macArchiver.expectAddFile( file, "file.txt", TypeConversionUtils.modeToInt( "777", new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ) ); assembly.addFile( fi ); mm.replayAll(); createPhase( macLogger.logger ).execute( assembly, macArchiver.archiver, macCS.configSource ); mm.verifyAll(); } public void testExecute_ShouldAddRelativeFileNoFilterNoLineEndingConversion() throws ArchiveCreationException, AssemblyFormattingException, IOException { MockManager mm = new MockManager(); MockAndControlForConfigSource macCS = new MockAndControlForConfigSource( mm ); File basedir = fileManager.createTempDir(); File file = fileManager.createFile( basedir, "file.txt", "This is a test file." ); macCS.expectGetBasedir( basedir ); File tempRoot = fileManager.createTempDir(); macCS.expectGetTemporaryRootDirectory( tempRoot ); macCS.expectGetProject( new MavenProject( new Model() ) ); macCS.expectGetFinalName( "final-name" ); MockAndControlForLogger macLogger = new MockAndControlForLogger( mm ); MockAndControlForArchiver macArchiver = new MockAndControlForArchiver( mm ); Assembly assembly = new Assembly(); assembly.setId( "test" ); FileItem fi = new FileItem(); fi.setSource( "file.txt" ); fi.setFiltered( false ); fi.setLineEnding( "keep" ); fi.setFileMode( "777" ); macArchiver.expectAddFile( file, "file.txt", TypeConversionUtils.modeToInt( "777", new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ) ); assembly.addFile( fi ); mm.replayAll(); createPhase( macLogger.logger ).execute( assembly, macArchiver.archiver, macCS.configSource ); mm.verifyAll(); } public void testExecute_WithOutputDirectory() throws Exception { MockManager mm = new MockManager(); MockAndControlForConfigSource macCS = new MockAndControlForConfigSource( mm ); File basedir = fileManager.createTempDir(); File readmeFile = fileManager.createFile( basedir, "README.txt", "This is a test file for README.txt." ); File licenseFile = fileManager.createFile( basedir, "LICENSE.txt", "This is a test file for LICENSE.txt." ); File configFile = fileManager.createFile( basedir, "config/config.txt", "This is a test file for config/config.txt" ); macCS.expectGetBasedir( basedir ); File tempRoot = fileManager.createTempDir(); macCS.expectGetTemporaryRootDirectory( tempRoot ); macCS.expectGetProject( new MavenProject( new Model() ) ); macCS.expectGetFinalName( "final-name" ); MockAndControlForLogger macLogger = new MockAndControlForLogger( mm ); MockAndControlForArchiver macArchiver = new MockAndControlForArchiver( mm ); Assembly assembly = new Assembly(); assembly.setId( "test" ); assembly.setIncludeBaseDirectory( true ); FileItem readmeFileItem = new FileItem(); readmeFileItem.setSource( "README.txt" ); readmeFileItem.setOutputDirectory( "" ); readmeFileItem.setFiltered( false ); readmeFileItem.setLineEnding( "keep" ); readmeFileItem.setFileMode( "777" ); FileItem licenseFileItem = new FileItem(); licenseFileItem.setSource( "LICENSE.txt" ); licenseFileItem.setOutputDirectory( "/" ); licenseFileItem.setFiltered( false ); licenseFileItem.setLineEnding( "keep" ); licenseFileItem.setFileMode( "777" ); FileItem configFileItem = new FileItem(); configFileItem.setSource( "config/config.txt" ); configFileItem.setOutputDirectory( "config" ); configFileItem.setFiltered( false ); configFileItem.setLineEnding( "keep" ); configFileItem.setFileMode( "777" ); macArchiver.expectAddFile( readmeFile, "README.txt", TypeConversionUtils.modeToInt( "777", new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ) ); macArchiver.expectAddFile( licenseFile, "LICENSE.txt", TypeConversionUtils.modeToInt( "777", new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ) ); macArchiver.expectAddFile( configFile, "config/config.txt", TypeConversionUtils.modeToInt( "777", new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ) ); assembly.addFile( readmeFileItem ); assembly.addFile( licenseFileItem ); assembly.addFile( configFileItem ); mm.replayAll(); createPhase( macLogger.logger ).execute( assembly, macArchiver.archiver, macCS.configSource ); mm.verifyAll(); } public void testExecute_WithOutputDirectoryAndDestName() throws Exception { MockManager mm = new MockManager(); MockAndControlForConfigSource macCS = new MockAndControlForConfigSource( mm ); File basedir = fileManager.createTempDir(); File readmeFile = fileManager.createFile( basedir, "README.txt", "This is a test file for README.txt." ); File licenseFile = fileManager.createFile( basedir, "LICENSE.txt", "This is a test file for LICENSE.txt." ); File configFile = fileManager.createFile( basedir, "config/config.txt", "This is a test file for config/config.txt" ); macCS.expectGetBasedir( basedir ); File tempRoot = fileManager.createTempDir(); macCS.expectGetTemporaryRootDirectory( tempRoot ); macCS.expectGetProject( new MavenProject( new Model() ) ); macCS.expectGetFinalName( "final-name" ); MockAndControlForLogger macLogger = new MockAndControlForLogger( mm ); MockAndControlForArchiver macArchiver = new MockAndControlForArchiver( mm ); Assembly assembly = new Assembly(); assembly.setId( "test" ); assembly.setIncludeBaseDirectory( true ); FileItem readmeFileItem = new FileItem(); readmeFileItem.setSource( "README.txt" ); readmeFileItem.setOutputDirectory( "" ); readmeFileItem.setDestName( "README_renamed.txt" ); readmeFileItem.setFiltered( false ); readmeFileItem.setLineEnding( "keep" ); readmeFileItem.setFileMode( "777" ); FileItem licenseFileItem = new FileItem(); licenseFileItem.setSource( "LICENSE.txt" ); licenseFileItem.setOutputDirectory( "/" ); licenseFileItem.setDestName( "LICENSE_renamed.txt" ); licenseFileItem.setFiltered( false ); licenseFileItem.setLineEnding( "keep" ); licenseFileItem.setFileMode( "777" ); FileItem configFileItem = new FileItem(); configFileItem.setSource( "config/config.txt" ); configFileItem.setDestName( "config_renamed.txt" ); configFileItem.setOutputDirectory( "config" ); configFileItem.setFiltered( false ); configFileItem.setLineEnding( "keep" ); configFileItem.setFileMode( "777" ); macArchiver.expectAddFile( readmeFile, "README_renamed.txt", TypeConversionUtils.modeToInt( "777", new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ) ); macArchiver.expectAddFile( licenseFile, "LICENSE_renamed.txt", TypeConversionUtils.modeToInt( "777", new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ) ); macArchiver.expectAddFile( configFile, "config/config_renamed.txt", TypeConversionUtils.modeToInt( "777", new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ) ); assembly.addFile( readmeFileItem ); assembly.addFile( licenseFileItem ); assembly.addFile( configFileItem ); mm.replayAll(); createPhase( macLogger.logger ).execute( assembly, macArchiver.archiver, macCS.configSource ); mm.verifyAll(); } public void testExecute_WithOutputDirectoryAndDestNameAndIncludeBaseDirectoryFalse() throws Exception { MockManager mm = new MockManager(); MockAndControlForConfigSource macCS = new MockAndControlForConfigSource( mm ); File basedir = fileManager.createTempDir(); File readmeFile = fileManager.createFile( basedir, "README.txt", "This is a test file for README.txt." ); File licenseFile = fileManager.createFile( basedir, "LICENSE.txt", "This is a test file for LICENSE.txt." ); File configFile = fileManager.createFile( basedir, "config/config.txt", "This is a test file for config/config.txt" ); macCS.expectGetBasedir( basedir ); File tempRoot = fileManager.createTempDir(); macCS.expectGetTemporaryRootDirectory( tempRoot ); macCS.expectGetProject( new MavenProject( new Model() ) ); macCS.expectGetFinalName( "final-name" ); MockAndControlForLogger macLogger = new MockAndControlForLogger( mm ); MockAndControlForArchiver macArchiver = new MockAndControlForArchiver( mm ); Assembly assembly = new Assembly(); assembly.setId( "test" ); assembly.setIncludeBaseDirectory( false ); FileItem readmeFileItem = new FileItem(); readmeFileItem.setSource( "README.txt" ); readmeFileItem.setDestName( "README_renamed.txt" ); readmeFileItem.setFiltered( false ); readmeFileItem.setLineEnding( "keep" ); readmeFileItem.setFileMode( "777" ); FileItem licenseFileItem = new FileItem(); licenseFileItem.setSource( "LICENSE.txt" ); licenseFileItem.setDestName( "LICENSE_renamed.txt" ); licenseFileItem.setFiltered( false ); licenseFileItem.setLineEnding( "keep" ); licenseFileItem.setFileMode( "777" ); FileItem configFileItem = new FileItem(); configFileItem.setSource( "config/config.txt" ); configFileItem.setDestName( "config_renamed.txt" ); configFileItem.setOutputDirectory( "config" ); configFileItem.setFiltered( false ); configFileItem.setLineEnding( "keep" ); configFileItem.setFileMode( "777" ); macArchiver.expectAddFile( readmeFile, "README_renamed.txt", TypeConversionUtils.modeToInt( "777", new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ) ); macArchiver.expectAddFile( licenseFile, "LICENSE_renamed.txt", TypeConversionUtils.modeToInt( "777", new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ) ); macArchiver.expectAddFile( configFile, "config/config_renamed.txt", TypeConversionUtils.modeToInt( "777", new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ) ); assembly.addFile( readmeFileItem ); assembly.addFile( licenseFileItem ); assembly.addFile( configFileItem ); mm.replayAll(); createPhase( macLogger.logger ).execute( assembly, macArchiver.archiver, macCS.configSource ); mm.verifyAll(); } private FileItemAssemblyPhase createPhase( Logger logger ) { FileItemAssemblyPhase phase = new FileItemAssemblyPhase(); phase.enableLogging( logger ); return phase; } private final class MockAndControlForArchiver { Archiver archiver; MockControl control; public MockAndControlForArchiver( MockManager mockManager ) { control = MockControl.createControl( Archiver.class ); mockManager.add( control ); archiver = ( Archiver ) control.getMock(); } public void expectAddFile( File file, String outputLocation, int fileMode ) { try { archiver.addFile( file, outputLocation, fileMode ); } catch ( ArchiverException e ) { Assert.fail( "Should never happen." ); } } } private final class MockAndControlForConfigSource { AssemblerConfigurationSource configSource; MockControl control; public MockAndControlForConfigSource( MockManager mockManager ) { control = MockControl.createControl( AssemblerConfigurationSource.class ); mockManager.add( control ); configSource = ( AssemblerConfigurationSource ) control.getMock(); configSource.getMavenSession(); control.setReturnValue( null, MockControl.ZERO_OR_MORE ); } public void expectGetProject( MavenProject project ) { configSource.getProject(); control.setReturnValue( project, MockControl.ONE_OR_MORE ); } public void expectGetFinalName( String finalName ) { configSource.getFinalName(); control.setReturnValue( finalName, MockControl.ONE_OR_MORE ); } public void expectGetTemporaryRootDirectory( File tempRoot ) { configSource.getTemporaryRootDirectory(); control.setReturnValue( tempRoot, MockControl.ONE_OR_MORE ); } public void expectGetBasedir( File basedir ) { configSource.getBasedir(); control.setReturnValue( basedir, MockControl.ONE_OR_MORE ); } } private final class MockAndControlForLogger { Logger logger; MockControl control; public MockAndControlForLogger( MockManager mockManager ) { control = MockControl.createControl( Logger.class ); mockManager.add( control ); logger = ( Logger ) control.getMock(); } } } ././@LongLink0000000000000000000000000000017600000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/archive/phase/RepositoryAssemblyPhaseTest.javamaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/archive/phase/Reposit0000644000175000017500000004165511212274043033673 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.archive.phase; /* * 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.io.IOException; import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.Set; import junit.framework.Assert; import junit.framework.TestCase; import org.apache.maven.artifact.repository.ArtifactRepository; import org.apache.maven.artifact.resolver.ArtifactNotFoundException; import org.apache.maven.artifact.resolver.ArtifactResolutionException; import org.apache.maven.model.Model; import org.apache.maven.plugin.assembly.AssemblerConfigurationSource; import org.apache.maven.plugin.assembly.DefaultAssemblyContext; import org.apache.maven.plugin.assembly.InvalidAssemblerConfigurationException; import org.apache.maven.plugin.assembly.archive.ArchiveCreationException; import org.apache.maven.plugin.assembly.archive.phase.wrappers.RepoBuilderConfigSourceWrapper; import org.apache.maven.plugin.assembly.archive.phase.wrappers.RepoInfoWrapper; import org.apache.maven.plugin.assembly.artifact.DependencyResolver; import org.apache.maven.plugin.assembly.format.AssemblyFormattingException; import org.apache.maven.plugin.assembly.model.Assembly; import org.apache.maven.plugin.assembly.model.Repository; import org.apache.maven.plugin.assembly.testutils.MockManager; import org.apache.maven.plugin.assembly.testutils.TestFileManager; import org.apache.maven.plugin.assembly.utils.TypeConversionUtils; import org.apache.maven.project.MavenProject; import org.apache.maven.project.artifact.InvalidDependencyVersionException; import org.apache.maven.shared.repository.RepositoryAssembler; import org.apache.maven.shared.repository.RepositoryAssemblyException; import org.codehaus.plexus.archiver.Archiver; import org.codehaus.plexus.archiver.ArchiverException; import org.codehaus.plexus.archiver.FileSet; import org.codehaus.plexus.archiver.util.DefaultFileSet; import org.codehaus.plexus.logging.Logger; import org.codehaus.plexus.logging.console.ConsoleLogger; import org.codehaus.plexus.util.StringUtils; import org.easymock.AbstractMatcher; import org.easymock.MockControl; public class RepositoryAssemblyPhaseTest extends TestCase { private TestFileManager fileManager = new TestFileManager( "repository-phase.test.", "" ); public void tearDown() throws IOException { fileManager.cleanUp(); } public void testExecute_ShouldNotIncludeRepositoryIfNonSpecifiedInAssembly() throws ArchiveCreationException, AssemblyFormattingException, InvalidAssemblerConfigurationException { MockManager mm = new MockManager(); MockAndControlForRepositoryAssembler macRepo = new MockAndControlForRepositoryAssembler( mm ); MockAndControlForDependencyResolver macResolver = new MockAndControlForDependencyResolver( mm ); MockAndControlForArchiver macArchiver = new MockAndControlForArchiver( mm ); MockAndControlForConfigSource macCS = new MockAndControlForConfigSource( mm ); File tempRoot = fileManager.createTempDir(); macCS.expectGetTemporaryRootDirectory( tempRoot ); Assembly assembly = new Assembly(); assembly.setId( "test" ); mm.replayAll(); createPhase( macRepo.repositoryAssembler, macResolver.dependencyResolver, new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ).execute( assembly, macArchiver.archiver, macCS.configSource, new DefaultAssemblyContext() ); mm.verifyAll(); } public void testExecute_ShouldIncludeOneRepository() throws ArchiveCreationException, AssemblyFormattingException, InvalidAssemblerConfigurationException { MockManager mm = new MockManager(); MockAndControlForRepositoryAssembler macRepo = new MockAndControlForRepositoryAssembler( mm ); MockAndControlForDependencyResolver macResolver = new MockAndControlForDependencyResolver( mm ); MockAndControlForArchiver macArchiver = new MockAndControlForArchiver( mm ); MockAndControlForConfigSource macCS = new MockAndControlForConfigSource( mm ); File tempRoot = fileManager.createTempDir(); macCS.expectGetTemporaryRootDirectory( tempRoot ); macCS.expectGetProject( new MavenProject( new Model() ) ); macCS.expectGetFinalName( "final-name" ); macCS.expectGetLocalRepository(); macCS.expectGetRemoteRepositories( Collections.EMPTY_LIST ); macResolver.expectResolveDependencies( Collections.EMPTY_SET ); Assembly assembly = new Assembly(); assembly.setId( "test" ); Repository repo = new Repository(); repo.setOutputDirectory( "out" ); repo.setDirectoryMode( "777" ); repo.setFileMode( "777" ); int mode = TypeConversionUtils.modeToInt( "777", new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ); File outDir = new File( tempRoot, "out" ); macArchiver.expectModeChange( -1, -1, mode, mode, true ); macArchiver.expectAddDirectory( outDir, "out/", null, null ); macRepo.expectAssemble( outDir, repo, macCS.configSource ); assembly.addRepository( repo ); mm.replayAll(); createPhase( macRepo.repositoryAssembler, macResolver.dependencyResolver, new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ).execute( assembly, macArchiver.archiver, macCS.configSource, new DefaultAssemblyContext() ); mm.verifyAll(); } private RepositoryAssemblyPhase createPhase( RepositoryAssembler repositoryAssembler, DependencyResolver resolver, Logger logger ) { RepositoryAssemblyPhase phase = new RepositoryAssemblyPhase( repositoryAssembler, resolver ); phase.enableLogging( logger ); return phase; } private final class MockAndControlForArchiver { Archiver archiver; MockControl control; public MockAndControlForArchiver( MockManager mockManager ) { control = MockControl.createControl( Archiver.class ); mockManager.add( control ); archiver = (Archiver) control.getMock(); } public void expectAddDirectory( File outDir, String location, String[] includes, String[] excludes ) { try { DefaultFileSet fs = new DefaultFileSet(); fs.setDirectory( outDir ); fs.setPrefix( location ); fs.setIncludes( includes ); fs.setExcludes( excludes ); archiver.addFileSet( fs ); } catch ( ArchiverException e ) { Assert.fail( "Should never happen." ); } control.setMatcher( new AbstractMatcher() { protected boolean argumentMatches( Object expected, Object actual ) { FileSet e = (FileSet) expected; FileSet a = (FileSet) actual; if ( !eq( e.getDirectory(), a.getDirectory() ) ) { System.out.println( "FileSet directory expected: " + e.getDirectory() + "\nActual: " + a.getDirectory() ); return false; } if ( !eq( e.getPrefix(), a.getPrefix() ) ) { System.out.println( "FileSet prefix expected: " + e.getPrefix() + "\nActual: " + a.getPrefix() ); return false; } if ( !areq( e.getIncludes(), a.getIncludes() ) ) { System.out.println( "FileSet includes expected: " + arToStr( e.getIncludes() ) + "\nActual: " + arToStr( a.getIncludes() ) ); return false; } if ( !areq( e.getExcludes(), a.getExcludes() ) ) { System.out.println( "FileSet excludes expected: " + arToStr( e.getExcludes() ) + "\nActual: " + arToStr( a.getExcludes() ) ); return false; } return true; } protected String argumentToString( Object argument ) { FileSet a = (FileSet) argument; return argument == null ? "Null FileSet" : "FileSet:[dir=" + a.getDirectory() + ", prefix: " + a.getPrefix() + "\nincludes:\n" + arToStr( a.getIncludes() ) + "\nexcludes:\n" + arToStr( a.getExcludes() ) + "]"; } private String arToStr( String[] array ) { return array == null ? "-EMPTY-" : StringUtils.join( array, "\n\t" ); } private boolean areq( String[] first, String[] second ) { if ( ( first == null || first.length == 0 ) && ( second == null || second.length == 0 ) ) { return true; } else if ( first == null && second != null ) { return false; } else if ( first != null && second == null ) { return false; } else { return Arrays.equals( first, second ); } } private boolean eq( Object first, Object second ) { if ( first == null && second == null ) { return true; } else if ( first == null && second != null ) { return false; } else if ( first != null && second == null ) { return false; } else { return first.equals( second ); } } }); control.setVoidCallable( MockControl.ONE_OR_MORE ); } void expectModeChange( int defaultDirMode, int defaultFileMode, int dirMode, int fileMode, boolean expectTwoSets ) { archiver.getOverrideDirectoryMode(); control.setReturnValue( defaultDirMode ); archiver.getOverrideFileMode(); control.setReturnValue( defaultFileMode ); if ( expectTwoSets ) { archiver.setDirectoryMode( dirMode ); archiver.setFileMode( fileMode ); } archiver.setDirectoryMode( defaultDirMode ); archiver.setFileMode( defaultFileMode ); } // public void expectAddFile( File file, String outputLocation, int fileMode ) // { // try // { // archiver.addFile( file, outputLocation, fileMode ); // } // catch ( ArchiverException e ) // { // Assert.fail( "Should never happen." ); // } // } } private final class MockAndControlForConfigSource { AssemblerConfigurationSource configSource; MockControl control; ArtifactRepository localRepo; MockControl localRepoCtl; final MockManager mockManager; public MockAndControlForConfigSource( MockManager mockManager ) { this.mockManager = mockManager; control = MockControl.createControl( AssemblerConfigurationSource.class ); mockManager.add( control ); configSource = (AssemblerConfigurationSource) control.getMock(); configSource.getMavenSession(); control.setReturnValue( null, MockControl.ZERO_OR_MORE ); } public void expectGetRemoteRepositories( List remoteRepos ) { configSource.getRemoteRepositories(); control.setReturnValue( remoteRepos, MockControl.ONE_OR_MORE ); } public void expectGetLocalRepository() { localRepoCtl = MockControl.createControl( ArtifactRepository.class ); mockManager.add( localRepoCtl ); localRepo = (ArtifactRepository) localRepoCtl.getMock(); configSource.getLocalRepository(); control.setReturnValue( localRepo, MockControl.ONE_OR_MORE ); } public void expectGetProject( MavenProject project ) { configSource.getProject(); control.setReturnValue( project, MockControl.ONE_OR_MORE ); } public void expectGetFinalName( String finalName ) { configSource.getFinalName(); control.setReturnValue( finalName, MockControl.ONE_OR_MORE ); } public void expectGetTemporaryRootDirectory( File tempRoot ) { configSource.getTemporaryRootDirectory(); control.setReturnValue( tempRoot, MockControl.ONE_OR_MORE ); } // // public void expectGetBasedir( File basedir ) // { // configSource.getBasedir(); // control.setReturnValue( basedir, MockControl.ONE_OR_MORE ); // } } private final class MockAndControlForDependencyResolver { MockControl dependencyResolverCtl; DependencyResolver dependencyResolver; public MockAndControlForDependencyResolver( MockManager mm ) { dependencyResolverCtl = MockControl.createControl( DependencyResolver.class ); mm.add( dependencyResolverCtl ); dependencyResolver = (DependencyResolver) dependencyResolverCtl.getMock(); } public void expectResolveDependencies( Set resolvedArtifacts ) { try { dependencyResolver.resolveDependencies( null, null, null, null, null, true ); dependencyResolverCtl.setMatcher( MockControl.ALWAYS_MATCHER ); dependencyResolverCtl.setReturnValue( resolvedArtifacts ); } catch ( ArtifactResolutionException e ) { Assert.fail( "Should never happen!" ); } catch ( ArtifactNotFoundException e ) { Assert.fail( "Should never happen!" ); } catch ( InvalidDependencyVersionException e ) { Assert.fail( "Should never happen!" ); } } } private final class MockAndControlForRepositoryAssembler { RepositoryAssembler repositoryAssembler; MockControl control; MockAndControlForRepositoryAssembler( MockManager mockManager ) { control = MockControl.createControl( RepositoryAssembler.class ); mockManager.add( control ); repositoryAssembler = (RepositoryAssembler) control.getMock(); } public void expectAssemble( File dir, Repository repo, AssemblerConfigurationSource configSource ) { try { repositoryAssembler.buildRemoteRepository( dir, new RepoInfoWrapper( repo ), new RepoBuilderConfigSourceWrapper( configSource ) ); control.setMatcher( MockControl.ALWAYS_MATCHER ); } catch ( RepositoryAssemblyException e ) { Assert.fail( "Should never happen" ); } control.setVoidCallable( MockControl.ONE_OR_MORE ); } } } ././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/archive/phase/ModuleSetAssemblyPhaseTest.javamaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/archive/phase/ModuleS0000644000175000017500000011425211123544663033621 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.archive.phase; /* * 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 org.apache.maven.model.Model; import org.apache.maven.plugin.assembly.DefaultAssemblyContext; import org.apache.maven.plugin.assembly.InvalidAssemblerConfigurationException; import org.apache.maven.plugin.assembly.archive.ArchiveCreationException; import org.apache.maven.plugin.assembly.archive.task.testutils.ArtifactMock; import org.apache.maven.plugin.assembly.archive.task.testutils.MockAndControlForAddArtifactTask; import org.apache.maven.plugin.assembly.archive.task.testutils.MockAndControlForAddDependencySetsTask; import org.apache.maven.plugin.assembly.archive.task.testutils.MockAndControlForAddFileSetsTask; import org.apache.maven.plugin.assembly.archive.task.testutils.MockAndControlForArtifact; import org.apache.maven.plugin.assembly.artifact.DependencyResolver; import org.apache.maven.plugin.assembly.format.AssemblyFormattingException; import org.apache.maven.plugin.assembly.model.Assembly; import org.apache.maven.plugin.assembly.model.DependencySet; import org.apache.maven.plugin.assembly.model.FileSet; import org.apache.maven.plugin.assembly.model.ModuleBinaries; import org.apache.maven.plugin.assembly.model.ModuleSet; import org.apache.maven.plugin.assembly.model.ModuleSources; import org.apache.maven.plugin.assembly.testutils.MockManager; import org.apache.maven.plugin.assembly.testutils.TestFileManager; import org.apache.maven.plugin.assembly.utils.TypeConversionUtils; import org.apache.maven.project.MavenProject; import org.apache.maven.project.MavenProjectBuilder; import org.codehaus.plexus.logging.Logger; import org.codehaus.plexus.logging.console.ConsoleLogger; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.Collections; import java.util.HashSet; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import java.util.Set; import junit.framework.Assert; import junit.framework.TestCase; public class ModuleSetAssemblyPhaseTest extends TestCase { private TestFileManager fileManager = new TestFileManager( "module-set-phase.test.", "" ); private Logger logger = new ConsoleLogger( Logger.LEVEL_INFO, "test" ); public void tearDown() throws IOException { fileManager.cleanUp(); } public void testIsDeprecatedModuleSourcesConfigPresent_ShouldCatchOutputDir() { ModuleSources sources = new ModuleSources(); sources.setOutputDirectory( "outdir" ); ModuleSetAssemblyPhase phase = createPhase( new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ), null ); assertTrue( phase.isDeprecatedModuleSourcesConfigPresent( sources ) ); } public void testIsDeprecatedModuleSourcesConfigPresent_ShouldCatchInclude() { ModuleSources sources = new ModuleSources(); sources.addInclude( "**/included.txt" ); ModuleSetAssemblyPhase phase = createPhase( new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ), null ); assertTrue( phase.isDeprecatedModuleSourcesConfigPresent( sources ) ); } public void testIsDeprecatedModuleSourcesConfigPresent_ShouldCatchExclude() { ModuleSources sources = new ModuleSources(); sources.addExclude( "**/excluded.txt" ); ModuleSetAssemblyPhase phase = createPhase( new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ), null ); assertTrue( phase.isDeprecatedModuleSourcesConfigPresent( sources ) ); } public void testIsDeprecatedModuleSourcesConfigPresent_ShouldNotCatchFileMode() { ModuleSources sources = new ModuleSources(); sources.setFileMode( "777" ); ModuleSetAssemblyPhase phase = createPhase( new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ), null ); assertFalse( phase.isDeprecatedModuleSourcesConfigPresent( sources ) ); } public void testIsDeprecatedModuleSourcesConfigPresent_ShouldNotCatchDirMode() { ModuleSources sources = new ModuleSources(); sources.setDirectoryMode( "777" ); ModuleSetAssemblyPhase phase = createPhase( new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ), null ); assertFalse( phase.isDeprecatedModuleSourcesConfigPresent( sources ) ); } public void testCreateFileSet_ShouldUseModuleDirOnlyWhenOutDirIsNull() throws AssemblyFormattingException { MockManager mm = new MockManager(); Model model = new Model(); model.setArtifactId( "artifact" ); MavenProject project = new MavenProject( model ); MockAndControlForAddArtifactTask macTask = new MockAndControlForAddArtifactTask( mm, project ); macTask.expectGetFinalName( null ); FileSet fs = new FileSet(); ModuleSources sources = new ModuleSources(); sources.setIncludeModuleDirectory( true ); File basedir = fileManager.createTempDir(); MavenProject artifactProject = new MavenProject( new Model() ); artifactProject.setFile( new File( basedir, "pom.xml" ) ); ArtifactMock artifactMock = new ArtifactMock( mm, "group", "artifact", "version", "jar", false ); artifactProject.setArtifact( artifactMock.getArtifact() ); mm.replayAll(); FileSet result = createPhase( new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ), null ).createFileSet( fs, sources, artifactProject, macTask.configSource ); assertEquals( "artifact/", result.getOutputDirectory() ); mm.verifyAll(); } public void testCreateFileSet_ShouldPrependModuleDirWhenOutDirIsProvided() throws AssemblyFormattingException { MockManager mm = new MockManager(); Model model = new Model(); model.setArtifactId( "artifact" ); MavenProject project = new MavenProject( model ); MockAndControlForAddArtifactTask macTask = new MockAndControlForAddArtifactTask( mm, project ); macTask.expectGetFinalName( null ); FileSet fs = new FileSet(); fs.setOutputDirectory( "out" ); ModuleSources sources = new ModuleSources(); sources.setIncludeModuleDirectory( true ); MavenProject artifactProject = new MavenProject( new Model() ); File basedir = fileManager.createTempDir(); artifactProject.setFile( new File( basedir, "pom.xml" ) ); ArtifactMock artifactMock = new ArtifactMock( mm, "group", "artifact", "version", "jar", false ); artifactProject.setArtifact( artifactMock.getArtifact() ); mm.replayAll(); FileSet result = createPhase( new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ), null ).createFileSet( fs, sources, artifactProject, macTask.configSource ); assertEquals( "artifact/out/", result.getOutputDirectory() ); mm.verifyAll(); } public void testCreateFileSet_ShouldAddExcludesForSubModulesWhenExcludeSubModDirsIsTrue() throws AssemblyFormattingException { MockManager mm = new MockManager(); MockAndControlForAddArtifactTask macTask = new MockAndControlForAddArtifactTask( mm, null ); macTask.expectGetFinalName( null ); FileSet fs = new FileSet(); ModuleSources sources = new ModuleSources(); sources.setExcludeSubModuleDirectories( true ); Model model = new Model(); model.setArtifactId( "artifact" ); model.addModule( "submodule" ); MavenProject project = new MavenProject( model ); File basedir = fileManager.createTempDir(); project.setFile( new File( basedir, "pom.xml" ) ); ArtifactMock artifactMock = new ArtifactMock( mm, "group", "artifact", "version", "jar", false ); project.setArtifact( artifactMock.getArtifact() ); mm.replayAll(); FileSet result = createPhase( new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ), null ).createFileSet( fs, sources, project, macTask.configSource ); assertEquals( 1, result.getExcludes().size() ); assertEquals( "submodule/**", result.getExcludes().get( 0 ) ); mm.verifyAll(); } public void testExecute_ShouldSkipIfNoModuleSetsFound() throws ArchiveCreationException, AssemblyFormattingException, InvalidAssemblerConfigurationException { Assembly assembly = new Assembly(); assembly.setIncludeBaseDirectory( false ); createPhase( null, null ).execute( assembly, null, null ); } public void testExecute_ShouldAddOneModuleSetWithOneModuleInIt() throws ArchiveCreationException, AssemblyFormattingException, IOException, InvalidAssemblerConfigurationException { MockManager mm = new MockManager(); MavenProject project = createProject( "group", "artifact", "version", null ); MockAndControlForAddArtifactTask macTask = new MockAndControlForAddArtifactTask( mm, project ); MavenProject module = createProject( "group", "module", "version", project ); ArtifactMock moduleArtifactMock = new ArtifactMock( mm, "group", "module", "version", "jar", false ); File moduleArtifactFile = moduleArtifactMock.setNewFile(); module.setArtifact( moduleArtifactMock.getArtifact() ); List projects = new ArrayList(); projects.add( module ); macTask.expectGetReactorProjects( projects ); macTask.expectGetFinalName( "final-name" ); macTask.expectGetDestFile( new File( "junk" ) ); int mode = TypeConversionUtils.modeToInt( "777", new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ); macTask.expectAddFile( moduleArtifactFile, "out/artifact", mode ); Assembly assembly = new Assembly(); assembly.setIncludeBaseDirectory( false ); ModuleSet ms = new ModuleSet(); ModuleBinaries bin = new ModuleBinaries(); bin.setOutputFileNameMapping( "artifact" ); bin.setOutputDirectory( "out" ); bin.setFileMode( "777" ); bin.setUnpack( false ); bin.setIncludeDependencies( false ); ms.setBinaries( bin ); assembly.addModuleSet( ms ); Logger logger = new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ); mm.replayAll(); createPhase( logger, null ).execute( assembly, macTask.archiver, macTask.configSource ); mm.verifyAll(); } public void testAddModuleBinaries_ShouldReturnImmediatelyWhenBinariesIsNull() throws ArchiveCreationException, AssemblyFormattingException, InvalidAssemblerConfigurationException { createPhase( null, null ).addModuleBinaries( null, null, null, null, null ); } public void testAddModuleBinaries_ShouldFilterPomModule() throws ArchiveCreationException, AssemblyFormattingException, IOException, InvalidAssemblerConfigurationException { MockManager mm = new MockManager(); MockAndControlForAddArtifactTask macTask = new MockAndControlForAddArtifactTask( mm ); ModuleBinaries binaries = new ModuleBinaries(); binaries.setUnpack( false ); binaries.setFileMode( "777" ); binaries.setOutputDirectory( "out" ); binaries.setOutputFileNameMapping( "artifact" ); MavenProject project = createProject( "group", "artifact", "version", null ); project.setPackaging( "pom" ); ArtifactMock artifactMock = new ArtifactMock( mm, "group", "artifact", "version", "pom", false ); project.setArtifact( artifactMock.getArtifact() ); Set projects = Collections.singleton( project ); mm.replayAll(); createPhase( new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ), null ).addModuleBinaries( binaries, projects, macTask.archiver, macTask.configSource, new DefaultAssemblyContext() ); mm.verifyAll(); } public void testAddModuleBinaries_ShouldAddOneModuleAttachmentArtifactAndNoDeps() throws ArchiveCreationException, AssemblyFormattingException, IOException, InvalidAssemblerConfigurationException { MockManager mm = new MockManager(); MockAndControlForAddArtifactTask macTask = new MockAndControlForAddArtifactTask( mm, null ); ArtifactMock artifactMock = new ArtifactMock( mm, "group", "artifact", "version", "jar", "test", false ); File artifactFile = artifactMock.setNewFile(); macTask.expectGetFinalName( "final-name" ); macTask.expectGetDestFile( new File( "junk" ) ); macTask.expectAddFile( artifactFile, "out/artifact", TypeConversionUtils.modeToInt( "777", new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ) ); ModuleBinaries binaries = new ModuleBinaries(); binaries.setIncludeDependencies( false ); binaries.setUnpack( false ); binaries.setFileMode( "777" ); binaries.setOutputDirectory( "out" ); binaries.setOutputFileNameMapping( "artifact" ); binaries.setAttachmentClassifier( "test" ); MavenProject project = createProject( "group", "artifact", "version", null ); project.addAttachedArtifact( artifactMock.getArtifact() ); Set projects = Collections.singleton( project ); mm.replayAll(); Logger logger = new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ); createPhase( logger, null ).addModuleBinaries( binaries, projects, macTask.archiver, macTask.configSource, new DefaultAssemblyContext() ); mm.verifyAll(); } public void testAddModuleBinaries_ShouldFailWhenOneModuleDoesntHaveAttachmentWithMatchingClassifier() throws ArchiveCreationException, AssemblyFormattingException, IOException { MockManager mm = new MockManager(); MockAndControlForAddArtifactTask macTask = new MockAndControlForAddArtifactTask( mm ); ArtifactMock artifactMock = new ArtifactMock( mm, "group", "artifact", "version", "jar", "test", false ); artifactMock.setNewFile(); ModuleBinaries binaries = new ModuleBinaries(); binaries.setUnpack( false ); binaries.setFileMode( "777" ); binaries.setOutputDirectory( "out" ); binaries.setOutputFileNameMapping( "artifact" ); binaries.setAttachmentClassifier( "test" ); MavenProject project = createProject( "group", "artifact", "version", null ); project.setArtifact( artifactMock.getArtifact() ); Set projects = Collections.singleton( project ); mm.replayAll(); Logger logger = new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ); try { createPhase( logger, null ).addModuleBinaries( binaries, projects, macTask.archiver, macTask.configSource, new DefaultAssemblyContext() ); fail( "Should throw an invalid configuration exception because of module with missing attachment." ); } catch ( InvalidAssemblerConfigurationException e ) { // should throw this because of missing attachment. } mm.verifyAll(); } public void testAddModuleBinaries_ShouldAddOneModuleArtifactAndNoDeps() throws ArchiveCreationException, AssemblyFormattingException, IOException, InvalidAssemblerConfigurationException { MockManager mm = new MockManager(); MockAndControlForAddArtifactTask macTask = new MockAndControlForAddArtifactTask( mm ); ArtifactMock artifactMock = new ArtifactMock( mm, "group", "artifact", "version", "jar", false ); File artifactFile = artifactMock.setNewFile(); macTask.expectGetFinalName( "final-name" ); macTask.expectGetDestFile( new File( "junk" ) ); macTask.expectAddFile( artifactFile, "out/artifact", TypeConversionUtils.modeToInt( "777", new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ) ); ModuleBinaries binaries = new ModuleBinaries(); binaries.setIncludeDependencies( false ); binaries.setUnpack( false ); binaries.setFileMode( "777" ); binaries.setOutputDirectory( "out" ); binaries.setOutputFileNameMapping( "artifact" ); MavenProject project = createProject( "group", "artifact", "version", null ); project.setArtifact( artifactMock.getArtifact() ); Set projects = Collections.singleton( project ); mm.replayAll(); Logger logger = new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ); createPhase( logger, null ).addModuleBinaries( binaries, projects, macTask.archiver, macTask.configSource, new DefaultAssemblyContext() ); mm.verifyAll(); } public void testAddModuleBinaries_ShouldAddOneModuleArtifactAndWithOneDepArtifact() throws ArchiveCreationException, AssemblyFormattingException, IOException, InvalidAssemblerConfigurationException { MockManager mm = new MockManager(); MockAndControlForAddDependencySetsTask macTask = new MockAndControlForAddDependencySetsTask( mm ); ArtifactMock artifactMock = new ArtifactMock( mm, "group", "artifact", "version", "jar", false ); File artifactFile = artifactMock.setNewFile(); macTask.expectCSGetFinalName( "final-name" ); macTask.expectGetDestFile( new File( "junk" ) ); macTask.expectAddFile( artifactFile, "out/artifact", TypeConversionUtils.modeToInt( "777", new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ) ); macTask.expectGetSession( null ); ModuleBinaries binaries = new ModuleBinaries(); binaries.setUnpack( false ); binaries.setFileMode( "777" ); binaries.setOutputDirectory( "out" ); binaries.setOutputFileNameMapping( "artifact" ); DependencySet ds = new DependencySet(); ds.setUseProjectArtifact( false ); ds.setOutputDirectory( binaries.getOutputDirectory() ); ds.setOutputFileNameMapping( "${artifact.artifactId}" ); ds.setFileMode( "777" ); binaries.addDependencySet( ds ); MavenProject project = createProject( "group", "artifact", "version", null ); project.setArtifact( artifactMock.getArtifact() ); ArtifactMock depArtifactMock = new ArtifactMock( mm, "group", "dep", "1", "jar", false ); File depArtifactFile = depArtifactMock.setNewFile(); macTask.expectAddFile( depArtifactFile, "out/dep", TypeConversionUtils.modeToInt( "777", new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ) ); MavenProject depProject = createProject( "group", "dep", "version", null ); depProject.setArtifact( depArtifactMock.getArtifact() ); macTask.expectBuildFromRepository( depProject ); macTask.expectCSGetRepositories( null, null ); macTask.expectResolveDependencies( Collections.singleton( depArtifactMock.getArtifact() ) ); Set projects = Collections.singleton( project ); mm.replayAll(); Logger overrideLogger = new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ); ModuleSetAssemblyPhase phase = createPhase( overrideLogger, macTask ); phase.addModuleBinaries( binaries, projects, macTask.archiver, macTask.configSource, new DefaultAssemblyContext() ); mm.verifyAll(); } public void testAddModuleBinaries_ShouldAddOneModuleArtifactAndWithOneDepArtifactUsingImpliedDepSet() throws ArchiveCreationException, AssemblyFormattingException, IOException, InvalidAssemblerConfigurationException { MockManager mm = new MockManager(); MockAndControlForAddDependencySetsTask macTask = new MockAndControlForAddDependencySetsTask( mm ); ArtifactMock moduleArtifactMock = new ArtifactMock( mm, "group", "artifact", "0", "jar", false ); File moduleArtifactFile = moduleArtifactMock.setNewFile(); macTask.expectCSGetFinalName( "final-name" ); macTask.expectGetDestFile( new File( "junk" ) ); int mode = TypeConversionUtils.modeToInt( "777", new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ); macTask.expectAddFile( moduleArtifactFile, "out/artifact", mode ); macTask.expectGetSession( null ); ModuleBinaries binaries = new ModuleBinaries(); binaries.setUnpack( false ); binaries.setFileMode( "777" ); binaries.setOutputDirectory( "out" ); binaries.setOutputFileNameMapping( "${artifact.artifactId}" ); binaries.setIncludeDependencies( true ); MavenProject project = createProject( "group", "artifact", "version", null ); project.setArtifact( moduleArtifactMock.getArtifact() ); ArtifactMock depArtifactMock = new ArtifactMock( mm, "group", "dep", "1", "jar", false ); File depArtifactFile = depArtifactMock.setNewFile(); macTask.expectAddFile( depArtifactFile, "out/dep", mode ); MavenProject depProject = createProject( "group", "dep", "version", null ); depProject.setArtifact( depArtifactMock.getArtifact() ); macTask.expectBuildFromRepository( depProject ); macTask.expectCSGetRepositories( null, null ); macTask.expectResolveDependencies( Collections.singleton( depArtifactMock.getArtifact() ) ); Set projects = Collections.singleton( project ); mm.replayAll(); Logger overrideLogger = new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ); ModuleSetAssemblyPhase phase = createPhase( overrideLogger, macTask ); phase.addModuleBinaries( binaries, projects, macTask.archiver, macTask.configSource, new DefaultAssemblyContext() ); mm.verifyAll(); } public void testCollectExcludesFromQueuedArtifacts_ShouldAddOneExclusion() { MockManager mm = new MockManager(); List excludes = new ArrayList(); // nothing up this sleeve... assertTrue( excludes.isEmpty() ); mm.replayAll(); Set artifactIds = Collections.singleton( "group:artifact:jar" ); List result = createPhase( new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ), null ) .collectExcludesFromQueuedArtifacts( artifactIds, excludes ); assertEquals( 1, result.size() ); assertEquals( "group:artifact:jar", result.get( 0 ) ); mm.verifyAll(); } public void testCollectExcludesFromQueuedArtifacts_ShouldHandleNullExcludesList() { MockManager mm = new MockManager(); mm.replayAll(); Set artifactIds = Collections.singleton( "group:artifact:jar" ); List result = createPhase( new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ), null ) .collectExcludesFromQueuedArtifacts( artifactIds, null ); assertEquals( 1, result.size() ); assertEquals( "group:artifact:jar", result.get( 0 ) ); mm.verifyAll(); } public void testAddModuleArtifact_ShouldThrowExceptionWhenArtifactFileIsNull() throws AssemblyFormattingException, IOException { MockManager mm = new MockManager(); ArtifactMock artifactMock = new ArtifactMock( mm, "group", "artifact", "version", "type", false ); artifactMock.setNullFile(); mm.replayAll(); try { createPhase( new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ), null ).addModuleArtifact( artifactMock.getArtifact(), null, null, null, null ); fail( "Expected ArchiveCreationException since artifact file is null." ); } catch ( ArchiveCreationException e ) { // expected } mm.verifyAll(); } public void testAddModuleArtifact_ShouldAddOneArtifact() throws AssemblyFormattingException, IOException, ArchiveCreationException { MockManager mm = new MockManager(); MockAndControlForAddArtifactTask macTask = new MockAndControlForAddArtifactTask( mm ); ArtifactMock artifactMock = new ArtifactMock( mm, "group", "artifact", "version", "type", false ); File artifactFile = artifactMock.setNewFile(); MavenProject project = createProject( "group", "artifact", "version", null ); project.setArtifact( artifactMock.getArtifact() ); macTask.expectGetFinalName( "final-name" ); macTask.expectGetDestFile( new File( "junk" ) ); macTask.expectAddFile( artifactFile, "out/artifact", TypeConversionUtils.modeToInt( "777", new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ) ); ModuleBinaries binaries = new ModuleBinaries(); binaries.setOutputDirectory( "out" ); binaries.setOutputFileNameMapping( "artifact" ); binaries.setUnpack( false ); binaries.setFileMode( "777" ); mm.replayAll(); createPhase( new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ), null ).addModuleArtifact( artifactMock.getArtifact(), project, macTask.archiver, macTask.configSource, binaries ); mm.verifyAll(); } public void testAddModuleSourceFileSets_ShouldReturnImmediatelyIfSourcesIsNull() throws ArchiveCreationException, AssemblyFormattingException { MockManager mm = new MockManager(); mm.replayAll(); createPhase( new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ), null ).addModuleSourceFileSets( null, null, null, null ); mm.verifyAll(); } public void testAddModuleSourceFileSets_ShouldAddOneSourceDirectory() throws ArchiveCreationException, AssemblyFormattingException { MockManager mm = new MockManager(); MockAndControlForAddFileSetsTask macTask = new MockAndControlForAddFileSetsTask( mm, fileManager ); MavenProject project = createProject( "group", "artifact", "version", null ); macTask.expectGetProject( project ); ArtifactMock artifactMock = new ArtifactMock( mm, "group", "artifact", "version", "jar", false ); project.setArtifact( artifactMock.getArtifact() ); Set projects = Collections.singleton( project ); ModuleSources sources = new ModuleSources(); FileSet fs = new FileSet(); fs.setDirectory( "/src" ); fs.setDirectoryMode( "777" ); fs.setFileMode( "777" ); sources.addFileSet( fs ); macTask.expectGetArchiveBaseDirectory(); int mode = TypeConversionUtils.modeToInt( "777", new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ); int[] modes = { -1, -1, mode, mode }; macTask.expectAdditionOfSingleFileSet( project, project.getBasedir(), "final-name", false, modes, 1, true, false ); mm.replayAll(); Logger logger = new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ); createPhase( logger, null ).addModuleSourceFileSets( sources, projects, macTask.archiver, macTask.configSource ); mm.verifyAll(); } public void testGetModuleProjects_ShouldReturnNothingWhenReactorContainsOnlyCurrentProject() throws ArchiveCreationException { MockManager mm = new MockManager(); MavenProject project = createProject( "group", "artifact", "version", null ); MockAndControlForAddDependencySetsTask macTask = new MockAndControlForAddDependencySetsTask( mm, project ); List projects = Collections.singletonList( project ); macTask.expectGetReactorProjects( projects ); ModuleSet moduleSet = new ModuleSet(); moduleSet.setIncludeSubModules( true ); mm.replayAll(); Set moduleProjects = ModuleSetAssemblyPhase.getModuleProjects( moduleSet, macTask.configSource, logger ); assertTrue( moduleProjects.isEmpty() ); mm.verifyAll(); } public void testGetModuleProjects_ShouldReturnNothingWhenReactorContainsTwoSiblingProjects() throws ArchiveCreationException { MockManager mm = new MockManager(); MavenProject project = createProject( "group", "artifact", "version", null ); MockAndControlForAddDependencySetsTask macTask = new MockAndControlForAddDependencySetsTask( mm, project ); MavenProject project2 = createProject( "group", "artifact2", "version", null ); List projects = new ArrayList(); projects.add( project ); projects.add( project2 ); macTask.expectGetReactorProjects( projects ); ModuleSet moduleSet = new ModuleSet(); moduleSet.setIncludeSubModules( true ); mm.replayAll(); Set moduleProjects = ModuleSetAssemblyPhase.getModuleProjects( moduleSet, macTask.configSource, logger ); assertTrue( moduleProjects.isEmpty() ); mm.verifyAll(); } public void testGetModuleProjects_ShouldReturnModuleOfCurrentProject() throws ArchiveCreationException { MockManager mm = new MockManager(); MavenProject project = createProject( "group", "artifact", "version", null ); MockAndControlForAddDependencySetsTask macTask = new MockAndControlForAddDependencySetsTask( mm, project ); MavenProject project2 = createProject( "group", "artifact2", "version", project ); List projects = new ArrayList(); projects.add( project ); projects.add( project2 ); macTask.expectGetReactorProjects( projects ); ModuleSet moduleSet = new ModuleSet(); moduleSet.setIncludeSubModules( true ); mm.replayAll(); Set moduleProjects = ModuleSetAssemblyPhase.getModuleProjects( moduleSet, macTask.configSource, logger ); assertFalse( moduleProjects.isEmpty() ); MavenProject result = (MavenProject) moduleProjects.iterator().next(); assertEquals( "artifact2", result.getArtifactId() ); mm.verifyAll(); } public void testGetModuleProjects_ShouldReturnDescendentModulesOfCurrentProject() throws ArchiveCreationException { MockManager mm = new MockManager(); MavenProject project = createProject( "group", "artifact", "version", null ); MockAndControlForAddDependencySetsTask macTask = new MockAndControlForAddDependencySetsTask( mm, project ); MavenProject project2 = createProject( "group", "artifact2", "version", project ); MavenProject project3 = createProject( "group", "artifact3", "version", project2 ); List projects = new ArrayList(); projects.add( project ); projects.add( project2 ); projects.add( project3 ); macTask.expectGetReactorProjects( projects ); ModuleSet moduleSet = new ModuleSet(); moduleSet.setIncludeSubModules( true ); mm.replayAll(); Set moduleProjects = ModuleSetAssemblyPhase.getModuleProjects( moduleSet, macTask.configSource, logger ); assertEquals( 2, moduleProjects.size() ); List check = new ArrayList(); check.add( project2 ); check.add( project3 ); verifyResultIs( check, moduleProjects ); mm.verifyAll(); } public void testGetModuleProjects_ShouldExcludeModuleAndDescendentsTransitively() throws ArchiveCreationException { MockManager mm = new MockManager(); MavenProject project = createProject( "group", "artifact", "version", null ); MockAndControlForAddDependencySetsTask macTask = new MockAndControlForAddDependencySetsTask( mm, project ); List macArtifacts = new ArrayList(); macArtifacts.add( addArtifact( project, mm, false, false ) ); MavenProject project2 = createProject( "group", "artifact2", "version", project ); macArtifacts.add( addArtifact( project2, mm, true, false ) ); ( (MockAndControlForArtifact) macArtifacts.get( 1 ) ).expectGetId( "group:artifact2:jar:version" ); // ( (MockAndControlForArtifact) macArtifacts.get( 1 ) ).expectGetDependencyTrail( Collections // .singletonList( "group:artifact:jar:version" ) ); MavenProject project3 = createProject( "group", "artifact3", "version", project2 ); macArtifacts.add( addArtifact( project3, mm, true, true ) ); ( (MockAndControlForArtifact) macArtifacts.get( 2 ) ).expectGetId( "group:artifact3:jar:version" ); List projects = new ArrayList(); projects.add( project ); projects.add( project2 ); projects.add( project3 ); macTask.expectGetReactorProjects( projects ); ModuleSet moduleSet = new ModuleSet(); moduleSet.setIncludeSubModules( true ); moduleSet.addExclude( "group:artifact2" ); mm.replayAll(); Set moduleProjects = ModuleSetAssemblyPhase.getModuleProjects( moduleSet, macTask.configSource, logger ); assertTrue( moduleProjects.isEmpty() ); mm.verifyAll(); } private MockAndControlForArtifact addArtifact( MavenProject project, MockManager mm, boolean expectIdentityChecks, boolean expectDepTrailCheck ) { MockAndControlForArtifact macArtifact = new MockAndControlForArtifact( mm ); if ( expectIdentityChecks ) { macArtifact.expectGetArtifactId( project.getArtifactId() ); macArtifact.expectGetGroupId( project.getGroupId() ); macArtifact.expectGetDependencyConflictId( project.getGroupId(), project.getArtifactId(), project .getPackaging() ); } if ( expectDepTrailCheck ) { LinkedList depTrail = new LinkedList(); MavenProject parent = project.getParent(); while ( parent != null ) { depTrail.addLast( parent.getId() ); parent = parent.getParent(); } macArtifact.expectGetDependencyTrail( depTrail ); } project.setArtifact( macArtifact.artifact ); return macArtifact; } private void verifyResultIs( List check, Set moduleProjects ) { boolean failed = false; Set checkTooMany = new HashSet( moduleProjects ); checkTooMany.removeAll( check ); if ( !checkTooMany.isEmpty() ) { failed = true; System.out.println( "Unexpected projects in output: " ); for ( Iterator iter = checkTooMany.iterator(); iter.hasNext(); ) { MavenProject project = (MavenProject) iter.next(); System.out.println( project.getId() ); } } Set checkTooFew = new HashSet( check ); checkTooFew.removeAll( moduleProjects ); if ( !checkTooFew.isEmpty() ) { failed = true; System.out.println( "Expected projects missing from output: " ); for ( Iterator iter = checkTooMany.iterator(); iter.hasNext(); ) { MavenProject project = (MavenProject) iter.next(); System.out.println( project.getId() ); } } if ( failed ) { Assert.fail( "See system output for more information." ); } } private MavenProject createProject( String groupId, String artifactId, String version, MavenProject parentProject ) { Model model = new Model(); model.setArtifactId( artifactId ); model.setGroupId( groupId ); model.setVersion( version ); MavenProject project = new MavenProject( model ); File pomFile; if ( parentProject == null ) { File basedir = fileManager.createTempDir(); pomFile = new File( basedir, "pom.xml" ); } else { File parentBase = parentProject.getBasedir(); pomFile = new File( parentBase, artifactId + "/pom.xml" ); parentProject.getModel().addModule( artifactId ); project.setParent( parentProject ); } project.setFile( pomFile ); return project; } private ModuleSetAssemblyPhase createPhase( Logger logger, MockAndControlForAddDependencySetsTask macTask ) { MavenProjectBuilder projectBuilder = null; DependencyResolver dependencyResolver = null; if ( macTask != null ) { projectBuilder = macTask.projectBuilder; dependencyResolver = macTask.dependencyResolver; } ModuleSetAssemblyPhase phase = new ModuleSetAssemblyPhase( projectBuilder, dependencyResolver, logger ); return phase; } } ././@LongLink0000000000000000000000000000017300000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/archive/phase/FileSetAssemblyPhaseTest.javamaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/archive/phase/FileSet0000644000175000017500000001127711123544663033607 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.archive.phase; /* * 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 org.apache.maven.model.Model; import org.apache.maven.plugin.assembly.archive.ArchiveCreationException; import org.apache.maven.plugin.assembly.archive.task.testutils.MockAndControlForAddFileSetsTask; import org.apache.maven.plugin.assembly.format.AssemblyFormattingException; import org.apache.maven.plugin.assembly.model.Assembly; import org.apache.maven.plugin.assembly.model.FileSet; import org.apache.maven.plugin.assembly.testutils.MockManager; import org.apache.maven.plugin.assembly.testutils.TestFileManager; import org.apache.maven.project.MavenProject; import org.codehaus.plexus.logging.Logger; import org.easymock.MockControl; import java.io.File; import java.io.IOException; import junit.framework.TestCase; public class FileSetAssemblyPhaseTest extends TestCase { private MockManager mockManager = new MockManager(); private TestFileManager fileManager = new TestFileManager( "file-set-assembly.test.", "" ); public void tearDown() throws IOException { fileManager.cleanUp(); } public void testShouldNotFailWhenNoFileSetsSpecified() throws ArchiveCreationException, AssemblyFormattingException { Assembly assembly = new Assembly(); assembly.setId( "test" ); MockAndControlForLogger macLogger = new MockAndControlForLogger(); MockAndControlForAddFileSetsTask macTask = new MockAndControlForAddFileSetsTask( mockManager, fileManager ); mockManager.replayAll(); createPhase( macLogger ).execute( assembly, macTask.archiver, macTask.configSource ); mockManager.verifyAll(); } public void testShouldAddOneFileSet() throws ArchiveCreationException, AssemblyFormattingException { Assembly assembly = new Assembly(); assembly.setId( "test" ); assembly.setIncludeBaseDirectory( false ); FileSet fs = new FileSet(); fs.setOutputDirectory( "/out" ); fs.setDirectory( "/input" ); fs.setFileMode( "777" ); fs.setDirectoryMode( "777" ); assembly.addFileSet( fs ); MockAndControlForLogger macLogger = new MockAndControlForLogger(); MockAndControlForAddFileSetsTask macTask = new MockAndControlForAddFileSetsTask( mockManager, fileManager ); macTask.expectGetArchiveBaseDirectory(); File basedir = fileManager.createTempDir(); MavenProject project = new MavenProject( new Model() ); macLogger.expectDebug( true, true ); int dirMode = Integer.parseInt( "777", 8 ); int fileMode = Integer.parseInt( "777", 8 ); int[] modes = { -1, -1, dirMode, fileMode }; macTask.expectAdditionOfSingleFileSet( project, basedir, "final-name", false, modes, 1, true ); mockManager.replayAll(); createPhase( macLogger ).execute( assembly, macTask.archiver, macTask.configSource ); mockManager.verifyAll(); } private FileSetAssemblyPhase createPhase( MockAndControlForLogger macLogger ) { FileSetAssemblyPhase phase = new FileSetAssemblyPhase(); phase.enableLogging( macLogger.logger ); return phase; } private final class MockAndControlForLogger { Logger logger; MockControl control; MockAndControlForLogger() { control = MockControl.createControl( Logger.class ); mockManager.add( control ); logger = ( Logger ) control.getMock(); } public void expectDebug( boolean debugCheck, boolean debugEnabled ) { if ( debugCheck ) { logger.isDebugEnabled(); control.setReturnValue( debugEnabled, MockControl.ONE_OR_MORE ); } logger.debug( null ); control.setMatcher( MockControl.ALWAYS_MATCHER ); control.setVoidCallable( MockControl.ONE_OR_MORE ); } } } ././@LongLink0000000000000000000000000000020100000000000011556 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/archive/phase/DependencySetAssemblyPhaseTest.javamaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/archive/phase/Depende0000644000175000017500000001337611123544663033622 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.archive.phase; /* * 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 org.apache.maven.artifact.Artifact; import org.apache.maven.model.Model; import org.apache.maven.plugin.assembly.InvalidAssemblerConfigurationException; import org.apache.maven.plugin.assembly.archive.ArchiveCreationException; import org.apache.maven.plugin.assembly.archive.task.testutils.ArtifactMock; import org.apache.maven.plugin.assembly.archive.task.testutils.MockAndControlForAddDependencySetsTask; import org.apache.maven.plugin.assembly.artifact.DependencyResolver; import org.apache.maven.plugin.assembly.format.AssemblyFormattingException; import org.apache.maven.plugin.assembly.model.Assembly; import org.apache.maven.plugin.assembly.model.DependencySet; import org.apache.maven.plugin.assembly.testutils.MockManager; import org.apache.maven.project.MavenProject; import org.apache.maven.project.MavenProjectBuilder; import org.codehaus.plexus.logging.Logger; import org.codehaus.plexus.logging.console.ConsoleLogger; import java.io.File; import java.io.IOException; import java.util.Collections; import junit.framework.TestCase; public class DependencySetAssemblyPhaseTest extends TestCase { private MockManager mockManager = new MockManager(); public void testExecute_ShouldAddOneDependencyFromProject() throws AssemblyFormattingException, ArchiveCreationException, IOException, InvalidAssemblerConfigurationException { String outputLocation = "/out"; MavenProject project = newMavenProject( "group", "project", "0" ); ArtifactMock projectArtifactMock = new ArtifactMock( mockManager, "group", "project", "0", "jar", false ); project.setArtifact( projectArtifactMock.getArtifact() ); DependencySet ds = new DependencySet(); ds.setUseProjectArtifact( false ); ds.setOutputDirectory( outputLocation ); ds.setOutputFileNameMapping( "${artifact.artifactId}" ); ds.setUnpack( false ); ds.setScope( Artifact.SCOPE_COMPILE ); ds.setFileMode( Integer.toString( 10, 8 ) ); Assembly assembly = new Assembly(); assembly.setId( "test" ); assembly.setIncludeBaseDirectory( false ); assembly.addDependencySet( ds ); MockAndControlForAddDependencySetsTask macTask = new MockAndControlForAddDependencySetsTask( mockManager, project ); ArtifactMock artifactMock = new ArtifactMock( mockManager, "group", "dep", "1", "jar", false ); File artifactFile = artifactMock.setNewFile(); System.out.println( "On test setup, hashcode for dependency artifact: " + artifactMock.getArtifact().hashCode() ); macTask.expectCSGetRepositories( null, null ); macTask.expectResolveDependencies( Collections.singleton( artifactMock.getArtifact() ) ); macTask.expectGetDestFile( new File( "junk" ) ); macTask.expectAddFile( artifactFile, "out/dep", 10 ); macTask.expectGetSession( null ); project.setArtifacts( Collections.singleton( artifactMock.getArtifact() ) ); macTask.expectCSGetFinalName( "final-name" ); Logger logger = new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ); MavenProject depProject = newMavenProject( "group", "dep", "1" ); macTask.expectBuildFromRepository( depProject ); mockManager.replayAll(); createPhase( macTask, logger ).execute( assembly, macTask.archiver, macTask.configSource ); mockManager.verifyAll(); } private MavenProject newMavenProject( String groupId, String artifactId, String version ) { Model model = new Model(); model.setGroupId( groupId ); model.setArtifactId( artifactId ); model.setVersion( version ); return new MavenProject( model ); } public void testExecute_ShouldNotAddDependenciesWhenProjectHasNone() throws AssemblyFormattingException, ArchiveCreationException, IOException, InvalidAssemblerConfigurationException { Assembly assembly = new Assembly(); assembly.setId( "test" ); assembly.setIncludeBaseDirectory( false ); Logger logger = new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ); MockAndControlForAddDependencySetsTask macTask = new MockAndControlForAddDependencySetsTask( mockManager, null ); mockManager.replayAll(); createPhase( macTask, logger ).execute( assembly, null, macTask.configSource ); mockManager.verifyAll(); } private DependencySetAssemblyPhase createPhase( MockAndControlForAddDependencySetsTask macTask, Logger logger ) { MavenProjectBuilder projectBuilder = null; DependencyResolver dependencyResolver = null; if ( macTask != null ) { projectBuilder = macTask.projectBuilder; dependencyResolver = macTask.dependencyResolver; } DependencySetAssemblyPhase phase = new DependencySetAssemblyPhase( projectBuilder, dependencyResolver, logger ); phase.enableLogging( logger ); return phase; } } maven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/archive/archiver/0000755000175000017500000000000011361635306033023 5ustar twernertwerner././@LongLink0000000000000000000000000000017700000000000011572 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/archive/archiver/AssemblyProxyArchiverTest.javamaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/archive/archiver/Asse0000644000175000017500000001025311123544663033643 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.archive.archiver; /* * 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 org.apache.maven.plugin.assembly.testutils.TestFileManager; import org.codehaus.plexus.archiver.Archiver; import org.codehaus.plexus.archiver.ArchiverException; import org.codehaus.plexus.archiver.jar.JarArchiver; import org.codehaus.plexus.components.io.fileselectors.FileInfo; import org.codehaus.plexus.components.io.fileselectors.FileSelector; import org.codehaus.plexus.logging.Logger; import org.codehaus.plexus.logging.console.ConsoleLogger; import org.easymock.MockControl; import java.io.File; import java.io.IOException; import java.util.Collections; import java.util.List; import junit.framework.TestCase; public class AssemblyProxyArchiverTest extends TestCase { private TestFileManager fileManager = new TestFileManager( "massembly-proxyArchiver", "" ); public void tearDown() throws Exception { fileManager.cleanUp(); } public void testAddFile_NoPerms_CallAcceptFilesOnlyOnce() throws IOException, ArchiverException { MockControl delegateControl = MockControl.createControl( Archiver.class ); Archiver delegate = (Archiver) delegateControl.getMock(); delegate.addFile( null, null ); delegateControl.setMatcher( MockControl.ALWAYS_MATCHER ); delegateControl.setVoidCallable(); CounterSelector counter = new CounterSelector( true ); List selectors = Collections.singletonList( counter ); delegateControl.replay(); AssemblyProxyArchiver archiver = new AssemblyProxyArchiver( "", delegate, Collections.EMPTY_LIST, selectors, Collections.EMPTY_LIST, new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ); File inputFile = fileManager.createTempFile(); archiver.addFile( inputFile, "file.txt" ); assertEquals( 1, counter.getCount() ); delegateControl.verify(); } public void testAddDirectory_NoPerms_CallAcceptFilesOnlyOnce() throws IOException, ArchiverException { Archiver delegate = new JarArchiver(); File output = fileManager.createTempFile(); delegate.setDestFile( output ); CounterSelector counter = new CounterSelector( true ); List selectors = Collections.singletonList( counter ); AssemblyProxyArchiver archiver = new AssemblyProxyArchiver( "", delegate, Collections.EMPTY_LIST, selectors, Collections.EMPTY_LIST, new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ); File dir = fileManager.createTempDir(); fileManager.createFile( dir, "file.txt", "This is a test." ); archiver.addDirectory( dir ); archiver.createArchive(); assertEquals( 1, counter.getCount() ); } private static final class CounterSelector implements FileSelector { private int count = 0; private boolean answer = false; public CounterSelector( boolean answer ) { this.answer = answer; } public int getCount() { return count; } public boolean isSelected( FileInfo fileInfo ) throws IOException { if ( fileInfo.isFile() ) { count++; } return answer; } } } maven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/archive/task/0000755000175000017500000000000011361635306032162 5ustar twernertwerner././@LongLink0000000000000000000000000000016600000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/archive/task/AddDirectoryTaskTest.javamaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/archive/task/AddDirec0000644000175000017500000001315011212274043033534 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.archive.task; /* * 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.io.IOException; import java.util.Collections; import junit.framework.TestCase; import org.apache.maven.plugin.assembly.archive.ArchiveCreationException; import org.apache.maven.plugin.assembly.testutils.MockManager; import org.apache.maven.plugin.assembly.testutils.TestFileManager; import org.codehaus.plexus.archiver.Archiver; import org.codehaus.plexus.archiver.ArchiverException; import org.easymock.MockControl; public class AddDirectoryTaskTest extends TestCase { private MockManager mockManager; private TestFileManager fileManager; private Archiver archiver; private MockControl archiverControl; public void setUp() { fileManager = new TestFileManager( "ArchiveAssemblyUtils.test.", "" ); mockManager = new MockManager(); archiverControl = MockControl.createControl( Archiver.class ); mockManager.add( archiverControl ); archiver = (Archiver) archiverControl.getMock(); } public void tearDown() throws IOException { fileManager.cleanUp(); } public void testAddDirectory_ShouldNotAddDirectoryIfNonExistent() throws ArchiveCreationException { File dir = new File( System.getProperty( "java.io.tmpdir" ), "non-existent." + System.currentTimeMillis() ); configureModeExpectations( -1, -1, -1, -1, false ); mockManager.replayAll(); AddDirectoryTask task = new AddDirectoryTask( dir ); task.execute( archiver, null ); mockManager.verifyAll(); } public void testAddDirectory_ShouldAddDirectory() throws ArchiveCreationException { File dir = fileManager.createTempDir(); try { archiver.addFileSet( null ); archiverControl.setMatcher( MockControl.ALWAYS_MATCHER ); } catch ( ArchiverException e ) { fail( "Should never happen." ); } configureModeExpectations( -1, -1, -1, -1, false ); mockManager.replayAll(); AddDirectoryTask task = new AddDirectoryTask( dir ); task.setOutputDirectory( "dir" ); task.execute( archiver, null ); mockManager.verifyAll(); } public void testAddDirectory_ShouldAddDirectoryWithDirMode() throws ArchiveCreationException { File dir = fileManager.createTempDir(); try { archiver.addFileSet( null ); archiverControl.setMatcher( MockControl.ALWAYS_MATCHER ); } catch ( ArchiverException e ) { fail( "Should never happen." ); } int dirMode = Integer.parseInt( "777", 8 ); int fileMode = Integer.parseInt( "777", 8 ); configureModeExpectations( -1, -1, dirMode, fileMode, true ); mockManager.replayAll(); AddDirectoryTask task = new AddDirectoryTask( dir ); task.setDirectoryMode( dirMode ); task.setFileMode( fileMode ); task.setOutputDirectory( "dir" ); task.execute( archiver, null ); mockManager.verifyAll(); } public void testAddDirectory_ShouldAddDirectoryWithIncludesAndExcludes() throws ArchiveCreationException { File dir = fileManager.createTempDir(); try { archiver.addFileSet( null ); archiverControl.setMatcher( MockControl.ALWAYS_MATCHER ); } catch ( ArchiverException e ) { fail( "Should never happen." ); } configureModeExpectations( -1, -1, -1, -1, false ); mockManager.replayAll(); AddDirectoryTask task = new AddDirectoryTask( dir ); task.setIncludes( Collections.singletonList( "**/*.txt" ) ); task.setExcludes( Collections.singletonList( "**/README.txt" ) ); task.setOutputDirectory( "dir" ); task.execute( archiver, null ); mockManager.verifyAll(); } private void configureModeExpectations( int defaultDirMode, int defaultFileMode, int dirMode, int fileMode, boolean expectTwoSets ) { archiver.getOverrideDirectoryMode(); archiverControl.setReturnValue( defaultDirMode ); archiver.getOverrideFileMode(); archiverControl.setReturnValue( defaultFileMode ); if ( expectTwoSets ) { if ( dirMode > -1 ) { archiver.setDirectoryMode( dirMode ); } if ( fileMode > -1 ) { archiver.setFileMode( fileMode ); } } if ( dirMode > -1 ) { archiver.setDirectoryMode( defaultDirMode ); } if ( fileMode > -1 ) { archiver.setFileMode( defaultFileMode ); } } } ././@LongLink0000000000000000000000000000016500000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/archive/task/AddFileSetsTaskTest.javamaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/archive/task/AddFileS0000644000175000017500000002121411212274043033510 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.archive.task; /* * 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 org.apache.maven.model.Model; import org.apache.maven.plugin.assembly.archive.ArchiveCreationException; import org.apache.maven.plugin.assembly.archive.task.testutils.MockAndControlForAddFileSetsTask; import org.apache.maven.plugin.assembly.format.AssemblyFormattingException; import org.apache.maven.plugin.assembly.model.FileSet; import org.apache.maven.plugin.assembly.testutils.MockManager; import org.apache.maven.plugin.assembly.testutils.TestFileManager; import org.apache.maven.project.MavenProject; import org.codehaus.plexus.logging.Logger; import org.codehaus.plexus.logging.console.ConsoleLogger; import java.io.File; import java.io.IOException; import java.util.Collections; import junit.framework.TestCase; public class AddFileSetsTaskTest extends TestCase { private MockManager mockManager; private TestFileManager fileManager; private MockAndControlForAddFileSetsTask macTask; public void setUp() { mockManager = new MockManager(); fileManager = new TestFileManager( "add-fileset.test.", "" ); macTask = new MockAndControlForAddFileSetsTask( mockManager, fileManager ); } public void tearDown() throws IOException { fileManager.cleanUp(); } public void testGetFileSetDirectory_ShouldReturnAbsoluteSourceDir() throws ArchiveCreationException, AssemblyFormattingException { File dir = fileManager.createTempDir(); FileSet fs = new FileSet(); fs.setDirectory( dir.getAbsolutePath() ); File result = new AddFileSetsTask( Collections.EMPTY_LIST ).getFileSetDirectory( fs, null, null ); assertEquals( dir.getAbsolutePath(), result.getAbsolutePath() ); } public void testGetFileSetDirectory_ShouldReturnBasedir() throws ArchiveCreationException, AssemblyFormattingException { File dir = fileManager.createTempDir(); FileSet fs = new FileSet(); File result = new AddFileSetsTask( Collections.EMPTY_LIST ).getFileSetDirectory( fs, dir, null ); assertEquals( dir.getAbsolutePath(), result.getAbsolutePath() ); } public void testGetFileSetDirectory_ShouldReturnDirFromBasedirAndSourceDir() throws ArchiveCreationException, AssemblyFormattingException { File dir = fileManager.createTempDir(); String srcPath = "source"; File srcDir = new File( dir, srcPath ); FileSet fs = new FileSet(); fs.setDirectory( srcPath ); File result = new AddFileSetsTask( Collections.EMPTY_LIST ).getFileSetDirectory( fs, dir, null ); assertEquals( srcDir.getAbsolutePath(), result.getAbsolutePath() ); } public void testGetFileSetDirectory_ShouldReturnDirFromArchiveBasedirAndSourceDir() throws ArchiveCreationException, AssemblyFormattingException { File dir = fileManager.createTempDir(); String srcPath = "source"; File srcDir = new File( dir, srcPath ); FileSet fs = new FileSet(); fs.setDirectory( srcPath ); File result = new AddFileSetsTask( Collections.EMPTY_LIST ).getFileSetDirectory( fs, null, dir ); assertEquals( srcDir.getAbsolutePath(), result.getAbsolutePath() ); } public void testAddFileSet_ShouldAddDirectory() throws ArchiveCreationException, AssemblyFormattingException { FileSet fs = new FileSet(); String dirname = "dir"; fs.setDirectory( dirname ); fs.setOutputDirectory( "dir2" ); // ensure this exists, so the directory addition will proceed. File srcDir = new File( macTask.archiveBaseDir, dirname ); srcDir.mkdirs(); int[] modes = { -1, -1, -1, -1 }; macTask.expectAdditionOfSingleFileSet( null, null, null, true, modes, 1, true, false ); macTask.expectGetProject( null ); MavenProject project = new MavenProject( new Model() ); mockManager.replayAll(); AddFileSetsTask task = new AddFileSetsTask( Collections.EMPTY_LIST ); task.setLogger( new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ); task.setProject( project ); task.addFileSet( fs, macTask.archiver, macTask.configSource, macTask.archiveBaseDir ); mockManager.verifyAll(); } public void testAddFileSet_ShouldAddDirectoryUsingSourceDirNameForDestDir() throws ArchiveCreationException, AssemblyFormattingException { FileSet fs = new FileSet(); String dirname = "dir"; fs.setDirectory( dirname ); File archiveBaseDir = fileManager.createTempDir(); // ensure this exists, so the directory addition will proceed. File srcDir = new File( archiveBaseDir, dirname ); srcDir.mkdirs(); int[] modes = { -1, -1, -1, -1 }; macTask.expectAdditionOfSingleFileSet( null, null, null, true, modes, 1, true, false ); macTask.expectGetProject( null ); MavenProject project = new MavenProject( new Model() ); mockManager.replayAll(); AddFileSetsTask task = new AddFileSetsTask( Collections.EMPTY_LIST ); task.setLogger( new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ); task.setProject( project ); task.addFileSet( fs, macTask.archiver, macTask.configSource, archiveBaseDir ); mockManager.verifyAll(); } public void testAddFileSet_ShouldNotAddDirectoryWhenSourceDirNonExistent() throws ArchiveCreationException, AssemblyFormattingException { FileSet fs = new FileSet(); String dirname = "dir"; fs.setDirectory( dirname ); File archiveBaseDir = fileManager.createTempDir(); macTask.expectGetFinalName( "finalName" ); macTask.expectGetProject( null ); macTask.archiver.getOverrideDirectoryMode(); macTask.archiverCtl.setReturnValue( -1 ); macTask.archiver.getOverrideFileMode(); macTask.archiverCtl.setReturnValue( -1 ); MavenProject project = new MavenProject( new Model() ); mockManager.replayAll(); AddFileSetsTask task = new AddFileSetsTask( Collections.EMPTY_LIST ); task.setLogger( new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ); task.setProject( project ); task.addFileSet( fs, macTask.archiver, macTask.configSource, archiveBaseDir ); mockManager.verifyAll(); } public void testExecute_ShouldThrowExceptionIfArchiveBasedirProvidedIsNonExistent() throws AssemblyFormattingException { macTask.archiveBaseDir.delete(); macTask.expectGetArchiveBaseDirectory(); mockManager.replayAll(); AddFileSetsTask task = new AddFileSetsTask( Collections.EMPTY_LIST ); try { task.execute( macTask.archiver, macTask.configSource ); fail( "Should throw exception due to non-existent archiveBasedir location that was provided." ); } catch ( ArchiveCreationException e ) { // should do this, because it cannot use the provide archiveBasedir. } mockManager.verifyAll(); } public void testExecute_ShouldThrowExceptionIfArchiveBasedirProvidedIsNotADirectory() throws AssemblyFormattingException, IOException { File archiveBaseDir = fileManager.createTempFile(); macTask.archiveBaseDir = archiveBaseDir; macTask.expectGetArchiveBaseDirectory(); mockManager.replayAll(); AddFileSetsTask task = new AddFileSetsTask( Collections.EMPTY_LIST ); try { task.execute( macTask.archiver, macTask.configSource ); fail( "Should throw exception due to non-directory archiveBasedir location that was provided." ); } catch ( ArchiveCreationException e ) { // should do this, because it cannot use the provide archiveBasedir. } mockManager.verifyAll(); } } ././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/archive/task/testutils/maven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/archive/task/testutil0000755000175000017500000000000011361635306033760 5ustar twernertwerner././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/archive/task/testutils/ArtifactMock.javamaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/archive/task/testutil0000644000175000017500000002060111123544663033762 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.archive.task.testutils; /* * 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 org.apache.maven.artifact.Artifact; import org.apache.maven.artifact.handler.ArtifactHandler; import org.apache.maven.plugin.assembly.testutils.MockManager; import org.easymock.MockControl; import java.io.File; import java.io.IOException; import java.util.List; public class ArtifactMock { private final MockControl artifactCtl; private final Artifact artifact; private final MockControl handlerCtl; private final ArtifactHandler handler; private String groupId; private String artifactId; private String baseVersion; private File file; private String scope; private Boolean isSnapshot; private String version; private List dependencyTrail; private String id; private String dependencyConflictId; private String typeAndExt; private String classifier; public ArtifactMock( MockManager mockManager, String groupId, String artifactId, String version, String type, boolean isSnapshot ) { this( mockManager, groupId, artifactId, version, type, null, isSnapshot, null ); } public ArtifactMock( MockManager mockManager, String groupId, String artifactId, String version, String type, boolean isSnapshot, String baseVersion ) { this( mockManager, groupId, artifactId, version, type, null, isSnapshot, baseVersion ); } public ArtifactMock( MockManager mockManager, String groupId, String artifactId, String version, String type, String classifier, boolean isSnapshot ) { this( mockManager, groupId, artifactId, version, type, classifier, isSnapshot, null ); } public ArtifactMock( MockManager mockManager, String groupId, String artifactId, String version, String type, String classifier, boolean isSnapshot, String baseVersion ) { artifactCtl = MockControl.createControl( Artifact.class ); mockManager.add( artifactCtl ); artifact = (Artifact) artifactCtl.getMock(); handlerCtl = MockControl.createControl( ArtifactHandler.class ); mockManager.add( handlerCtl ); handler = (ArtifactHandler) handlerCtl.getMock(); artifact.getArtifactHandler(); artifactCtl.setReturnValue( handler, MockControl.ZERO_OR_MORE ); this.classifier = classifier; artifact.getClassifier(); artifactCtl.setReturnValue( classifier, MockControl.ZERO_OR_MORE ); setSnapshot( isSnapshot ); setGroupId( groupId ); setArtifactId( artifactId ); setVersion( version ); setBaseVersion( baseVersion ); setType( type ); setId(); setDependencyConflictId(); } public void setExtension( String extension ) { setTypeAndExt( extension ); } public MockControl getArtifactCtl() { return artifactCtl; } public Artifact getArtifact() { return artifact; } public void setArtifactId( String artifactId ) { if ( ( artifactId != null ) && ( this.artifactId == null ) ) { artifact.getArtifactId(); artifactCtl.setReturnValue( artifactId, MockControl.ZERO_OR_MORE ); this.artifactId = artifactId; } } public void setBaseVersion( String baseVersion ) { if ( ( baseVersion != null ) && ( this.baseVersion == null ) ) { artifact.getBaseVersion(); artifactCtl.setReturnValue( baseVersion, MockControl.ZERO_OR_MORE ); this.baseVersion = baseVersion; } } public void setFile( File destination ) { if ( ( destination != null ) && ( file == null ) ) { artifact.getFile(); artifactCtl.setReturnValue( destination, MockControl.ZERO_OR_MORE ); file = destination; } } public void setGroupId( String groupId ) { if ( ( groupId != null ) && ( this.groupId == null ) ) { artifact.getGroupId(); artifactCtl.setReturnValue( groupId, MockControl.ZERO_OR_MORE ); this.groupId = groupId; } } public void setScope( String scope ) { if ( ( scope != null ) && ( this.scope == null ) ) { artifact.getScope(); artifactCtl.setReturnValue( scope, MockControl.ZERO_OR_MORE ); this.scope = scope; } } public void setVersion( String version ) { if ( ( version != null ) && ( this.version == null ) ) { artifact.getVersion(); artifactCtl.setReturnValue( version, MockControl.ZERO_OR_MORE ); this.version = version; if ( isSnapshot != Boolean.TRUE ) { setBaseVersion( version ); setSnapshot( false ); } } } public void setDependencyTrail( List dependencyTrail ) { if ( ( dependencyTrail != null ) && ( this.dependencyTrail == null ) ) { artifact.getDependencyTrail(); artifactCtl.setReturnValue( dependencyTrail, MockControl.ZERO_OR_MORE ); this.dependencyTrail = dependencyTrail; } } public void setId( String id ) { if ( ( id != null ) && ( this.id == null ) ) { artifact.getId(); artifactCtl.setReturnValue( id, MockControl.ZERO_OR_MORE ); this.id = id; } } public void setDependencyConflictId( String id ) { if ( ( id != null ) && ( dependencyConflictId == null ) ) { artifact.getDependencyConflictId(); artifactCtl.setReturnValue( id, MockControl.ZERO_OR_MORE ); dependencyConflictId = id; } } public void setSnapshot( boolean snapshot ) { if ( isSnapshot == null ) { artifact.isSnapshot(); artifactCtl.setReturnValue( snapshot, MockControl.ZERO_OR_MORE ); isSnapshot = Boolean.valueOf( snapshot ); } } public File setNewFile() throws IOException { if ( file == null ) { File newFile = File.createTempFile( "ArtifactMock.test.", "" ); newFile.deleteOnExit(); artifact.getFile(); artifactCtl.setReturnValue( newFile, MockControl.ZERO_OR_MORE ); file = newFile; } return file; } public void setType( String type ) { setTypeAndExt( type ); } private void setTypeAndExt( String type ) { if ( ( type != null ) && ( typeAndExt == null ) ) { artifact.getType(); artifactCtl.setReturnValue( type, MockControl.ZERO_OR_MORE ); handler.getExtension(); handlerCtl.setReturnValue( type, MockControl.ZERO_OR_MORE ); typeAndExt = type; } } private void setDependencyConflictId() { if ( ( groupId != null ) && ( artifactId != null ) && ( typeAndExt != null ) ) { String id = groupId + ":" + artifactId + ":" + typeAndExt + ( classifier == null ? "" : ":" + classifier ); setDependencyConflictId( id ); } } private void setId() { if ( ( groupId != null ) && ( artifactId != null ) && ( typeAndExt != null ) && ( version != null ) ) { String id = groupId + ":" + artifactId + ":" + version + ":" + typeAndExt + ( classifier == null ? "" : ":" + classifier ); setId( id ); } } public void setNullFile() { artifact.getFile(); artifactCtl.setReturnValue( null, MockControl.ZERO_OR_MORE ); file = new File( "set-to-null" ); } } ././@LongLink0000000000000000000000000000020500000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/archive/task/testutils/MockAndControlForArtifact.javamaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/archive/task/testutil0000644000175000017500000001051511123544663033765 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.archive.task.testutils; /* * 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 org.apache.maven.artifact.Artifact; import org.apache.maven.artifact.handler.ArtifactHandler; import org.apache.maven.plugin.assembly.testutils.MockManager; import org.easymock.MockControl; import java.io.File; import java.util.List; public class MockAndControlForArtifact { public Artifact artifact; public MockControl artifactCtl; public ArtifactHandler artifactHandler; public MockControl artifactHandlerCtl; private final MockManager mockManager; private final String classifier; public MockAndControlForArtifact( MockManager mockManager ) { this( mockManager, null ); } public MockAndControlForArtifact( MockManager mockManager, String classifier ) { this.mockManager = mockManager; this.classifier = classifier; artifactCtl = MockControl.createControl( Artifact.class ); mockManager.add( artifactCtl ); artifact = ( Artifact ) artifactCtl.getMock(); enableDefaultExpectations(); } private void enableDefaultExpectations() { artifact.getClassifier(); artifactCtl.setReturnValue( classifier, MockControl.ZERO_OR_MORE ); } public void expectGetId( String id ) { artifact.getId(); artifactCtl.setReturnValue( id, MockControl.ONE_OR_MORE ); } public void expectGetDependencyTrail( List dependencyTrail ) { artifact.getDependencyTrail(); artifactCtl.setReturnValue( dependencyTrail, MockControl.ONE_OR_MORE ); } public void expectGetDependencyConflictId( String conflictId ) { artifact.getDependencyConflictId(); artifactCtl.setReturnValue( conflictId, MockControl.ONE_OR_MORE ); } public void expectGetArtifactId( String artifactId ) { artifact.getArtifactId(); artifactCtl.setReturnValue( artifactId, MockControl.ONE_OR_MORE ); } public void expectGetGroupId( String groupId ) { artifact.getGroupId(); artifactCtl.setReturnValue( groupId, MockControl.ONE_OR_MORE ); } public void expectGetScope( String scope ) { artifact.getScope(); artifactCtl.setReturnValue( scope, MockControl.ONE_OR_MORE ); } public void expectIsSnapshot( boolean isSnapshot ) { artifact.isSnapshot(); artifactCtl.setReturnValue( isSnapshot, MockControl.ONE_OR_MORE ); } public void expectGetClassifier( String classifier ) { artifact.getClassifier(); artifactCtl.setReturnValue( classifier, MockControl.ONE_OR_MORE ); } public void expectGetArtifactHandler() { artifactHandlerCtl = MockControl.createControl( ArtifactHandler.class ); mockManager.add( artifactHandlerCtl ); artifactHandler = ( ArtifactHandler ) artifactHandlerCtl.getMock(); artifact.getArtifactHandler(); artifactCtl.setReturnValue( artifactHandler, MockControl.ONE_OR_MORE ); } public void expectGetDependencyConflictId( String groupId, String artifactId, String packaging ) { artifact.getDependencyConflictId(); artifactCtl.setReturnValue( groupId + ":" + artifactId + ":" + packaging, MockControl.ONE_OR_MORE ); } public void expectGetType( String type ) { artifact.getType(); artifactCtl.setReturnValue( type, MockControl.ONE_OR_MORE ); } public void expectGetFile( File artifactFile ) { artifact.getFile(); artifactCtl.setReturnValue( artifactFile, MockControl.ONE_OR_MORE ); } } ././@LongLink0000000000000000000000000000022200000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/archive/task/testutils/MockAndControlForAddDependencySetsTask.javamaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/archive/task/testutil0000644000175000017500000002003111212274043033746 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.archive.task.testutils; /* * 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 org.apache.maven.artifact.repository.ArtifactRepository; import org.apache.maven.artifact.resolver.ArtifactNotFoundException; import org.apache.maven.artifact.resolver.ArtifactResolutionException; import org.apache.maven.execution.MavenSession; import org.apache.maven.plugin.assembly.AssemblerConfigurationSource; import org.apache.maven.plugin.assembly.artifact.DependencyResolver; import org.apache.maven.plugin.assembly.testutils.MockManager; import org.apache.maven.project.MavenProject; import org.apache.maven.project.MavenProjectBuilder; import org.apache.maven.project.ProjectBuildingException; import org.apache.maven.project.artifact.InvalidDependencyVersionException; import org.codehaus.plexus.archiver.Archiver; import org.codehaus.plexus.archiver.ArchiverException; import org.easymock.MockControl; import java.io.File; import java.util.List; import java.util.Set; import junit.framework.Assert; public class MockAndControlForAddDependencySetsTask { public Archiver archiver; public MockControl archiverCtl; public AssemblerConfigurationSource configSource; public MockControl configSourceCtl; public DependencyResolver dependencyResolver; public MockControl dependencyResolverCtl; public MavenProjectBuilder projectBuilder; public MockControl projectBuilderCtl; private MavenProject project; public MockAndControlForAddDependencySetsTask( MockManager mockManager ) { this( mockManager, null ); } public MockAndControlForAddDependencySetsTask( MockManager mockManager, MavenProject project ) { this.project = project; archiverCtl = MockControl.createControl( Archiver.class ); mockManager.add( archiverCtl ); archiver = (Archiver) archiverCtl.getMock(); configSourceCtl = MockControl.createControl( AssemblerConfigurationSource.class ); mockManager.add( configSourceCtl ); configSource = (AssemblerConfigurationSource) configSourceCtl.getMock(); dependencyResolverCtl = MockControl.createControl( DependencyResolver.class ); mockManager.add( dependencyResolverCtl ); dependencyResolver = ( DependencyResolver ) dependencyResolverCtl.getMock(); projectBuilderCtl = MockControl.createControl( MavenProjectBuilder.class ); mockManager.add( projectBuilderCtl ); projectBuilder = ( MavenProjectBuilder ) projectBuilderCtl.getMock(); enableDefaultExpectations(); } private void enableDefaultExpectations() { configSource.getProject(); configSourceCtl.setReturnValue( project, MockControl.ZERO_OR_MORE ); } public void expectAddArchivedFileSet( File file, String outputLocation, String[] includes, String[] excludes ) { try { archiver.addArchivedFileSet( file, outputLocation, includes, excludes ); if ( ( includes != null ) || ( excludes != null ) ) { archiverCtl.setMatcher( MockControl.ARRAY_MATCHER ); } archiverCtl.setVoidCallable( MockControl.ONE_OR_MORE ); } catch ( ArchiverException e ) { Assert.fail( "Should never happen." ); } } public void expectModeChange( int originalDirMode, int originalFileMode, int dirMode, int fileMode, int numberOfChanges ) { archiver.getOverrideDirectoryMode(); archiverCtl.setReturnValue( originalDirMode ); archiver.getOverrideFileMode(); archiverCtl.setReturnValue( originalFileMode ); // one of the changes will occur below, when we restore the original mode. if ( numberOfChanges > 1 ) { for( int i = 1; i< numberOfChanges; i++ ) { archiver.setDirectoryMode( dirMode ); archiver.setFileMode( fileMode ); } } archiver.setDirectoryMode( originalDirMode ); archiver.setFileMode( originalFileMode ); } public void expectAddFile( File file, String outputLocation ) { try { archiver.addFile( file, outputLocation ); } catch ( ArchiverException e ) { Assert.fail( "Should never happen." ); } } public void expectAddFile( File file, String outputLocation, int fileMode ) { try { archiver.addFile( file, outputLocation, fileMode ); } catch ( ArchiverException e ) { Assert.fail( "Should never happen." ); } } public void expectGetReactorProjects( List projects ) { configSource.getReactorProjects(); configSourceCtl.setReturnValue( projects, MockControl.ONE_OR_MORE ); } public void expectCSGetFinalName( String finalName ) { configSource.getFinalName(); configSourceCtl.setReturnValue( finalName, MockControl.ONE_OR_MORE ); } public void expectGetDestFile( File destFile ) { archiver.getDestFile(); archiverCtl.setReturnValue( destFile, MockControl.ZERO_OR_MORE ); } public void expectCSGetRepositories( ArtifactRepository localRepo, List remoteRepos ) { configSource.getLocalRepository(); configSourceCtl.setReturnValue( localRepo, MockControl.ONE_OR_MORE ); configSource.getRemoteRepositories(); configSourceCtl.setReturnValue( remoteRepos, MockControl.ONE_OR_MORE ); } public void expectBuildFromRepository( ProjectBuildingException error ) { try { projectBuilder.buildFromRepository( null, null, null ); projectBuilderCtl.setMatcher( MockControl.ALWAYS_MATCHER ); projectBuilderCtl.setThrowable( error, MockControl.ONE_OR_MORE ); } catch ( ProjectBuildingException e ) { Assert.fail( "should never happen" ); } } public void expectBuildFromRepository( MavenProject project ) { try { projectBuilder.buildFromRepository( null, null, null ); projectBuilderCtl.setMatcher( MockControl.ALWAYS_MATCHER ); projectBuilderCtl.setReturnValue( project, MockControl.ONE_OR_MORE ); } catch ( ProjectBuildingException e ) { Assert.fail( "should never happen" ); } } public void expectResolveDependencies( Set resolvedArtifacts ) { try { dependencyResolver.resolveDependencies( null, null, null, null, null, true ); } catch ( ArtifactResolutionException e ) { Assert.fail( "should never happen!" ); } catch ( ArtifactNotFoundException e ) { Assert.fail( "should never happen!" ); } catch ( InvalidDependencyVersionException e ) { Assert.fail( "should never happen!" ); } dependencyResolverCtl.setMatcher( MockControl.ALWAYS_MATCHER ); dependencyResolverCtl.setReturnValue( resolvedArtifacts, MockControl.ONE_OR_MORE ); } public void expectGetSession( MavenSession session ) { configSource.getMavenSession(); configSourceCtl.setReturnValue( session, MockControl.ZERO_OR_MORE ); } } ././@LongLink0000000000000000000000000000021400000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/archive/task/testutils/MockAndControlForAddArtifactTask.javamaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/archive/task/testutil0000644000175000017500000001305311212274043033754 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.archive.task.testutils; /* * 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 org.apache.maven.execution.MavenSession; import org.apache.maven.plugin.assembly.AssemblerConfigurationSource; import org.apache.maven.plugin.assembly.testutils.MockManager; import org.apache.maven.project.MavenProject; import org.codehaus.plexus.archiver.Archiver; import org.codehaus.plexus.archiver.ArchiverException; import org.easymock.MockControl; import java.io.File; import java.util.List; import junit.framework.Assert; public class MockAndControlForAddArtifactTask { public Archiver archiver; public MockControl archiverCtl; public AssemblerConfigurationSource configSource; public MockControl configSourceCtl; private MavenProject project = null; public MockAndControlForAddArtifactTask( MockManager mockManager ) { this( mockManager, null ); } public MockAndControlForAddArtifactTask( MockManager mockManager, MavenProject project ) { this.project = project; archiverCtl = MockControl.createControl( Archiver.class ); mockManager.add( archiverCtl ); archiver = (Archiver) archiverCtl.getMock(); configSourceCtl = MockControl.createControl( AssemblerConfigurationSource.class ); mockManager.add( configSourceCtl ); configSource = (AssemblerConfigurationSource) configSourceCtl.getMock(); enableDefaultExpectations(); } private void enableDefaultExpectations() { configSource.getProject(); configSourceCtl.setReturnValue( project, MockControl.ZERO_OR_MORE ); configSource.getMavenSession(); configSourceCtl.setReturnValue( null, MockControl.ZERO_OR_MORE ); } public void expectGetFinalName( String finalName ) { configSource.getFinalName(); configSourceCtl.setReturnValue( finalName, MockControl.ONE_OR_MORE ); } public void expectGetDestFile( File destFile ) { archiver.getDestFile(); archiverCtl.setReturnValue( destFile, MockControl.ZERO_OR_MORE ); } public void expectAddArchivedFileSet( File artifactFile, String outputLocation, String[] includes, String[] excludes ) { try { archiver.addArchivedFileSet( artifactFile, outputLocation, includes, excludes ); if ( ( includes != null ) || ( excludes != null ) ) { archiverCtl.setMatcher( MockControl.ARRAY_MATCHER ); } archiverCtl.setVoidCallable( MockControl.ONE_OR_MORE ); } catch ( ArchiverException e ) { Assert.fail( "Should never happen." ); } } public void expectModeChange( int originalDirMode, int originalFileMode, int dirMode, int fileMode, int numberOfChanges ) { archiver.getOverrideDirectoryMode(); archiverCtl.setReturnValue( originalDirMode ); archiver.getOverrideFileMode(); archiverCtl.setReturnValue( originalFileMode ); // one of the changes will occur below, when we restore the original mode. if ( numberOfChanges > 1 ) { for( int i = 1; i< numberOfChanges; i++ ) { if ( dirMode > -1 ) { archiver.setDirectoryMode( dirMode ); } if ( fileMode > -1 ) { archiver.setFileMode( fileMode ); } } } if ( dirMode > -1 ) { archiver.setDirectoryMode( originalDirMode ); } if ( fileMode > -1 ) { archiver.setFileMode( originalFileMode ); } } public void expectAddFile( File file, String outputLocation, int fileMode ) { try { archiver.addFile( file, outputLocation, fileMode ); archiverCtl.setVoidCallable( MockControl.ONE_OR_MORE ); } catch ( ArchiverException e ) { Assert.fail( "Should never happen." ); } } public void expectAddFile( File file, String outputLocation ) { try { archiver.addFile( file, outputLocation ); archiverCtl.setVoidCallable( MockControl.ONE_OR_MORE ); } catch ( ArchiverException e ) { Assert.fail( "Should never happen." ); } } public void expectGetReactorProjects( List projects ) { configSource.getReactorProjects(); configSourceCtl.setReturnValue( projects, MockControl.ONE_OR_MORE ); } public void expectGetSession( MavenSession session ) { configSource.getMavenSession(); configSourceCtl.setReturnValue( session, MockControl.ONE_OR_MORE ); } } ././@LongLink0000000000000000000000000000021400000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/archive/task/testutils/MockAndControlForAddFileSetsTask.javamaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/archive/task/testutil0000644000175000017500000001357511212274043033765 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.archive.task.testutils; /* * 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 org.apache.maven.execution.MavenSession; import org.apache.maven.plugin.assembly.AssemblerConfigurationSource; import org.apache.maven.plugin.assembly.testutils.MockManager; import org.apache.maven.plugin.assembly.testutils.TestFileManager; import org.apache.maven.project.MavenProject; import org.codehaus.plexus.archiver.Archiver; import org.codehaus.plexus.archiver.ArchiverException; import org.easymock.MockControl; import java.io.File; import junit.framework.Assert; public class MockAndControlForAddFileSetsTask { public AssemblerConfigurationSource configSource; public MockControl configSourceCtl; public Archiver archiver; public MockControl archiverCtl; public TestFileManager fileManager; public File archiveBaseDir; public MockAndControlForAddFileSetsTask( MockManager mockManager, TestFileManager fileManager ) { this.fileManager = fileManager; configSourceCtl = MockControl.createControl( AssemblerConfigurationSource.class ); mockManager.add( configSourceCtl ); configSource = (AssemblerConfigurationSource) configSourceCtl.getMock(); archiverCtl = MockControl.createControl( Archiver.class ); mockManager.add( archiverCtl ); archiver = (Archiver) archiverCtl.getMock(); archiveBaseDir = fileManager.createTempDir(); configSource.getMavenSession(); configSourceCtl.setReturnValue( null, MockControl.ZERO_OR_MORE ); } public void expectGetArchiveBaseDirectory() { configSource.getArchiveBaseDirectory(); configSourceCtl.setReturnValue( archiveBaseDir, MockControl.ONE_OR_MORE ); } public void expectGetBasedir( File basedir ) { configSource.getBasedir(); configSourceCtl.setReturnValue( basedir, MockControl.ONE_OR_MORE ); } public void expectModeChanges( int[] modes, int modeChangeCount ) { archiver.getOverrideDirectoryMode(); archiverCtl.setReturnValue( modes[0] ); archiver.getOverrideFileMode(); archiverCtl.setReturnValue( modes[1] ); if ( modeChangeCount > 1 ) { for ( int i = 1; i < modeChangeCount; i++ ) { if ( modes[2] > -1 ) { archiver.setDirectoryMode( modes[2] ); } if ( modes[3] > -1 ) { archiver.setFileMode( modes[3] ); } } } if ( modes[2] > -1 ) { archiver.setDirectoryMode( modes[0] ); } if ( modes[3] > -1 ) { archiver.setFileMode( modes[1] ); } } public void expectAdditionOfSingleFileSet( MavenProject project, File basedir, String finalName, boolean shouldAddDir, int[] modes, int modeChangeCount, boolean isDebugEnabled ) { expectAdditionOfSingleFileSet( project, basedir, finalName, shouldAddDir, modes, modeChangeCount, isDebugEnabled, true ); } public void expectAdditionOfSingleFileSet( MavenProject project, File basedir, String finalName, boolean shouldAddDir, int[] modes, int modeChangeCount, boolean isDebugEnabled, boolean isProjectUsed ) { // the logger sends a debug message with this info inside the addFileSet(..) method.. if ( isDebugEnabled ) { archiver.getOverrideDirectoryMode(); archiverCtl.setReturnValue( modes[0] ); archiver.getOverrideFileMode(); archiverCtl.setReturnValue( modes[1] ); } if ( isProjectUsed ) { configSource.getProject(); configSourceCtl.setReturnValue( project, MockControl.ONE_OR_MORE ); } configSource.getFinalName(); configSourceCtl.setReturnValue( finalName, MockControl.ONE_OR_MORE ); if ( shouldAddDir ) { expectModeChanges( modes, modeChangeCount ); try { archiver.addFileSet( null ); archiverCtl.setMatcher( MockControl.ALWAYS_MATCHER ); archiverCtl.setVoidCallable( MockControl.ONE_OR_MORE ); } catch ( ArchiverException e ) { Assert.fail( "Should never happen." ); } } } public void expectGetProject( MavenProject project ) { configSource.getProject(); configSourceCtl.setReturnValue( project, MockControl.ONE_OR_MORE ); } public void expectGetSession( MavenSession session ) { configSource.getMavenSession(); configSourceCtl.setReturnValue( session, MockControl.ONE_OR_MORE ); } public void expectGetFinalName( String finalName ) { configSource.getFinalName(); configSourceCtl.setReturnValue( finalName, MockControl.ONE_OR_MORE ); } } ././@LongLink0000000000000000000000000000016500000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/archive/task/AddArtifactTaskTest.javamaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/archive/task/AddArtif0000644000175000017500000001724711123544663033577 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.archive.task; /* * 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 org.apache.maven.artifact.Artifact; import org.apache.maven.model.Model; import org.apache.maven.plugin.assembly.archive.ArchiveCreationException; import org.apache.maven.plugin.assembly.archive.task.testutils.ArtifactMock; import org.apache.maven.plugin.assembly.archive.task.testutils.MockAndControlForAddArtifactTask; import org.apache.maven.plugin.assembly.format.AssemblyFormattingException; import org.apache.maven.plugin.assembly.model.DependencySet; import org.apache.maven.plugin.assembly.testutils.MockManager; import org.apache.maven.plugin.assembly.utils.TypeConversionUtils; import org.apache.maven.project.MavenProject; import org.codehaus.plexus.archiver.ArchiverException; import org.codehaus.plexus.logging.Logger; import org.codehaus.plexus.logging.console.ConsoleLogger; import java.io.File; import java.io.IOException; import java.util.Arrays; import junit.framework.TestCase; public class AddArtifactTaskTest extends TestCase { private MockManager mockManager; private MockAndControlForAddArtifactTask mac; private MavenProject mainProject; public void setUp() throws IOException { mockManager = new MockManager(); Model model = new Model(); model.setGroupId( "group" ); model.setArtifactId( "main" ); model.setVersion( "1000" ); mainProject = new MavenProject( model ); mac = new MockAndControlForAddArtifactTask( mockManager, mainProject ); mac.expectGetFinalName( "final-name" ); } public void testShouldAddArchiveFileWithoutUnpacking() throws ArchiveCreationException, AssemblyFormattingException, IOException { String outputLocation = "artifact"; ArtifactMock artifactMock = new ArtifactMock( mockManager, "group", "artifact", "version", "jar", false ); File artifactFile = artifactMock.setNewFile(); mac.expectGetDestFile( new File( "junk" ) ); mac.expectAddFile( artifactFile, outputLocation ); mockManager.replayAll(); AddArtifactTask task = createTask( artifactMock.getArtifact() ); task.execute( mac.archiver, mac.configSource ); mockManager.verifyAll(); } public void testShouldAddArchiveFileWithDefaultOutputLocation() throws ArchiveCreationException, AssemblyFormattingException, IOException { String artifactId = "myArtifact"; String version = "1"; String ext = "jar"; String outputDir = "tmp/"; ArtifactMock mock = new ArtifactMock( mockManager, "group", artifactId, version, ext, false ); File file = mock.setNewFile(); mock.setExtension( ext ); mac.expectGetDestFile( new File( "junk" ) ); mac.expectAddFile( file, outputDir + artifactId + "-" + version + "." + ext ); mockManager.replayAll(); AddArtifactTask task = new AddArtifactTask( mock.getArtifact(), new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ); task.setOutputDirectory( outputDir ); task.setFileNameMapping( new DependencySet().getOutputFileNameMapping() ); Model model = new Model(); model.setArtifactId( artifactId ); model.setVersion( version ); MavenProject project = new MavenProject( model ); task.setProject( project ); task.execute( mac.archiver, mac.configSource ); mockManager.verifyAll(); } private AddArtifactTask createTask( Artifact artifact ) { AddArtifactTask task = new AddArtifactTask( artifact, new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ); task.setFileNameMapping( "artifact" ); return task; } public void testShouldAddArchiveFileWithUnpack() throws ArchiveCreationException, AssemblyFormattingException, IOException { mac.expectModeChange( -1, -1, -1, -1, 1 ); ArtifactMock artifactMock = new ArtifactMock( mockManager, "group", "artifact", "version", "jar", false ); File artifactFile = artifactMock.setNewFile(); String outputLocation = ""; mac.expectGetDestFile( new File( "junk" ) ); try { mac.archiver.addArchivedFileSet( artifactFile, outputLocation, AddArtifactTask.DEFAULT_INCLUDES_ARRAY, null ); } catch ( ArchiverException e ) { fail( "Should never happen." ); } mockManager.replayAll(); AddArtifactTask task = createTask( artifactMock.getArtifact() ); task.setUnpack( true ); task.execute( mac.archiver, mac.configSource ); mockManager.verifyAll(); } public void testShouldAddArchiveFileWithUnpackAndModes() throws ArchiveCreationException, AssemblyFormattingException, IOException { int directoryMode = TypeConversionUtils.modeToInt( "777", new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ); int fileMode = TypeConversionUtils.modeToInt( "777", new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ); mac.expectModeChange( -1, -1, directoryMode, fileMode, 2 ); // mac.expectIsSnapshot( false ); String outputLocation = ""; ArtifactMock artifactMock = new ArtifactMock( mockManager, "group", "artifact", "version", "jar", false ); File artifactFile = artifactMock.setNewFile(); mac.expectGetDestFile( new File( "junk" ) ); try { mac.archiver.addArchivedFileSet( artifactFile, outputLocation, AddArtifactTask.DEFAULT_INCLUDES_ARRAY, null ); } catch ( ArchiverException e ) { fail( "Should never happen." ); } mockManager.replayAll(); AddArtifactTask task = createTask( artifactMock.getArtifact() ); task.setUnpack( true ); task.setDirectoryMode( directoryMode ); task.setFileMode( fileMode ); task.execute( mac.archiver, mac.configSource ); mockManager.verifyAll(); } public void testShouldAddArchiveFileWithUnpackIncludesAndExcludes() throws ArchiveCreationException, AssemblyFormattingException, IOException { mac.expectModeChange( -1, -1, -1, -1, 1 ); String outputLocation = ""; String[] includes = { "**/*.txt" }; String[] excludes = { "**/README.txt" }; ArtifactMock artifactMock = new ArtifactMock( mockManager, "group", "artifact", "version", "jar", false ); File artifactFile = artifactMock.setNewFile(); mac.expectGetDestFile( new File( "junk" ) ); mac.expectAddArchivedFileSet( artifactFile, outputLocation, includes, excludes ); mockManager.replayAll(); AddArtifactTask task = createTask( artifactMock.getArtifact() ); task.setUnpack( true ); task.setIncludes( Arrays.asList( includes ) ); task.setExcludes( Arrays.asList( excludes ) ); task.execute( mac.archiver, mac.configSource ); mockManager.verifyAll(); } } ././@LongLink0000000000000000000000000000017300000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/archive/task/AddDependencySetsTaskTest.javamaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/archive/task/AddDepen0000644000175000017500000004346111123544663033562 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.archive.task; /* * 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 org.apache.maven.artifact.Artifact; import org.apache.maven.model.Model; import org.apache.maven.plugin.assembly.InvalidAssemblerConfigurationException; import org.apache.maven.plugin.assembly.archive.ArchiveCreationException; import org.apache.maven.plugin.assembly.archive.task.testutils.ArtifactMock; import org.apache.maven.plugin.assembly.archive.task.testutils.MockAndControlForAddDependencySetsTask; import org.apache.maven.plugin.assembly.archive.task.testutils.MockAndControlForArtifact; import org.apache.maven.plugin.assembly.format.AssemblyFormattingException; import org.apache.maven.plugin.assembly.model.DependencySet; import org.apache.maven.plugin.assembly.testutils.MockManager; import org.apache.maven.project.MavenProject; import org.apache.maven.project.ProjectBuildingException; import org.codehaus.plexus.logging.Logger; import org.codehaus.plexus.logging.console.ConsoleLogger; import java.io.File; import java.io.IOException; import java.util.Collections; import java.util.HashSet; import java.util.Set; import junit.framework.TestCase; public class AddDependencySetsTaskTest extends TestCase { private MockManager mockManager = new MockManager(); public void testAddDependencySet_ShouldInterpolateDefaultOutputFileNameMapping() throws AssemblyFormattingException, ArchiveCreationException, InvalidAssemblerConfigurationException, IOException { String outDir = "tmp/"; String mainAid = "main"; String mainGid = "org.maingrp"; String mainVer = "9"; String depAid = "dep"; String depGid = "org.depgrp"; String depVer = "1"; String depExt = "war"; DependencySet ds = new DependencySet(); ds.setOutputDirectory( outDir ); ds.setDirectoryMode( Integer.toString( 10, 8 ) ); ds.setFileMode( Integer.toString( 10, 8 ) ); Model mainModel = new Model(); mainModel.setArtifactId( mainAid ); mainModel.setGroupId( mainGid ); mainModel.setVersion( mainVer ); MavenProject mainProject = new MavenProject( mainModel ); ArtifactMock mainArtifactMock = new ArtifactMock( mockManager, mainGid, mainAid, mainVer, "jar", false ); mainProject.setArtifact( mainArtifactMock.getArtifact() ); Model depModel = new Model(); depModel.setArtifactId( depAid ); depModel.setGroupId( depGid ); depModel.setVersion( depVer ); depModel.setPackaging( depExt ); MavenProject depProject = new MavenProject( depModel ); ArtifactMock depArtifactMock = new ArtifactMock( mockManager, depGid, depAid, depVer, depExt, false ); File newFile = depArtifactMock.setNewFile(); depProject.setArtifact( depArtifactMock.getArtifact() ); MockAndControlForAddDependencySetsTask macTask = new MockAndControlForAddDependencySetsTask( mockManager, mainProject ); macTask.expectBuildFromRepository( depProject ); macTask.expectCSGetFinalName( mainAid + "-" + mainVer ); macTask.expectCSGetRepositories( null, null ); macTask.expectResolveDependencies( Collections.singleton( depArtifactMock.getArtifact() ) ); macTask.expectGetDestFile( new File( "junk" ) ); macTask.expectAddFile( newFile, outDir + depAid + "-" + depVer + "." + depExt, 10 ); macTask.expectGetSession( null ); mockManager.replayAll(); Logger logger = new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ); AddDependencySetsTask task = new AddDependencySetsTask( Collections.singletonList( ds ), depProject, Collections.EMPTY_MAP, macTask.projectBuilder, macTask.dependencyResolver, logger ); task.addDependencySet( ds, macTask.archiver, macTask.configSource ); mockManager.verifyAll(); } public void testAddDependencySet_ShouldNotAddDependenciesWhenProjectHasNone() throws AssemblyFormattingException, ArchiveCreationException, InvalidAssemblerConfigurationException { MavenProject project = new MavenProject( new Model() ); MockAndControlForAddDependencySetsTask macTask = new MockAndControlForAddDependencySetsTask( mockManager ); macTask.expectCSGetRepositories( null, null ); macTask.expectResolveDependencies( Collections.EMPTY_SET ); DependencySet ds = new DependencySet(); ds.setOutputDirectory( "/out" ); mockManager.replayAll(); Logger logger = new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ); AddDependencySetsTask task = new AddDependencySetsTask( Collections.singletonList( ds ), project, Collections.EMPTY_MAP, macTask.projectBuilder, macTask.dependencyResolver, logger ); task.addDependencySet( ds, null, macTask.configSource ); mockManager.verifyAll(); } // TODO: Find a better way of testing the project-stubbing behavior when a ProjectBuildingException takes place. public void testAddDependencySet_ShouldNotAddDependenciesWhenProjectIsStubbed() throws AssemblyFormattingException, ArchiveCreationException, InvalidAssemblerConfigurationException, IOException { MavenProject project = new MavenProject( new Model() ); ProjectBuildingException pbe = new ProjectBuildingException( "test", "Test error." ); MockAndControlForAddDependencySetsTask macTask = new MockAndControlForAddDependencySetsTask( mockManager, new MavenProject( new Model() ) ); String gid = "org.test"; String aid = "test-dep"; String version = "2.0-SNAPSHOT"; String type = "jar"; File file = new File( "dep-artifact.jar" ); ArtifactMock depMock = new ArtifactMock( mockManager, gid, aid, version, type, true ); depMock.setBaseVersion( version ); depMock.setFile( file ); File destFile = new File( "assembly-dep-set.zip" ); macTask.expectGetDestFile( destFile ); macTask.expectBuildFromRepository( pbe ); macTask.expectCSGetRepositories( null, null ); macTask.expectCSGetFinalName( "final-name" ); macTask.expectResolveDependencies( Collections.singleton( depMock.getArtifact() ) ); macTask.expectAddFile( file, "out/" + aid + "-" + version + "." + type ); macTask.expectGetSession( null ); DependencySet ds = new DependencySet(); ds.setOutputDirectory( "/out" ); mockManager.replayAll(); Logger logger = new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ); AddDependencySetsTask task = new AddDependencySetsTask( Collections.singletonList( ds ), project, Collections.EMPTY_MAP, macTask.projectBuilder, macTask.dependencyResolver, logger ); task.addDependencySet( ds, macTask.archiver, macTask.configSource ); mockManager.verifyAll(); } public void testAddDependencySet_ShouldAddOneDependencyFromProjectWithoutUnpacking() throws AssemblyFormattingException, ArchiveCreationException, IOException, InvalidAssemblerConfigurationException { verifyOneDependencyAdded( "out", false ); } public void testAddDependencySet_ShouldAddOneDependencyFromProjectUnpacked() throws AssemblyFormattingException, ArchiveCreationException, IOException, InvalidAssemblerConfigurationException { verifyOneDependencyAdded( "out", true ); } private void verifyOneDependencyAdded( String outputLocation, boolean unpack ) throws AssemblyFormattingException, ArchiveCreationException, IOException, InvalidAssemblerConfigurationException { MavenProject project = new MavenProject( new Model() ); DependencySet ds = new DependencySet(); ds.setOutputDirectory( outputLocation ); ds.setOutputFileNameMapping( "artifact" ); ds.setUnpack( unpack ); ds.setScope( Artifact.SCOPE_COMPILE ); ds.setDirectoryMode( Integer.toString( 10, 8 ) ); ds.setFileMode( Integer.toString( 10, 8 ) ); MockAndControlForAddDependencySetsTask macTask = new MockAndControlForAddDependencySetsTask( mockManager, new MavenProject( new Model() ) ); ArtifactMock artifactMock = new ArtifactMock( mockManager, "group", "artifact", "version", "jar", false ); File artifactFile = artifactMock.setNewFile(); macTask.expectCSGetRepositories( null, null ); macTask.expectResolveDependencies( Collections.singleton( artifactMock.getArtifact() ) ); if ( unpack ) { macTask.expectAddArchivedFileSet( artifactFile, outputLocation + "/", AddArtifactTask.DEFAULT_INCLUDES_ARRAY, null ); macTask.expectModeChange( -1, -1, 10, 10, 2 ); } else { macTask.expectAddFile( artifactFile, outputLocation + "/artifact", 10 ); } macTask.expectGetDestFile( new File( "junk" ) ); macTask.expectCSGetFinalName( "final-name" ); macTask.expectGetSession( null ); MavenProject depProject = new MavenProject( new Model() ); macTask.expectBuildFromRepository( depProject ); Logger logger = new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ); AddDependencySetsTask task = new AddDependencySetsTask( Collections.singletonList( ds ), project, Collections.EMPTY_MAP, macTask.projectBuilder, macTask.dependencyResolver, logger ); mockManager.replayAll(); task.addDependencySet( ds, macTask.archiver, macTask.configSource ); mockManager.verifyAll(); } public void testGetDependencyArtifacts_ShouldGetOneDependencyArtifact() throws ArchiveCreationException, InvalidAssemblerConfigurationException { MavenProject project = new MavenProject( new Model() ); MockAndControlForAddDependencySetsTask macTask = new MockAndControlForAddDependencySetsTask( mockManager ); ArtifactMock artifactMock = new ArtifactMock( mockManager, "group", "artifact", "version", "jar", false ); macTask.expectCSGetRepositories( null, null ); macTask.expectResolveDependencies( Collections.singleton( artifactMock.getArtifact() ) ); project.setArtifacts( Collections.singleton( artifactMock.getArtifact() ) ); DependencySet dependencySet = new DependencySet(); Logger logger = new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ); mockManager.replayAll(); AddDependencySetsTask task = new AddDependencySetsTask( Collections.singletonList( dependencySet ), project, Collections.EMPTY_MAP, macTask.projectBuilder, macTask.dependencyResolver, logger ); Set result = task.resolveDependencyArtifacts( dependencySet, macTask.configSource ); assertNotNull( result ); assertEquals( 1, result.size() ); assertSame( artifactMock.getArtifact(), result.iterator().next() ); mockManager.verifyAll(); } public void testGetDependencyArtifacts_ShouldFilterOneDependencyArtifactViaInclude() throws ArchiveCreationException, InvalidAssemblerConfigurationException { MavenProject project = new MavenProject( new Model() ); MockAndControlForAddDependencySetsTask macTask = new MockAndControlForAddDependencySetsTask( mockManager ); Set artifacts = new HashSet(); MockAndControlForArtifact mac = new MockAndControlForArtifact( mockManager ); mac.expectGetGroupId( "group" ); mac.expectGetArtifactId( "artifact" ); mac.expectGetDependencyConflictId( "group:artifact:jar" ); mac.expectGetId( "group:artifact:1.0" ); artifacts.add( mac.artifact ); MockAndControlForArtifact mac2 = new MockAndControlForArtifact( mockManager ); mac2.expectGetGroupId( "group2" ); mac2.expectGetArtifactId( "artifact2" ); mac2.expectGetDependencyConflictId( "group2:artifact2:jar" ); mac2.expectGetDependencyTrail( Collections.EMPTY_LIST ); mac2.expectGetId( "group2:artifact2:1.0" ); artifacts.add( mac2.artifact ); macTask.expectCSGetRepositories( null, null ); macTask.expectResolveDependencies( artifacts ); DependencySet dependencySet = new DependencySet(); dependencySet.addInclude( "group:artifact" ); dependencySet.setUseTransitiveFiltering( true ); Logger logger = new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ); mockManager.replayAll(); AddDependencySetsTask task = new AddDependencySetsTask( Collections.singletonList( dependencySet ), project, Collections.EMPTY_MAP, null, macTask.dependencyResolver, logger ); Set result = task.resolveDependencyArtifacts( dependencySet, macTask.configSource ); assertNotNull( result ); assertEquals( 1, result.size() ); assertSame( mac.artifact, result.iterator().next() ); mockManager.verifyAll(); } public void testGetDependencyArtifacts_ShouldIgnoreTransitivePathFilteringWhenIncludeNotTransitive() throws ArchiveCreationException, InvalidAssemblerConfigurationException { MavenProject project = new MavenProject( new Model() ); MockAndControlForAddDependencySetsTask macTask = new MockAndControlForAddDependencySetsTask( mockManager ); Set artifacts = new HashSet(); MockAndControlForArtifact mac = new MockAndControlForArtifact( mockManager ); mac.expectGetGroupId( "group" ); mac.expectGetArtifactId( "artifact" ); mac.expectGetDependencyConflictId( "group:artifact:jar" ); mac.expectGetId( "group:artifact:1.0" ); artifacts.add( mac.artifact ); MockAndControlForArtifact mac2 = new MockAndControlForArtifact( mockManager ); mac2.expectGetGroupId( "group2" ); mac2.expectGetArtifactId( "artifact2" ); mac2.expectGetDependencyConflictId( "group2:artifact2:jar" ); mac2.expectGetId( "group2:artifact2:1.0" ); artifacts.add( mac2.artifact ); macTask.expectCSGetRepositories( null, null ); macTask.expectResolveDependencies( artifacts ); DependencySet dependencySet = new DependencySet(); dependencySet.addInclude( "group:artifact" ); dependencySet.setUseTransitiveFiltering( false ); Logger logger = new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ); mockManager.replayAll(); AddDependencySetsTask task = new AddDependencySetsTask( Collections.singletonList( dependencySet ), project, Collections.EMPTY_MAP, null, macTask.dependencyResolver, logger ); Set result = task.resolveDependencyArtifacts( dependencySet, macTask.configSource ); assertNotNull( result ); assertEquals( 1, result.size() ); assertSame( mac.artifact, result.iterator().next() ); mockManager.verifyAll(); } } ././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/archive/DefaultAssemblyArchiverTest.javamaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/archive/DefaultAssemb0000644000175000017500000007263311212274043033665 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.archive; /* * 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 org.apache.maven.artifact.resolver.ArtifactResolutionException; import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.model.Model; import org.apache.maven.plugin.assembly.AssemblerConfigurationSource; import org.apache.maven.plugin.assembly.InvalidAssemblerConfigurationException; import org.apache.maven.plugin.assembly.archive.phase.AssemblyArchiverPhase; import org.apache.maven.plugin.assembly.artifact.DependencyResolver; import org.apache.maven.plugin.assembly.format.AssemblyFormattingException; import org.apache.maven.plugin.assembly.model.Assembly; import org.apache.maven.plugin.assembly.testutils.MockManager; import org.apache.maven.plugin.assembly.testutils.TestFileManager; import org.apache.maven.project.MavenProject; import org.apache.maven.project.artifact.InvalidDependencyVersionException; import org.codehaus.plexus.PlexusTestCase; import org.codehaus.plexus.archiver.ArchiveFinalizer; import org.codehaus.plexus.archiver.ArchivedFileSet; import org.codehaus.plexus.archiver.Archiver; import org.codehaus.plexus.archiver.ArchiverException; import org.codehaus.plexus.archiver.FileSet; import org.codehaus.plexus.archiver.FinalizerEnabled; import org.codehaus.plexus.archiver.ResourceIterator; import org.codehaus.plexus.archiver.manager.ArchiverManager; import org.codehaus.plexus.archiver.manager.NoSuchArchiverException; import org.codehaus.plexus.archiver.tar.TarArchiver; import org.codehaus.plexus.archiver.tar.TarLongFileMode; import org.codehaus.plexus.archiver.war.WarArchiver; import org.codehaus.plexus.archiver.zip.ZipArchiver; import org.codehaus.plexus.collections.ActiveCollectionManager; import org.codehaus.plexus.components.io.resources.PlexusIoResource; import org.codehaus.plexus.components.io.resources.PlexusIoResourceCollection; import org.codehaus.plexus.logging.Logger; import org.codehaus.plexus.logging.console.ConsoleLogger; import org.codehaus.plexus.util.FileUtils; import org.easymock.ArgumentsMatcher; import org.easymock.MockControl; import java.io.File; import java.io.IOException; import java.util.Collections; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; import junit.framework.Assert; public class DefaultAssemblyArchiverTest extends PlexusTestCase { private TestFileManager fileManager = new TestFileManager( "def-assy-archiver.test.", "" ); public void tearDown() throws Exception { fileManager.cleanUp(); super.tearDown(); } public void testCreateArchive() throws ArchiveCreationException, AssemblyFormattingException, InvalidAssemblerConfigurationException, IOException { MockManager mm = new MockManager(); MockAndControlForAssemblyArchiver macMgr = new MockAndControlForAssemblyArchiver( mm ); macMgr.expectGetArchiver( "zip", Archiver.class ); macMgr.expectGetDestFile( new File( "test" ) ); MockControl phaseControl = MockControl.createControl( AssemblyArchiverPhase.class ); mm.add( phaseControl ); AssemblyArchiverPhase phase = (AssemblyArchiverPhase) phaseControl.getMock(); phase.execute( null, null, null, null ); phaseControl.setMatcher( MockControl.ALWAYS_MATCHER ); MockControl csControl = MockControl.createControl( AssemblerConfigurationSource.class ); mm.add( csControl ); AssemblerConfigurationSource configSource = (AssemblerConfigurationSource) csControl.getMock(); File tempDir = fileManager.createTempDir(); FileUtils.deleteDirectory( tempDir ); configSource.getTemporaryRootDirectory(); csControl.setReturnValue( tempDir, MockControl.ZERO_OR_MORE ); configSource.isDryRun(); csControl.setReturnValue( false, MockControl.ZERO_OR_MORE ); configSource.isIgnoreDirFormatExtensions(); csControl.setReturnValue( false, MockControl.ZERO_OR_MORE ); File outDir = fileManager.createTempDir(); macMgr.archiver.setDestFile( new File( outDir, "full-name.zip" ) ); try { macMgr.archiver.createArchive(); } catch ( ArchiverException e ) { fail( "Should never happen" ); } catch ( IOException e ) { fail( "Should never happen" ); } configSource.getOutputDirectory(); csControl.setReturnValue( outDir ); configSource.getFinalName(); csControl.setReturnValue( "finalName" ); configSource.getArchiverConfig(); csControl.setReturnValue( null, MockControl.ZERO_OR_MORE ); Assembly assembly = new Assembly(); mm.replayAll(); DefaultAssemblyArchiver subject = createSubject( macMgr, Collections.singletonList( phase ), null ); subject.createArchive( assembly, "full-name", "zip", configSource ); mm.verifyAll(); } public void testCreateArchiver_ShouldConfigureArchiver() throws NoSuchArchiverException, ArchiverException { MockManager mm = new MockManager(); MockAndControlForAssemblyArchiver macArchiverManager = new MockAndControlForAssemblyArchiver( mm ); TestArchiverWithConfig archiver = new TestArchiverWithConfig(); macArchiverManager.expectGetArchiver( "dummy", archiver ); MockControl configCtl = MockControl.createControl( AssemblerConfigurationSource.class ); AssemblerConfigurationSource configSource = (AssemblerConfigurationSource) configCtl.getMock(); String simpleConfig = "value"; configSource.getArchiverConfig(); configCtl.setReturnValue( "" + simpleConfig + "", MockControl.ZERO_OR_MORE ); MavenProject project = new MavenProject( new Model() ); configSource.getProject(); configCtl.setReturnValue( project, MockControl.ZERO_OR_MORE ); configSource.getMavenSession(); configCtl.setReturnValue( null, MockControl.ZERO_OR_MORE ); configSource.isDryRun(); configCtl.setReturnValue( false, MockControl.ZERO_OR_MORE ); mm.add( configCtl ); mm.replayAll(); DefaultAssemblyArchiver subject = createSubject( macArchiverManager, Collections.EMPTY_LIST, null ); subject.createArchiver( "dummy", false, "finalName", configSource, null ); assertEquals( simpleConfig, archiver.getSimpleConfig() ); mm.verifyAll(); } public void testCreateArchiver_ShouldCreateTarArchiverWithNoCompression() throws NoSuchArchiverException, ArchiverException { MockManager mm = new MockManager(); TestTarArchiver ttArchiver = new TestTarArchiver(); MockAndControlForAssemblyArchiver macArchiverManager = new MockAndControlForAssemblyArchiver( mm ); macArchiverManager.expectGetArchiver( "tar", ttArchiver ); MockControl configCtl = MockControl.createControl( AssemblerConfigurationSource.class ); AssemblerConfigurationSource configSource = (AssemblerConfigurationSource) configCtl.getMock(); configSource.getTarLongFileMode(); configCtl.setReturnValue( TarLongFileMode.FAIL, MockControl.ZERO_OR_MORE ); configSource.isDryRun(); configCtl.setReturnValue( false, MockControl.ZERO_OR_MORE ); configSource.getArchiverConfig(); configCtl.setReturnValue( null, MockControl.ZERO_OR_MORE ); configSource.getProject(); configCtl.setReturnValue( new MavenProject( new Model() ), MockControl.ZERO_OR_MORE ); configSource.getJarArchiveConfiguration(); configCtl.setReturnValue( null, MockControl.ZERO_OR_MORE ); mm.add( configCtl ); mm.replayAll(); DefaultAssemblyArchiver subject = createSubject( macArchiverManager, Collections.EMPTY_LIST, null ); subject.createArchiver( "tar", false, "finalName", configSource, null ); assertNull( ttArchiver.compressionMethod ); assertEquals( TarLongFileMode.FAIL, ttArchiver.longFileMode.getValue() ); mm.verifyAll(); } public void testCreateArchiver_ShouldCreateWarArchiverWithIgnoreWebxmlSetToFalse() throws NoSuchArchiverException, ArchiverException { MockManager mm = new MockManager(); TestWarArchiver twArchiver = new TestWarArchiver(); MockAndControlForAssemblyArchiver macArchiverManager = new MockAndControlForAssemblyArchiver( mm ); macArchiverManager.expectGetArchiver( "war", twArchiver ); MockControl configCtl = MockControl.createControl( AssemblerConfigurationSource.class ); AssemblerConfigurationSource configSource = (AssemblerConfigurationSource) configCtl.getMock(); configSource.isDryRun(); configCtl.setReturnValue( false, MockControl.ZERO_OR_MORE ); configSource.getArchiverConfig(); configCtl.setReturnValue( null, MockControl.ZERO_OR_MORE ); configSource.getProject(); configCtl.setReturnValue( new MavenProject( new Model() ), MockControl.ZERO_OR_MORE ); configSource.getJarArchiveConfiguration(); configCtl.setReturnValue( null, MockControl.ZERO_OR_MORE ); mm.add( configCtl ); mm.replayAll(); DefaultAssemblyArchiver subject = createSubject( macArchiverManager, Collections.EMPTY_LIST, null ); subject.createArchiver( "war", false, null, configSource, null ); assertFalse( twArchiver.ignoreWebxml ); } public void testCreateArchiver_ShouldCreateZipArchiver() throws NoSuchArchiverException, ArchiverException { MockManager mm = new MockManager(); ZipArchiver archiver = new ZipArchiver(); MockAndControlForAssemblyArchiver macArchiverManager = new MockAndControlForAssemblyArchiver( mm ); macArchiverManager.expectGetArchiver( "zip", archiver ); MockControl configCtl = MockControl.createControl( AssemblerConfigurationSource.class ); AssemblerConfigurationSource configSource = (AssemblerConfigurationSource) configCtl.getMock(); configSource.isDryRun(); configCtl.setReturnValue( false, MockControl.ZERO_OR_MORE ); configSource.getArchiverConfig(); configCtl.setReturnValue( null, MockControl.ZERO_OR_MORE ); mm.add( configCtl ); mm.replayAll(); DefaultAssemblyArchiver subject = createSubject( macArchiverManager, Collections.EMPTY_LIST, null ); subject.createArchiver( "zip", false, null, configSource, null ); } // TODO: Re-implement these tests on the createArchiver(..) method. For now, they're no big loss. // public void testConfigureArchiverFinalizers_ShouldDoNothingWhenNotSupportedByArchiver() // { // MockManager mm = new MockManager(); // // MockAndControlForArchiverManager macArchiverManager = new MockAndControlForArchiverManager( mm ); // // macArchiverManager.createArchiver( Archiver.class ); // // ComponentsXmlArchiverFileFilter filter = new ComponentsXmlArchiverFileFilter(); // // mm.replayAll(); // // DefaultAssemblyArchiver subject = // createSubject( macArchiverManager.archiverManager, Collections.EMPTY_LIST, null ); // // subject.configureArchiverFinalizers( macArchiverManager.archiver, "format", null, filter ); // // mm.verifyAll(); // } // // public void testConfigureArchiverFinalizers_ShouldAddManifestFinalizerWhenSupportedByArchiver() // { // MockManager mm = new MockManager(); // // MockAndControlForArchiverManager macArchiverManager = new MockAndControlForArchiverManager( mm ); // // macArchiverManager.createArchiver( TestFinalizerFilteredArchiver.class ); // // Set finalizerClasses = new HashSet(); // finalizerClasses.add( ComponentsXmlArchiverFileFilter.class ); // finalizerClasses.add( ManifestCreationFinalizer.class ); // // macArchiverManager.expectSetArchiverFinalizers( finalizerClasses ); // // ComponentsXmlArchiverFileFilter filter = new ComponentsXmlArchiverFileFilter(); // // MockControl configCtl = MockControl.createControl( AssemblerConfigurationSource.class ); // AssemblerConfigurationSource configSource = (AssemblerConfigurationSource) configCtl.getMock(); // // Model model = new Model(); // model.setGroupId( "group" ); // model.setArtifactId( "artifact" ); // model.setVersion( "1" ); // // configSource.getProject(); // configCtl.setReturnValue( new MavenProject( model ), MockControl.ZERO_OR_MORE ); // // configSource.getJarArchiveConfiguration(); // configCtl.setReturnValue( new MavenArchiveConfiguration() ); // // mm.add( configCtl ); // // mm.replayAll(); // // DefaultAssemblyArchiver subject = // createSubject( macArchiverManager.archiverManager, Collections.EMPTY_LIST, null ); // // subject.configureArchiverFinalizers( macArchiverManager.archiver, "jar", configSource, filter ); // // mm.verifyAll(); // } // // public void testConfigureArchiverFilters_ShouldDoNothingWhenNotSupportedByArchiver() // { // MockManager mm = new MockManager(); // // MockAndControlForArchiverManager macArchiverManager = new MockAndControlForArchiverManager( mm ); // // macArchiverManager.createArchiver( Archiver.class ); // // ComponentsXmlArchiverFileFilter filter = new ComponentsXmlArchiverFileFilter(); // // mm.replayAll(); // // DefaultAssemblyArchiver subject = // createSubject( macArchiverManager.archiverManager, Collections.EMPTY_LIST, null ); // // subject.configureArchiverFilters( macArchiverManager.archiver, filter ); // // mm.verifyAll(); // } // // public void testConfigureArchiverFilters_ShouldAddComponentsFilterWhenSupportedByArchiver() // { // MockManager mm = new MockManager(); // // MockAndControlForArchiverManager macArchiverManager = new MockAndControlForArchiverManager( mm ); // // macArchiverManager.createArchiver( TestFinalizerFilteredArchiver.class ); // macArchiverManager.expectSetArchiverFilters(); // // ComponentsXmlArchiverFileFilter filter = new ComponentsXmlArchiverFileFilter(); // // mm.replayAll(); // // DefaultAssemblyArchiver subject = // createSubject( macArchiverManager.archiverManager, Collections.EMPTY_LIST, null ); // // subject.configureArchiverFilters( macArchiverManager.archiver, filter ); // // mm.verifyAll(); // } public void testCreateWarArchiver_ShouldDisableIgnoreWebxmlOption() throws NoSuchArchiverException { MockManager mm = new MockManager(); TestWarArchiver twArchiver = new TestWarArchiver(); MockAndControlForAssemblyArchiver macArchiverManager = new MockAndControlForAssemblyArchiver( mm ); macArchiverManager.expectGetArchiver( "war", twArchiver ); mm.replayAll(); DefaultAssemblyArchiver subject = createSubject( macArchiverManager, Collections.EMPTY_LIST, null ); subject.createWarArchiver(); assertFalse( twArchiver.ignoreWebxml ); } public void testCreateTarArchiver_ShouldNotInitializeCompression() throws NoSuchArchiverException, ArchiverException { MockManager mm = new MockManager(); TestTarArchiver ttArchiver = new TestTarArchiver(); MockAndControlForAssemblyArchiver macArchiverManager = new MockAndControlForAssemblyArchiver( mm ); macArchiverManager.expectGetArchiver( "tar", ttArchiver ); mm.replayAll(); DefaultAssemblyArchiver subject = createSubject( macArchiverManager, Collections.EMPTY_LIST, null ); subject.createTarArchiver( "tar", TarLongFileMode.FAIL ); assertNull( ttArchiver.compressionMethod ); assertEquals( TarLongFileMode.FAIL, ttArchiver.longFileMode.getValue() ); mm.verifyAll(); } public void testCreateTarArchiver_ShouldInitializeGZipCompression() throws NoSuchArchiverException, ArchiverException { MockManager mm = new MockManager(); TestTarArchiver ttArchiver = new TestTarArchiver(); MockAndControlForAssemblyArchiver macArchiverManager = new MockAndControlForAssemblyArchiver( mm ); macArchiverManager.expectGetArchiver( "tar", ttArchiver ); mm.replayAll(); DefaultAssemblyArchiver subject = createSubject( macArchiverManager, Collections.EMPTY_LIST, null ); subject.createTarArchiver( "tar.gz", TarLongFileMode.FAIL ); assertEquals( "gzip", ttArchiver.compressionMethod.getValue() ); assertEquals( TarLongFileMode.FAIL, ttArchiver.longFileMode.getValue() ); mm.verifyAll(); } public void testCreateTarArchiver_ShouldInitializeBZipCompression() throws NoSuchArchiverException, ArchiverException { MockManager mm = new MockManager(); TestTarArchiver ttArchiver = new TestTarArchiver(); MockAndControlForAssemblyArchiver macArchiverManager = new MockAndControlForAssemblyArchiver( mm ); macArchiverManager.expectGetArchiver( "tar", ttArchiver ); mm.replayAll(); DefaultAssemblyArchiver subject = createSubject( macArchiverManager, Collections.EMPTY_LIST, null ); subject.createTarArchiver( "tar.bz2", TarLongFileMode.FAIL ); assertEquals( "bzip2", ttArchiver.compressionMethod.getValue() ); assertEquals( TarLongFileMode.FAIL, ttArchiver.longFileMode.getValue() ); mm.verifyAll(); } public void testCreateTarArchiver_ShouldFailWithInvalidCompression() throws NoSuchArchiverException, ArchiverException { MockManager mm = new MockManager(); TestTarArchiver ttArchiver = new TestTarArchiver(); MockAndControlForAssemblyArchiver macArchiverManager = new MockAndControlForAssemblyArchiver( mm ); macArchiverManager.expectGetArchiver( "tar", ttArchiver ); mm.replayAll(); DefaultAssemblyArchiver subject = createSubject( macArchiverManager, Collections.EMPTY_LIST, null ); try { subject.createTarArchiver( "tar.Z", null ); fail( "Invalid compression formats should throw an error." ); } catch ( IllegalArgumentException e ) { // expected. } mm.verifyAll(); } private DefaultAssemblyArchiver createSubject( MockAndControlForAssemblyArchiver macMgr, List phases, Logger logger ) { DefaultAssemblyArchiver subject = new DefaultAssemblyArchiver( macMgr.archiverManager, macMgr.collectionManager, macMgr.resolver, phases ); subject.setContainer( getContainer() ); if ( logger == null ) { logger = new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ); } subject.enableLogging( logger ); return subject; } private final class MockAndControlForAssemblyArchiver { ArchiverManager archiverManager; MockControl control; MockControl archiverControl; Archiver archiver; MockControl collectionManagerControl; ActiveCollectionManager collectionManager; MockControl resolverControl; DependencyResolver resolver; private final MockManager mm; public MockAndControlForAssemblyArchiver( MockManager mm ) { this.mm = mm; control = MockControl.createControl( ArchiverManager.class ); mm.add( control ); archiverManager = (ArchiverManager) control.getMock(); collectionManagerControl = MockControl.createControl( ActiveCollectionManager.class ); mm.add( collectionManagerControl ); collectionManager = (ActiveCollectionManager) collectionManagerControl.getMock(); resolverControl = MockControl.createControl( DependencyResolver.class ); mm.add( resolverControl ); resolver = (DependencyResolver) resolverControl.getMock(); try { resolver.buildManagedVersionMap( null, null ); } catch ( ArtifactResolutionException e ) { } catch ( ArchiveCreationException e ) { } catch ( InvalidVersionSpecificationException e ) { } catch ( InvalidDependencyVersionException e ) { } resolverControl.setMatcher( MockControl.ALWAYS_MATCHER ); resolverControl.setReturnValue( Collections.EMPTY_MAP, MockControl.ZERO_OR_MORE ); } void expectGetDestFile( File file ) { archiver.getDestFile(); archiverControl.setReturnValue( file, MockControl.ZERO_OR_MORE ); } void createArchiver( Class archiverClass ) { archiverControl = MockControl.createControl( archiverClass ); mm.add( archiverControl ); archiver = (Archiver) archiverControl.getMock(); } void expectSetArchiverFinalizers() { ( (FinalizerEnabled) archiver ).setArchiveFinalizers( null ); archiverControl.setMatcher( MockControl.ALWAYS_MATCHER ); } void expectSetArchiverFinalizers( final Set finalizerClasses ) { ( (FinalizerEnabled) archiver ).setArchiveFinalizers( null ); archiverControl.setMatcher( new ArgumentsMatcher() { public boolean matches( Object[] expected, Object[] actual ) { boolean match = true; List actualClasses = (List) actual[0]; Set finClasses = new HashSet( finalizerClasses ); for ( Iterator it = actualClasses.iterator(); it.hasNext(); ) { ArchiveFinalizer finalizer = (ArchiveFinalizer) it.next(); match = match && finClasses.remove( finalizer.getClass() ); } return match; } public String toString( Object[] arguments ) { return "Matcher for finalizer-classes: " + finalizerClasses; } } ); } // void expectSetArchiverFilters() // { // ( ( FilterEnabled ) archiver ).setArchiveFilters( null ); // archiverControl.setMatcher( MockControl.ALWAYS_MATCHER ); // } void expectGetArchiver( String format, Class archiverClass ) { createArchiver( archiverClass ); try { archiverManager.getArchiver( format ); } catch ( NoSuchArchiverException e ) { Assert.fail( "should never happen" ); } control.setReturnValue( archiver ); } void expectGetArchiver( String format, Archiver archiver ) throws NoSuchArchiverException { archiverManager.getArchiver( format ); control.setReturnValue( archiver ); } } private static final class TestTarArchiver extends TarArchiver { boolean archiveCreated; boolean optionsRetrieved; TarCompressionMethod compressionMethod; int defaultDirMode; int defaultFileMode; TarLongFileMode longFileMode; TarOptions options; protected void execute() throws ArchiverException, IOException { defaultDirMode = getOverrideDirectoryMode(); defaultFileMode = getOverrideFileMode(); archiveCreated = true; super.createArchive(); } public TarOptions getOptions() { optionsRetrieved = true; return super.getOptions(); } public void setCompression( TarCompressionMethod mode ) { compressionMethod = mode; super.setCompression( mode ); } public void setLongfile( TarLongFileMode mode ) { longFileMode = mode; super.setLongfile( mode ); } public void setOptions( TarOptions options ) { this.options = options; super.setOptions( options ); } } private static final class TestWarArchiver extends WarArchiver { boolean ignoreWebxml; public void setIgnoreWebxml( boolean ignore ) { ignoreWebxml = ignore; super.setIgnoreWebxml( ignore ); } } interface TestFinalizerFilteredArchiver extends Archiver, FinalizerEnabled { } public static final class TestArchiverWithConfig implements Archiver { private String simpleConfig; public void setSimpleConfig( String simpleConfig ) { this.simpleConfig = simpleConfig; } public String getSimpleConfig() { return simpleConfig; } public void addArchivedFileSet( File arg0 ) throws ArchiverException { } public void addArchivedFileSet( ArchivedFileSet arg0 ) throws ArchiverException { } public void addArchivedFileSet( File arg0, String arg1 ) throws ArchiverException { } public void addArchivedFileSet( File arg0, String[] arg1, String[] arg2 ) throws ArchiverException { } public void addArchivedFileSet( File arg0, String arg1, String[] arg2, String[] arg3 ) throws ArchiverException { } public void addDirectory( File arg0 ) throws ArchiverException { } public void addDirectory( File arg0, String arg1 ) throws ArchiverException { } public void addDirectory( File arg0, String[] arg1, String[] arg2 ) throws ArchiverException { } public void addDirectory( File arg0, String arg1, String[] arg2, String[] arg3 ) throws ArchiverException { } public void addFile( File arg0, String arg1 ) throws ArchiverException { } public void addFile( File arg0, String arg1, int arg2 ) throws ArchiverException { } public void addFileSet( FileSet arg0 ) throws ArchiverException { } public void addResource( PlexusIoResource arg0, String arg1, int arg2 ) throws ArchiverException { } public void addResources( PlexusIoResourceCollection arg0 ) throws ArchiverException { } public void createArchive() throws ArchiverException, IOException { } public int getDefaultDirectoryMode() { return 0; } public int getDefaultFileMode() { return 0; } public File getDestFile() { return null; } public Map getFiles() { return null; } public boolean getIncludeEmptyDirs() { return false; } public ResourceIterator getResources() throws ArchiverException { return null; } public boolean isForced() { return false; } public boolean isSupportingForced() { return false; } public void setDefaultDirectoryMode( int arg0 ) { } public void setDefaultFileMode( int arg0 ) { } public void setDestFile( File arg0 ) { } public void setDotFileDirectory( File arg0 ) { } public void setForced( boolean arg0 ) { } public void setIncludeEmptyDirs( boolean arg0 ) { } public String getDuplicateBehavior() { return Archiver.DUPLICATES_ADD; } public void setDuplicateBehavior( String duplicate ) { } public int getDirectoryMode() { return 0; } public int getFileMode() { return 0; } public int getOverrideDirectoryMode() { return 0; } public int getOverrideFileMode() { return 0; } public void setDirectoryMode( int mode ) { } public void setFileMode( int mode ) { } } } ././@LongLink0000000000000000000000000000017200000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/archive/ManifestCreationFinalizerTest.javamaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/archive/ManifestCreat0000644000175000017500000001346111123544663033676 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.archive; /* * 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 org.apache.maven.archiver.MavenArchiveConfiguration; import org.apache.maven.model.Model; import org.apache.maven.plugin.assembly.testutils.MockManager; import org.apache.maven.plugin.assembly.testutils.TestFileManager; import org.apache.maven.project.MavenProject; import org.codehaus.plexus.archiver.Archiver; import org.codehaus.plexus.archiver.ArchiverException; import org.codehaus.plexus.archiver.jar.JarArchiver; import org.codehaus.plexus.util.IOUtil; import org.easymock.MockControl; import java.io.BufferedReader; import java.io.File; import java.io.IOException; import java.io.InputStreamReader; import java.io.StringWriter; import java.net.JarURLConnection; import java.net.URL; import java.util.Collections; import junit.framework.TestCase; public class ManifestCreationFinalizerTest extends TestCase { private TestFileManager fileManager = new TestFileManager( "manifest-finalizer.test.", ".jar" ); public void tearDown() throws IOException { fileManager.cleanUp(); } public void testShouldDoNothingWhenArchiveConfigIsNull() throws ArchiverException { new ManifestCreationFinalizer( null, null ).finalizeArchiveCreation( null ); } public void testShouldDoNothingWhenArchiverIsNotJarArchiver() throws ArchiverException { MockManager mm = new MockManager(); MockAndControlForArchiver macArchiver = new MockAndControlForArchiver( mm ); MavenProject project = new MavenProject( new Model() ); MavenArchiveConfiguration config = new MavenArchiveConfiguration(); mm.replayAll(); new ManifestCreationFinalizer( project, config ).finalizeArchiveCreation( macArchiver.archiver ); mm.verifyAll(); } public void testShouldAddManifestWhenArchiverIsJarArchiver() throws ArchiverException, IOException { MavenProject project = new MavenProject( new Model() ); MavenArchiveConfiguration config = new MavenArchiveConfiguration(); File tempDir = fileManager.createTempDir(); File manifestFile = fileManager.createFile( tempDir, "MANIFEST.MF", "Main-Class: Stuff" ); config.setManifestFile( manifestFile ); JarArchiver archiver = new JarArchiver(); archiver.setArchiveFinalizers( Collections.singletonList( new ManifestCreationFinalizer( project, config ) ) ); File file = fileManager.createTempFile(); archiver.setDestFile( file ); archiver.createArchive(); URL resource = new URL( "jar:file:" + file.getAbsolutePath() + "!/META-INF/MANIFEST.MF" ); BufferedReader reader = new BufferedReader( new InputStreamReader( resource.openStream() ) ); StringWriter writer = new StringWriter(); IOUtil.copy( reader, writer ); assertTrue( writer.toString().indexOf( "Main-Class: Stuff" ) > -1 ); // http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4823678 ( (JarURLConnection) resource.openConnection() ).getJarFile().close(); } public void testShouldAddManifestEntriesWhenArchiverIsJarArchiver() throws ArchiverException, IOException { MavenProject project = new MavenProject( new Model() ); MavenArchiveConfiguration config = new MavenArchiveConfiguration(); String testKey = "Test-Key"; String testValue = "test-value"; config.addManifestEntry( testKey, testValue ); JarArchiver archiver = new JarArchiver(); archiver.setArchiveFinalizers( Collections.singletonList( new ManifestCreationFinalizer( project, config ) ) ); File file = fileManager.createTempFile(); archiver.setDestFile( file ); archiver.createArchive(); URL resource = new URL( "jar:file:" + file.getAbsolutePath() + "!/META-INF/MANIFEST.MF" ); BufferedReader reader = new BufferedReader( new InputStreamReader( resource.openStream() ) ); StringWriter writer = new StringWriter(); IOUtil.copy( reader, writer ); System.out.println( "Test Manifest:\n\n" + writer ); assertTrue( writer.toString().indexOf( testKey + ": " + testValue ) > -1 ); // http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4823678 ( (JarURLConnection) resource.openConnection() ).getJarFile().close(); } private final class MockAndControlForArchiver { Archiver archiver; MockControl control; MockAndControlForArchiver( MockManager mm ) { control = MockControl.createControl( Archiver.class ); mm.add( control ); archiver = (Archiver) control.getMock(); } } } maven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/format/0000755000175000017500000000000011361635306031067 5ustar twernertwerner././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/format/FileSetFormatterTest.javamaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/format/FileSetFormatt0000644000175000017500000002535311306557475033723 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.format; /* * 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.TestCase; import org.apache.maven.model.Model; import org.apache.maven.plugin.assembly.AssemblerConfigurationSource; import org.apache.maven.plugin.assembly.model.FileSet; import org.apache.maven.plugin.assembly.testutils.MockManager; import org.apache.maven.plugin.assembly.testutils.TestFileManager; import org.apache.maven.plugin.assembly.utils.AssemblyFileUtils; import org.apache.maven.project.MavenProject; import org.codehaus.plexus.logging.Logger; import org.codehaus.plexus.logging.console.ConsoleLogger; import org.codehaus.plexus.util.FileUtils; import org.codehaus.plexus.PlexusTestCase; import org.easymock.MockControl; import java.io.File; import java.io.IOException; import java.util.Collections; import java.util.List; public class FileSetFormatterTest extends PlexusTestCase { private MockManager mockManager; private TestFileManager fileManager; private Logger logger; private AssemblerConfigurationSource configSource; private MockControl configSourceControl; public void setUp() throws Exception { super.setUp(); mockManager = new MockManager(); fileManager = new TestFileManager( "fileSetFormatter-test.", "" ); logger = new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ); configSourceControl = MockControl.createControl( AssemblerConfigurationSource.class ); mockManager.add( configSourceControl ); configSource = (AssemblerConfigurationSource) configSourceControl.getMock(); } public void tearDown() throws IOException { fileManager.cleanUp(); } public void testShouldReturnOriginalUnalteredDirectoryWhenLineEndingIsNull() throws AssemblyFormattingException, IOException { FileSet fs = new FileSet(); FileSetFormatter formatter = new FileSetFormatter( configSource, logger ); File dir = fileManager.createTempDir(); File result = formatter.formatFileSetForAssembly( dir, fs ); assertEquals( dir, result ); } public void testShouldReturnOriginalUnalteredDirectoryWhenLineEndingIsKeep() throws AssemblyFormattingException, IOException { FileSet fs = new FileSet(); fs.setLineEnding( AssemblyFileUtils.LINE_ENDING_KEEP ); FileSetFormatter formatter = new FileSetFormatter( configSource, logger ); File dir = fileManager.createTempDir(); File result = formatter.formatFileSetForAssembly( dir, fs ); assertEquals( dir, result ); } public void testShouldReturnOriginalUnalteredDirectoryWhenIncludedFileSetIsEmpty() throws AssemblyFormattingException, IOException { File dir = fileManager.createTempDir(); FileSet fs = new FileSet(); fs.setLineEnding( AssemblyFileUtils.LINE_ENDING_LF ); fs.setDirectory( dir.getCanonicalPath() ); fs.addExclude( "**/*" ); FileSetFormatter formatter = new FileSetFormatter( configSource, logger ); File result = formatter.formatFileSetForAssembly( dir, fs ); assertEquals( dir, result ); } public void testShouldConvertLineEndingsOnTwoFiles() throws AssemblyFormattingException, IOException { File dir = fileManager.createTempDir(); String filename1 = "one.txt"; String filename2 = "two.txt"; fileManager.createFile( dir, filename1, "Hello\nThis is a test." ); fileManager.createFile( dir, filename2, "Hello\nThis is also a test." ); FileSet fs = new FileSet(); fs.setLineEnding( AssemblyFileUtils.LINE_ENDING_CRLF ); fs.setDirectory( dir.getCanonicalPath() ); fs.addInclude( "**/*.txt" ); FileSetFormatter formatter = new FileSetFormatter( configSource, logger ); File result = formatter.formatFileSetForAssembly( dir, fs ); assertFalse( dir.equals( result ) ); try { fileManager.assertFileContents( result, filename1, "Hello\r\nThis is a test.\r\n" ); fileManager.assertFileContents( result, filename2, "Hello\r\nThis is also a test.\r\n" ); } finally { FileUtils.deleteDirectory( result ); } } public void testShouldConvertLineEndingsOnOneFileWithAnotherExplicitlyExcluded() throws AssemblyFormattingException, IOException { File dir = fileManager.createTempDir(); String filename1 = "one.txt"; String filename2 = "two.txt"; fileManager.createFile( dir, filename1, "Hello\nThis is a test." ); fileManager.createFile( dir, filename2, "Hello\nThis is also a test." ); FileSet fs = new FileSet(); fs.setLineEnding( AssemblyFileUtils.LINE_ENDING_CRLF ); fs.setDirectory( dir.getCanonicalPath() ); fs.addExclude( "**/two.txt" ); FileSetFormatter formatter = new FileSetFormatter( configSource, logger ); File result = formatter.formatFileSetForAssembly( dir, fs ); assertFalse( dir.equals( result ) ); try { fileManager.assertFileContents( result, filename1, "Hello\r\nThis is a test.\r\n" ); fileManager.assertFileExistence( result, filename2, false ); } finally { FileUtils.deleteDirectory( result ); } } public void testShouldConvertLineEndingsOnOneExplicitlyIncludedFile() throws AssemblyFormattingException, IOException { File dir = fileManager.createTempDir(); String filename1 = "one.txt"; String filename2 = "two.txt"; fileManager.createFile( dir, filename1, "Hello\nThis is a test." ); fileManager.createFile( dir, filename2, "Hello\nThis is also a test." ); FileSet fs = new FileSet(); fs.setLineEnding( AssemblyFileUtils.LINE_ENDING_CRLF ); fs.setDirectory( dir.getCanonicalPath() ); fs.addInclude( "**/one.txt" ); FileSetFormatter formatter = new FileSetFormatter( configSource, logger ); File result = formatter.formatFileSetForAssembly( dir, fs ); assertFalse( dir.equals( result ) ); try { fileManager.assertFileContents( result, filename1, "Hello\r\nThis is a test.\r\n" ); fileManager.assertFileExistence( result, filename2, false ); } finally { FileUtils.deleteDirectory( result ); } } public void testShouldConvertLineEndingsOnOneFileAndIgnoreFileWithinDefaultExcludedDir() throws AssemblyFormattingException, IOException { File dir = fileManager.createTempDir(); String filename1 = "one.txt"; String filename2 = "CVS/two.txt"; fileManager.createFile( dir, filename1, "Hello\nThis is a test." ); fileManager.createFile( dir, filename2, "Hello\nThis is also a test." ); FileSet fs = new FileSet(); fs.setLineEnding( AssemblyFileUtils.LINE_ENDING_CRLF ); fs.setDirectory( dir.getCanonicalPath() ); FileSetFormatter formatter = new FileSetFormatter( configSource, logger ); File result = formatter.formatFileSetForAssembly( dir, fs ); assertFalse( dir.equals( result ) ); try { fileManager.assertFileContents( result, filename1, "Hello\r\nThis is a test.\r\n" ); fileManager.assertFileExistence( result, filename2, false ); } finally { FileUtils.deleteDirectory( result ); } } public void testShouldFilterSeveralFiles() throws Exception { File basedir = fileManager.createTempDir(); String filename1 = "one.txt"; String filename2 = "two.txt"; // this file will be filtered with a project expression fileManager.createFile( basedir, filename1, "This is the filtered artifactId: ${project.artifactId}." ); // this one fill be filtered with a filter file fileManager.createFile( basedir, filename2, "This is the filtered 'foo' property: ${foo}." ); File filterProps = fileManager.createFile( basedir, "filter.properties", "foo=bar" ); FileSet fs = new FileSet(); fs.setFiltered( true ); fs.setDirectory( basedir.getCanonicalPath() ); fs.addInclude( "**/*.txt" ); enableBasicFilteringConfiguration( basedir, Collections.singletonList( filterProps.getCanonicalPath() ) ); mockManager.replayAll(); FileSetFormatter formatter = new FileSetFormatter( configSource, logger ); File result = formatter.formatFileSetForAssembly( basedir, fs ); assertFalse( result.equals( basedir ) ); try { fileManager.assertFileContents( result, filename1, "This is the filtered artifactId: artifact." ); fileManager.assertFileContents( result, filename2, "This is the filtered 'foo' property: bar." ); mockManager.verifyAll(); } finally { FileUtils.deleteDirectory( result ); } } private void enableBasicFilteringConfiguration( File basedir, List filterFilenames ) throws Exception { configSource.getTemporaryRootDirectory(); configSourceControl.setReturnValue( basedir ); Model model = new Model(); model.setArtifactId( "artifact" ); model.setGroupId( "group" ); model.setVersion( "version" ); MavenProject project = new MavenProject( model ); project.getBuild().setFilters( filterFilenames ); configSource.getProject(); configSourceControl.setReturnValue( project, MockControl.ONE_OR_MORE ); configSource.getMavenFileFilter(); configSourceControl.setReturnValue( lookup( "org.apache.maven.shared.filtering.MavenFileFilter" ), MockControl.ONE_OR_MORE ); configSource.getMavenSession(); configSourceControl.setReturnValue( null, MockControl.ONE_OR_MORE ); configSource.getFilters(); configSourceControl.setReturnValue( null, MockControl.ONE_OR_MORE ); } } ././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/format/FileFormatterTest.javamaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/format/FileFormatterT0000644000175000017500000003453211306557475033721 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.format; /* * 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.io.IOException; import java.util.ArrayList; import java.util.Collections; import java.util.List; import org.apache.maven.model.Build; import org.apache.maven.model.Model; import org.apache.maven.plugin.assembly.AssemblerConfigurationSource; import org.apache.maven.plugin.assembly.testutils.MockManager; import org.apache.maven.plugin.assembly.testutils.TestFileManager; import org.apache.maven.project.MavenProject; import org.codehaus.plexus.logging.Logger; import org.codehaus.plexus.logging.console.ConsoleLogger; import org.codehaus.plexus.PlexusTestCase; import org.easymock.MockControl; public class FileFormatterTest extends PlexusTestCase { private Logger logger = new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ); private TestFileManager fileManager = new TestFileManager( "fileFormatterTest.", "" ); private MockManager mockManager = new MockManager(); private AssemblerConfigurationSource configSource; private MockControl configSourceControl; public void setUp() throws Exception { super.setUp(); configSourceControl = MockControl.createControl( AssemblerConfigurationSource.class ); mockManager.add( configSourceControl ); configSource = (AssemblerConfigurationSource) configSourceControl.getMock(); } public void tearDown() throws IOException { fileManager.cleanUp(); } public void testTemporaryRootDirectoryNotExist() throws IOException, AssemblyFormattingException { File basedir = fileManager.createTempDir(); File tempRoot = new File(basedir, "tempdir"); configSource.getTemporaryRootDirectory(); configSourceControl.setReturnValue( tempRoot ); File file = fileManager.createFile( basedir, "one.txt", "This is a\ntest." ); mockManager.replayAll(); File result = new FileFormatter( configSource, logger ).format( file, false, "dos" ); assertTrue( !file.equals(result) ); mockManager.verifyAll(); } public void testShouldNotTransformOneFile() throws IOException, AssemblyFormattingException { File basedir = fileManager.createTempDir(); configSource.getTemporaryRootDirectory(); configSourceControl.setReturnValue( basedir ); // Model model = new Model(); // model.setArtifactId( "artifact" ); // model.setGroupId( "group" ); // model.setVersion( "version" ); // // MavenProject project = new MavenProject( model ); // // configSource.getProject(); // configSourceControl.setReturnValue( project ); File file = fileManager.createFile( basedir, "one.txt", "This is a test." ); mockManager.replayAll(); File result = new FileFormatter( configSource, logger ).format( file, false, null ); assertEquals( file, result ); mockManager.verifyAll(); } // TODO: Should not be appending line-ending at the end if there is none in the source. public void testShouldConvertCRLFLineEndingsInFile() throws IOException, AssemblyFormattingException { File basedir = fileManager.createTempDir(); configSource.getTemporaryRootDirectory(); configSourceControl.setReturnValue( basedir ); File file = fileManager.createFile( basedir, "one.txt", "This is a\ntest." ); mockManager.replayAll(); File result = new FileFormatter( configSource, logger ).format( file, false, "dos" ); assertEquals( "This is a\r\ntest.\r\n", fileManager.getFileContents( result ) ); mockManager.verifyAll(); } // TODO: Should not be appending line-ending at the end if there is none in the source. public void testShouldConvertLFLineEndingsInFile() throws IOException, AssemblyFormattingException { File basedir = fileManager.createTempDir(); configSource.getTemporaryRootDirectory(); configSourceControl.setReturnValue( basedir ); File file = fileManager.createFile( basedir, "one.txt", "This is a\r\ntest." ); mockManager.replayAll(); File result = new FileFormatter( configSource, logger ).format( file, false, "unix" ); assertEquals( "This is a\ntest.\n", fileManager.getFileContents( result ) ); mockManager.verifyAll(); } public void testShouldFilterProjectExpressionInFile() throws Exception { File basedir = fileManager.createTempDir(); enableBasicFilteringConfiguration( basedir, Collections.EMPTY_LIST ); File file = fileManager.createFile( basedir, "one.txt", "This is a test for project: ${artifactId} @artifactId@." ); mockManager.replayAll(); File result = new FileFormatter( configSource, logger ).format( file, true, null ); assertEquals( "This is a test for project: artifact artifact.", fileManager.getFileContents( result ) ); mockManager.verifyAll(); } public void testShouldFilterExpressionInPropertiesFileWithWindowsEscapes() throws Exception { File sourceDir = fileManager.createTempDir(); MavenProject project = createBasicMavenProject(); Build build = new Build(); // project.build.outputDirectory = C:\out\deeper build.setOutputDirectory( "C:\\out\\deeper" ); project.setBuild(build); enableBasicFilteringConfiguration( project, sourceDir ); File file = fileManager.createFile(sourceDir, "one.properties", "out=${project.build.outputDirectory}"); mockManager.replayAll(); File result = new FileFormatter(configSource, logger).format(file, true, null); // expect: C\:\\out\\deeper assertEquals("out=C\\:\\\\out\\\\deeper",fileManager.getFileContents(result)); mockManager.verifyAll(); } public void testShouldFilterExpressionInPropertiesFileWithoutWindowsEscapes() throws Exception { File sourceDir = fileManager.createTempDir(); MavenProject project = createBasicMavenProject(); Build build = new Build(); build.setOutputDirectory( "C:\\out\\deeper" ); project.setBuild(build); enableBasicFilteringConfiguration( project, sourceDir ); File file = fileManager.createFile(sourceDir, "one.txt", "project.basedirA=${project.build.outputDirectory}"); mockManager.replayAll(); File result = new FileFormatter(configSource, logger).format(file, true, null); assertEquals("project.basedirA=C:\\out\\deeper",fileManager.getFileContents(result)); mockManager.verifyAll(); } public void testShouldFilterExpressionFromFiltersFileInFile() throws Exception { File basedir = fileManager.createTempDir(); File filterProps = fileManager.createFile( basedir, "filter.properties", "property=Test" ); enableBasicFilteringConfiguration( basedir, Collections.singletonList( filterProps.getCanonicalPath() ) ); File file = fileManager.createFile( basedir, "one.txt", "This is a test for project: ${property} @property@." ); mockManager.replayAll(); File result = new FileFormatter( configSource, logger ).format( file, true, null ); assertEquals( "This is a test for project: Test Test.", fileManager.getFileContents( result ) ); mockManager.verifyAll(); } public void testShouldFilterExpressionFromFiltersFileInPropertiesFileWithoutWindowsEscapes() throws Exception { File basedir = fileManager.createTempDir(); File filterProps = fileManager.createFile( basedir, "filter.properties", "property=C:\\\\Test" ); enableBasicFilteringConfiguration( basedir, Collections.singletonList( filterProps.getCanonicalPath() ) ); File file = fileManager.createFile( basedir, "one.properties", "project: ${property} @property@." ); mockManager.replayAll(); File result = new FileFormatter( configSource, logger ).format( file, true, null ); assertEquals( "project: C\\:\\\\Test C\\:\\\\Test.", fileManager.getFileContents( result ) ); mockManager.verifyAll(); } public void testShouldFilterExpressionFromFiltersFileInNonPropertiesFileWithoutWindowsEscapes() throws Exception { File basedir = fileManager.createTempDir(); File filterProps = fileManager.createFile( basedir, "filter.properties", "property=C:\\\\Test" ); enableBasicFilteringConfiguration( basedir, Collections.singletonList( filterProps.getCanonicalPath() ) ); File file = fileManager.createFile( basedir, "one.txt", "This is a test for project: ${property} @property@." ); mockManager.replayAll(); File result = new FileFormatter( configSource, logger ).format( file, true, null ); assertEquals( "This is a test for project: C:\\Test C:\\Test.", fileManager.getFileContents( result ) ); mockManager.verifyAll(); } public void testShouldNotIgnoreFirstWordInDotNotationExpressions() throws Exception { File basedir = fileManager.createTempDir(); enableBasicFilteringConfiguration( basedir, Collections.EMPTY_LIST ); File file = fileManager.createFile( basedir, "one.txt", "testing ${bean.id} which used to resolve to project.id" ); mockManager.replayAll(); File result = new FileFormatter( configSource, logger ).format( file, true, null ); assertEquals( "testing ${bean.id} which used to resolve to project.id", fileManager.getFileContents( result ) ); mockManager.verifyAll(); } public void testShouldFilterExpressionsFromTwoFiltersFilesInFile() throws Exception { File basedir = fileManager.createTempDir(); File filterProps = fileManager.createFile( basedir, "filter.properties", "property=Test" ); File filterProps2 = fileManager.createFile( basedir, "filter2.properties", "otherProperty=OtherValue" ); List filters = new ArrayList(); filters.add( filterProps.getCanonicalPath() ); filters.add( filterProps2.getCanonicalPath() ); enableBasicFilteringConfiguration( basedir, filters ); File file = fileManager.createFile( basedir, "one.txt", "property: ${property} @property@ otherProperty: ${otherProperty} @otherProperty@." ); mockManager.replayAll(); File result = new FileFormatter( configSource, logger ).format( file, true, null ); assertEquals( "property: Test Test otherProperty: OtherValue OtherValue.", fileManager.getFileContents( result ) ); mockManager.verifyAll(); } public void testShouldOverrideOneFilterValueWithAnotherAndFilterFile() throws Exception { File basedir = fileManager.createTempDir(); File filterProps = fileManager.createFile( basedir, "filter.properties", "property=Test" ); File filterProps2 = fileManager.createFile( basedir, "filter2.properties", "property=OtherValue" ); List filters = new ArrayList(); filters.add( filterProps.getCanonicalPath() ); filters.add( filterProps2.getCanonicalPath() ); enableBasicFilteringConfiguration( basedir, filters ); File file = fileManager.createFile( basedir, "one.txt", "property: ${property} @property@." ); mockManager.replayAll(); File result = new FileFormatter( configSource, logger ).format( file, true, null ); assertEquals( "property: OtherValue OtherValue.", fileManager.getFileContents( result ) ); mockManager.verifyAll(); } public void testShouldOverrideProjectValueWithFilterValueAndFilterFile() throws Exception { File basedir = fileManager.createTempDir(); File filterProps = fileManager.createFile( basedir, "filter.properties", "artifactId=Test" ); List filters = new ArrayList(); filters.add( filterProps.getCanonicalPath() ); enableBasicFilteringConfiguration( basedir, filters ); File file = fileManager.createFile( basedir, "one.txt", "project artifact-id: ${artifactId} @artifactId@." ); mockManager.replayAll(); File result = new FileFormatter( configSource, logger ).format( file, true, null ); assertEquals( "project artifact-id: Test Test.", fileManager.getFileContents( result ) ); mockManager.verifyAll(); } private MavenProject createBasicMavenProject() { Model model = new Model(); model.setArtifactId( "artifact" ); model.setGroupId( "group" ); model.setVersion( "version" ); return new MavenProject( model ); } private void enableBasicFilteringConfiguration( MavenProject project, File basedir ) throws Exception { configSource.getTemporaryRootDirectory(); configSourceControl.setReturnValue( basedir ); configSource.getProject(); configSourceControl.setReturnValue( project, MockControl.ONE_OR_MORE ); configSource.getMavenFileFilter(); configSourceControl.setReturnValue( lookup( "org.apache.maven.shared.filtering.MavenFileFilter" ) ); configSource.getMavenSession(); configSourceControl.setReturnValue( null ); configSource.getFilters(); configSourceControl.setReturnValue( null ); } private void enableBasicFilteringConfiguration( File basedir, List filterFilenames ) throws Exception { MavenProject project = createBasicMavenProject(); project.getBuild().setFilters( filterFilenames ); enableBasicFilteringConfiguration( project, basedir ); } } maven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/artifact/0000755000175000017500000000000011361635306031374 5ustar twernertwerner././@LongLink0000000000000000000000000000017300000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/artifact/DefaultDependencyResolverTest.javamaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/artifact/DefaultDepen0000644000175000017500000005747011123544663033675 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.artifact; import java.io.File; import java.util.ArrayList; import java.util.Collections; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; import org.apache.maven.artifact.Artifact; import org.apache.maven.artifact.factory.ArtifactFactory; import org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException; import org.apache.maven.artifact.metadata.ArtifactMetadataSource; import org.apache.maven.artifact.metadata.ResolutionGroup; import org.apache.maven.artifact.repository.ArtifactRepository; import org.apache.maven.artifact.repository.ArtifactRepositoryFactory; import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout; import org.apache.maven.artifact.resolver.ArtifactCollector; import org.apache.maven.artifact.resolver.ArtifactResolutionException; import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.model.Dependency; import org.apache.maven.model.DependencyManagement; import org.apache.maven.model.Model; import org.apache.maven.plugin.assembly.AssemblerConfigurationSource; import org.apache.maven.plugin.assembly.archive.ArchiveCreationException; import org.apache.maven.plugin.assembly.model.Assembly; import org.apache.maven.plugin.assembly.model.DependencySet; import org.apache.maven.plugin.assembly.model.ModuleBinaries; import org.apache.maven.plugin.assembly.model.ModuleSet; import org.apache.maven.plugin.assembly.model.Repository; import org.apache.maven.plugin.assembly.testutils.MockManager; import org.apache.maven.project.MavenProject; import org.apache.maven.project.artifact.InvalidDependencyVersionException; import org.codehaus.plexus.PlexusTestCase; import org.codehaus.plexus.logging.Logger; import org.codehaus.plexus.logging.console.ConsoleLogger; import org.easymock.ArgumentsMatcher; import org.easymock.MockControl; public class DefaultDependencyResolverTest extends PlexusTestCase { private ArtifactFactory factory; private ArtifactRepositoryFactory repoFactory; private ArtifactRepositoryLayout layout; private ArtifactCollector collector; public void setUp() throws Exception { super.setUp(); factory = (ArtifactFactory) lookup( ArtifactFactory.ROLE ); repoFactory = (ArtifactRepositoryFactory) lookup( ArtifactRepositoryFactory.ROLE ); layout = (ArtifactRepositoryLayout) lookup( ArtifactRepositoryLayout.ROLE, "default" ); collector = (ArtifactCollector) lookup( ArtifactCollector.class.getName() ); } public void test_getDependencySetResolutionRequirements() { List depSets = new ArrayList(); DependencySet ds1 = new DependencySet(); ds1.setScope( Artifact.SCOPE_COMPILE ); ds1.setUseTransitiveDependencies( false ); depSets.add( ds1 ); DependencySet ds2 = new DependencySet(); ds2.setScope( Artifact.SCOPE_SYSTEM ); ds2.setUseTransitiveDependencies( false ); depSets.add( ds2 ); ResolutionManagementInfo info = new ResolutionManagementInfo( new MavenProject( new Model() ) ); new DefaultDependencyResolver().getDependencySetResolutionRequirements( depSets, info ); assertTrue( info.isResolutionRequired() ); assertFalse( info.isResolvedTransitively() ); assertTrue( info.getScopeFilter().isIncludeCompileScope() ); assertTrue( info.getScopeFilter().isIncludeSystemScope() ); assertTrue( info.getScopeFilter().isIncludeProvidedScope() ); assertFalse( info.getScopeFilter().isIncludeRuntimeScope() ); assertFalse( info.getScopeFilter().isIncludeTestScope() ); } public void test_getModuleSetResolutionRequirements() throws ArchiveCreationException { MockManager mm = new MockManager(); MockControl csControl = MockControl.createControl( AssemblerConfigurationSource.class ); mm.add( csControl ); AssemblerConfigurationSource cs = (AssemblerConfigurationSource) csControl.getMock(); File rootDir = new File( "root" ); MavenProject project = createMavenProject( "main-group", "main-artifact", "1", rootDir ); File module1Dir = new File( rootDir, "module-1" ); MavenProject module1 = createMavenProject( "main-group", "module-1", "1", module1Dir ); MavenProject module1a = createMavenProject( "group1", "module-1a", "1", new File( module1Dir, "module-1a" ) ); MavenProject module1b = createMavenProject( "group1.b", "module-1b", "1", new File( module1Dir, "module-1b" ) ); module1.getModel().addModule( module1a.getArtifactId() ); module1.getModel().addModule( module1b.getArtifactId() ); File module2Dir = new File( rootDir, "module-2" ); MavenProject module2 = createMavenProject( "main-group", "module-2", "1", module2Dir ); MavenProject module2a = createMavenProject( "main-group", "module-2a", "1", new File( module2Dir, "module-2a" ) ); module2.getModel().addModule( module2a.getArtifactId() ); project.getModel().addModule( module1.getArtifactId() ); project.getModel().addModule( module2.getArtifactId() ); List allProjects = new ArrayList(); allProjects.add( project ); allProjects.add( module1 ); allProjects.add( module1a ); allProjects.add( module1b ); allProjects.add( module2 ); allProjects.add( module2a ); cs.getReactorProjects(); csControl.setReturnValue( allProjects, MockControl.ZERO_OR_MORE ); cs.getProject(); csControl.setReturnValue( project, MockControl.ZERO_OR_MORE ); ResolutionManagementInfo info = new ResolutionManagementInfo( project ); List moduleSets = new ArrayList(); { ModuleSet ms = new ModuleSet(); ms.addInclude( "*module1*" ); ms.setIncludeSubModules( false ); ModuleBinaries mb = new ModuleBinaries(); DependencySet ds = new DependencySet(); ds.setScope( Artifact.SCOPE_COMPILE ); mb.addDependencySet( ds ); ms.setBinaries( mb ); moduleSets.add( ms ); } { ModuleSet ms = new ModuleSet(); ms.addInclude( "main-group:*" ); ms.setIncludeSubModules( true ); ModuleBinaries mb = new ModuleBinaries(); DependencySet ds = new DependencySet(); ds.setScope( Artifact.SCOPE_TEST ); mb.addDependencySet( ds ); ms.setBinaries( mb ); moduleSets.add( ms ); } mm.replayAll(); DefaultDependencyResolver resolver = new DefaultDependencyResolver(); resolver.enableLogging( new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ); resolver.getModuleSetResolutionRequirements( moduleSets, info, cs ); assertTrue( info.isResolutionRequired() ); Set enabledProjects = info.getEnabledProjects(); assertTrue( enabledProjects.contains( project ) ); assertTrue( enabledProjects.contains( module1 ) ); // these should be excluded since sub-modules are not traversable assertFalse( enabledProjects.contains( module1a ) ); assertFalse( enabledProjects.contains( module1b ) ); assertTrue( enabledProjects.contains( module2 ) ); assertTrue( enabledProjects.contains( module2a ) ); // these are the two we directly set above. assertTrue( info.getScopeFilter().isIncludeTestScope() ); assertTrue( info.getScopeFilter().isIncludeCompileScope() ); // this combination should be implied by the two direct scopes set above. assertTrue( info.getScopeFilter().isIncludeRuntimeScope() ); assertTrue( info.getScopeFilter().isIncludeProvidedScope() ); assertTrue( info.getScopeFilter().isIncludeSystemScope() ); mm.verifyAll(); } public void test_getRepositoryResolutionRequirements() { List repositories = new ArrayList(); { Repository r = new Repository(); r.setScope( Artifact.SCOPE_COMPILE ); repositories.add( r ); } { Repository r = new Repository(); r.setScope( Artifact.SCOPE_SYSTEM ); repositories.add( r ); } ResolutionManagementInfo info = new ResolutionManagementInfo( new MavenProject( new Model() ) ); new DefaultDependencyResolver().getRepositoryResolutionRequirements( repositories, info ); assertTrue( info.isResolutionRequired() ); assertTrue( info.getScopeFilter().isIncludeCompileScope() ); assertTrue( info.getScopeFilter().isIncludeSystemScope() ); assertTrue( info.getScopeFilter().isIncludeProvidedScope() ); assertFalse( info.getScopeFilter().isIncludeRuntimeScope() ); assertFalse( info.getScopeFilter().isIncludeTestScope() ); } public void test_getManagedVersionMap() throws InvalidVersionSpecificationException { MavenProject project = createMavenProject( "group", "artifact", "1", new File( "base" ) ); DependencyManagement dm = new DependencyManagement(); project.getModel().setDependencyManagement( dm ); Dependency d1 = new Dependency(); d1.setGroupId( "group" ); d1.setArtifactId( "dep1" ); d1.setVersion( "2" ); d1.setScope( Artifact.SCOPE_PROVIDED ); dm.addDependency( d1 ); Dependency d2 = new Dependency(); d2.setGroupId( "group" ); d2.setArtifactId( "dep2" ); d2.setVersion( "2.1" ); dm.addDependency( d2 ); DefaultDependencyResolver resolver = new DefaultDependencyResolver(); resolver.setLogger( new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ); resolver.setArtifactFactory( factory ); Map managedVersionMap = resolver.getManagedVersionMap( project ); Artifact a1 = (Artifact) managedVersionMap.get( d1.getManagementKey() ); assertNotNull( a1 ); assertEquals( d1.getVersion(), a1.getVersion() ); assertEquals( d1.getScope(), a1.getScope() ); Artifact a2 = (Artifact) managedVersionMap.get( d2.getManagementKey() ); assertNotNull( a2 ); assertEquals( d2.getVersion(), a2.getVersion() ); assertNull( a2.getScope() ); } public void test_aggregateRemoteArtifactRepositories() { List externalRepos = new ArrayList(); ArtifactRepository er1 = repoFactory.createArtifactRepository( "test.1", "http://test.com/path", layout, null, null ); externalRepos.add( er1 ); ArtifactRepository er2 = repoFactory.createArtifactRepository( "test.2", "http://test2.com/path", layout, null, null ); externalRepos.add( er2 ); List projectRepos = new ArrayList(); ArtifactRepository pr1 = repoFactory.createArtifactRepository( "project.1", "http://test.com/project", layout, null, null ); projectRepos.add( pr1 ); ArtifactRepository pr2 = repoFactory.createArtifactRepository( "project.2", "http://test2.com/path", layout, null, null ); projectRepos.add( pr2 ); MavenProject project = createMavenProject( "group", "artifact", "1", new File( "base" ) ); project.setRemoteArtifactRepositories( projectRepos ); List aggregated = new DefaultDependencyResolver().aggregateRemoteArtifactRepositories( externalRepos, project ); assertRepositoryWithId( er1.getId(), aggregated, true ); assertRepositoryWithId( er2.getId(), aggregated, true ); assertRepositoryWithId( pr1.getId(), aggregated, true ); assertRepositoryWithId( pr2.getId(), aggregated, false ); } public void test_manageArtifact() { Artifact managed = factory.createArtifact( "group", "artifact", "1", Artifact.SCOPE_PROVIDED, "jar" ); Artifact target = factory.createArtifact( managed.getGroupId(), managed.getArtifactId(), "2", Artifact.SCOPE_COMPILE, managed.getType() ); Artifact target2 = factory.createArtifact( "other-group", managed.getArtifactId(), "2", Artifact.SCOPE_COMPILE, managed.getType() ); Map managedVersions = Collections.singletonMap( managed.getDependencyConflictId(), managed ); DefaultDependencyResolver resolver = new DefaultDependencyResolver().setLogger( new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ); resolver.manageArtifact( target, managedVersions ); resolver.manageArtifact( target2, managedVersions ); assertEquals( managed.getVersion(), target.getVersion() ); assertEquals( managed.getScope(), target.getScope() ); assertEquals( "2", target2.getVersion() ); assertEquals( Artifact.SCOPE_COMPILE, target2.getScope() ); } public void test_buildManagedVersionMap_NonTransitiveResolution() throws ArtifactResolutionException, ArchiveCreationException, InvalidVersionSpecificationException, InvalidDependencyVersionException { Assembly assembly = new Assembly(); DependencySet ds = new DependencySet(); ds.setScope( Artifact.SCOPE_PROVIDED ); ds.setUseTransitiveDependencies( false ); assembly.addDependencySet( ds ); ModuleSet ms = new ModuleSet(); ModuleBinaries mb = new ModuleBinaries(); ms.setBinaries( mb ); DependencySet mds = new DependencySet(); mds.setScope( Artifact.SCOPE_PROVIDED ); mds.setUseTransitiveDependencies( false ); mb.addDependencySet( mds ); assembly.addModuleSet( ms ); MavenProject project = createMavenProject( "group", "artifact", "1", new File( "base" ) ); Dependency d1 = new Dependency(); d1.setGroupId( "group.dep" ); d1.setArtifactId( "dep1" ); d1.setVersion( "1" ); d1.setScope( Artifact.SCOPE_COMPILE ); project.getModel().addDependency( d1 ); Dependency d2 = new Dependency(); d2.setGroupId( "group.dep" ); d2.setArtifactId( "dep2" ); d2.setVersion( "1" ); d2.setScope( Artifact.SCOPE_PROVIDED ); project.getModel().addDependency( d2 ); Dependency d3 = new Dependency(); d3.setGroupId( "group.dep" ); d3.setArtifactId( "dep3" ); d3.setVersion( "1" ); d3.setScope( Artifact.SCOPE_PROVIDED ); project.getModel().addDependency( d3 ); MavenProject module = createMavenProject( "group", "module", "1", new File( "base/module" ) ); project.getModel().addModule( module.getArtifactId() ); Dependency md = new Dependency(); md.setGroupId( "group.dep" ); md.setArtifactId( "dep3" ); md.setVersion( "2" ); md.setScope( Artifact.SCOPE_PROVIDED ); module.getModel().addDependency( md ); List allProjects = new ArrayList(); allProjects.add( project ); allProjects.add( module ); MockManager mm = new MockManager(); MockControl csControl = MockControl.createControl( AssemblerConfigurationSource.class ); mm.add( csControl ); AssemblerConfigurationSource cs = (AssemblerConfigurationSource) csControl.getMock(); cs.getProject(); csControl.setReturnValue( project, MockControl.ZERO_OR_MORE ); cs.getReactorProjects(); csControl.setReturnValue( allProjects, MockControl.ZERO_OR_MORE ); cs.getRemoteRepositories(); csControl.setReturnValue( Collections.EMPTY_LIST, MockControl.ZERO_OR_MORE ); mm.replayAll(); DefaultDependencyResolver resolver = new DefaultDependencyResolver(); resolver.setArtifactFactory( factory ); resolver.setLogger( new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ); Map managedVersionMap = resolver.buildManagedVersionMap( assembly, cs ); { Dependency d = d1; Artifact a = (Artifact) managedVersionMap.get( d.getManagementKey() ); assertNull( a ); } { Dependency d = d2; Artifact a = (Artifact) managedVersionMap.get( d.getManagementKey() ); assertNotNull( a ); assertEquals( d.getVersion(), a.getVersion() ); assertEquals( d.getScope(), a.getScope() ); } { Dependency d = d3; Artifact a = (Artifact) managedVersionMap.get( d.getManagementKey() ); assertNotNull( a ); assertEquals( d.getVersion(), a.getVersion() ); assertEquals( d.getScope(), a.getScope() ); } mm.verifyAll(); } public void test_buildManagedVersionMap_TransitiveResolution() throws ArtifactResolutionException, ArchiveCreationException, InvalidVersionSpecificationException, InvalidDependencyVersionException { Assembly assembly = new Assembly(); DependencySet ds = new DependencySet(); ds.setScope( Artifact.SCOPE_COMPILE ); ds.setUseTransitiveDependencies( true ); assembly.addDependencySet( ds ); MavenProject project = createMavenProject( "group", "artifact", "1", new File( "base" ) ); Dependency d1 = new Dependency(); d1.setGroupId( "group.dep" ); d1.setArtifactId( "dep1" ); d1.setVersion( "1" ); d1.setScope( Artifact.SCOPE_COMPILE ); project.getModel().addDependency( d1 ); Dependency d2 = new Dependency(); d2.setGroupId( "group.dep" ); d2.setArtifactId( "dep2" ); d2.setVersion( "1" ); d2.setScope( Artifact.SCOPE_COMPILE ); final Artifact a2 = factory.createArtifact( d2.getGroupId(), d2.getArtifactId(), d2.getVersion(), d2.getScope(), "jar" ); project.getModel().addDependency( d2 ); Dependency d3 = new Dependency(); d3.setGroupId( "group.dep" ); d3.setArtifactId( "dep3" ); d3.setVersion( "1" ); d3.setScope( Artifact.SCOPE_COMPILE ); project.getModel().addDependency( d3 ); final Artifact a2a = factory.createArtifact( d3.getGroupId(), d3.getArtifactId(), "2", Artifact.SCOPE_RUNTIME, "jar" ); MockManager mm = new MockManager(); MockControl msControl = MockControl.createControl( ArtifactMetadataSource.class ); mm.add( msControl ); ArtifactMetadataSource ms = (ArtifactMetadataSource) msControl.getMock(); try { ms.retrieve( null, null, null ); } catch ( ArtifactMetadataRetrievalException e ) { } msControl.setDefaultReturnValue( new ResolutionGroup( null, Collections.EMPTY_SET, Collections.EMPTY_LIST ) ); msControl.setMatcher( new ArgumentsMatcher() { public boolean matches( Object[] expected, Object[] actual ) { Artifact a = (Artifact) actual[0]; return a2.getArtifactId().equals( a.getArtifactId() ); } public String toString( Object[] args ) { return "with artifact: " + args[0] ; } } ); msControl.setReturnValue( new ResolutionGroup( a2, Collections.singleton( a2a ), Collections.EMPTY_LIST ) ); MockControl csControl = MockControl.createControl( AssemblerConfigurationSource.class ); mm.add( csControl ); AssemblerConfigurationSource cs = (AssemblerConfigurationSource) csControl.getMock(); cs.getProject(); csControl.setReturnValue( project, MockControl.ZERO_OR_MORE ); String tmpDir = System.getProperty( "java.io.tmpdir" ); ArtifactRepository lr = repoFactory.createArtifactRepository( "local", "file://" + tmpDir, layout, null, null ); cs.getLocalRepository(); csControl.setReturnValue( lr, MockControl.ZERO_OR_MORE ); cs.getRemoteRepositories(); csControl.setReturnValue( Collections.EMPTY_LIST, MockControl.ZERO_OR_MORE ); mm.replayAll(); DefaultDependencyResolver resolver = new DefaultDependencyResolver(); resolver.setArtifactMetadataSource( ms ); resolver.setArtifactCollector( collector ); resolver.setArtifactFactory( factory ); resolver.setLogger( new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ); Map managedVersionMap = resolver.buildManagedVersionMap( assembly, cs ); { Dependency d = d1; Artifact a = (Artifact) managedVersionMap.get( d.getManagementKey() ); assertNotNull( a ); assertEquals( d.getVersion(), a.getVersion() ); assertEquals( d.getScope(), a.getScope() ); } { Dependency d = d2; Artifact a = (Artifact) managedVersionMap.get( d.getManagementKey() ); assertNotNull( a ); assertEquals( d.getVersion(), a.getVersion() ); assertEquals( d.getScope(), a.getScope() ); } { Dependency d = d3; Artifact a = (Artifact) managedVersionMap.get( d.getManagementKey() ); assertNotNull( a ); assertEquals( d.getVersion(), a.getVersion() ); assertEquals( d.getScope(), a.getScope() ); } mm.verifyAll(); } private void assertRepositoryWithId( String repoId, List repos, boolean shouldExist ) { if ( ( repos == null || repos.isEmpty() ) ) { if ( shouldExist ) { fail( "Repository with id: " + repoId + " should be present, but repository list is null or empty." ); } } else { boolean found = false; for ( Iterator it = repos.iterator(); it.hasNext(); ) { ArtifactRepository repo = (ArtifactRepository) it.next(); if ( repoId.equals( repo.getId() ) ) { found = true; break; } } if ( shouldExist ) { assertTrue( "Repository with id: " + repoId + " should be present in repository list.", found ); } else { assertFalse( "Repository with id: " + repoId + " should NOT be present in repository list.", found ); } } } private MavenProject createMavenProject( String groupId, String artifactId, String version, File basedir ) { Model model = new Model(); model.setGroupId( groupId ); model.setArtifactId( artifactId ); model.setVersion( version ); model.setPackaging( "pom" ); MavenProject project = new MavenProject( model ); Artifact pomArtifact = factory.createProjectArtifact( groupId, artifactId, version ); project.setArtifact( pomArtifact ); project.setFile( new File( basedir, "pom.xml" ) ); return project; } } maven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/interpolation/0000755000175000017500000000000011361635306032466 5ustar twernertwerner././@LongLink0000000000000000000000000000017300000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/interpolation/AssemblyInterpolatorTest.javamaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/interpolation/Assembl0000644000175000017500000002022411123544663034000 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.interpolation; /* * 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.IOException; import java.util.List; import java.util.Properties; import junit.framework.TestCase; import org.apache.maven.execution.MavenSession; import org.apache.maven.model.Build; import org.apache.maven.model.Model; import org.apache.maven.plugin.assembly.AssemblerConfigurationSource; import org.apache.maven.plugin.assembly.model.Assembly; import org.apache.maven.plugin.assembly.model.DependencySet; import org.apache.maven.plugin.assembly.testutils.ConfigSourceStub; import org.apache.maven.plugin.assembly.testutils.MockManager; import org.apache.maven.project.MavenProject; import org.codehaus.plexus.logging.Logger; import org.codehaus.plexus.logging.console.ConsoleLogger; import org.easymock.MockControl; import org.easymock.classextension.MockClassControl; public class AssemblyInterpolatorTest extends TestCase { private AssemblyInterpolator interpolator; private AssemblerConfigurationSource configSourceStub = new ConfigSourceStub(); public void setUp() throws IOException { interpolator = new AssemblyInterpolator(); interpolator.enableLogging( new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ); } public void testDependencySetOutputFileNameMappingsAreNotInterpolated() throws IOException, AssemblyInterpolationException { Model model = new Model(); model.setArtifactId( "artifact-id" ); model.setGroupId( "group.id" ); model.setVersion( "1" ); model.setPackaging( "jar" ); MavenProject project = new MavenProject( model ); Assembly assembly = new Assembly(); // artifactId is blacklisted, but packaging is not. String outputFileNameMapping = "${artifactId}.${packaging}"; DependencySet set = new DependencySet(); set.setOutputFileNameMapping( outputFileNameMapping ); assembly.addDependencySet( set ); Assembly outputAssembly = interpolator.interpolate( assembly, project, configSourceStub ); List outputDependencySets = outputAssembly.getDependencySets(); assertEquals( 1, outputDependencySets.size() ); DependencySet outputSet = (DependencySet) outputDependencySets.get( 0 ); assertEquals( "${artifactId}.${packaging}", outputSet.getOutputFileNameMapping() ); } public void testDependencySetOutputDirectoryIsNotInterpolated() throws IOException, AssemblyInterpolationException { Model model = new Model(); model.setArtifactId( "artifact-id" ); model.setGroupId( "group.id" ); model.setVersion( "1" ); model.setPackaging( "jar" ); Assembly assembly = new Assembly(); String outputDirectory = "${artifactId}.${packaging}"; DependencySet set = new DependencySet(); set.setOutputDirectory( outputDirectory ); assembly.addDependencySet( set ); Assembly outputAssembly = interpolator.interpolate( assembly, new MavenProject( model ), configSourceStub ); List outputDependencySets = outputAssembly.getDependencySets(); assertEquals( 1, outputDependencySets.size() ); DependencySet outputSet = (DependencySet) outputDependencySets.get( 0 ); assertEquals( "${artifactId}.${packaging}", outputSet.getOutputDirectory() ); } public void testShouldResolveModelGroupIdInAssemblyId() throws AssemblyInterpolationException { Model model = new Model(); model.setArtifactId( "artifact-id" ); model.setGroupId( "group.id" ); model.setVersion( "1" ); model.setPackaging( "jar" ); Assembly assembly = new Assembly(); assembly.setId( "assembly.${groupId}" ); Assembly result = interpolator.interpolate( assembly, new MavenProject( model ), configSourceStub ); assertEquals( "assembly.group.id", result.getId() ); } public void testShouldResolveModelPropertyBeforeModelGroupIdInAssemblyId() throws AssemblyInterpolationException { Model model = new Model(); model.setArtifactId( "artifact-id" ); model.setGroupId( "group.id" ); model.setVersion( "1" ); model.setPackaging( "jar" ); Properties props = new Properties(); props.setProperty( "groupId", "other.id" ); model.setProperties( props ); Assembly assembly = new Assembly(); assembly.setId( "assembly.${groupId}" ); Assembly result = interpolator.interpolate( assembly, new MavenProject( model ), configSourceStub ); assertEquals( "assembly.other.id", result.getId() ); } public void testShouldResolveContextValueBeforeModelPropertyOrModelGroupIdInAssemblyId() throws AssemblyInterpolationException { Model model = new Model(); model.setArtifactId( "artifact-id" ); model.setGroupId( "group.id" ); model.setVersion( "1" ); model.setPackaging( "jar" ); Properties props = new Properties(); props.setProperty( "groupId", "other.id" ); model.setProperties( props ); Assembly assembly = new Assembly(); assembly.setId( "assembly.${groupId}" ); MockManager mm = new MockManager(); MockControl sessionControl = MockClassControl.createControl( MavenSession.class ); MavenSession session = (MavenSession) sessionControl.getMock(); mm.add( sessionControl ); Properties execProps = new Properties(); execProps.setProperty( "groupId", "still.another.id" ); session.getExecutionProperties(); sessionControl.setReturnValue( execProps, MockControl.ZERO_OR_MORE ); MockControl csControl = MockControl.createControl( AssemblerConfigurationSource.class ); AssemblerConfigurationSource cs = (AssemblerConfigurationSource) csControl.getMock(); mm.add( csControl ); cs.getMavenSession(); csControl.setReturnValue( session, MockControl.ZERO_OR_MORE ); mm.replayAll(); Assembly result = interpolator.interpolate( assembly, new MavenProject( model ), cs ); assertEquals( "assembly.still.another.id", result.getId() ); mm.verifyAll(); mm.clear(); } public void testShouldNotTouchUnresolvedExpression() throws AssemblyInterpolationException { Model model = new Model(); model.setArtifactId( "artifact-id" ); model.setGroupId( "group.id" ); model.setVersion( "1" ); model.setPackaging( "jar" ); Assembly assembly = new Assembly(); assembly.setId( "assembly.${unresolved}" ); Assembly result = interpolator.interpolate( assembly, new MavenProject( model ), configSourceStub ); assertEquals( "assembly.${unresolved}", result.getId() ); } public void testShouldInterpolateMultiDotProjectExpression() throws AssemblyInterpolationException { Build build = new Build(); build.setFinalName( "final-name" ); Model model = new Model(); model.setBuild( build ); Assembly assembly = new Assembly(); assembly.setId( "assembly.${project.build.finalName}" ); Assembly result = interpolator.interpolate( assembly, new MavenProject( model ), configSourceStub ); assertEquals( "assembly.final-name", result.getId() ); } } ././@LongLink0000000000000000000000000000020200000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/interpolation/AssemblyExpressionEvaluatorTest.javamaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/interpolation/Assembl0000644000175000017500000001364111123544663034005 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.interpolation; /* * 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.IOException; import java.util.Properties; import junit.framework.TestCase; import org.apache.maven.execution.MavenSession; import org.apache.maven.model.Build; import org.apache.maven.model.Model; import org.apache.maven.plugin.assembly.AssemblerConfigurationSource; import org.apache.maven.plugin.assembly.testutils.ConfigSourceStub; import org.apache.maven.plugin.assembly.testutils.MockManager; import org.apache.maven.project.MavenProject; import org.codehaus.plexus.component.configurator.expression.ExpressionEvaluationException; import org.codehaus.plexus.logging.Logger; import org.codehaus.plexus.logging.console.ConsoleLogger; import org.easymock.MockControl; import org.easymock.classextension.MockClassControl; public class AssemblyExpressionEvaluatorTest extends TestCase { private AssemblyInterpolator interpolator; private ConfigSourceStub configSourceStub = new ConfigSourceStub(); public void setUp() throws IOException { interpolator = new AssemblyInterpolator(); interpolator.enableLogging( new ConsoleLogger( Logger.LEVEL_DEBUG, "test" ) ); } public void testShouldResolveModelGroupId() throws ExpressionEvaluationException { Model model = new Model(); model.setArtifactId( "artifact-id" ); model.setGroupId( "group.id" ); model.setVersion( "1" ); model.setPackaging( "jar" ); configSourceStub.setProject( new MavenProject( model ) ); Object result = new AssemblyExpressionEvaluator( configSourceStub ).evaluate( "assembly.${groupId}" ); assertEquals( "assembly.group.id", result ); } public void testShouldResolveModelPropertyBeforeModelGroupId() throws ExpressionEvaluationException { Model model = new Model(); model.setArtifactId( "artifact-id" ); model.setGroupId( "group.id" ); model.setVersion( "1" ); model.setPackaging( "jar" ); Properties props = new Properties(); props.setProperty( "groupId", "other.id" ); model.setProperties( props ); configSourceStub.setProject( new MavenProject( model ) ); Object result = new AssemblyExpressionEvaluator( configSourceStub ).evaluate( "assembly.${groupId}" ); assertEquals( "assembly.other.id", result ); } public void testShouldResolveContextValueBeforeModelPropertyOrModelGroupIdInAssemblyId() throws ExpressionEvaluationException { Model model = new Model(); model.setArtifactId( "artifact-id" ); model.setGroupId( "group.id" ); model.setVersion( "1" ); model.setPackaging( "jar" ); Properties props = new Properties(); props.setProperty( "groupId", "other.id" ); model.setProperties( props ); MockManager mm = new MockManager(); MockControl sessionControl = MockClassControl.createControl( MavenSession.class ); MavenSession session = (MavenSession) sessionControl.getMock(); mm.add( sessionControl ); Properties execProps = new Properties(); execProps.setProperty( "groupId", "still.another.id" ); session.getExecutionProperties(); sessionControl.setReturnValue( execProps, MockControl.ZERO_OR_MORE ); MockControl csControl = MockControl.createControl( AssemblerConfigurationSource.class ); AssemblerConfigurationSource cs = (AssemblerConfigurationSource) csControl.getMock(); mm.add( csControl ); cs.getMavenSession(); csControl.setReturnValue( session, MockControl.ZERO_OR_MORE ); cs.getProject(); csControl.setReturnValue( new MavenProject( model ), MockControl.ZERO_OR_MORE ); mm.replayAll(); Object result = new AssemblyExpressionEvaluator( cs ).evaluate( "assembly.${groupId}" ); assertEquals( "assembly.still.another.id", result ); mm.verifyAll(); mm.clear(); } public void testShouldReturnUnchangedInputForUnresolvedExpression() throws ExpressionEvaluationException { Model model = new Model(); model.setArtifactId( "artifact-id" ); model.setGroupId( "group.id" ); model.setVersion( "1" ); model.setPackaging( "jar" ); configSourceStub.setProject( new MavenProject( model ) ); Object result = new AssemblyExpressionEvaluator( configSourceStub ).evaluate( "assembly.${unresolved}" ); assertEquals( "assembly.${unresolved}", result ); } public void testShouldInterpolateMultiDotProjectExpression() throws ExpressionEvaluationException { Build build = new Build(); build.setFinalName( "final-name" ); Model model = new Model(); model.setBuild( build ); configSourceStub.setProject( new MavenProject( model ) ); Object result = new AssemblyExpressionEvaluator( configSourceStub ).evaluate( "assembly.${project.build.finalName}" ); assertEquals( "assembly.final-name", result ); } } maven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/filter/0000755000175000017500000000000011361635306031064 5ustar twernertwerner././@LongLink0000000000000000000000000000017700000000000011572 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/filter/ComponentsXmlArchiverFileFilterTest.javamaven-assembly-plugin-2.2~beta5/src/test/java/org/apache/maven/plugin/assembly/filter/ComponentsXmlA0000644000175000017500000005064011212274043033713 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.filter; /* * 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 org.apache.maven.plugin.assembly.testutils.TestFileManager; import org.codehaus.plexus.archiver.ArchiveEntry; import org.codehaus.plexus.archiver.ArchivedFileSet; import org.codehaus.plexus.archiver.Archiver; import org.codehaus.plexus.archiver.ArchiverException; import org.codehaus.plexus.archiver.FileSet; import org.codehaus.plexus.archiver.ResourceIterator; import org.codehaus.plexus.archiver.zip.ZipArchiver; import org.codehaus.plexus.components.io.resources.PlexusIoResource; import org.codehaus.plexus.components.io.resources.PlexusIoResourceCollection; import org.codehaus.plexus.util.IOUtil; import org.codehaus.plexus.util.xml.PrettyPrintXMLWriter; import org.codehaus.plexus.util.xml.Xpp3Dom; import org.codehaus.plexus.util.xml.pull.XmlPullParserException; import org.jdom.Document; import org.jdom.JDOMException; import org.jdom.Text; import org.jdom.input.SAXBuilder; import org.jdom.xpath.XPath; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.Reader; import java.io.StringReader; import java.io.StringWriter; import java.util.ArrayList; import java.util.Collections; import java.util.Iterator; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.zip.ZipEntry; import java.util.zip.ZipFile; import junit.framework.TestCase; public class ComponentsXmlArchiverFileFilterTest extends TestCase { private ComponentsXmlArchiverFileFilter filter; private TestFileManager fileManager = new TestFileManager( "componentsXmlArchiverFileFilter.test", ".zip" ); public void setUp() { filter = new ComponentsXmlArchiverFileFilter(); } public void tearDown() throws IOException { fileManager.cleanUp(); } public void testAddComponentsXml_ShouldAddComponentWithoutRoleHint() throws IOException, XmlPullParserException { Reader reader = writeComponentsXml( Collections.singletonList( new ComponentDef( "role", null, "org.apache.maven.Impl" ) ) ); filter.addComponentsXml( reader ); assertFalse( filter.components.isEmpty() ); Xpp3Dom componentDom = (Xpp3Dom) filter.components.get( "role" ); assertEquals( "role", componentDom.getChild( "role" ).getValue() ); assertNull( componentDom.getChild( "role-hint" ) ); assertEquals( "org.apache.maven.Impl", componentDom.getChild( "implementation" ).getValue() ); } public void testAddComponentsXml_ShouldAddComponentWithRoleHint() throws IOException, XmlPullParserException { Reader reader = writeComponentsXml( Collections.singletonList( new ComponentDef( "role", "hint", "org.apache.maven.Impl" ) ) ); filter.addComponentsXml( reader ); assertFalse( filter.components.isEmpty() ); Xpp3Dom componentDom = (Xpp3Dom) filter.components.get( "rolehint" ); assertEquals( "role", componentDom.getChild( "role" ).getValue() ); assertEquals( "hint", componentDom.getChild( "role-hint" ).getValue() ); assertEquals( "org.apache.maven.Impl", componentDom.getChild( "implementation" ).getValue() ); } public void testAddComponentsXml_ShouldAddTwoComponentsWithRoleHints() throws IOException, XmlPullParserException { List defs = new ArrayList(); defs.add( new ComponentDef( "role", "hint", "org.apache.maven.Impl" ) ); defs.add( new ComponentDef( "role", "hint2", "org.apache.maven.Impl2" ) ); Reader reader = writeComponentsXml( defs ); filter.addComponentsXml( reader ); assertFalse( filter.components.isEmpty() ); Xpp3Dom componentDom = (Xpp3Dom) filter.components.get( "rolehint" ); assertEquals( "role", componentDom.getChild( "role" ).getValue() ); assertEquals( "hint", componentDom.getChild( "role-hint" ).getValue() ); assertEquals( "org.apache.maven.Impl", componentDom.getChild( "implementation" ).getValue() ); componentDom = (Xpp3Dom) filter.components.get( "rolehint2" ); assertEquals( "role", componentDom.getChild( "role" ).getValue() ); assertEquals( "hint2", componentDom.getChild( "role-hint" ).getValue() ); assertEquals( "org.apache.maven.Impl2", componentDom.getChild( "implementation" ).getValue() ); } public void testAddToArchive_ShouldWriteComponentWithoutHintToFile() throws IOException, ArchiverException, JDOMException { Xpp3Dom dom = createComponentDom( new ComponentDef( "role", null, "impl" ) ); filter.components = new LinkedHashMap(); filter.components.put( "role", dom ); FileCatchingArchiver fca = new FileCatchingArchiver(); filter.finalizeArchiveCreation( fca ); assertEquals( ComponentsXmlArchiverFileFilter.COMPONENTS_XML_PATH, fca.getDestFileName() ); SAXBuilder builder = new SAXBuilder( false ); Document doc = builder.build( fca.getFile() ); XPath role = XPath.newInstance( "//component[position()=1]/role/text()" ); XPath hint = XPath.newInstance( "//component[position()=1]/role-hint/text()" ); XPath implementation = XPath.newInstance( "//component[position()=1]/implementation/text()" ); assertEquals( "role", ( (Text) role.selectSingleNode( doc ) ).getText() ); assertNull( hint.selectSingleNode( doc ) ); assertEquals( "impl", ( (Text) implementation.selectSingleNode( doc ) ).getText() ); } public void testAddToArchive_ShouldWriteComponentWithHintToFile() throws IOException, ArchiverException, JDOMException { Xpp3Dom dom = createComponentDom( new ComponentDef( "role", "hint", "impl" ) ); filter.components = new LinkedHashMap(); filter.components.put( "rolehint", dom ); FileCatchingArchiver fca = new FileCatchingArchiver(); filter.finalizeArchiveCreation( fca ); assertEquals( ComponentsXmlArchiverFileFilter.COMPONENTS_XML_PATH, fca.getDestFileName() ); SAXBuilder builder = new SAXBuilder( false ); Document doc = builder.build( fca.getFile() ); XPath role = XPath.newInstance( "//component[position()=1]/role/text()" ); XPath hint = XPath.newInstance( "//component[position()=1]/role-hint/text()" ); XPath implementation = XPath.newInstance( "//component[position()=1]/implementation/text()" ); assertEquals( "role", ( (Text) role.selectSingleNode( doc ) ).getText() ); assertEquals( "hint", ( (Text) hint.selectSingleNode( doc ) ).getText() ); assertEquals( "impl", ( (Text) implementation.selectSingleNode( doc ) ).getText() ); } public void testAddToArchive_ShouldWriteTwoComponentToFile() throws IOException, ArchiverException, JDOMException { filter.components = new LinkedHashMap(); Xpp3Dom dom = createComponentDom( new ComponentDef( "role", "hint", "impl" ) ); filter.components.put( "rolehint", dom ); Xpp3Dom dom2 = createComponentDom( new ComponentDef( "role", "hint2", "impl" ) ); filter.components.put( "rolehint2", dom2 ); FileCatchingArchiver fca = new FileCatchingArchiver(); filter.finalizeArchiveCreation( fca ); assertEquals( ComponentsXmlArchiverFileFilter.COMPONENTS_XML_PATH, fca.getDestFileName() ); SAXBuilder builder = new SAXBuilder( false ); Document doc = builder.build( fca.getFile() ); XPath role = XPath.newInstance( "//component[position()=1]/role/text()" ); XPath hint = XPath.newInstance( "//component[position()=1]/role-hint/text()" ); XPath implementation = XPath.newInstance( "//component[position()=1]/implementation/text()" ); assertEquals( "role", ( (Text) role.selectSingleNode( doc ) ).getText() ); assertEquals( "hint", ( (Text) hint.selectSingleNode( doc ) ).getText() ); assertEquals( "impl", ( (Text) implementation.selectSingleNode( doc ) ).getText() ); XPath role2 = XPath.newInstance( "//component[position()=2]/role/text()" ); XPath hint2 = XPath.newInstance( "//component[position()=2]/role-hint/text()" ); XPath implementation2 = XPath.newInstance( "//component[position()=2]/implementation/text()" ); assertEquals( "role", ( (Text) role2.selectSingleNode( doc ) ).getText() ); assertEquals( "hint2", ( (Text) hint2.selectSingleNode( doc ) ).getText() ); assertEquals( "impl", ( (Text) implementation2.selectSingleNode( doc ) ).getText() ); } public void testAddToArchive_ShouldWriteTwoComponentToArchivedFile() throws IOException, ArchiverException, JDOMException { filter.components = new LinkedHashMap(); Xpp3Dom dom = createComponentDom( new ComponentDef( "role", "hint", "impl" ) ); filter.components.put( "rolehint", dom ); Xpp3Dom dom2 = createComponentDom( new ComponentDef( "role", "hint2", "impl" ) ); filter.components.put( "rolehint2", dom2 ); ZipArchiver archiver = new ZipArchiver(); File archiveFile = fileManager.createTempFile(); archiver.setDestFile( archiveFile ); File descriptorFile = fileManager.createTempFile(); archiver.setArchiveFinalizers( Collections.singletonList( filter ) ); archiver.createArchive(); ZipFile zf = new ZipFile( archiveFile ); ZipEntry ze = zf.getEntry( ComponentsXmlArchiverFileFilter.COMPONENTS_XML_PATH ); assertNotNull( ze ); FileOutputStream fileStream = new FileOutputStream( descriptorFile ); IOUtil.copy( zf.getInputStream( ze ), fileStream ); IOUtil.close( fileStream ); SAXBuilder builder = new SAXBuilder( false ); Document doc = builder.build( descriptorFile ); XPath role = XPath.newInstance( "//component[position()=1]/role/text()" ); XPath hint = XPath.newInstance( "//component[position()=1]/role-hint/text()" ); XPath implementation = XPath.newInstance( "//component[position()=1]/implementation/text()" ); assertEquals( "role", ( (Text) role.selectSingleNode( doc ) ).getText() ); assertEquals( "hint", ( (Text) hint.selectSingleNode( doc ) ).getText() ); assertEquals( "impl", ( (Text) implementation.selectSingleNode( doc ) ).getText() ); XPath role2 = XPath.newInstance( "//component[position()=2]/role/text()" ); XPath hint2 = XPath.newInstance( "//component[position()=2]/role-hint/text()" ); XPath implementation2 = XPath.newInstance( "//component[position()=2]/implementation/text()" ); assertEquals( "role", ( (Text) role2.selectSingleNode( doc ) ).getText() ); assertEquals( "hint2", ( (Text) hint2.selectSingleNode( doc ) ).getText() ); assertEquals( "impl", ( (Text) implementation2.selectSingleNode( doc ) ).getText() ); } private Xpp3Dom createComponentDom( ComponentDef def ) { Xpp3Dom dom = new Xpp3Dom( "component" ); Xpp3Dom role = new Xpp3Dom( "role" ); role.setValue( def.role ); dom.addChild( role ); String hint = def.roleHint; if ( hint != null ) { Xpp3Dom roleHint = new Xpp3Dom( "role-hint" ); roleHint.setValue( hint ); dom.addChild( roleHint ); } Xpp3Dom impl = new Xpp3Dom( "implementation" ); impl.setValue( def.implementation ); dom.addChild( impl ); return dom; } private Reader writeComponentsXml( List componentDefs ) throws IOException { StringWriter writer = new StringWriter(); PrettyPrintXMLWriter xmlWriter = new PrettyPrintXMLWriter( writer ); xmlWriter.startElement( "component-set" ); xmlWriter.startElement( "components" ); for ( Iterator it = componentDefs.iterator(); it.hasNext(); ) { ComponentDef def = (ComponentDef) it.next(); xmlWriter.startElement( "component" ); xmlWriter.startElement( "role" ); xmlWriter.writeText( def.role ); xmlWriter.endElement(); String roleHint = def.roleHint; if ( roleHint != null ) { xmlWriter.startElement( "role-hint" ); xmlWriter.writeText( roleHint ); xmlWriter.endElement(); } xmlWriter.startElement( "implementation" ); xmlWriter.writeText( def.implementation ); xmlWriter.endElement(); xmlWriter.endElement(); } xmlWriter.endElement(); xmlWriter.endElement(); return new StringReader( writer.toString() ); } private static final class ComponentDef { String role; String roleHint; String implementation; ComponentDef( String role, String roleHint, String implementation ) { this.role = role; this.roleHint = roleHint; this.implementation = implementation; } } private static final class FileCatchingArchiver implements Archiver { private File inputFile; private String destFileName; public void addDirectory( File directory ) throws ArchiverException { throw new UnsupportedOperationException( "not supported" ); } public void addDirectory( File directory, String prefix ) throws ArchiverException { throw new UnsupportedOperationException( "not supported" ); } public void addDirectory( File directory, String[] includes, String[] excludes ) throws ArchiverException { throw new UnsupportedOperationException( "not supported" ); } public void addDirectory( File directory, String prefix, String[] includes, String[] excludes ) throws ArchiverException { throw new UnsupportedOperationException( "not supported" ); } public void addFile( File inputFile, String destFileName ) throws ArchiverException { this.inputFile = inputFile; this.destFileName = destFileName; } File getFile() { return inputFile; } String getDestFileName() { return destFileName; } public void addFile( File inputFile, String destFileName, int permissions ) throws ArchiverException { throw new UnsupportedOperationException( "not supported" ); } public void createArchive() throws ArchiverException, IOException { throw new UnsupportedOperationException( "not supported" ); } public int getDefaultDirectoryMode() { throw new UnsupportedOperationException( "not supported" ); } public int getDefaultFileMode() { throw new UnsupportedOperationException( "not supported" ); } public File getDestFile() { throw new UnsupportedOperationException( "not supported" ); } public Map getFiles() { throw new UnsupportedOperationException( "not supported" ); } public boolean getIncludeEmptyDirs() { throw new UnsupportedOperationException( "not supported" ); } public void setDefaultDirectoryMode( int mode ) { throw new UnsupportedOperationException( "not supported" ); } public void setDefaultFileMode( int mode ) { throw new UnsupportedOperationException( "not supported" ); } public void setDestFile( File destFile ) { throw new UnsupportedOperationException( "not supported" ); } public void setIncludeEmptyDirs( boolean includeEmptyDirs ) { throw new UnsupportedOperationException( "not supported" ); } public void addArchivedFileSet( File archiveFile ) throws ArchiverException { throw new UnsupportedOperationException( "not supported" ); } public void addArchivedFileSet( File archiveFile, String prefix ) throws ArchiverException { throw new UnsupportedOperationException( "not supported" ); } public void addArchivedFileSet( File archiveFile, String[] includes, String[] excludes ) throws ArchiverException { throw new UnsupportedOperationException( "not supported" ); } public void addArchivedFileSet( File archiveFile, String prefix, String[] includes, String[] excludes ) throws ArchiverException { throw new UnsupportedOperationException( "not supported" ); } public void setForced( boolean forced ) { throw new UnsupportedOperationException( "not supported" ); } public boolean isForced() { throw new UnsupportedOperationException( "not supported" ); } public boolean isSupportingForced() { throw new UnsupportedOperationException( "not supported" ); } public void setDotFileDirectory( File dotFileDirectory ) { } public void addArchivedFileSet( ArchivedFileSet fileSet ) throws ArchiverException { throw new UnsupportedOperationException( "not supported" ); } public void addFileSet( FileSet fileSet ) throws ArchiverException { throw new UnsupportedOperationException( "not supported" ); } public void addResource( PlexusIoResource resource, String destFileName, int permissions ) throws ArchiverException { throw new UnsupportedOperationException( "not supported" ); } public void addResources( PlexusIoResourceCollection resources ) throws ArchiverException { throw new UnsupportedOperationException( "not supported" ); } public ResourceIterator getResources() throws ArchiverException { return new ResourceIterator(){ public boolean hasNext() throws ArchiverException { return false; } public ArchiveEntry next() throws ArchiverException { throw new NoSuchElementException(); } }; } public String getDuplicateBehavior() { return Archiver.DUPLICATES_ADD; } public void setDuplicateBehavior( String duplicate ) { } public int getDirectoryMode() { throw new UnsupportedOperationException( "not supported" ); } public int getFileMode() { throw new UnsupportedOperationException( "not supported" ); } public int getOverrideDirectoryMode() { throw new UnsupportedOperationException( "not supported" ); } public int getOverrideFileMode() { throw new UnsupportedOperationException( "not supported" ); } public void setDirectoryMode( int mode ) { throw new UnsupportedOperationException( "not supported" ); } public void setFileMode( int mode ) { throw new UnsupportedOperationException( "not supported" ); } } } maven-assembly-plugin-2.2~beta5/src/test/resources/0000755000175000017500000000000011361635306022435 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/test/resources/assemblies/0000755000175000017500000000000011361635306024564 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/test/resources/assemblies/empty.xml0000644000175000017500000000000011306533772026435 0ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/site/0000755000175000017500000000000011361635317020412 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/site/site.xml0000644000175000017500000000544311236276642022111 0ustar twernertwerner maven-assembly-plugin-2.2~beta5/src/site/fml/0000755000175000017500000000000011361635317021170 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/site/fml/faq.fml0000644000175000017500000001645511236276642022455 0ustar twernertwerner If the Assembly Plugin is run during the package phase, do my assemblies get deployed during the deploy phase?

Yes. The assemblies created by the Assembly Plugin is attached to your project so it gets deployed too.

Can I use an artifact created by the assembly plugin as a dependency?

Yes. You can refer to it using the id of the assembly as the dependency classifier.

How do I use the Assembly Plugin to package my project's javadoc files?

The Javadoc Plugin can generate the javadoc files of your projects. Also, the Javadoc Plugin can package them!

Please see the Javadoc Plugin Documentation.

What goal should I use to create an assembly as part of my normal build process?

Use the single or directory-single goal.

Since the assembly, attached, directory, and directory-inline goals are all aggregators, they will execute at most once per execution of Maven. See Atypical+Plugin+Use+Cases (wiki) for more information on the problems associated with aggregator mojos.

The Assembly Plugin is saying it cannot find files for the module binaries included by my assembly descriptor. What gives?

If your assembly includes module binaries, those binaries won't be available to the assembly plugin except in special cases. This is normally seen when the Assembly Plugin is bound to a phase of the standard build lifecycle. It happens because of the way Maven sorts and executes the build process for a multimodule project layout.

In a multimodule hierarchy, when a child module declares the parent POM in its <parent/> section, Maven interprets this to mean that the parent project's build must be completed before the child build can start. This ensures that the parent project is in its final form by the time the child needs access to its POM information. In cases where the Assembly Plugin is included as part of that parent project's build process, it will execute along with everything else as part of the parent build - before the child build can start. If the assembly descriptor used in that parent build references module binaries, it effectively expects the child build to be completed before the assembly is processed. This leads to a recursive dependency situation, where the child build depends on the parent build to complete before it can start, while the parent build depends on the presence of child-module artifacts to complete successfully. Since these artifacts are missing, the Assembly Plugin will complain about missing artifacts, and the build will fail.

In many cases, you can avoid this problem by adding a new child module whose sole purpose is to produce your assembly. In the POM for this new project, add dependency definitions for any of the module binaries you had previously referenced. Then, move your assembly descriptor into this new child module, and change all module-binary references to dependencySet references. Obviously, any fileSet or file references you may have in this descriptor may need to be adjusted or have the files they reference moved into the new child module alongside the descriptor itself.

In cases where you absolutely must use module-binaries references, you should avoid binding your assembly into the main build lifecycle. Modify your POM so that the Assembly Plugin configuration is defined in the main the plugin declaration, then remove the executions block from that plugin declaration (which supplies the phase and goal specifications that create the lifecycle binding). Finally, to process this assembly, you'll need to execute something like this:

mvn package assembly:assembly

to force Maven to build the entire multimodule structure to the 'package' phase before attempting to process the assembly. This ensures the module artifacts are present to satisfy your module-binaries definitions.

I have a dependencySet that includes some artifacts with classifiers, and others without classifiers. How can I setup the file mappings to handle both cases appropriately?

The best way to handle a mixed bag of dependencies with and without classifiers is to use the ${dashClassifier?} expression, added in version 2.2-beta-2 of the assembly plugin especially for this purpose. This expression will determine whether each artifact has a classifier, and if it does, it will substitute the artifact's classifier - prepended by a dash - in place of the expression.

For example, suppose you want to include two artifacts, commons-logging-1.0.4.jar, and yourserver-1.0-client.jar (where 'client' is the classifier of the second artifact). To do this, simply add the following to your dependencySet:

<outputFileNameMapping>${artifact.artifactId}-${artifact.version}${dashClassifier?}.${artifact.extension}</outputFileNameMapping>
        
maven-assembly-plugin-2.2~beta5/src/site/apt/0000755000175000017500000000000011361635315021174 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/site/apt/advanced-descriptor-topics.apt0000644000175000017500000003663311236276642027142 0ustar twernertwerner --- Advanced Assembly-Descriptor Topics --- John Casey --- 1 December 2006 --- ~~ 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. ~~ NOTE: For help with the syntax of this file, see: ~~ http://maven.apache.org/doxia/references/apt-format.html Advanced Assembly-Descriptor Topics * Quick Note on All <<>> and <<>> Patterns <<>> take priority over <<>>. * Archive file resolution If two or more elements (e.g., file, fileSet) select different sources for the same file for archiving, only one of the source files will be archived. The assembly plugin decides which source will be archived according to the following behavior (as per 2.2-SNAPSHOT). * Case 1: Two fileSets each select a different source for the same archived file. For example, one fileSet selects <<>> and another selects <<>> to be archived as <<>>. In this case, assembly plugin archives the source file selected in the latter fileSet. Given these two fileSets, the plugin will archive the config.xml file from source2Dir. --- source1Dir config **/config.xml source2Dir config **/config.xml --- * Case 2: A fileSet and a file element each select a different source file for the same archived file. For example, the fileSet selects <<>> and the file selects <<>>; both to be archived as <<>>. In this case, the assembly plugin archives the item selected in the fileSet, not the file element. This rule is true despite the order in which the files and fileSets elements appear. For example, given these the following fileSet and file elemetns, the plugin will archive the config.xml file from source1Dir. --- source1Dir config **/config.xml source2Dir/config.xml config --- * Advanced Artifact-Matching in <<>> and <<>> When using <<>> or <<>>, the <<<\>>> and <<<\>>> sections actually apply to artifacts, not filenames. This can be a good thing, since you don't have to know the artifact's filename in the local repository. However, explicitly specifying the full artifact ID (consisting of groupId, artifactId, version, type, and classifier) for each artifact to be included or excluded can lead to very a verbose descriptor. Starting with version 2.2, the assembly plugin addresses the clumsiness of explicit artifact identification through the use of wildcard patterns. The following easy rules should be applied when specifying artifact-matching patterns: [[1]] Artifacts are matched by a set of identifier strings. In the following strings, <<>> is <<<'jar'>>> by default, and <<>> is omitted if null. * <<>> ( <<>> ) * <<>> ( <<>> ) * <<>> ( <<>> ) [] [[2]] Any <<<'*'>>> character in an include/exclude pattern will result in the pattern being split, and the sub-patterns being matched within the three artifact identifiers mentioned above, using <<>>. [[3]] When no <<<'*'>>> is present in an include/exclude pattern, the pattern will only match if the <> pattern equals one of the three artifact identifiers above, using the <<>> method. [[4]] In case you missed it above, artifact-identification fields are separated by colons (<<<':'>>>) in the matching strings. So, a wildcard pattern that matches any artifact of type <<<'war'>>> might be specified as <<<*:war>>>. [] ** Example: Include all dependencies of type <<<'war'>>> In this example, we'll configure a <<>> so it only includes those <<>> dependencies. --- [...] *:war [...] --- *** GOTCHA! In the above example, any <<>> artifacts that happen to have a classifier (not sure why this particular case would happen, but it possible) will be <>. If you want to be careful about catching all of the <<>> artifacts in your project, you might want to use the following pattern: --- *:war:* --- ** Example: Exclude all source-jar dependencies. In this example, we're dealing with the fact that project sources are often distributed using jar files, in addition to normal binaries. We want to filter out any source-jar files (they'll be marked with a <<>> classifier) from the binary jars. --- [...] *:jar:* *:sources [...] --- * Including Subversion Metadata Directories in a FileSet For most use cases, it's important to avoid adding metadata files from your source-control system, such as Subversion's <<<.svn>>> directories. Such metadata can increase the size of the resulting assembly vastly. By default, the assembly plugin will exclude metadata files for most common source-control systems from the <<>>s specified in the descriptor. On the other hand, what if you to include Subversion metadata directories? Starting with version 2.2, the assembly plugin offers the <<>> option on all <<>> elements, in order to accommodate this use case. ** Example: Bundle project sources for a developer-quickstart pack In this example, let's examine what happens if you have a large project in source control. This project contains a large number of sizable files that haven't changed since the day they were added, in the early stages of the project's lifetime. You want to enable potential developers to get started quickly, without checking out hundreds of 10-megabyte files first. The compression incorporated with many archiving formats can offer an advantage here. If we create a project assembly, including Subversion metadata directories, developers should be able to download the assembly artifact and expand it, then simply type <<>>. --- [...] false **/target/** [...] --- * Using Regular Expressions to Exclude Files <> Sometimes, you may find you need to specify an extremely fine-grained inclusion or exclusion pattern for a <<>>. In these cases, you have the option of specifying your pattern in the form of a regular expression by using the <<<%regex[...]>>> syntax. For completeness, the default pattern type - Ant-style patterns - can also be specified using the new <<<%ant[...]>>> syntax. This will allow room for future expansion of <<>> patterns, including the option to change the default pattern syntax someday. ** Example: Including directories named <<>> in the <<>> directory In this example, we want to produce a buildable source distribution of a Maven project hierarchy. Obviously, each project's <<>> directory is a temporary workspace for the build process, so we want to exclude these directories. However, if one or more of the projects also includes a subdirectory named <<>> in the <<>> directory structure - perhaps as part of a Java package name - we want to make sure the files in this directory are included in the assembly. --- [...] ${project.basedir} / %regex[(?!.*src/).*target.*] [...] [...] --- The above <<>> uses a somewhat obscure feature of regular expressions called , which means our exclude pattern will only match paths that contain the word <<>> but <> contain <<>>. Effectively, any <<>> directory within the <<>> directory structure will be preserved in the assembly. * Using Strict-Filtering to Catch Obsolete Patterns or Incorrect Builds At times, you want to build in a set of sanity checks when creating your assembly, to ensure that what goes into the assembly artifact is what you intended. One way you can do this is by enabling <<>> on your <<>>, <<>>, and <<>>. <<>> is a flag that tells the assembly plugin to track each include/exclude pattern to make sure it's used during creation of the assembly. This way, if the assembly-descriptor author intended for a particular file or artifact to be present, he can add an include/exclude pattern to the descriptor to ensure that file/artifact is present, and then set the <<>> flag. If the pattern isn't used to match at least one file during assembly creation, the build will fail and the user will receive a message notifying him of the unused patterns. ** Example: Ensuring the LICENSE.txt file is included in a jar In this example, we want to make sure that our project jar contains the project's open source license language, in order to be compliant with our software foundation's policies. --- [...] true META-INF LICENSE.txt [...] [...] --- If a developer inadvertently removes the LICENSE.txt from the project directory, the assembly plugin should refuse to build this assembly. * Using an Alternative Assembly Base Directory In many cases, assemblies should have all files arranged under one assembly base directory. This way, a user who expands the assembly will have all of the contents collected in a nice, neat directory structure, rather than spread throughout the current working directory. This is achieved using the <<>> flag, and this flag is set to <<>> by default, which will result in the project's <<>> being used as the assembly base directory. However, in some special cases you may want to use a different directory name for the root of your assembly. Starting in the 2.2 version of the assembly plugin, this use case is addressed using the <<>> element of the assembly descriptor. With this element, you can use POM expressions and static strings to specify the name of the assembly root directory. ** Example: Eclipse-style invariable directory name for the Maven assembly In this example, let's explore what would happen if we wanted Maven to use the Eclipse approach for naming the root directory in its distribution assemblies. This way, instead of expanding the distribution to find a new <<>> directory, you'd find a <<>> directory. Additionally, consider that the distribution assembly is currently built from the <<>> project, which means we shouldn't use the <<>> as part of the assembly root directory. --- [...] maven [...] --- Now, imagine that the distribution assembly were created in the top-level <<>> project. Now, we use the <<>>, and probably should, just to minimize the maintenance of these files. --- [...] ${artifactId} [...] --- * Advanced ModuleSet Topics One of the most complex sections of the assembly descriptor is the <<>> section. In fact, so many improvements have been made to this section that we feel it warrants its own <"Advanced Topics"> page. * Go to {{{./advanced-module-set-topics.html}Advanced Module-Set Topics}}. [] maven-assembly-plugin-2.2~beta5/src/site/apt/features.apt0000644000175000017500000000442711236276642023534 0ustar twernertwerner --- Features --- John Casey --- 12-May-2006 --- ~~ 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. ~~ NOTE: For help with the syntax of this file, see: ~~ http://maven.apache.org/doxia/references/apt-format.html Features The current version of this plugin can be found {{{./project-summary.html}here}}. * Inclusion of dependencies, modules <[2.1]>, file-sets, and individual files * Inclusion of project website documentation <[2.1]> * Flexible directory structures for assembly elements * All assembly inclusions controlled by include/exclude pattern sets * Option to unpack artifact files into the assembly <[deprecated in 2.2]> * Project modules can be included as source files or in binary form <[2.1]> * Reusable assembly-descriptor components <[2.1]> * Supported archive formats include: zip, tar, tar.gz, tar.bz2, jar, dir, war (and any other format that the ArchiveManager has been configured for). * Directory-only assemblies * Filtering and line-ending conversion for file-sets and individual files * Directory and file attributes () <[2.1]> * Artifact filename mapping with expression support <[2.1]> * Descriptor interpolation using current project and other assembly descriptor information <[2.1]> * Embedded Maven repository creation with artifact version alignment <[2.1]> * Security / signature information stripped from embedded artifacts prior to inclusion <[2.1]> [] maven-assembly-plugin-2.2~beta5/src/site/apt/descriptor-refs.apt0000644000175000017500000001602411236276642025025 0ustar twernertwerner ------ Predefined Assembly Descriptors ------ Johnny R. Ruiz III Edwin Punzalan John Casey ------ 2 November 2006 ------ ~~ 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. ~~ NOTE: For help with the syntax of this file, see: ~~ http://maven.apache.org/doxia/references/apt-format.html Pre-defined Descriptor Files As of version 2.2, there are now four predefined descriptor formats available for reuse, packaged within the Assembly Plugin, instead of the original three. Their descriptorIds are: * {{{#bin}bin}} - can be used for general assembly of binary packages. * {{{#jar-with-dependencies}jar-with-dependencies}} - can be used for general assembly of a binary package with all the dependency libraries included unpacked inside the archive. * {{{#src}src}} - can be used for general assembly of a source archive which can be used to build your project. * {{{#project}project}} - <>, this is used to create an assembly of the entire source project, including the Maven POM and other files outside of your source directory structure, but excluding all SCM files and the target directory. <> If you use an output directory other than /target, this descriptorRef may include the output from your build process. * {bin} Use <<>> as the <<>> of your assembly-plugin configuration in order to create a binary distribution archive of your project. This built-in descriptor produces an assembly with the classifier <<>> in three archive formats: tar.gz, tar.bz2, and zip. The assembled archive contains the binary jar produced by running <<>> plus any README, LICENSE, and NOTICE files available in the project root directory. Below is the <<>> descriptor format: ----- bin tar.gz tar.bz2 zip ${project.basedir}/README* ${project.basedir}/LICENSE* ${project.basedir}/NOTICE* ${project.build.directory} *.jar ------ * {jar-with-dependencies} Use <<>> as the <<>> of your assembly-plugin configuration in order to create a jar archive which contains the binary output of your project, along its the unpacked dependencies. This built-in descriptor produces an assembly with the classifier <<>> using the jar archive format. Below is the <<>> descriptor format: ----- jar-with-dependencies jar false true runtime ${project.build.outputDirectory} ----- * {src} Use <<>> as the <<>> in your assembly-plugin configuration to create source archives for your project. The archive will contain the contents of your project's <<>> directory structure, for referency by your users. The <<>> descriptorId produces an assembly archive with the classifier <<>> in three formats: tar.gz, tar.bz2, and zip. Below is the <<>> descriptor format: ----- src tar.gz tar.bz2 zip ${project.basedir}/README* ${project.basedir}/LICENSE* ${project.basedir}/NOTICE* ${project.basedir}/pom.xml true ${project.basedir}/src true ----- * {project} Using the <<>> <<<\>>> in your assembly plugin configuration will produce an assembly containing your entire project, minus any build output that lands in the <<>> directory. The resulting assembly should allow your users to build your project using Maven, Ant, or whatever build system you have configured in your project's normal SCM working directory. It produces assemblies with the classifier <<>> in three archive formats: tar.gz, tar.bz2, and zip. The following is the assembly descriptor for the <<>> descriptorRef: --- project tar.gz tar.bz2 zip ${project.basedir} true ${project.build.directory}/** --- maven-assembly-plugin-2.2~beta5/src/site/apt/index.apt0000644000175000017500000001467011236276642023026 0ustar twernertwerner --- Introduction --- John Casey Edwin Punzalan --- 2 November 2006 --- ~~ 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. ~~ NOTE: For help with the syntax of this file, see: ~~ http://maven.apache.org/doxia/references/apt-format.html Maven Assembly Plugin ~~ * Status ~~ ~~ <> ~~ * Introduction Do you want to create a binary distribution from a Maven project that includes supporting scripts, configuration files, and all runtime dependencies? You need to use the Assembly Plugin to create a distribution for your project. This plugin generates "assemblies". It is the equivalent of the Maven 1 distribution plug-in. This plugin provides the capability to create binary and source distributions. These distributions (assemblies) are defined using an assembly descriptor. You can write your own {{{./assembly.html}descriptor}} to create a custom assembly, or you can reuse one of the three {{{./descriptor-refs.html}pre-defined assemblies}}. Currently it can create distributions in the following formats: * zip * tar.gz * tar.bz2 * jar * dir * war * and any other format that the ArchiveManager has been configured for To use the Assembly Plugin in Maven 2, you simply need to: * choose or write the assembly descriptor to use, * configure the Assembly Plugin in your project's pom.xml, and * run "mvn assembly:assembly" on your project. To write your own custom assembly, you will need to refer to the {{{./assembly.html}Assembly Descriptor Format}} reference. What is an Assembly? An "assembly" is a group of files, directories, and dependencies that are assembled into an archive format and distributed. For example, assume that a Maven project defines a single JAR artifact that contains both a console application and a Swing application. Such a project could define two "assemblies" that bundle the application with a different set of supporting scripts and dependency sets. One assembly would be the assembly for the console application, and the other assembly could be a Swing application bundled with a slightly different set of dependencies. The Assembly Plugin provides a descriptor format which allows you to define an arbitrary assembly of files and directories from a project. For example, if your Maven 2 project contains the directory "src/main/bin", you can instruct the Assembly Plugin to copy the contents of this directory to the "bin" directory of an assembly and to change the permissions of the files in the "bin" directory to UNIX mode 755. The parameters for configuring this behavior are supplied to the Assembly Plugin by way of the {{{./assembly.html}assembly descriptor}}. The Maven Assembly Plugin The Assembly Plugin for Maven 2.0 is primarily intended to allow users to aggregate the project output along with its dependencies, modules, site documentation, and other files into a single distributable archive. Your project build can build distribution assemblies easily, using one of the convenient, prefabricated assembly descriptors. These descriptors handle many common operations, such as packaging a project's artifact along with its dependencies in a single jar. Alternatively, your project can provide its own descriptor and assume a much higher level of control over how dependencies, modules, file-sets, and individual files are packaged in the assembly. * Goals For more information about the goals that are available in the Assembly Plugin, see {{{./plugin-info.html}the plugin documentation page}}. * Assembly Descriptor Schemas (XSD) * {{{http://maven.apache.org/xsd/assembly-1.1.1.xsd}http://maven.apache.org/xsd/assembly-1.1.1.xsd}} (for version 2.2-beta-4 and higher) * {{{http://maven.apache.org/xsd/assembly-1.1.0.xsd}http://maven.apache.org/xsd/assembly-1.1.0.xsd}} (for version 2.2-beta-3 and lower) * {{{http://maven.apache.org/xsd/assembly-1.0.0.xsd}http://maven.apache.org/xsd/assembly-1.0.0.xsd}} (for versions 2.1 and lower) [] * Usage General instructions on how to use the Assembly Plugin can be found on the {{{./usage.html}usage page}}. Some more specific use cases are described in the examples given below. Last but not least, users occasionally contribute additional examples, tips or errata to the {{{http://docs.codehaus.org/display/MAVENUSER/Assembly+Plugin}plugin's wiki page}}. In case you still have questions regarding the plugin's usage, please have a look at the {{{./faq.html}FAQ}} and feel free to contact the {{{./mail-lists.html}user mailing list}}. The posts to the mailing list are archived and could already contain the answer to your question as part of an older thread. Hence, it is also worth browsing/searching the {{{./mail-lists.html}mail archive}}. If you feel like the plugin is missing a feature or has a defect, you can fill a feature request or bug report in our {{{./issue-tracking.html}issue tracker}}. When creating a new issue, please provide a comprehensive description of your concern. Especially for fixing bugs it is crucial that the developers can reproduce your problem. For this reason, entire debug logs, POMs or most preferably little demo projects attached to the issue are very much appreciated. Of course, patches are welcome, too. Contributors can check out the project from our {{{./source-repository.html}source repository}} and will find supplementary information in the {{{http://maven.apache.org/guides/development/guide-helping.html}guide to helping with Maven}}. * Examples To provide you with better understanding on some usages of the Assembly Plugin, you can take a look into the examples which can be found {{{./examples/index.html}here}}. maven-assembly-plugin-2.2~beta5/src/site/apt/advanced-module-set-topics.apt0000644000175000017500000004274511236276642027043 0ustar twernertwerner --- Advanced Module-Set Topics --- John Casey --- 1 December 2006 --- ~~ 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. ~~ NOTE: For help with the syntax of this file, see: ~~ http://maven.apache.org/doxia/references/apt-format.html Advanced Module-Set Topics * Quick Note Some of the topics in this document refer to more general topics or improvements in the assembly descriptor as a whole. For more information, see the {{{./advanced-descriptor-topics.html}Advanced Assembly-Descriptor Topics}} page. * Including and Excluding Modules using a ModuleSet As you are no doubt aware, Maven 2.0 introduces advanced handling of multimodule builds. These are builds which contain multiple, often interrelated projects. In these builds, project hierarchy is established through use of the <<>> section of the POM, where parent POMs specify their children in a <<>> section. Other relationships, like interdependency, also exist within multimodule builds; however, these are beyond the scope of this document. When constructing an assembly from any parent-level project in a multimodule build, it's possible to process this parent-POM's descendent modules, and include them in some form within the resulting assembly artifact. By default, the entire module hierarchy below the current project is available for inclusion or exclusion. Also, include/exclude patterns for modules are matched using the artifact-matching rules explained in the <> document. The following examples describe how to select certain modules in the project hierarchy using basic artifact includes/excludes. It does <> describe what to do with the selected modules; to learn about the actions available for selected modules, see {{including module sources}} and {{including module binaries}} below. For other, more advanced module-handling options, read on! ** Example: Select one from a set of child projects Given the following project structure, and all appropriate module references in the parent POM: --- + parent (groupId: org.test, artifactId: parent) | + child1 (groupId: org.test, artifactId: child1) | + child2 (groupId: org.test, artifactId: child2) --- We can select <> the child1 module using the following <<>>: --- [...] [...] org.test:child1 [...] --- ~~ [jdcasey] TODO: Amend this once we've handled the case where you want to process ~~ the entire inheritance/dependency trail. We'll need a flag to say "Include ~~ my ancestry when matching for includes/excludes", and have that apply ~~ appropriately to the transitive dependency trail in a dependencySet, or a ~~ module hierarchy in a moduleSet. * Quick Note on <<>> within ModuleSets When used from within a <<>>, all <<>> configurations with expressions like <<<$\{artifactId\}>>> ** Example: Setting <<>> from <<>> Given a module with the following: --- Group Id: org.test Artifact Id: project Version: 1.0.1 Type: jar --- The following <<>>: --- ${module.groupId}-${module.artifactId}-${module.version}.${module.extension} --- Will result in a file called <<>> being created within the assembly. >> is mapped to the file extension supplied by the ArtifactHandler for the type <<>>. It's important to remember that the file extension <>.> * {Including Module Sources} Once you've selected certain modules to be included in the assembly, you have to determine what you want included from each module. This usually depends on the purpose of the assembly. For instance, if you're building a binary assembly, for use in a runtime context, you probably want to include module binaries only (see the {{Including Module Binaries}} section below). However, if your assembly is meant to include project sources, either as a reference or to allow users to build your project (or for some other reason altogether), then you're probably interested in the <<>> section of the <<>>. Processing module sources is a fileSet-based activity. That is, sources are included or excluded based on file-matching patterns, or explicit <<>> subsections. <>, the <<<\>>> section itself supports <<>> and <<>> that can help determine which files from a module's directory should be processed. Starting in version 2.2 of the assembly plugin, the <<<\>>> section supports a <<<\>>> subsection, which is the preferred way of selecting module-source files for processing. ** Example: including the <<>> directory from each selected module In this example, we'll explore how to include the <<>> directory <> for each module selected by the moduleSet. This is useful to provide a source reference for your project to users. --- [...] [...] [...] src --- ** Example: Including a buildable project directory for each selected module In this example, we'll explore how to include an entire buildable project directory, for each selected module, within your assembly. This is useful to give your users the chance to tinker with your project, then build it on their own. --- [...] [...] [...] target/** --- ** Consolidating All Module Sources into a Single Directory Structure Normally, each module processed by the assembly plugin is placed within its own directory structure inside the assembly root directory. For module sources, the default name of this module-specific directory is the module's <<>>. However, in some cases you may want to consolidate module sources into the same directory structure, based in the assembly root directory. To do this, simply set the <<>> flag to <<>>. *** Example: Copy all module sources into a single <<>> directory When providing a source reference to users, you may want to produce a single, consolidated source directory containing all of the source files from your multimodule hierarchy. --- [...] [...] [...] false src src/** --- ** Excluding Modules of Modules from Direct Assembly Processing When dealing with project sources in a complex multimodule build consisting of several layers of module groupings, it's sometimes desirable to process only the top layer of modules, and provide <<>> specifications to handle sub-modules. This can make it much easier to preserve the project-directory structure, since it doesn't force all modules - regardless of their location within the project hierarchy - through a flat module-processing mechanism. Processing only the first level of modules is the default configuration for the <<>> section of a <<>>. To explicitly process modules of modules - sub-modules, that is - simply use the <<>> flag, set to <<>>. *** Example: Providing a shallow source-directory structure for reference Consider the case where you want to preserve the context of all source files within your project hierarchy, according to the project in which they belong. At the same time, you want to avoid confusing users with a complex nesting of projects within projects, and present a simple list of projects to browse. If your project hierarchy looks like this: --- + application | + src | + project1 | | | + src | | | + project1-child1 | | | | | + src | | | + project1-child2 | | | | | + src | + project2 | + src | + project2-child1 | + src --- You may want it to look like this in the resulting assembly: --- + application | | | + src | + project1 | | | + src | + project1-child1 | | | + src | + project1-child2 | | | + src | + project2 | | | + src | + project2-child1 | + src --- To accomplish this restructuring, simply use the <<>> flag, as follows: --- [...] [...] [...] false src/** --- * {Including Module Binaries} *WARNING!* Using the <<>> section of a <<>> definition involves some tricky considerations that are a result of the way Maven sorts and executes project builds within a multimodule context. Please read {{{./faq.html#module-binaries}this FAQ entry}} if you decide to use them. In cases where your assembly artifact is meant to be used in a runtime context, you'll most likely want to include the binaries from any modules processed by the assembly plugin. This can be as simple as adding the module's jar artifact to your assembly archive; or, it can involve selectively including the dependencies of that module in addition to the module's own jar. At any rate, processing module binaries is an artifact-based activity. Accordingly, selection of the appropriate artifacts for a given module follows the artifact inclusion rules explained in the <> document. Once you've selected artifacts should be processed for a particular module, you have several options for to process them. In its simplest form, the <<>> section of a <<>> has many of the same characteristics as a <<>>. That is, you have the option to specify an <<>>, and you can choose whether to unpack the artifact(s) - the default action will unpack them. ** Processing a Module's Attachment Artifacts Sometimes it's important to have the option to add artifacts from a module that are not the main project artifact. Such artifacts might include javadocs, project sources, or even other assembly artifacts. *** Example: Including other assemblies within the current assembly Suppose we have the following project structure: --- + application | + app-db | + app-web | + app-site --- Further, suppose that the assembly plugin is currently executing at the <<>> level, but that another assembly archive has been created previously for the <<>> project. This other assembly archive is a zip file containing the project website. We want to include a copy of this website in the application distribution assembly, which we are creating now. Finally, suppose that the website-attachment has a classifier of <<>> taken from the assemblyId. Since the zipfile containing the website produced by <<>> is an attached artifact in that module, we'll need to extract that artifact instead of the main project artifact. --- [...] *:app-site site doc website.${module.extension} [...] --- ** Excluding Module Dependencies Just like any binary, modules usually have runtime dependencies, without which they will simply fail to execute. By default, module dependencies are included when the module itself is included. However, as we saw in the above example, there are times when this may not be appropriate. In the above example, the module binary included was an assembly artifact that contained the website for the application. Other assemblies might embody a completely self-contained version of the module's binaries, with all dependency classes unpacked and inlined within the archive. In short, sometimes we want to turn off automatic dependency inclusion. We can achieve this by setting the <<>> flag to <<>>. *** Example: Including a <<>> module assembly Suppose we have the following project structure: --- + application | + app-db | + app-web --- Further, suppose that the assembly plugin is currently executing at the <<>> level, but that another assembly archive has been created previously for the <<>> project using the built-in <<>> assembly descriptor. This assembly archive contains all of the module dependencies, so it's not necessary to include this module's dependencies in the current assembly. --- [...] *:app-db jar-with-dependencies lib ${module.artifactId}-${module.version}-${module.classifier}.${module.extension} [...] --- >> section still accommodates direct <<<\>>> and <<<\>>> subsections, for specifying which module-dependencies to include in the assembly. However, these are deprecated, and only provided for backward compatibility.> maven-assembly-plugin-2.2~beta5/src/site/apt/examples/0000755000175000017500000000000011361635316023013 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/site/apt/examples/multimodule/0000755000175000017500000000000011361635316025353 5ustar twernertwerner././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/site/apt/examples/multimodule/module-binary-inclusion-simple.apt.vmmaven-assembly-plugin-2.2~beta5/src/site/apt/examples/multimodule/module-binary-inclusion-simple.apt0000644000175000017500000001230211236276204034114 0ustar twernertwerner ------ Including Module Binaries ------ John Casey ------ 05-May-2006 ------ ~~ 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. ~~ NOTE: For help with the syntax of this file, see: ~~ http://maven.apache.org/doxia/references/apt-format.html Including Module Binaries * Warning *WARNING!* Using the <<>> section of a <<>> definition involves some tricky considerations that are a result of the way Maven sorts and executes project builds within a multimodule context. Please read {{{faq.html#module-binaries}this FAQ entry}} if you decide to use them. * Introduction It is common practice to create an assembly using the parent POM of a multimodule build. At times, you may want to ensure that this assembly also includes one or more of the module binaries. This example demonstrates how to include the artifact and dependencies of a module, under the directory <<>>>. * The Assembly Descriptor First, let's write an assembly descriptor to create this assembly. For the sake of clarity, this descriptor will be as simple as possible, only demonstrating the features described by this example. +---+ bin dir false org.test:child1 modules/${artifactId} false +---+ This descriptor states that the assembly id should be <<>>, that the output format is a directory, and that the contents of the assembly should <> be contained within a directory named after the finalName of the top-level project. Furthermore, it states that we wish to include the artifact files for the module with a groupId of <<>> and an artifactId of <<>>, along with its dependency artifacts. These artifacts should be contained within the directory structure <<>> for this module, since the outputDirectory expression will be interpolated on a module-by-module basis. * The POM Now, let's review the POM configuration necessary to enable the building of this assembly via the mojo: +---+ 4.0.0 org.test parent 1.0 pom Parent child1 child2 child3 maven-assembly-plugin ${project.version} src/assemble/bin.xml +---+ This POM simply directs the Assembly Plugin to use the <<>> assembly descriptor when executing. * Execute! To build the assembly, we issue the following command: +---+ mvn clean package assembly:directory +---+ This will ensure that the output directory (normally, <<>>), is removed before building the assembly directory. <> Because of a quirk in Maven 2.0's execution model relating to aggregator mojos and the inheritance hierarchy, we need to explicitly execute the package phase ahead of the assembly invocation, to ensure all modules have been built. * Examining the Output When the Maven execution completes, the following directory structure should be left: +---+ target/parent-1.0-bin `-- modules `-- child1 |-- child1-1.0.jar `-- junit-3.8.1.jar +---+ maven-assembly-plugin-2.2~beta5/src/site/apt/examples/multimodule/index.apt0000644000175000017500000000253411236276642027200 0ustar twernertwerner --- Multi-Module Examples --- Edwin Punzalan --- 24-July-2006 --- ~~ 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. ~~ NOTE: For help with the syntax of this file, see: ~~ http://maven.apache.org/doxia/references/apt-format.html Multi-Module Examples Multimodule Projects use \ in their assemblies. The examples below may be able to help you when creating assemblies for your multimodule project. * {{{./module-source-inclusion-simple.html}Adding Module Sources to the Assembly}} * {{{./module-binary-inclusion-simple.html}Adding Module Binaries to the Assembly}} [] ././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/site/apt/examples/multimodule/module-source-inclusion-simple.apt.vmmaven-assembly-plugin-2.2~beta5/src/site/apt/examples/multimodule/module-source-inclusion-simple.apt0000644000175000017500000001156511236276204034142 0ustar twernertwerner ------ Including Module Sources ------ John Casey ------ 05-May-2006 ------ ~~ 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. ~~ NOTE: For help with the syntax of this file, see: ~~ http://maven.apache.org/doxia/references/apt-format.html Including Module Sources * Introduction It is common practice to create an assembly using the parent POM of a multimodule build. At times, you may want to ensure that this assembly also includes the source code from one or more of the modules in this build. This example demonstrates how to include the project sources from a module in the project assembly, under the directory <<>>>. * The Assembly Descriptor First, let's write an assembly descriptor to create this assembly. For the sake of clarity, this descriptor will be as simple as possible, only demonstrating the features described by this example. +---+ src dir false org.test:child1 sources/${artifactId} +---+ This descriptor states that the assembly id should be <<>>, that the output format is a directory, and that the contents of the assembly should <> be contained within a directory named after the finalName of the top-level project. Furthermore, it states that we wish to include the source files for the module with a groupId of <<>> and an artifactId of <<>>. These sources should be contained within the directory structure <<>> for this module, since the outputDirectory expression will be interpolated on a module-by-module basis. * The POM Now, let's review the POM configuration necessary to enable the building of this assembly via the mojo: +---+ 4.0.0 org.test parent 1.0 pom Parent child1 child2 child3 maven-assembly-plugin ${project.version} src/assemble/src.xml +---+ This POM simply directs the Assembly Plugin to use the <<>> assembly descriptor when executing. * Execute! To build the assembly, we issue the following command: +---+ mvn clean assembly:directory +---+ This will ensure that the output directory (normally, <<>>), is removed before building the assembly directory. * Examining the Output When the Maven execution completes, the following directory structure should be left: +---+ target/parent-1.0-src/ `-- sources `-- child1 |-- pom.xml `-- src |-- main | `-- java | `-- org | `-- test | `-- App.java `-- test `-- java `-- org `-- test `-- AppTest.java +---+ maven-assembly-plugin-2.2~beta5/src/site/apt/examples/single/0000755000175000017500000000000011361635316024274 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/site/apt/examples/single/index.apt0000644000175000017500000000267711236276642026131 0ustar twernertwerner --- Single Project Examples --- Edwin Punzalan --- 24-July-2006 --- ~~ 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. ~~ NOTE: For help with the syntax of this file, see: ~~ http://maven.apache.org/doxia/references/apt-format.html Single Project Examples A Single Project is a project whose assemblies does not use \. The examples below may help you in creating assemblies for your single projects. * {{{./filtering-some-distribution-files.html}Filtering Some Distribution Files}} * {{{./including-and-excluding-artifacts.html}Including/Excluding Artifacts}} * {{{./using-components.html}Using Component Descriptors}} * {{{./using-repositories.html}Using Repositories}} ././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/site/apt/examples/single/filtering-some-distribution-files.apt.vmmaven-assembly-plugin-2.2~beta5/src/site/apt/examples/single/filtering-some-distribution-files.apt.v0000644000175000017500000001305711236276204034013 0ustar twernertwerner ------ Filtering Some Distribution Files ------ Edwin Punzalan ------ 26-July-2006 ------ ~~ 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. ~~ NOTE: For help with the syntax of this file, see: ~~ http://maven.apache.org/doxia/references/apt-format.html Filtering Some Distribution Files * Introduction File filtering is used to substitute variable fields from inside a file to their represented values. For the Assembly Plugin, and most Maven filtering procedures, these variables are enclosed between $\{ and \}. For example, before a file is filtered, it contains <<<$\{project.artifactId\}>>>. But after filtering is complete, a new file is created with the project's <<>> substituting <<<$\{project.artifactId\}>>> and that this new file is used instead of the original one. Although filtering can be done during the process-resources phase, not all files going into your distribution will be coming from a project resource. Thus, the Assembly Plugin allows filtering of files before copying them into the created assembly. This example demonstrates how to filter files before adding them into the assembly. In this example, we need to filter distribution files into the archive. The files included in the distribution are: * README.txt * LICENSE.txt * NOTICE.txt [] All the above files are in the root directory of the project but only the README and the NOTICE files should be filtered. The property file used to filter these are files is found in <<>>. A property file is a file which contains the names of the variables and their corresponding string value. The format of its contents is identical to how Java Property files are saved. Below is an example of a property file: +--- # lines beginning with the # sign are comments variable1=value1 variable2=value2 +--- * The Assembly Descriptor Filtering is only enabled inside \ so that's what we will use. Thus, our assembly descriptor will be: +----- distribution jar README.txt / true LICENSE.txt / NOTICE.txt / true +----- The above descriptor tells the Assembly Plugin to filter both the README.txt and the NOTICE.txt files and to just copy the LICENSE.txt file. Alternatively, if there are many .txt files to include inside \, we can setup both \ and \ like so: +----- distribution jar ${basedir} *.txt README.txt NOTICE.txt README.txt / true NOTICE.txt / true +----- The above descriptor adds all .txt files to the assembly but filters README.txt and NOTICE.txt files. * The POM The configuration of the Assembly Plugin inside pom.xml should not be different from the others, except for the configuration of the filter file, so: +----- [...] [...] [...] maven-assembly-plugin ${project.version} src/assemble/filter.properties src/assemble/distribution.xml [...] +----- * Generating The Assembly To generate the distribution assembly, we then use: +----- mvn assembly:assembly +----- maven-assembly-plugin-2.2~beta5/src/site/apt/examples/single/using-repositories.apt.vm0000644000175000017500000001001511236276204031270 0ustar twernertwerner ------ Using Repositories ------ Edwin Punzalan ------ 26-July-2006 ------ ~~ 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. ~~ NOTE: For help with the syntax of this file, see: ~~ http://maven.apache.org/doxia/references/apt-format.html Using Repositories * Introduction The Assembly Plugin allows the inclusion of needed artifacts from your local repository to the generated archive. They are copied into the assembly in a directory similar to what's in your remote repository, complete with metadata and the checksums. This example demonstrates the creation of repository artifacts in an assembly so that the archive can easily be used to update an internal repository with the artifacts used by your project. * The Assembly Descriptor A functional repository archive for your project can be created with: +----- repository jar true maven2 +----- The above descriptor tells the Assembly Plugin to create a repository-like directory structure inside the <<>> directory from within the generated archive. Setting <<>> to <<>> will make the plugin to also copy metadata information into the generated archive. * The POM The pom.xml for your project is very similar to how you configure the Assembly Plugin for other distribution types. +----- [...] [...] [...] maven-assembly-plugin ${project.version} src/assemble/repository.xml [...] +----- * Generating The Assembly Archive The assembly archive is then created using: +----- mvn assembly:assembly +----- The generated archive can be extracted to an internal repository so users of your project can download the dependencies from it. * Examining the Output When the Maven execution completes, the archive contents should be similar to: +----- target/artifactId-version-repository.jar `-- maven2 |-- groupId | |-- maven-metadata.xml | |-- maven-metadata.xml.md5 | |-- maven-metadata.xml.sha1 | `-- artifactId | |-- maven-metadata.xml | |-- maven-metadata.xml.md5 | |-- maven-metadata.xml.sha1 | `-- version | |-- artifactId-version.jar | |-- artifactId-version.jar.md5 | |-- artifactId-version.jar.sha1 | |-- artifactId-version.pom | |-- artifactId-version.pom.md5 | |-- artifactId-version.pom.sha1 | |-- maven-metadata.xml | |-- maven-metadata.xml.md5 | `-- maven-metadata.xml.sha1 `-- groupId2 `-- [...] +----- maven-assembly-plugin-2.2~beta5/src/site/apt/examples/single/using-components.apt.vm0000644000175000017500000001442511236276204030737 0ustar twernertwerner ------ Using Component Descriptors ------ Edwin Punzalan ------ 24-July-2006 ------ ~~ 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. ~~ NOTE: For help with the syntax of this file, see: ~~ http://maven.apache.org/doxia/references/apt-format.html Using Component Descriptors * Introduction Suppose you have a project which will be distributed in two forms: one for use with appserver A and another for appserver B. And as customization for these two servers, you need to exclude some dependencies which are not used by the appserver you will be distributing. <> inside \ may provide the result we want, it is not recommended because if a new appserver becomes available, you will have to maintain the excludes of the other distributions to exclude dependencies meant for the new appserver.> This example demonstrate the use of \, more information can be found {{{../../assembly.html}here}}. * The Assembly Descriptors First, let's write the assembly descriptor for appserver A distribution. It should like this: +----- appserverA zip /lib application:logging application:core application:utils application:appserverA +----- The assembly descriptor for appserver B distribution would then be similar: +----- appserverB zip /lib application:logging application:core application:utils application:appserverB +----- From the two descriptors shown, we can say that there are three artifacts common for both, thus we separate them into a common component descriptor and save it as <<>>. Its contents would be: +----- /lib application:logging application:core application:utils +----- Then the final assembly descriptor for the appserver A would be: +----- appserverA zip src/assemble/component.xml /lib application:appserverA +----- And the corresponding assembly descriptor for the appserver B then would be: +----- appserverB zip src/assemble/component.xml /lib application:appserverB +----- * The POM Now we should update the POM configuration of the project for the Assembly Plugin, which should look like: +----- [...] [...] [...] maven-assembly-plugin ${project.version} src/assemble/appserverA-assembly.xml src/assemble/appserverB-assembly.xml [...] +----- * Creating The Distributions Since we didn't configure the assembly plugin to always generate the configured assemblies during the project's normal build lifecycles, we create the distributions by: +----- mvn assembly:assembly +----- maven-assembly-plugin-2.2~beta5/src/site/apt/examples/single/including-and-excluding-artifacts.apt0000644000175000017500000000512511014060171033441 0ustar twernertwerner --- Including and Excluding Artifacts --- Barrie Treloar --- 31-July-2006 --- ~~ Copyright 2006 The Apache Software Foundation. ~~ ~~ Licensed 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. ~~ NOTE: For help with the syntax of this file, see: ~~ http://maven.apache.org/doxia/references/apt-format.html Including and Excluding Artifacts Currently the include/exclude format is based upon the dependency conflict id which has a form of: <<>>. A shortened form of the dependency conflict id may also be used <<>>. The check for inclusion/exclusion is done based on either the dependency conflict id or the shortened form as a <<>> so it must be an identical match for it to be included or excluded. At present there is no support for regular expressions. This example excludes the log4j and commons-lang jar files from the assembly. This would be useful when you are building a super distribution assembly which contained sub distributions (i.e. other already assembled zips or tars) where in your pom you are depenedent upon those distributions. But because the distributions transitively depend upon the project's dependencies the assembly also includes the jar files (which are already in the assemblies and don't need to be duplicated) Your pom might include something like: ----- YOUR GROUP YOUR ARTIFACT YOUR VERSION bin zip ----- And then in your assembly you exclude all the jar dependencies pulled in from the binary assembly. In this example the commons-lang and log4j jars are included unnecessarily (as they are in the bin.zip file already) ----- .... commons-lang:commons-lang log4j:log4j .... ----- maven-assembly-plugin-2.2~beta5/src/site/apt/examples/sharing-descriptors.apt.vm0000644000175000017500000001045611236276204030140 0ustar twernertwerner ------ Sharing Assembly Descriptors ------ Dennis Lundberg ------ 2008-11-03 ------ ~~ 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. ~~ NOTE: For help with the syntax of this file, see: ~~ http://maven.apache.org/doxia/references/apt-format.html Sharing Assembly Descriptors So you have created an assembly descriptor that you feel is so good that you want to share it between several of your projects. The simplest way to solve this problem is to create a separate project for your assembly descriptor. Let's call the project . * The Shared Assembly Descriptor Project Here's what the directory structure for that project looks like: +---+ my-assembly-descriptor +-- src | `-- main | `-- resources | `-- assemblies | `-- myassembly.xml `-- pom.xml +---+ There are just two files in this project: your assembly descriptor <<>> and a <<>>. First let's check out the POM for the Shared Assembly Descriptor Project. It is quite simple: +---+ 4.0.0 your.group.id my-assembly-descriptor 1.0-SNAPSHOT Shared Assembly Descriptor +---+ Next let's look at our shared assembly descriptor. This is just an example. Replace it with the assembly descriptor you want to share. +---+ my-assembly-descriptor-id jar pom.xml true src true +---+ Run '<<>>' on this project to install the Shared Assembly Descriptor project into your local repository. * The Project Using the Shared Assembly Descriptor In the project that wants to use our Shared Assembly Descriptor, you need to add <<>> as a dependency on the Assembly Plugin. This makes our assembly descriptor available for the Assembly Plugin to use. +---+ your.group.id my-project 1.0-SNAPSHOT 4.0.0 ... maven-assembly-plugin ${project.version} your.group.id my-assembly-descriptor 1.0-SNAPSHOT make-assembly package single myassembly.xml ... ... +---+ maven-assembly-plugin-2.2~beta5/src/site/apt/examples/index.apt0000644000175000017500000000347311236276642024643 0ustar twernertwerner --- Examples --- John Casey --- 2008-11-03 --- ~~ 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. ~~ NOTE: For help with the syntax of this file, see: ~~ http://maven.apache.org/doxia/references/apt-format.html Examples * Table of Contents Below, you will see a series of examples showing how to use the Assembly Plugin in various contexts. * {{{./single/index.html}Working with Single Projects}} * {{{./single/filtering-some-distribution-files.html}Filtering Some Distribution Files}} * {{{./single/including-and-excluding-artifacts.html}Including/Excluding Artifacts}} * {{{./single/using-components.html}Using Component Descriptors}} * {{{./single/using-repositories.html}Using Repositories}} [] * {{{./multimodule/index.html}Working with Multi-Module Projects}} * {{{./multimodule/module-source-inclusion-simple.html}Adding Module Sources to the Assembly}} * {{{./multimodule/module-binary-inclusion-simple.html}Adding Module Binaries to the Assembly}} [] * {{{./sharing-descriptors.html}Sharing Assembly Descriptors}} [] maven-assembly-plugin-2.2~beta5/src/site/apt/usage.apt.vm0000644000175000017500000003414211236276204023432 0ustar twernertwerner ------ Configuration and Usage ------ John Casey ------ 2 November 2006 ------ ~~ 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. ~~ NOTE: For help with the syntax of this file, see: ~~ http://maven.apache.org/doxia/references/apt-format.html Configuration and Usage * Introduction This document is intended to provide instructions for using the maven-assembly-plugin. In order for this discussion to be useful, it's critical to cover two topics: configuration of the plugin - both inside the POM and, where possible, from the command line - and the different execution styles. For the sake of clarity, we'll cover configuration before execution. * Configuring the Assembly Plugin Getting started with the Assembly Plugin is pretty simple. If you're using one of the prefabricated assembly descriptors, you just tell it which one; if you're using a custom assembly descriptor, you give it the path to the descriptor. Note that a single invocation of the Assembly Plugin can actually produce assemblies from multiple descriptors, allowing you maximum flexibility to customize the suite of binaries your project produces. When the assembly is created it will use the assemblyId as the artifact's classifier and will attach the created assembly to the project and will be uploaded into the repository on an install and deploy goal. For example, imagine that our project produces a jar. If we want to create an assembly binary that includes our project's dependencies, we can take advantage of one of the Assembly Plugin's prefabricated descriptors, as follows: +---+ [...] [...] maven-assembly-plugin ${project.version} jar-with-dependencies [...] +---+ Note that the Assembly Plugin allows you to specify multiple <<>> at once, to produce multiple types of assemblies in a single invocation. Alternatively, we've created a custom assembly descriptor called <<>> in the <<>> directory (see the {{{#Resources}Resources}} section for more information), we can tell the Assembly Plugin to use it instead: +---+ [...] [...] maven-assembly-plugin ${project.version} src/main/assembly/src.xml [...] +---+ Again, note that we could specify multiple custom assembly descriptors here. Additionally, it's possible to specify a mixture of <<>> and <<>> within the same configuration. <> Many other configuration options are available for the various mojos in the Assembly Plugin. For more information, see the {{{examples/index.html}examples section}} or the {{{plugin-info.html}plugin parameter documentation}}. * Executing: Building an Assembly Once you've configured the various <<>> and <<>> for the assemblies you want the project to produce, it's time to determine how you want to build them. Currently, there are two basic approaches to building assemblies: as a dedicated build action, or bound to a phase of the normal build lifecycle. Beyond this, it's also possible to have the Assembly Plugin simply create an assembly directory for any given <<>> or <<>>, instead of creating archives. ** Building an Assembly as a Standalone Process First, let's examine how we can build an assembly directly, as a process separate from the normal build lifecycle. In this case, assemblies won't be produced when the normal build is executed, only in special circumstances. <> Invoking the <<>> and <<>> mojos will cause Maven to build the project using the normal lifecycle, up to the <<>> phase. Because many assemblies will contain compiled classes and other binaries, it's reasonable to assume that the package phase will be required to ensure those binaries exist and have been tested. The main advantage of producing an assembly in this way is to avoid producing it as part of your normal build process. In some cases, you may only want to create an assembly periodically; these mojos provide two ways to accomplish that goal. *** Normal Assemblies You can build an assembly directly by executing: +---+ mvn assembly:assembly +---+ When this build completes, you should see a file in the target directory with a name similar to the following: +---+ target/sample-1.0-SNAPSHOT-jar-with-dependencies.jar +---+ Notice the artifact classifier, between the end of the version and the beginning of the file extension, <<>>. This is the <<>> of the assembly descriptor used to create this artifact. *** Assembly Directories You can construct an assembly directory directly from the command line by executing: +---+ mvn assembly:directory +---+ When completed, you should see a directory structure similar to this: +---+ target |-- sample-1.0-SNAPSHOT-jar-with-dependencies | |-- META-INF | | |-- MANIFEST.MF | | `-- maven | | `-- org.sample | | `-- sample | | |-- pom.properties | | `-- pom.xml | |-- junit [...] | | `-- TestRunner.class | |-- junit3.8.1 | |-- org | | `-- sample | | `-- App.class | `-- stylesheet.css +---+ ** Building an Assembly as Part of the Build Lifecycle If you need to ensure that assemblies are produced whenever your project builds, or when a particular profile is activated (also useful for configuring other plugins during this special process), then the following two mojos are probably what you're looking for. The <<>> and <<>> mojos are functional counterparts of the mojos discussed above, except that they are meant to bind into the default build lifecycle. The <<>> mojo forces a <<>> phase build to execute, in order to guarantee the availability of project binaries. Unfortunately, this currently means that binding the <<>> mojo to the default lifecycle will cause Maven to execute the build twice - once for the main process, and once again in a forked lifecycle which is spawned by the <<>> mojo itself. By contrast, the <<>> mojo assumes that the build has already produced project binaries or whatever else it needs prior to building the assembly itself. Because they depend on correct binding to the lifecycle in order to gain access to the files required by your project assembly, the <<>> and <<>> mojos require the user to have much more intimate knowledge of the build process. *** Normal Assemblies To bind the <<>> mojo to a project's build lifecycle, you can add this configuration (assuming you're using the <<>> prefabricated descriptor): +---+ [...] [...] maven-assembly-plugin ${project.version} jar-with-dependencies make-assembly package single [...] +---+ Then, to create a project assembly, simple execute the normal <<>> phase from the default lifecycle: +---+ mvn package +---+ When this build completes, you should see a file in the target directory with a name similar to the following: +---+ target/sample-1.0-SNAPSHOT-jar-with-dependencies.jar +---+ Notice the artifact classifier, between the end of the version and the beginning of the file extension, <<>>. This is the <<>> of the assembly descriptor used to create this artifact. *** Assembly Directories If instead you want to bind the <<>> mojo to a project's build lifecycle - so you can construct a directory containing your assembly - you can add this configuration (assuming you're using the <<>> prefabricated descriptor): +---+ [...] [...] maven-assembly-plugin ${project.version} jar-with-dependencies make-assembly package single-directory [...] +---+ Then, to create a project assembly, simple execute the normal <<>> phase from the default lifecycle: +---+ mvn package +---+ When completed, you should see a directory structure similar to this: +---+ target |-- sample-1.0-SNAPSHOT-jar-with-dependencies.dir | |-- META-INF | | |-- MANIFEST.MF | | `-- maven | | `-- org.sample | | `-- sample | | |-- pom.properties | | `-- pom.xml | |-- junit [...] | | `-- TestRunner.class | |-- junit3.8.1 | |-- org | | `-- sample | | `-- App.class | `-- stylesheet.css +---+ * Advanced Configuration ~~ ~~ 'single' and 'single-directory' should nearly always replace 'attached' and 'directory-inline'. ~~ ~~** Creating Assemblies from Multiple Projects in a Multimodule Build ~~ ~~ In certain cases, you may need to create several assembly archives from ~~ different points in a multimodule build. For this reason, two new assembly ~~ mojos have been introduced: <<>>, and ~~ <<>>. These mojos will perform the usual tasks ~~ associated with creating assembly archives or directories, without running in ~~ a once-per-build mode. However, it's important to note that the use of the ~~ <<<\>>> section in the assembly descriptor may be limited in ~~ these cases, since the assembly mojo will not have access to the full list of ~~ projects in the current build. See the examples entry in the ~~ {{{#Resources}Resources}} section below for more information. ** Creating an Executable Jar As you've no doubt noticed, the Assembly Plugin can be a very useful way to create a self-contained binary artifact for your project, among many other things. However, once you've created this self-contained jar, you will probably want the ability to execute it using the <<<-jar>>> JVM switch. To accommodate this, the Assembly Plugin supports configuration of an <<<\>>> element which is identical to that supported by the <<>> (see {{{#Resources}Resources}}). Using this configuration, it's easy to configure the <<>> attribute of the jar manifest: +---+ [...] [...] maven-assembly-plugin ${project.version} [...] org.sample.App [...] [...] +---+ If we add this configuration to the <<>> mojo example above and rebuild, we will see an entry like this in the META-INF/MANIFEST.MF file of the resulting jar: +---+ [...] Main-Class: org.sample.App +---+ For more information on advanced configuration for the Assembly Plugin, see the {{{#Resources}Resources}} section. ** GOTCHA! At this point, only the <<>> assembly format supports the <<<\>>> configuration element. By definition, directory-based assembly mojos - <<>>, <<>>, and <<>> - do not produce a jar-format archive, and therefore do not support the <<<\>>> element. * {Resources} [[1]] For more information on writing your own assembly descriptor, read the {{{assembly.html}Assembly Descriptor}} [[2]] For more information about the <<>>, look {{{http://maven.apache.org/plugins/maven-jar-plugin/}here}}. [[3]] For more information on advanced <<>> configuration, see the {{{examples/index.html}examples}}. [] maven-assembly-plugin-2.2~beta5/src/site/resources/0000755000175000017500000000000011361635316022423 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/site/resources/architecture/0000755000175000017500000000000011361635317025106 5ustar twernertwerner././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/site/resources/architecture/assembly-plugin-architecture-notes.html/maven-assembly-plugin-2.2~beta5/src/site/resources/architecture/assembly-plugin-architecture-notes.h0000755000175000017500000000000011361635317034176 5ustar twernertwerner././@LongLink0000000000000000000000000000016600000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/site/resources/architecture/assembly-plugin-architecture-notes.html/Collapsed.pngmaven-assembly-plugin-2.2~beta5/src/site/resources/architecture/assembly-plugin-architecture-notes.h0000644000175000017500000000030110665417743034201 0ustar twernertwerner‰PNG  IHDR à‘gAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<SIDATxÚbøÿÿ?Üb ¨¢ÿPÜÄèŠ]Ñl¦6E¦ €ˆ² €ˆr8@1ÄU„+Â}å]‚IEND®B`‚././@LongLink0000000000000000000000000000016500000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/site/resources/architecture/assembly-plugin-architecture-notes.html/Expanded.pngmaven-assembly-plugin-2.2~beta5/src/site/resources/architecture/assembly-plugin-architecture-notes.h0000644000175000017500000000032210665417743034204 0ustar twernertwerner‰PNG  IHDR à‘gAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<dIDATxÚbüÿÿ?!@ tˆÿãÀ 9€)2À£Èd@1@­kÀ¢ $ÂÄg00œG·&@ÈŠ Эa€b@á@¬íGa€b$&ˆ‰˜00¿í\9éÛIEND®B`‚././@LongLink0000000000000000000000000000017200000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/site/resources/architecture/assembly-plugin-architecture-notes.html/LeafRowHandle.pngmaven-assembly-plugin-2.2~beta5/src/site/resources/architecture/assembly-plugin-architecture-notes.h0000644000175000017500000000032210665417743034204 0ustar twernertwerner‰PNG  IHDR à‘gAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<dIDATxÚbüÿÿ?!@L D€b™5-ˆßñ(“ ˜$ÿ‘ €äfT!2€Š3²Iÿq™@D¹ €àŠLt€™ÃÄHL8"€Mëzo&‰IEND®B`‚././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/site/resources/architecture/assembly-plugin-architecture-notes.html/blank.pngmaven-assembly-plugin-2.2~beta5/src/site/resources/architecture/assembly-plugin-architecture-notes.h0000644000175000017500000000025010665417743034204 0ustar twernertwerner‰PNG  IHDR à‘gAMAÖØÔOX2tEXtSoftwareAdobe ImageReadyqÉe<:IDATxÚbüÿÿ?!@L D€"J@¥ €ˆR@D) ¢QŠˆ(EêNY×çPIEND®B`‚././@LongLink0000000000000000000000000000016600000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/site/resources/architecture/assembly-plugin-architecture-notes.html/Unchecked.pngmaven-assembly-plugin-2.2~beta5/src/site/resources/architecture/assembly-plugin-architecture-notes.h0000644000175000017500000000031510665417743034206 0ustar twernertwerner‰PNG  IHDR à‘ pHYs  šœgAMA±Ž|ûQ“ cHRMz%€ƒùÿ€éu0ê`:˜o’_ÅFCIDATxÚbd``øÏ@#H0âTÀÈø €ˆR@D) ¢QŠˆ(ED”"€b$&œ `%׃R$IEND®B`‚././@LongLink0000000000000000000000000000016300000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/site/resources/architecture/assembly-plugin-architecture-notes.html/index.htmlmaven-assembly-plugin-2.2~beta5/src/site/resources/architecture/assembly-plugin-architecture-notes.h0000644000175000017500000007100110665417743034206 0ustar twernertwerner
wedge Mojos (org.apache.maven.plugin.assembly.mojo)
wedge Uses:
* AssemblyArchiver
wedge Provides:
* implementation of AssemblyConfigurationSource, for use in assembly components
wedge Notes:
* AssemblyConfigurationSource transports build state given by mojo parameters to deeper assembly components
* AssemblyArchiver abstracts the business of creating the assembly artifact from the mojos
wedge AssemblyArchiver (org.apache.maven.plugin.assembly.archive)
wedge Uses:
* ArchiverManager
* the set of ArchiveAssemblyPhase implementations
* AssemblyDescriptorReader and AssemblyInterpolator
wedge Provides:
wedge logic to discover and read assembly descriptors
* AssemblyDescriptorReader and AssemblyInterpolator help with this task
wedge logic to discover and add filters that merge container descriptor files
* these are implementations of ContainerDescriptorHandler
wedge Notes:
* Archiver instances are retrieved from the ArchiverManager
* Archiver instances are wrapped with AssemblyProxyArchiver, which adds global prefixing, dry-run, and duplicate detection features
* ArchiveAssemblyPhases execute the actual interaction with the (proxied) Archiver instance to produce the assembly
* AssemblyProxyArchiver is the only one initialized as a POJO with the real Archiver component instance passed into the constructor; all other classes used by the AssemblyArchiver are components injected by Plexus
* ArchiveAssemblyPhase instances are injected via a Map which is keyed by their respective role-hints; I don't believe the ordering of keys in this map is deterministic.
* ContainerDescriptorHandler instances are components that are injected via a Map which is keyed by their respective role-hints. Custom implementations can be added via the plugin-level dependency configuration in the pom.xml
wedge ArchiverAssemblyPhase (org.apache.maven.plugin.assembly.archive.phase)
wedge Default Implementations:
* ModuleSetAssemblyPhase
* DependencySetAssemblyPhase
* FileSetAssemblyPhase
* FileItemAssemblyPhase
* RepositoryAssemblyPhase
wedge Uses:
* ArchiverTask implementations, as POJOs
* FileFormatter (FileItemAssemblyPhase)
* RepositoryAssembler (from maven-repository-builder; used by RepositoryAssemblyPhase)
wedge Notes:
* Initialized as Plexus components
* generally, each implementation handles one top-level section of the assembly descriptor
* phases share common logic in terms of how they interact with the Archiver instance; this is captured in different ArchiverTask implementations
wedge ArchiverTask (org.apache.maven.plugin.assembly.archive.task)
wedge Default Implementations:
* AddArtifactTask
* AddDependencySetsTask
* AddDirectoryTask
* AddFileSetsTask
wedge Uses:
* DependencyResolver (AddDependencySetsTask)
* FileSetFormatter (AddFileSetsTask)
wedge Notes:
* Used as POJOs that are initialized then executed by different ArchiverAssemblyPhase instances.
wedge ContainerDescriptorHandler (org.apache.maven.plugin.assembly.filter)
wedge Notes:
* Added to the AssemblyProxyArchiver as a filter and finalizer
* Ability to cherry-pick files before they're added to the assembly archive, and process them (processing usually means aggregation/merging, but could be anything)
* Ability to add a set of "virtual" files to the assembly archive just before it is closed.
* ComponentsXmlArchiveFileFilter (for plexus components.xml files) is always present during the assembly process.
wedge DependencyResolver (org.apache.maven.plugin.assembly.artifact)
wedge Uses:
* ArtifactFactory from maven-artifact
* ArtifactRepository from maven-artifact
* MavenProjectBuilder from maven-project
* ArtifactResolver from maven-artifact
* MavenMetadataSource/ArtifactMetadataSource from maven-project/maven-artifact
wedge Notes:
* Selects the best implementation of ArtifactResolver it can find, based on a String-array of preferential role-hints. If none of the preferred resolvers can be found, it defaults to a lookup without any role-hint. This is necessary for compatibility with maven 2.0.x.
* This component can take a List of remote repositories from the current build, append to this the List of remote repositories from the project passed in (avoiding duplicate entries, based on repository id), and use that as a basis for resolving dependency artifacts
* AssemblyConfigurationSource.isUseTransitiveDependencies() is used in calling components to control whether this component (the resolver) does a full transitive resolution of the project's dependencies, or just resolves the direct dependency artifacts
wedge FileFormatter (org.apache.maven.plugin.assembly.format)
wedge Uses:
* AssemblyFileUtils for line-ending normalization and temp-dir/temp-file management
wedge Provides:
* Interpolation of a given file's contents, based on project values and an optional Properties file or set of filter files (supplied by AssemblyConfigurationSource)
* Normalization of line endings, using values: keep (don't change), dos (\r\n), crlf (\r\n), unix (\n), lf (\n)
wedge Notes:
* If line ending is not 'keep', the final line in the file will always end with a newline string, regardless of whether this is the case in the original file. See MASSEMBLY-96.
././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/site/resources/architecture/assembly-plugin-architecture-notes.html/Checked.pngmaven-assembly-plugin-2.2~beta5/src/site/resources/architecture/assembly-plugin-architecture-notes.h0000644000175000017500000000042510665417743034210 0ustar twernertwerner‰PNG  IHDR ft¾ pHYs  šœgAMA±Ž|ûQ“ cHRMz%€ƒùÿ€éu0ê`:˜o’_ÅF‹IDATxÚbøÿÿ?.  @ü €@Œÿèª@ª`?@1À±˜²ªÉ €t±”íUÐâÌ:(½*xjÈJ€B6©¦J@Åÿ²"i÷¡‚ç‘Üö €PŽäd>@1Bh¬€‘‘ñ?@1Έ ”.qõYÏÖ>IEND®B`‚././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/site/resources/architecture/assembly-plugin-architecture-notes.html/Mixed.pngmaven-assembly-plugin-2.2~beta5/src/site/resources/architecture/assembly-plugin-architecture-notes.h0000644000175000017500000000032510665417743034207 0ustar twernertwerner‰PNG  IHDR à‘ pHYs  šœgAMA±Ž|ûQ“ cHRMz%€ƒùÿ€éu0ê`:˜o’_ÅFKIDATxÚbd``øÏ@#H0âTÀÈø €ˆR@D) ¨"¨Ûбˆ ¢L ¢QŠˆ‘˜p0ye*7”$©§IEND®B`‚././@LongLink0000000000000000000000000000015600000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/site/resources/architecture/assembly-plugin-architecture-majorClasses.pngmaven-assembly-plugin-2.2~beta5/src/site/resources/architecture/assembly-plugin-architecture-majorCl0000644000175000017500000025777110665417743034243 0ustar twernertwerner‰PNG  IHDRLÂVz\iCCPICC Profilexœ•Wy4n÷¿3ÆØÇ>Æ>v²}Ë:ÈNv†±Œuû*ô%mTDŠ´ %¡dK¨•(Ë7kdIÉÒ¢ùý¡úžóþÎû¾ç½}ž{îç~îóÜçœç¹Ü8•€È¨Xšó.3¼§—7ži J¤Àª©““ü[[ €—Ê$*5‚ƒÀÔ\«Zªi‚ÓšoíZø÷<ÀÐ<½¼JÀ²M€/`»_B,5 |¡$2"”h®ÎDD`B¶q#`¶q`âCbÃhž(2% €imDŠ À(™ €9€T‰ŒŒ&pµ€| • À5Êž^Þøí’Éú(ôÛ|aÕwD$þñÉ=À‘nîøÇ·ê @`ŸÇk¨‚Ý €qœN_•`:°U@§/§Ó·.0Œ´EÆÑâÑðßÖÛ{þe $R•Áʸ}–é&sË0ëÛgVŒ§—2·>)¯Ÿ+¿ÖW G¤ ÅNJĉ&Š¥ˆgà3%2%K‘>&sZö¼\™|•BíŽFÅn¥Aå •u«š¤º††›fŠV™öcM=}’ÁùcFâÆ“»fìĽæ·-yvѬlTmÚ}r°s¬ÙÍéáòØMØ=ÂãÆÛoO•Ï_¢ßÿ¾Î@Gò‰ ç!¬¡¦”¸°šð‰HÞ(óèê}ocP±„8¿ø¼„û‰sÉÜ)F©Ôý¥iÝ飓f.ZÉüœµž½õ*‡ýw.žèQùcùÇM ¬Nì>é~Êû´ï™ÀBJQøÙðs”ó”â°’Ð ¤Rï2—‹¶å&—Ô.+TÈUÊ\‘¬Â_½&xÿw5W {-cíÏ››u«·–nÏÔÜhxz·³±©©®ùƽ«÷/¶œyp¬õH[fûŽäNÚ讨Gݤb/¶wòñ­'éOmúúfŸÕ?ÏìwXzÑö²à•ß òà·×O† ‡Io”ß|}ûh$Ô}Ltlz¼úoÚ;íw_'š'S¦ô§Ö§fRgMß3¼ïË›wøÀõáåBá¢çnix¹è£ç neðSÁg‡UŽÕÞ/™k¦kôõÉ›Z›+_«¿…Wø>û£|Ëÿ§øÏ·ô}t:ÅÀƒÂ2ò¡ù™8™ÙX˜Y¶X¿²}dŸæxƒéãlçªã.ç9śŗÀŽÝ+àˆ# ê i +‰¨Šªˆi‹á-$Œ%u¥”¥•d”dwÈä•;´‰J6Êž*Õ$BŽZ‰zƒÆsÍemnM]½dý+C†ÌFZÆûLªM爊æáµ–›VÖ¹6Ãvjö©N»Cœ\nöî'Çý È'ÂNFŸ¢ž¦‰.Œ*¢ž<|޿سÄé‚E©v™òEår¥K —*ä+e¯HWI]•¾&u]ü†HµP`-î&Ï-ÎÛœõ˜; w¹±M¸fÜ=áûø¹*­ZmzífÞ÷tíz„ô¹»·§¸7ò±é'KO»úÎ>‹|Nìí_è{Qþ2á•àäàÚëÞ¡âáè7¦o¹ßŽÜM³çù»ü]Ø„ÊÄÊdãÔñéÐãYÙ¥÷çÎÎG}°X\ø°xéèòÞ*¿¯t:ñÙwUaõó—{kÙëN¸ÑÍò¯”o„o›ßïÿÈØ²ø‰ùùœ¹Ýäà ê ãGôÓóË8ëÛ+ö'-˜ÎR®\î2¯Ÿ“; p—)è#Df©³çÃWHDJêK¡¥^K_•I“u“S’g–¯Ð½£Jñ¨R¬ò3U‚ˆ‹Ú†úŒÆ€f›ÖMíÝx=’¾ÁÎxC´áŠÑ ñ““¦ñf¢‡¹¥…®¥ì.œ£Õºõ¼ÍÛ»ûJ‡"ǧÄÝ!Îî.v®nJîâXO/¤×ïù=“>o÷¾òíóëô@j h¼E¾”L ñ µ¢¨† …3…¯ELGD=ˆ®¡–ï;Cû+&164Î7Þ!Á(Q5I"™/•²šúnÿ³´é×3NH?|È1S3 ›ÈÞ8¼ô×TÎÛ#ý¹ÝyÍGkUåÏ-H?A=I>åvÚòŒf¡tÿYƳ_ÎÍœ.î+ypáFiIÙÉ‹Yå©—¢/“*<*w_±®2¸*y ®^¿£¨šVãX«rss¹®ïÖÕÛ¹õÑw\´îbïn4Ž6µ4—ÜK»Oj!>ieljël¯ìÈì$=4ìêZÔß]Ñ“Û[ü¸ýÉäSú3¡çzýÞ©/Š_ö¼Zz-2ä8œûæéï¨ÿXÓß¼ïÒ'¾L˜ÁÌ^™súÀ½ðz©æã™O«%ku³ßð?ü¦ÑéÛoZ (ÀsÀ¹  @ž[àÄઈŽ|@\Ï„Yþï÷À Ü Ê` ®Ùp  ‚¡ŽðAü…hDÌ#E‘nÈcÈÇ Ì V ¹ (!U‡¢3:2^büŠvB_cB1‘˜Ú˜%˜1ϱسԱ ±f².²y°u°«³—p0qÄqLb1-œŠœE\L\1\ÜNÜ-<Šè¦Y:€LG88B6(ÆÂåÖ ¦XZos6ÔX'WÀ ¼“C]=€ …‘lœ~ጨ;À Ž‘ƒÌ-~q/ÓâœÝ@Qmë ìˆá (·ßZÓ1ñ.¿ã×É$s[@¢“C‰ÛñHI°"˜!" h@^ ððð4 @ Ä â ðØq@2AÌ/~D@Ä ,4 Pþ¥ðÿuÜah@ù C´å -òVp|Qt’¾{(á:ažðð¿¢mÿ(AÔŸLÛê¿×(Y”:J e†2D¡ô¢„@¥‰ÒE™¢ŒQ(-”޳Ż‹²ÿT€ÿ“qhò/µ*C0€ñ1³@ƒH?ÊÁx°=« ¹ŠýZ7S2þõ^Å%Æ£©I4JHh,Þ”J£#©q±A4%¼uT Š^@Ðø?ƒSWÛq IDATxœì½\SçÝÿÿ:&„ ‚ŠT@ñ¶’X©Åµj :'­5̳S°¥½æö\¿Ó·Ò]¹aswgïŠZ`µ`K¬Ž´P¤-Ô†jPA, Ä$¿NÈ÷ blñ$ÀõüƒÇá:ç\ç“wÎûuýzÆd2B¡P( e81ÂÚP( …B¡ 4TQ( …BvPD¡P( eØA…B¡P(”a@ …B¡P†TQ( …Bvp­m…2øQWË Ï9ý |\þú¬ªº¨ô¼~äô% |ºý¤UU%§.4òšà;¾5©Jå§Áãuþ«ÇH¿¹s\øØÊSÇ/©àõ‹%¾.ñÜ`Ëä+ÀÌ¥+ýÝøqzuéñó*ðôú‘^¿Xàëló©ÿ|s‡ÇÓëñÔ‚%ÞÎ÷±ŠmüÅxbéo–¹=ÊO]+ÿL~ºº Œžõüê•äs<à¦P(6ƒ‰B¡<U™Á?'Iz«5 hU$€(¹¥Ç.EÒ"¾ ßô­¢I/ IvU«ÉÔš,€„’žé -vzçÕ@š®1™L&“¦"ÝlâOUÛZ"QÑ#|7-ŠtQ·»i^•Æô w˜B¡Ø tŒByDšý_FçfáÁÓÍÖ0ÁÎÆÚ zÙãÀËž×cO¯õعDÁQqqqQaR@áš7«G/àÛ=œ‰‚§·$ÄÅ%<óDOû¹:Ⱦ©a þÜYóÞŸ²Êî‰- qq Û&=ä•uY¨_¨œ™žEìœYÍ>à¦P(6@Ê#ÁÖžŒ,4ÿWxèËÊ»ûÔÕû·‡ˆ†a˜€ ð¬ÒZR¬*?²%ˆ‹C¶¤”5³¤¼º`H€˜aq@HÊ‘2RZ-O ß’¸?gÏö±X´£´¶¶`Ï–1#‡ì?UkaKÓѬÄ1Ã0Û÷ŸÒÞkgå‘Äððð9jbZyNxHxøöý½ ¶M[ãßzë­]{r+ÒàUÇÞ³_+OܲåHµ´•‰á!á[RÈls鎱X²#'gÏ–ðð-)ZÀ Óµ´èôlçéá[¶ïÏÉÚDŽÜ~ª¶Ó^um™\./(­¾÷Š–¤•ÕjöüWg»íPUÊ·0ŒX,ßžRÚ@êd¡ ÛuL¹ùŒ8dG×1Zyâ–ðí9òœíLøþrËj«?ß#¤*ZÞݼîµÍ»šŠˆ%Ç”ê{MЖå$ˆÅbòù÷È;¿ÛûxÂýʵ ¥‰áA Ã0â€ðY]÷†TÎ0 #íØ_ ºï-¢P(}ÀÚ]PÊàF‘,€àäìä`$7uîiJîO™GO2«4†ú í»fïhñO§‰°ªîKQº¢©µ¾$º3’Ûsï=…l‹‚Së ¦š<Ò›rõ¦ÆM š7®7Ô^â烤²j­ªú ŠîÒªk•¤Î&“©U™~·Î»æiþm=H“«4&C“"Z pË®‹O$I•åg¬nqQÚ@:ß×bò¶ÐgΜ9þs<ï™y­.ËË]a2ò¢ 0÷´ê>žp?)û÷ÎBÒäƒIS“/ Ü–SvõØÿ¥@Xæá‚³²©T‚óÕÝ: (Jß¡ˆByx´å…ñ€9SààMúj2äJŒ&q7rñd†YòqûÄßÄî}k™'Èle’ßx ðíö'â3’çpÛ¯Jrwý>$üo%€Æ5’nú­¯³pÚ1 xþ\7¡·dS·¾!QÂ;¯ù ùn¯ýÏ. ¨Û {¹Þ¯$H$Sª”ñ¶ÔϹ×ÏU˜¿mÛ¶˜$2·I*Û¹JøS·áîœo] ‰{ïµ9.B7ÿðMÝ»µ,Ù´užKƒ-jñY·Çd2ݳ®×+:z̘+J¾;ûý÷Jà9Éeç.—¬ÈÏ\=®òAŽ¢Ðî–`k¾Ê€ä˜Po>¸.s6¬  ,9gKJ(:¾"À×óžÛ¢î«Ê®K¯ÏKOÐ|¹+Hl˜D,÷~žÐ{ùe d‘ù}xä»)¤_« X5kžÒÖa˜MûÊý·úWïw‰B¡ô*€(”‡çtîA²á7Þnü<«dÇp}v×%tÎ#VÊÒâ×/œ’U)ô ¯ÈO#£Ê´øÈyîþòfcg$kU7ªÕB÷°¨°à`¿Ñæ®30t5 `ßÍš±üÎîîHGô‚xÅ@ɧY9ŸÄw_4ßEXj^IIIQQQ‰²ªÕ»Â»÷8kOòh´Ôw‰ÎÞÇÑ#;ÿõSuXÃOÓ‡'ž–HP˜ÿ΀ô™§&š÷4Ècf.^“””ÑêÝ}( Øö›Äì®»j€ºóstÁÙóŽ&x‰ÈÞs£­Ü’Ui)ŽÔY¡î¡Û’ÒÒZEQQ¤oªõ¾žpŸòKV©…aQQaÁÁ~ãâòdÉ}j…²Œ˜ˆÀñK÷Ð å¡¡ˆByXØÊŒ2ÿYÔÙóE¥Z[™óÿ½ûɱA5CK"9X ¾º¡òHâ®ÏÎzoÊ0˜4E™RP^ª»C"Ùÿø0777÷Ÿ[^¿8×ñòÖ~_©P[(“€°ÛÒ(¾Ï¢8 L‹ˆL°!höýjšóÜ"ÿ øûz ïoCmS €ÊŸ›Ñ²È¸‚-ØÚÏ2=Èumù©‚‚Ò²Ú^'Aë ô™;PÊ •=ç3Þ¡½k×wŸ I(1|ønxgçØ=ÚŠ?m¾åž&ó¡ËË®€»ÐB¦õ¼,÷/¯€ÂÈÿÞC¦–«äÿïx™L&S{»[HCíå¼ HUj >ÜõúüÎuk÷ó„û”·<1N@½+7777w÷Úçç¾°8pé<ÝŽßÇ^ÕlR¶Zëó¤P˜w* åa¡‰)”‡D¥8Bæ»Èj+<¹ÀVo±›šÌ>¼iiI .œ}#pÂéz%Çñ.h+OKÊ@RRytÂ\Á 2òå8^-’Å+#ý柛WŸ–V Më–õzéûô™(×ÌH$¢ÂB%D­ QqÏnA›‚c"ÈÀV´Ä·—~Ou ðSé u­8ù‚T"“š­šóR¨JÈ»[ˆŠ^û£îÃeYäÂÈBˆ’[În¶ˆÒu—™s:‹Dnq0@¡|_ ÿ‹ÜÈRhw.‹ˆ†,¾0f±Ÿ"LÔš–Q©[_þéÌŒ.É’˜ÈB¤E,L‹‰ $‚O÷¦¿wŒqGzïï:K‘12òÙ¹‚Þ=+hé­ü ÿ—Þ@R¤2~±øÂ]#e5Mã/§Å")éj\r ¦¼ðät ŒByh¬= ›B¬ä“áiªåz¥"Ò4EטL²Ëìy¢àä*ÉdjÊŒ¾gòNTz‰Ád2î-—Æ)[L&“I™ @šª0ÝMý¦Ô˜ºF!UÑÒ5çW$•v]PJ®e"ëØW¼¯è´¯k š4YaêI×®TEϤ­éÁwwêó̓LÁQa"&'ijò£¤„E‡‘ä k-,''¥g§“Ï i·”’­d}U²Bc2U#£²kÌÛéÊVC}‘Ù$iT¹QÙU]õK‰áŠtËÕc¢„¼ªÎOGLRÞ'[¢¡¾û·–Ú™XÑòWÉâºöKº†á‚šûyBË%é%õ&“IS_vO6FivÅÃe•¤P(&“ÉĘL&P(”~‚U7Ô·;GW7ç» ZUsck{bhÕÍ--ípptsé}zòÏ^OÕ¬Ò€{¿ÓÙ†‚¥î‹ ì*Íjï‡x%…e]êf•–/tòïv$«« ²N]³Ç˜¥¯¬pã³òíKã % E[<ÒµúlRC“ÚN0ÆÅòžªJƒÆÌ“AZÒšë/ì4¼¾©•årǸz:?È=Ъê[4øÉYus“Ú ãÖý€ûxÂO•7µ vcÜÝ,F!YUsSk»vînóF …b† e¸P™>“,k—¤¶„÷Çà‰¶r¿`f(ˆ¤Ò±ƒcaÙU{V{÷ÃÕúbPyˆ@”aš=>&ù(ÊP‚N‚¦P† 5™1,Ûûj?Máû+dÉÁ”DýHSó­§~ót©èôpª~(Š%´ˆB¡<~X–eY–ËçÓa …b›PD¡P( eØA‡À( …B¡ ;¬Ù?Ý­ó‰öEQ ÃüÄ¿ƒˆž.Mœ‚{]zðº7…2ØhÔÑÑÑmÃhl Ì!Á¼1bĈn6 qc’dÂrÃr/e˜C{0º7…2”¸9@DñxÐÑÑaþ·££Ã*ÆŠc Ã0bĈ#FØjœ°T<Ä«-7`!ú)ÙAêÞÊÐc€yôwta4;,0§e•AÃËØ@àp8$<˜7Ì1ÃÚÆÞƒYâ˜õ=ñs£ÑØMñS¶Xvù .÷¦P†$1fŽ D÷°,k4.Ñ-e8¢R©:::¸\.ñ¥#F˜L&[›1(Üû¹sçÎçŸÞÔÔÄãñ^ýuRøþûï755‘í#F¼õÖ[´Ü\®P(Ž=j¾Ë—/÷óó£åær±±±æò·ß~Î@ô‘À@tÉ¢×ë'L˜@›Â”¾À0Ì7x<—Ëår¹‡Ë嚇lâÉf}ϲ¬Á`7nõpÊÏbûîýè˜L¦;wúûûO™2e„ Cé£Q5ýÞd9釽^¯Óéúûº”¡„V«51 ÓÑÑak­dË1/ƒÁ@=œÒwlß½‘ŽŽŽW^yÅÃÃÃÚ†P†8æäÉ“‰ÄÞÞ¾/Ç7ǽ^¯ÕjÛÛÛ溔¡A{{»V«ÕëõÄ‹lp6±YèS‰OyPlß½‡CÕe|>ÿóÏ?ïãñ!€,ÕÁ` ˆò A´…  KõCFx©¢ôwo e1sæÌëׯ÷ñà@$< @:N§Ói4š¸.eÈ Ñhˆç™d¶¹–ŠŒ‚‘0¦Õj­meÐ0(Üû¡Ù½{·µM  #ÆßÒÒÒǃû]Y.€'Ó#hx <(d€À`0˜(ÀfÒêX.€'Íw"ô­a‹¶¹¹¹¹YÅZãÚ”‡Æ–ÝûÑinn¶¶ ”aÃ0¿ÿýïûxð YƆ Pg…‹&¤¬Kt©ËRfGÃϦm®Us'þ%3[2ñïMÿ`ûîM¹£ñÀm¬§Uνãf-ýÕÓ.Ö1f0pùÌ9∨ËV¿»p[pB²hø‘ècíÅâB¤e†1 Ä$Q[~$%€a† ز¿–e Cübٚݥ7JSÂC¶§ìa‚RÊ ®Ü³=„a†‡wž uuÁö 1Ã0L@ø‘Êf‹s›ïcƒÅ)âyµ¶×@}jÿRïöý¥,m厠)‰Ab†‡dœÚ³%ˆaqÈžP_‘…ûþ;€a&`OA-uM©ÁÓ´Gƒ¶WvF¬æýáÛs*ëNŸ&WéºWꌿ®H¼]¶!'1œ|Ò®«Wʨ˜8Ý @¥¼ëv…ï©ìÿV4 $Á énÑëõ‡~ñÅE"Q¿_¾ÏžNâçy]mUIðúo—¹9 ….ÞëÞÝ'µÜR³­uegêTælÙ±'1<€aqx ñ/¶¹lGHÈ·¤ìOÙ¾åH§×lYñ=ñ–=ßpí¿#2Â’¥ÈÈýºshCÛPº#DÌ0 Ää”7÷ZÒK…lubHÈŽ”Ä1ȃöœÊÚNœ9±Z Ž(<¶{qæÄ#w²¦ëò qø©fr‡Õ9[‚¶dU‚,z-9@“ Ñ%€Ìý@p]å{ÞLBÜ?·†<äž®¶þ« Ê9›E™ÑÛ¤{KUªÒФüWIEEIfaRè…ÚS4@Tªì¥é(ý -#>òÒôä‰ó~é̈’é%U Ùú´mo]RC[™å8uq‰ß[Je~TaštO¹Å¹Î½Û ­Ü4uñ­À]UUŠ„±+h{–@µ?Äqa襷J”ùéâøÐy”«µõe1²Œ˜ÈïÉ‚•ë/,žœ/KPfDd(TꚊB ð²G¬²$5ìVÄâÈ25ê,ž2fÌÕÂø’5€æ‚]¡i·OVäeH¢¤_VP•¾š!!x¦+vع¯Ét(ª¨*Iˆ·»L­­/Ý–V.ÊöÍ Œ ÊSV)²‘±öýÒûÝÿÇ…eãX©TnݺÕËËëý÷ß_¹rå7úûê}Äòý_܈çO HÇ‹·'î/(-oPy¾•ûáj!ÛZÿöU `¸u!#&âkïM%ùécÓ"7¦•µ1ãýbê%EŠ]c B#ã“j~¼ûØ«Îù½ßš˜7d%ŠüMI‹Cö”“ru¹<’ðÍa¯‡!&ýK-h?Ù4/F½©¢¦JW¿F´¤LÛ³¤· 5?~‘™¹xWQz@kèâ…ëoe{el[™^@ÄD*6•(ò’§m“ÎÜSÞù˜·Ÿ0ÍU™–öe4Ÿ^“$óñu‡N IT”¤0ýËJPNÈ¥fÆá–@iŠ40²$³¤¢¢(5)b±4¥ š[‡’â•·4ÚÊ¬É C]Só«ªJ$Êm¢1ñ?;8þرtï¡÷F ?ÿùÏÖ6áQ06_«»zVÁúýúõµóUŽ¿Ÿ}îîÎÛg’ö½=iц «Æ5)¾÷Ùm¡Ïoœ•ÿ»R}»8[V§÷^0ÛU§®¿ªêœõ¡S×_Uݾêß²ÒqKÖFl\5¡N±ïÀW÷FDMþ^ÙeÞÓ6n”>ë¤8úïJ Œ:uãÕÒãÅ·ý-ÕŸz¸t¤¿ôõõËFÖ)öÉÏ\àjñÁªõký\å'5@ûÍŠ ?´:¹:´]ýúâmh¼pòj›ÝÄq:ùÿ¦×:-_¿a™·þÄ¡÷¾j4ZÖ?Ž7`··_8pà@ mn²`àÂCsAp„,¡$ÝÜÑÜjº M—“€ìÅjO.01a}|ùõ–«W2ï'\}<×µTø4Žz¶Ï$!¯®ð6”æ*—_ÿV€ >%SþbéL¡¡¶y40ÐýÛz„eñÖj.°½(õf^˘™]çò{·A}á‹ uš§»·÷ÖÃU/\‚ö±î%e†f ¯fï2O>ü¢¢C“~4°çOa†]>\ídÌËÿpk´e`ühn}Y>ÐT°Õ˜þFDZ. =—/Å…ðZ v@îÅñÒTåaM† A1«K¶5@ó{ó¶Eeyf,”ÍR¼ƒ`eé._>à“š¤Ûxþ$°l:ÊVEÈ⊚6/p|“S%¢Ý¥ª­þýúf“ŽŽŽÛ·o;v,//O§Ó­_¿þ믿ž:ujSS“9¼-`-®ÏÞš’¹IïEn %ý’¨ôC»^ØÙ° kEpfÎÖÕ\à »BµDʈŠ¿µÀ >R ü,ªSÞ‘&IUl^1ðW¤æùí.T…û:ƒýj_‚³E|þÄà8,L8²n³A}˜goçà¾"ú°ri×pº{‰joÏ _ ®èøk \X·µ¡IP$ožÃÇÈQ¨êôŠVûðáÿÔÒvç]^H>¬÷ë ¢yÿwr÷:Ÿ–oQË|…­_·ÂQüJpÔ¼_ì^ç£>õ‰R´i‰/ ÔA[þ^da\QÓ:À§*³xjB±:l>>páH¤™Éá|à­E9c~QõšÏ€¾Æ¤Û+‡’ú ¯åž÷|^_VŸ*¯º-Eö\-)Òãɰ5/ŒÜ_¿Ÿ*¿Øø²P°²"õÐ?“Þ²ˆ—Ç*ðx]¡–C¶;‡Ï¸®>«#G_¹Éþöõz5¸ÇÁÍMøÔòe>ÞO{ 9·uî(6Ï"çI#7ÏvBUnW\ǯ×ðmi–l|Åχ©ë¯}Oñýµ93îÖ?|èß ËWœ¸b¼»X l›7†a# ¡T\PÍÕ§„ÅžÄÛo¾SÆO[ñ–Ió&aæï%†É.Üú³_Ë&ò¡­9SiÐsn ª¿P¸O4^`'pœº0’ )v—32þ+RË‚ðß]ÝÚuîýlФ RD,ž*`˜€ÿ>6úIo§î%že9¹' †aì&Ç| º$ Qk}¸[ÿM!¤OP_>]©ßd»syÁ™+ȯÁ€#ÐøUVû{ï ÂÕú–†‚¿Ç#ìÞðeë/¥Aô´×ðµ²¾¡`W âþô+§<üÆ~™¸0_>@[÷uçÕÓý ÍéœBDmXÐ9´Ü\[ˆ—žîï÷º‘L²‘‘‘ÅÅÅúÓŸ&MšDÜéÇ4¿F›°wï^ËשîÝ»·¿Ë‰W8p`âĉO>ùä/~ñ‹_|±ŸoÉ=°j•zŒßæ]šL†–¦ª¼ôè¤пäÜlDs}ˆ—ÚñÇ€AѳÉ7Ç÷ îNéÑÖ•+QáG> _„ cí@«ÌL2ÖØ1Ìø…1€2#¿®LK—¤…N/`ìýûL3—Û£„í½ÂV`ôH>¡ËJ³y M&.(œ»þžNñŠ-(Ü}A­>½/M”ðŠ')mÅôÅ+¡Œ<­R}½/Iºe‰»©ÖP€×Üç̇ò|SçHWÛi¹RØéé8yMí= Ö«¢JÈv5f4Ùpvsª¸ÛUÊ.¼Ÿ*ЬÖ®/.õ€iþ®Ý¦åàÇÖ6x.{\>žùÏwbã?ø¢QËÑ_;±ïà¾}ûöíÛ{ªе]ËNŽ}çäƒÅ€]WGo”=MUµ~ÔSSÈü5§YËßXãÏ Ìô€žEço‰Àqó’wµ´J¯¹òmþbX8¾7>6666ö½ X£EýÈA=:ûS¨Ë?&!5_ñœ`gw17rMLe‹›ßä zyìkËåI|5¡¥æÇ L†æÚŠ/÷D® \u%IˆÎw*Ë‹! œÌÀælžQŸ ¬O÷uÈ·³„õeDOÛõÏïÐMú®s{·A«ª¹ ÙœkÚÜ\{öy˜4âÈ«/øº{J^™¬P’\òŸM+|ýÐ IDATb ¶þBi-žŸƒ÷ý%óÀ6Oƒ(Š3€zED“ùû20wëdòñÏä~€àmOj«“€ü)΀vœ¹E9±ñIQ².š«K€ogg§ iÂÙ#±¡ñqE­n-‡eDOæŸQ"8°sš¸êlž Ò˜i8(Ù¤Ε@²Á•ìcËÓãï=_hVVÖ7ß|“’’’˜˜øÛßþ644têÔ©FÝ-¯æÆ7nÜØ³†~*'ó~lذaÕªUjµúÇT©T/½ôÒ~ć§"}‘(ru‹é-gp]¼—½—~0~ו›˜aqP—À¹ûhTžnb!äl]`.çÚ9Q²ª¿¿è®a¡­9«h-Näd@š]²c†vPìó ÝqìV‡¶Ž^ 3ØúªÒƒ¡‹=ŸkXÒ­Äÿ»Þ*$ßZwµañä.lR|Zå×JûŒ¶’Ì|iš(oÖ²¬V])ßZˆÕÏLù‰S„§ï}\¦eUòøH™Å.=wêKaHJ:\«á 5©3çfÔêÏã½yµ¿¯ïœ9¾¾sV…$Cyª¶á¯3§†d(=}–½´DMÝK8Sz«°;ÝVF8ÜßÌ¢¹ì“PÞXâÕi¸¥§EFÊD ¿ôæw¡3€¿lSTa|¼R”¼À¥K[ ½ÖJùVV­P•%­ÉÀê§»†¸øs_ CLØ‘J5 –LJ)%Øñ¯!Ï`Ïdg½âø™[z£úú—y—á5Á¡k×8IЗŸ¿¦péä!ÙÑ•Uò̳mÎkÿ°QÌSÉæ“Þ"}ùÙ½ñÖ¹ÏKõ°Œ?œÞ·7ù»F¸yÍzú© Àá:áÛÛ¸LxBÀQ—Êdm€V×9GˆžÏ,/\Î+mP5×?;(?Ûˆž“v,5oâì'yªREÇÂ9B@à>Õú’Ó—ŒA{ý·ý¾kî¿-l{Hž{?ÀPíª=ò÷HK¢,Ê슋ç‹e‰’üÆ$Dg·¼ T»D!f±»@’­LñW(‚2fqÆšk­%X<øÓÖD‰¤Ò©I€(8J ¤­Ï~Ûô§] ÒÅkf&@X~M²7×P*‚2fqò¸M½Ûðƒ×_â$‹×LM„¥–?é7©[‰·“æÏÙ¢™kÜí"ºì\ÁVî/„4Ùàú÷…Þä ê+ˆÎ÷V_ÏQ’©c $äUmžã\–"ï: c=Ÿd©¿sõ¹RºÖ— L~n>‘ž*ÎT+êáÊ´Ôˆy¡c2BHãd'ÞZ ­ÜC®îóòÖ(‘h!¹]¢è’¦8ïu"__ßyóæýãÿøâ‹/vïÞ=~üø½¼MÂõ^§Ì®­ ”më, KÎ pA9à i@]tn»,«/J \è'XH$ûGr¹+þ¡Œž/šê¸ DqÿXÆm.Ø]ˆÔä¹æã„¢¥QÀ>¹þ²£g®ñcB@–¾ÒWüB÷g—ž¢Ü°7÷îÃÑÁ®»©"eèx»PÁÉE›æ8kˉy0óåõ¢ˆ Ñ–À®e¾ŽdXÍó…•$MÛ¶Ô™¬op~#£¨Ø}ádAHªþ´†2ršçŠÿÉŒZ$éd+c<ôîS†>²÷âeàµþ×þ\ €Ãuš-]^“zô`òqÀüõ‘“T¥ï”ª¼–lôë6%xÑÙ}'²Kg­™3”B¾7þ,0Ê•=Àóš?ߣ\¾7Q˜¶äuW‹‹ñ&Îös.>¾7ñ80Êcš+ï²ìý¼ÿ÷ °³çÀXÿ_/©N“ïý§ÏkýË3q³æ^dÇåX.Vû̳®Šõþ"7ølXëŸ|èp|éaÎbéJ¡þ*Ìõv~ùË_öñH¦_ÐdtÀ`0h4š;wîÑ–––[·n½úê«Vl»«š›Y®ÐÅÙÜvÔ6Ô6ÂÎaŒ›KW«Õ‚ÏïÛYU³ |¡³V­fB>€ZÕ¬ßÅÙÜpìõÜ{ hhh5ÀqÌxg!÷~%ЪZXÐùnÉϪ›UZ¾ÐEÈï¶C›.Xã 3ìZÑǺXusS‹ÁnÌRWuVÈÔ„ù­gÃ…@çírpïâ<â‡a˜Œ;v̘1£G …#GŽvvvÇêoÌ&NNò››œ ´‡kU ­;»1cÜz8@σk|rV¼r…'PY¸£Þ°ÂÍòûdUÍM,·OþǪ›ë[ÚíƸ¹ïWò@šéñSí¢6‡™¼#¿ål@_' i›Z Œwsæ`˃ìDÏ)Z¶Îq nnhiÇw·°ì1aãîýèÄÆÆ¾ýöÛÖ¶â¡ÑÈw&žjCÔ/Ÿ¸­fœ„=‚^}[m„ƒÐIðêÁ¨¹­f„BžÅ1êÛ·Úupptör¦Q}û¶‘#tò`ÔkŒ¯û1õmì„›ËJ¯¹¥Öñ„½]}¸04{€~g—n顸nžÝ~\~/!„{÷D®Ðü¬:»ÜÛiÞë¹÷àææüs%à;»=èàWèâÒ½¿Vžºm[¡2L©é«ú!5¹uÖ¤-Hܸx[†4}«yà Çí¢Ø|g7Ï>ÏGçj²×K¥’¨ôÿòÉ_¡”¦.pëæ\g—¾úWèâ)ü™’ªÐLŸ*í‘¥1ˆÎï³úÀw1ÿœ´•Û_É€×Çvšx×Ù)›AžlÚ´:G0ö>Ë£xB§±½ï±€#pêqºÐiìý½Žs·V¯W‰":=ROž`lo r‡555“'OîË‘Cuå.vÎS‚6eW4ýË÷g{O`v¾ò£×|«]«ÂõÙÛT‘½vÂ¥s•¾éù-¹áý½”ïñÁõ/NMÏ« øùc{¯Àqá†ô«Ã}V[ÛŒ‡;gÅkä\·e¯½ö˜Œ¡ m8n³üb•ÅÐ …B¡P(ÃŽþ@æ u–‰ãFŒ1b^”€øŒ¥Á»¬ñjæ^¬meÐ`ãîýˆìÞ½ÛÚ&P(½3@B„ Ê£Ðk„°A¨‡S‚ÁâÞÇ`ÏDtô=Ð@<¦Í ò;çp8Îð]wGyˆÏ˜ãºœÊ¦0Ç0*€(Ä po e°Ð÷<@7 š.—Ëápììì@ä”>Cr¢p¹\s„°M†!‘Œ,ýµeS)¶Ã`qo eˆ1@ȲïÇÎÎŽÇã_§Ó “ÉÄ0 —ËÕëõDåg'ÎNü–´ù|¾@ îýˆ ò<@”ÁÇú˜|¼ßЈ#ŒF£¹Èüã'ÁÜ"㎎Žá8;žttý€e„ QaäÈ‘¤+ÈÜJ67‘m$H0 c2™º©|{{{âäDét:"ñÉ«ã‡-ÃÙÃI{t±}÷bccÍÛ£FzóÍ7ÉöÎ;ÛÚÚh9-'Û'Nœ8yòäc|³Jÿ¾ €ÉdbYÖ`0 ­V«Óéît¡Ñht]¡aÞ8Þ´iÓ0_2jÖ$B~ 2X@ aƒ„.—k#&:::ŒF#˲Dåh4FÓÖÖvçÎ2¼Kʉ“g•?Ì=œè{s;t„Û¾{ƒü}a”£/®Òww !0‡ÓÑÑÁãñ:::ø|>i1óx<ƒÁ@Ô˲$Š ÛØ@péåÍGÃËIÄæ†2‰ $0ðx<óT k{óH®Ùω“ gV?Ã\ax{¸y–qo¢lß½‘Ý»woÚ´é§yá…Æ Å’›mÖ@°˜êa0) êg8ÇcÇþükõ†0DI@FÈЉ¶,5qcòAìììX–5~utt çiþÞÞm¦<™9(ÜûQèK E‹õ¿!”¡@_´rßóõ»²ü͛דØ@&„š‘¹Ã\9õ|eðp‚ôù“`žOcn.“mˬqÖ¶÷.#FŒ ®k2™H–³ýDú>N“É4ÌÐpöpódys7ç`qo ÅFè‹V¶­<@æ¨ =D:„ÌÒÇdÁ˜d³ ç52¸7c8YCB‚e¢RnSá̃6gº‚EÞ2(fÙ÷3ÌÐpöp³²lÚ¾{S(C•@d>z ‚¥ôæhÔ¨QÖ6Áš0=Þg^cÞ0;’µíΈ#Ìk¾È†Ñhär¹¤×‡è*ñ‡³‡›ÖÜÇ3ˆÜû¡éK ;wšWúP(ˆmå‚El07}ÌñÀ<'t˜‚ƒƒƒµM°>–2ȼ$Ør\À'I˜U>é ²TùfÑ3Ìû~Ôã{? }Éd^ólk4–f¥Ê/û­ýãra¿•ûžÝÚ?Y¬¿.ßw~íÖ7}zqM~jbq#oÉÆ7Ÿwã‘"uåÑRŒ¯z3hÖƒV74è‹V¶¡<@fȯº££ƒüìÍÁÀ¬{¨`ooom¬¹ùkÙbî¶aƒXšMôztùP'§ Dþî=Ñ_ýT~À•šFôE©oTè~Ï‘<§K–Lö|`õè¨i WéÌ™ÃnÉ)8¹Œ~ðê†W+t’rËŸz·`@chÚx=úÿ×p€elëéÒÔÉ©‡ã^—\î=¬8'û¨qÔ´'G^¾Ðtˈ©@sýäcMÓä^œ)wö[¾q£‹eeÏÏvk”ÿ+³T%^¶jr›RV|ÎB@ŸúÏâF×%k7Œ¬?%+>ôå”­¿th¸ ªCq“ØÉÓîCPýÀºˆB¡P(C›¾ä²½КÇáµüyWNC•ôu?èáÅÓ_»Ü%Ño<ÏÓTíLTM“þaù챀ײ+-ìÈŽkç1myô:?@?òr.êµÀB'בÞPÔÜ4­áÄñ:,ûâ‹ÿy§çùÆ2'Àu‰Ÿ"ób«^ßh®8—•‰©Ë'¹Yz¹Ñˆ©×ò>ntž¿Ê½¦®vŠ«?{ÙÚåþ>ãÔ·Œv€§‡3Ô7ªô¯Š šåã袜GÚ£—,Y;çyŽæö(ÎB{M¥¬Tõ$9 Óo‰?3} ªN7byÄë~®R´-Úè§Ë+ÆT!4ç®])8qTÞuò² NšÆoôðxv¦}ÜÝ]yêkM•%òãÇ;s?©½ú»6x-œEÒqéÔm˜4Ùùâ·M?ÚU¡pãr-¼–Ú”úAß´²må¢P( ep`l8røì(ñ²•âñF#8Úk>QÓ¨™5îFx~îBªº5{ô Šÿ(9KæêêÀó'3 Õ7®Ë'ož¹‚QÓÇñÀsõ…oÏ~ù©¢Íu˳ ¯º ø­ýCà#ÐxåÂ-ûÉÛkÌõCÓX Ìž8ÎÁ(„þü§ŠõË^p3fÕÁkù„[ŠOŸ¨]´vã³ÓÜt¹É‡psæÜÁ©«må·öÿN1ÁÞ¼v© ONE~¶Þuáë|§P(JÑÇ<@`I©ú2ç*<~û²¿——×Ô©^^ÓÝG-·ZÕuWÏ BppvBÛùK·ôÆÛUî=z¶ìõj`*Ù«þá:à5ÁÉx岊ç=U€'œÄÓ+J/{-ûµà@cc+‡'P]:¹ïÐÑËw8–õë¨jÃ(ÏqŽ“Ç(¨.7bù*¨¯_¼=„ª7Àóû¸á湟ï 'žþÊeoYmf¼^Õˆ©“¹õ•màÍ›ç;–£>ùáÁFŒšI{€( …Ò_ ²<@ês²RÕ“Òõnœ®žë”Q¸Ø¬nl¾yãns—>Y´ïð{ñFy-Š\7ûæÑ|x-"KUÕp~fGýU#f."g8Ž ðüVø»oªt¾G扃±'@¼|cÐ,§ª£wë¿y­¼®<#G¯òs‚¦ªpäÌãM˜>sv´ýêê\u#f.rèUM˜æ7AàÊwÅYYò;2ÀÕÃhÌ/®z3p…øü^Yj"À·qà9¾´¤hßñ÷Þ)0jÚ’?®ó76œTÁÙÓÕÆÀw †®ËµÌÉc(”! õpJ¯ÄÆÆö1bÙzõívØ …ÎÏ{ŸóÕFŽP(ä=xä\''!Ðhô¯÷㌚[·uB'FÆÈi=}ªjê¢ç]9€±1ûTͲˆ D“éÕ·ÔFžÃÜ¡/®Òww¢=@ …B¡<(<¡Ó}dGŸÏû8ν¯úÀŒ+èÚpŒ7Ë‹?S=ÿ™ñçO”ªœý#‰úÀŽ}hk-t…B¡Pú‹Ý»wÿì16˜hh™øjÄÚù3õ-Ó—­Þ¼ÌÉÚYÚD¡P(”þbpæ²\}/÷±¶ÏãÍD{€( …B¡ o *€( …bsܺuËÚ&P†8TQ( ¥¿èK 'Nt+ÉÉÉ7nÜÆoß¾Ý/fQ†.}ÏD…B¡Pú‹¾ä:yò¤å¿±±±¯¾ú*€ŒŒ ww÷wß}×`0ô—}”AEO­Ü“ô±6: šB¡P(V&66ö…^X´hÑ;3˜˜ØÞÞ@«Õøë_ÿšžžþÙgŸùøøìܹӜ5qÔ¨Qæ!´|h—Ÿ8q¬’-Z„ÇÍKfCÐ4q”¡ õpJ¯´¶¶^ºtéâÅ‹iiiß~û-Ñ=fÁ¼yó¾øâ‹¾Œ¦Q(4"…B¡P¬ÏîÝ»7mÚdþ—eÙ+W®\¼x‘(²¡V«§OŸ>cÆŒ   ŠŠ ‡sçÎr¼@ X°`Á±cdž•úéèèHLL°uëÖ#èL•þ‚6ÈlÚ>¦ m¨‡7~øá‡èèèçž{άxjkk=<®„§Ï#‚†ÊІzø¦½½HóßÊÊJ>ŸÏçóùË_š··7÷óoP«Õ+W®Ü¸qãš5k†ûm‡ÊÊÊdz, €Ëå®ZµÊÇg§.´eèóȆ á2´¡>4èè訩©±”;/^¼yóæ´iÓÌBgúôé>>>NNNƒóE§VãöíÛ»wï¶\õfgg·iÓ&'§aþÖŠ~aªÚ8F£qäÈ‘£Gniiáplú}¼ÊCðùçŸËåË–-³¶-”àÖ­[ݦìTUU=ñÄDèøøøH¥Ò3fLš4©×®ša5wçÑQ(ÇRq8œï¾ûnÉ’%V´jpQSS3yòä¾Id¶Âï~÷;’½àÕW_}ÿý÷­m…ò8©©©™5kÖ;wFŽyîܹ>>ž(ŒN§«ªª2 ²ÑÑÑÑmÊÎôéÓù|¾µ²|øá‡µµµd ‡Ã™4iÒ† ¬mÔ`‚®dÈd²h4øÕ¯~dm£(”ǃÁ`xñÅÉÚf­V¨T*‡Û´V[Ãd2ÕÕÕuëÚihhðòò"Bgþüùo¼ñÆŒ3\\\¬mìðbÍš5ÿû¿ÿK2!ÙÛÛÿæ7¿±¶EC*€¬OMMÍúõë‰ú Ñh‚ƒƒi+™2dؼysMM iÑÆÚÚÚÍ›7ÓnΤµµõbDñ\¾|ÙÉÉÉܵó«_ýjúôé^^^tüÝêðùüuëÖíÛ·Àºuëhg[ÿAõÙ»w/Ç3ç½ÀãñöìÙoE«(”ÇÅ'Ÿ|bÖ÷4Í'Ÿ|BP?a0,í¿mmm3º "ºgÔ¨Q`O·<@”¾àææ¶zõê?þØÍÍÍÚ¶ e¬)€ºM?¶³‘vìØñí·ßéõz<oΜ9ûÛß:::¬mšuè6•rð.‚íéÒÃÓÉ9²hÑ"sz_>ŸäÈ‘aë޸ץ-·M&SRRRuuuRRRç߸q£Ûj¬k×®Mœ8‘Hœgžyfݺu3f̰bmnn¶Ö¥/ ÃÌœ9ƒùégEž{î¹>9ÐÈüÔ3o˜CÂðŒ „ÌÌ̧žzêæÍ›³²²Hˆá‰ù7oÞ0çBµý¤¨ÄM&S· ˽çŸ~:66666¶½½ÝÁÁ!&&æé§Ÿ¦ÞͽY–}ùå—O:5bĈO>ù$99yÍš5–gݹsçÒ¥K–Sv*++ÌËÎ,X@íÐùU”áL³ b Q<$ttt˜ÿíèè0‡Š3ÆÖÙÙÙäkËÎÎ:ÎÚFY sx`†Ä†#FŒ1‚aâ6¶)ƒ,ñjË XˆþaÈï~÷;¹\^RRòì³ÏnÚ´‰ºw7÷6™LAAA§N"c…wîÜyýõ×ßzë­7ß|óûï¿'Ч¥¥eÚ´iDî,[¶lóæÍ>>>£G¶òç¡P-$€È£¿£ £ÑØa© cäãã³gÏžŽŽ2ÿb‡¨óƈ#:::lM™%ŽYß?7Ýÿ°õð”””>úhíÚµÃܽ5ovo“É´fÍšââbË™Rmmmuuuxå•W~ýë_Ϙ1câĉƒq@„æzhfÍšem%¶•ÈÜ&º‡eY£ÑèììÜß×¥ T*‡Ãár¹f%Dâ‡µíº‹¹³‡xxGG‡P(´¶Q”ÁAaaá’²û IDATƯ]»FfÞ|ó͸¸8+F¡ Fl+@¤5̲,˲äw>l›Â”‚a­VËãñL&iMv›BauÌ—Dý°,K¹R§ü, Ãøøø|ùå—;vì “ÿX–uppؼy3U?ÓÉTYYi2™fΜi;º¡G¿#XNú!A§Ó™×ƒP(}A«Õêt:ƒÁ@:W,'ÖØ–c^ÄÉ­meРÕjííí¿ýö[‰Dàïÿû»ï¾km»(V£¡¡!''çðáà ֶe(3@)̱A¯×kµÚa; €òp´··kµZ½^O¼Èg›…¾Á`ÐëõTQúŽÙ½=<<>ùä“Ë—/‡‡‡[󬂮îÝ»­m C«Õfee‘6UVVí/è?BYªƒÁ@åA!‚h Ô@–ꇌðRDé;ÝÜÛÍÍͦÜû¡y€”ììlóD§Ó}üñÇÖµgÐÑ÷<@!€Ìs€X–Õét:Îr±…ò³h4â9d½­H‹„1Úh£ôAáÞ”!??¿¡¡¼7€Ñh¼qãÆñãÇ­kÕà¢ïy€ú]Y.€'Ó#l*Ö_ž,%–lmyiy­úîŽyÃì(x$ëmYPª¾§¬­<•aBÊ{Ó“êò=̽„'æ>>³gÏær¹\.W,ûøøXÛ¢AÆúxäÀ¥Ó5gI!¨.Ò ‘ç\___ß9 Vì*¨‰BáÂ] ­Ý¿=ˆa& $«´Pçü)RÄl‰ÙÕªLDy5­šÖÖÖÖÖE¶´ó˜žwÃ`¨Ê•YTU¥H¤é“!?Zˆ’óŠòRÃHS½žÛªLH“3ó› ý[5ÈÌÌ$o’ª¨¨¨««S©Tííí,Ë>þ‹=8Dîh4š––â䥥¥r¹ü1z¸Í8¶©)?æ)«”ùÉ¢‹Zz–˜šòE€$.S©,Š¢„&“I™*–š—ŸM¼%3??5 %·˜ZÓ¥•ž¯ÈOˆË7i‹€$EKQ9Æd2µ¦J€è|“Éd2T…ÑùM-%qäsuÜé‡W¾Oœš_¡ˆ+êÜ++R”$¢äV“I‘ä‹„oZJQ~“Éd2ÕÈ€°*ÃÀù¹Ù½‹‹‹ÃÂÂìííííí'L˜pñâÅÇv e8ñ׿þµGÐè¬å%²×ÎÞ€¶RQˆìªøeÞ|ÌÙ·M–!¿œû†D‚ÜùAž\­$O¦ð[êëÌmng¾òλc¹ 8{/Z,A}`àO!À~µ/ÁÙ">bp&œNY·ÀÙ ¾ ̳·sp_}X¹´Îƒk8ݽDµwGš$U±yÅÀ_‘šç·»Põê|qEÇ_[ອ M‚âÿgïÌš:¶?~.$!,AÅ}«X%´PŸ´Š\*µ5¸Õ-`Ñ ÔgŸVE«ý‰ÏòbµÚ*b7Üp‹TE\µA *.X°   îïkT”$7À|þhã;s’œû3gæÎˆæy±Á^È ÖäÄgí›èΆëb·ÆmLº7Ý=g ¹>¿žß8Í]‘¶ |´2@îßÍÑàûàÉ?w×ÜÞ^çÛÈ øÜK,–òÆ´Õ”¼?€[•jÈû=J!É›ççà›t;nIE½ßdÖÇWRxÔÏÅT¿c­3ãHKM™ÍÃirl(þû˜¶}ýæåÉ;Bñ¹Ú%™‡cä™·bš@ïcâ¨nü´ÿé^¡„ñæÐÑ ïÈŸå?Í×Iï½?G\¡ˆLÝð…/KLë6éÏ¢oF «LЇ•®Íóc\Ûxâ7€Ù¡8àɸ81Çðaå¾sŽí ”f¬õ^üÆP?À©"»”’ nꮾøpyìü¾I÷Tóœ=€åä=!–O{à7Öõ\tW(í˜mV?¯ªªÊÎÎ^³fMII Zùøñcoo襤¤Áƒ¹1³³qãÆ9sæ¼ú=«V­¢^;88,\¸½^¿~}ii).ÇåèuJJÊùóçxÌEC0mDõUt@EÄÐýs[&õz¾|†_¡=€N ÀrÅõv|yÍk-¨õO]TÏ%É¢`swõßvKîûNì9>.~¿Op¯¸`nD솈µK@Íz}¾*#> x±Öºs\I^úŽNÏ„{W.éºô¨^ì©Ï?í3}¥0I~q˜2ülÕÈrõƒÄª¢ÇÀm_o ù)w?QººSLmó^}òƒ•­|Å:>/;ýÜNÿàá]?ÊQ«dàŸváâì>é¨Öƒ&÷º¬¨Ðþµ—,˜:W¨`€F~Y¿2Û}T$o‹/Ã’õž5Åκ¹¹°Üü>qö^}øÕ`eÝoãö¡À°hNjvသ.Šc :®¨yL¯¦“,V :]=ׂòÊþ0˜ÆA›cÏc¨ì¦mQ~³KuëJÊæáÓƒ; ¾(hU«$ž\Q¡l[­gê .§ÿíÁå<¼ðÂJêÜÎÞ-†Ñ]@]t`ô;Ï»x·‰"žwìîœ(žPÚT²èhyxBêL{0Ëîì2)ìRþ¬AÏ«c:÷†sªûÝ’Ìc[dN3½€ý2½0i¬Ü½#ÞUÎ ïÊÐe˜ÛÏçÌ™ó믿Öz:„$ÉìììÛ·o?}úôÙ³gOŸ>E/ÊËË C¢ZáQ½/¬¬Ì·Ü󵔕•ÙÚÚš4tèPíÁ43¾P3 €AþàÖíÛ­tºòòœ]!üÝ Móà@9æÇ¿òQ¨¯*swÈôH©Â˵ú½R=zwã0JŽE-:P¦Ñƒ–ˆ3f ºçügxðb ZÑC1?+TêøÚ(ˆLèþÐ-P=ÿƒûº«âeG¿ð=f¢ ÿ¯ï{/”X÷üèCsy‹{Âíè¾>+C’tÚÕú<µÖŠ;øÿg{aü ?,ÑÊî€À- VÀ ›\á–žÏG©: ˜€aã Î6LNïu¿€ èÜ¥« ä§ÿÀžHÃéÀƒù+âùûæ¹$G,‘;‹ ÞkÃíê1cT,ıç¸îìåsP”'›çå÷ÙPHnm­]Ò¹?ä[ÏgMèÁ¹3ø|«}_ñÙtèóÍ<Ëß7ÄñÞC¢ Bbø—?æOZ˜í ÷ÛvB6~îëŽÔ˃Q±§³y×ÔìÆ„Á±Y)Ÿ´+øËŠHýÊ»žv©Û}T$78l>„$f;€Ùýü“O>éÚµëÊ•+ј]çÎûöí[÷1òÊÊJÃÈðunnn­’gÏž={öÌÞ޾ᓓ“‹Å2Í…ŒŒŒ)S¦tìØñøñã¨pذa&jÓÌ0n¬Ü¬ ¦+@”Oß(ôO® 2õØ7^¸EÛÎgÈî0¾P1Ð 49èml÷Q">Lêå¼7jøˆÊëcóƒ½Ûðx5õWÿßiÀ<̰.ÎA¬he‡;*`[²ö‰}'yÁÜøñžCk—8¹¬“G æör\ÀÌZ7š™l˜ÔâhÇ4l€+nÇ (uŽ—“&í}?›Î ÛÍ]ào°DÁ‘ip1§#œÛŸ”º¸î·¡o;“ünÌ(‰¨ù“cŸÞ-¹Òqx7Ûùèr¾ §žoRùÜTŒ)°ÇÎÚ$á¯Þ‘‰\B É}×j—¸t}7I(óçVGóñ²B6ì¾ÀìNÎd‚ —ûÙð"³Vúdv&]‡ y°DC{²T6Æq#SÝŸK—ûäHîð—Ÿzå‡ncW&F\ç÷jÀ —}ó!<º /L;2™†w–[ÀÁÊ`•`xOzüÜ××7!!aÖ¬Yz½~Ñ¢E,«Þ^kkkgggggçÖL’¤J¥ª7`*,,¼{÷n­€©¤¤ÄÚÚú2LT(S*€«¨¨øöÛoþùgFó÷ß{zzž?¾S§Noñ]aZ, ‰•sss»uëÖÚ“.V I=ô®V«ËÊÊÐM¨P(Š‹‹g̘aU¾BcËqrâÔ ûô%E…zF'6è5*=ƒÃfèKŠJ€]ïûA£Ñ0Ø/ͨ€^U”§(gÚµqsἬ¤¦Ýúmz%EEzÇÅ©Îb„‰n«%Šë~ Ùÿ¥î·¡WjØm\8lЫTz[ô¨Š UŒ6n/´öªoÒø±cÇggç6mÚ ööö¶¶¶L&ÓÚÚšö5@ÈÉÑþ攓—””Œ3ÆLn^ÇÐä?(Ð1í\«'Wë-MI‘B'—†ûˆ^UR¨v.Nu®È_Ft,NÌÞ<±gCëUI‘Ø.No»bÆ,~^˽ËÊÊÔjõ€èuoµZ]oÀô²jµºµuã¤6mÚÌ™3G¡PPAZ[[;88¤§§÷éÓ‡–ψi®¬Zµª ¥›Uè5°9nn/“B†“‹[ÍKvÜ1œ\^ú¼›ýšÅ ŽKWÎkJ^h·ÁÔg•æØêÙü•»!BÒ èêû6—š‡úž¾êZ ˜×±Øn]»¾®ØoîÙ ŽSÝÏ¡¹}pJßIbÉ x³è8N.rS:ü¼}ûööööfn´.¶¶¶¶¶¶íÛ׿D¬.hV®Þ€é¯¿þzúôé“'O 9UVV>{öÌÝÝ$Éõë׿lÝ+c:ZRÔœatò?ý3Ý–`0Æ„áØÙ_ÁŸàŽµÊ‚yí¬œ^¯ÿî»ï6lØ@„M„Í¢E‹€zæ¹™¢>¿5:å‘Óôˆ°^ X[¥Í?µåÏé‹<†ÙG£ù.lÐ˯k7VÆ¢Ò<`xý‹n#0£Ãp:o ÝV`Þ´ƒÁX³fÍ»ï¾;{ölµZmooß­[·ƒ¶„sžÞø-å‘  à‰¶—Ûë# ’œl`õëòâ©Gw¿Ñý{™ÊĦƒqcea0 ÆTî4}úôîÝ»úé§K—.]´h‘E=œo2òºîêé­½.+)¯`TÞ>±=EéꬔýÓiú<§ó‡Sn°Þ6iÒÐ^ÿòû=—þîªô?'ünûÁ„ ÉÃt9é{Og¿X[:?@8Â4†z{ {8æ-h*îm:ší è§×ö¥—xNn ¶hUeêÇw´ð.î¤÷œŸ^Ûsœ&/r·h=æ~q&CýøN)xNþO€;*íûý–“MÉÃ}ÛÛÚ80pû·Ä–wð•þ›ã:læ´¡`Œ÷Ÿûÿz Vë©úéýô¦À¸±²™c†šQ²••:äÖ íbš Èg¨~jœÊ¢ ú0aÞˆ&áÞoMÝ[ •éÇÄZ€ëû¼Ž þy¤†þÖsKÁéƒw´×¥÷àÝ îh¹Ç=(Ì]“\ ¼{s@û÷RpêèÊúçBôæ·V—n)7¨†ê\מ9Ü&ÿò#HÙ¶*¥ºIï®Ö³kêo†4$Vnø>@æsMÔ10 kkk&“ Íë&ǘFcmmÍ`0¨Â2!õdHô-ÙTŒå  ÿûßÿZ¾{¿Ë—/§ÛzPçœIÎüé}¬­óÿ<üû­Â’J¨ü;Xï´g@¥º À¹ºÎI?qÇÆ«_ñ]pè×ÖàÉß¹ÀêáÊRݸF´§öà¦êãG´Fël[pþ°¼ç.ö·ÓVZCÉÝ[ÿ´y§{AÆï5õ·PvìØaYûæ~˜L&‹ÅÚ¹s§R©,¯A£ÑèõúÊÊJ³“jlÙ²eöìÙt[A'ÈI ›Í¶³³c³Ù‡>uêÔ×_m8P¦ÛÒÚæ~˜L&“É""=I‹¼ù ÝÆ>ÚQ×Å`0 “Éd³Ù:YÏ`0´Z-Šò[²“1âüùóGŽñõõõôô|ýÍä·hÈf³mmmíììlmm-ZtäÈ@ ‘H8Ž¥¹·h~û¤Ÿ¼N“ǽgPÆ(Í{¬PB¯h‡IÛAüÁé )¢ÿ¦À»£gŽî®O,€¾ÃÐy~E…ÐÛ»ƒöɵRpêêÊÛö]à"kð”þ­8=þåétýDìÚ&Ìý¢;«üæóú›!Ml ++«ÊÊJ*DÝü¨c ÆChp\UUÕ’ûprjàFÎÍÃÂÆÆ†ÅbÙÛÛ»ºº~ðÁÇ 5ÌYH'AI’µ¢|ääUUU(*ª¨¨@!~ee%Ý&ÓÉ!Côz}ffæ­[·rrrÆߪU+º2h¼‡„ÈCìííQ¦3$$¤wïÞ2™l̘1åÞíD·æÆu`Ðw/n_Åê<ü»ï†D<Ÿáôþ]Ä¿ž–ƒ‡Ã²˜ô|î†óiõ;k.Û^ó 'wXnó¾VüXvŽ­õ W5OšÞ>@è¶§:½^¯×ëQÇ€‚!4PF}C €Ú´iC· tBŨ‡@y [[ÛÅ‹Ÿ?žÅb¡$e>)CͱX¬ÊÊJää¨Ã£B|4ÉÛ’¼M›6'NDGMõìÙsãÆãÆkø¾MßSã@”GØØØL˜0¡¬¬ÌÚÚúñãÇ]ºt¡ÛX£a¸¦XœÖZ¯cݺÁÇâ¶®'fš³¶¶®ªªb±XUUUl6˜Y,–N§CÑê-päòòCšZ†‹ˆ©²‹‹KHH‹Åb±XÔJ º}5“Ëd2)?GNŽb8*úÁòðùóçÿïÿ+//ŒŒüé§ŸnݺÖìÓŸÔ*1äÞ(B© 6›Íd2Û·oommýàÁƒ]»v5pgó ï„1?·a K=t:­­-š)@ÑOKîà‡é´¨d! ¨õ@¨Ÿ°Ìèa!7F„Édêõzjò«ªªª%/ó_³fMxxxffæ–-[víÚµhÑ¢¹sçŽ1‚^óLJ­•òhAd]÷öññY¼xñƒ¶lÙÒBž!ov+ 1¦¢‰ídxÏSÏ£¾-¥þBk#ZxÔºukºM 4±…Bj= 5\þñÇÇŽëééIí¸C·½Ï±²²B®K’$Úå²…>(ÇI’d €(oݺõ¦M›»uëîïïÿí·ß¦¥¥-_¾¼¹NS‹å©4§¡{£×¨<%%eêÔ©þþþIIIM=jêöc, ãîD˜!à@bâTUU¡ˆ‡Êúæ~Zx¨W¯^ÙÙÙt[A'†›á¢µ>¨K@Ù #GŽÄÅÅ¥¤¤X`„<ýÅ:h΋šÛ¥r?-9ªëá999“'O^¿~½¯¯¯V«‰‰9pàÀªU«üýýé2ÒtPá˜roôÅFheý¼yó>ýôÓÑ£GÓm8Ó”XµjUgÍAèWÕ@õÃЧ%@íÛ·üø1ÝVÐ Qçä8ê±/kkk’$ûöí»gÏK›C~KÅ@”Ÿ£àžŠ~Zxˆ_¯‡ÿùçŸAAAû÷ï÷ðð€«W¯Î;·ÿþQQQÍ,D…ìToèÞV5€Á#`wîÜéÓ§OYY™½½=mv›ž”””aÆÑm¦™ÐðÈ|k€Ðc_ÔЇê¨5¡-¹c °³³£Ûú1 ƒ¨þ9Ï¢E‹„B¡X,¦ÛÆÚPãÕ?Ôó>T|-;÷CQ×Ç òóÏ?£]pºté2hР´´´Õ«Wóx¼èèè1cÆÐb§éx…{S)"êÍ}úô€ÌÌL¥R9jÔ(šL69çϟǦ!7V6ßì,º«ÑƒÁTq€ÀÆÆ†nè‡(Ž˜Ñ‹‰DòðáÃÎ;ÓcÜË14ÅCP'僼^Ÿ0aBaaá¸qã.\¸àäädcc³nݺñãÇÏš5ëøñã6lhfkãˆü¢ÜûeyÍwß}·wïÞQQQ3gÎ4…F¤û­ZµjèСTß¶~ýzjÇjå.o™å)))çÏŸG¯™i ¬^j5ûkkë¾K¢Öâ‹ZëóFÔuéîä¯öð¥K—^ºté9(£ IDATÌ™3l6•”——GDD>|8..®9­ 2téºwvvöÇŸòäÉ™3gfeeÑmËk(..¦ÛLKáÞ½{nnn |3~ìÈ‚ÀO½)h×Aº­À4”7õð={öDDD¤¥¥½LÑŽ=´zõê–¹‡VNNΕ+W>ÿüsº ygΜyçwºvíJ·!˜fŽB¡‹ÅS¦L±µµmÈûqkAàÓ¼y _»vmBBÂ… ^ö|qqñW_}uãÆ;w~ðÁÆ0³‰QQQaccƒNW´Ì(ðÙ³g[¶lñðð8p`3ÛÓÓ¤Á=® 7E«Õ–••999Ñm¦A¼‡ÿûßÿ¾{÷î©S§˜LæËÞ³ÿþyóæÍž={åÊ•,«qf6IqâÄÀ_ûæ¿ÿþ{æÌ™¥¥¥;vìèÓ§OcÚmŠäääüôÓOëÖ­3}ú>|xÚ´iׯ_Ók=<<®\¹âååõÞ{ïíÝ»×æY'99=+ÐÒöFÂ` Á) g€ŒÂ•+Wþøã7Z‹1&õðÇýõ×iii]ºty‹Ë322ÝÝÝccc¸½P3 °°P¡P¸»»ÓmC8„in¼ÿþûQQQt‚1+ãÇ_ºtéÇ\RRò—{yy]½zõwÞñðð8tèÑͳL8ÎСCSSSé6ƒ¡œr° pÈXlذA*•îß¿ŸnC0/`_´hÑüqæÌ™·Þð&===((ÈËËë—_~iÓ¦qͳ@Ξ=;eÊ‘H4uêTºmÁ`Ì îq-‹²²².]º\¹r¥GtÛ‚yŽ<œ$É)S¦$¹ÿ~‚ Þ®F³|ùò½{÷nÞ¼ù³Ï>3®…ÈÍ›7?ùä“Ý»wûúúÒm c>ð¦booÕr&20AìÚµ«   1[ݰÙìõë×8p <<|ƌϞ=3¢…H¿~ý¤Riff&݆`0f§,œÂ4oÌæáOŸ>4hÐìÙ³ÃÃÃSOyyù’%KŽ9ò믿Ž=ÚXæY&Z­–Åb@ii©ƒƒÝæ`0&÷¸€0ÍszøÃ‡?üðÃèèè‰'6²ªsçÎ5jýúõÇ(æY,åååƒ>yòd Ù Ó’ÁS`˜fKyyyrrree%݆`h sçΧNúꫯ.^¼ØÈªx<Þ7 ÿþgÏž5†u–‹Ý¤I“ˆwTÇ4{pÊÁ‚À £3yòdŸ Ðm€G8?¾oß¾¯íôéÓ³fÍâóùB¡ÐÞÞ¾ñZ,ûöíûú믥RiÏž=鶃18„iÎ,Y²äÇÔétt‚¡??¿ 6Œ=úŸþi|m£FºqãFii©‡‡Ç… _¡Å2eʔÇ'$$ÐmcBpÊÁ‚À S0räH@0cÆ º ÁÐæáQQQHMM5Ö ž“'O†„„LžûL£Ñ:tÈÑÑ‘n[0£3@˜æ›ÍÆÑO ÇÚÚzÿþýYYY+V¬0bµãÆ»qãFvv¶———L&3bÍ…X,îÓ§ÏàÁƒ›ýž˜N9X8„iÞÐîáOž<ùðÿùæ›ãÖ¼oß¾yóæ………­X±¢¹®˜Y¿~½R©\µj݆`0Æg€0-‚ää䨨(’$?>yò䪪*º-ÂÐ@Û¶m“““¿û+W·æ)S¦dff^»víƒ>Ë寭ÜBX¸páøñã鶃18å`AÐ>>nÆ(•ÊN:¹¸¸´nÝ:##ãÁƒ]ºt¡Û¨‡…xx~~~ÇŽ=Êçó^ùÎ;.\8þü¥K—2 £×o!œ9sfäÈ‘t[Á4 œÂ4–/_Þ·o_ŸØØX™LöÞ{ïÓm†6ÜÜܤRéìÙ³M±ÏMPPеk×.^¼øá‡ÞºuËèõ[ûöíC«©ÊÊÊñpÓ±ˆa!ããæA—.]úè£Ð?GŒ±téÒ#FÐkU Ä¢<üöíÛ#GŽüÏþc¢Â·lÙ±xñâE‹YY5·¡¦R©5jTÏž=?~ܯ_¿S§NÅÅÅùùùÑmó4·Ûƒ©Ë¡C‡&Nœ˜••…þéììŒ3@ww÷´´´¸¸¸¥K—š¢þÙ³ggddüöÛoƒ º{÷®)š GGÇ””” .ØÛÛGGGÿïÿûæ›o,'ºÅ`€0ÍŸñãǯ[·ÎÏÏïØ¶mÛ'OžÐm†~:uêtéÒ¥”””àà`SšÛ¥K—ßÿ] |ôÑGÑÑÑÍ,>ˆŠŠêСÃþýû­¬¬&Nœˆ6 Û( æ ° Œ4ÆtøW€ýû÷ÏŸ?ÿÌ™3‰‰‰ ÃèÏ5‚0uýèŠååå&L`00ѹýõ׌3‚ؾ}{=LÑ„™ùí·ßF-‘Hx<r›”””Y³fݾ}í`?4Æ1µæ¼¦u즖ƒq»T•a…uKZ‡š;wî×_]TT´aúͱÊPÝ#¶e™î§×냃ƒÿúë¯'N899™¢ ’$£££×¬YùÕW_Ñ«ûFaÓ¦M7n,++›1cÆŒ3ºuëæïïÿÉ'Ÿüûßÿ¦Þƒ5SsjÎk,Á®i9«{ Dívcø_DKÞçøñãS¦L;vìÞ½{é¶…~ ç¢×ÔM!II’ß|óMRRÒéÓ§;vìh¢VîÞ½äàà°mÛ¶æñäTFFÆöíÛ÷ìÙÓ¿ÿ &¬Zµ*;;ÛÎΰæ`êÃÌšój,WZ FéH’D¡õaXN½³Ñ&7IŽ;VZZ:mÚ4º ¡Je‚ ˆ‚ TŽ^±Q ÷ºuëÖÅÄÄœ9s¦OŸ>&j¢ªªê‡~øá‡þ÷¿ÿ}ùå—&jÅœ$YQQqüøñ;vœz“-5@Íêø ´¦Œnsêç‚ݼˆHˆo?ª6QŸpu ʺ¬>˜Y @~ÆÁP?‚ ˆ€›ïk@vm`À‚ÕËýÂsÁæä³{V{A$ß×hî\<q ¡Ak•€>ï¼FpذöìTííƒËüB÷¨49gå üÌÃÝÃÃÃÃÃÃ÷³1~½[1@ua;ªÙoÙötdsQƱžAž›ÏÞGUe‹ñó$ÏÀÕQ?‹AàÑ]ϵúÛ«B7oñ#ˆÍ™o^™j"‚ns,Ž%K–¬ZµjðàÁþù§š³··ÿå—_vìØ1{öìÐÐÐÒÒR34úX¶æÜÿ~ÈPÄÈV½>Iuÿì²ê;70ù¾¦Þ’zn[ÍíÕ«cÖx„gàž³6/ Â3ps¾@õW2À¹mKý‚ ü6Ÿ}ªÜt9zkNø-»]ámõ[vðöKlÓ§Ç„.‹YHÄd€>Oµz®Þ“÷3â@~1"Ð ¿{J@sÿ6©SÕꀀí5©&$h%õ æ õ[tj‰±ùsèõúòòò’’’GeeeI¥Ò¤¤¤]»vY௬ËM€Ä\]v<¸"%I’$™Àʲ³%±HUÖS’-€ˆ„T¹4ÀÉH2OȉS…^dRª8€+”’ºìpn¬D–šB©B—'à¦*”±\àŠd$I’J \œ«ÎŠq¶B­T*м¬$W˜J’Šx¥rI|8ÄÊ•¤B|QRv®<>D ’”Å 2Q"IŒàÇ*ë»V—+®061WMëaìÚµ+))I*•fee=zô¨¤¤¤¼¼\¯×«~£ÔC;ÇoÛ¶íéÓ§ÍÖ¢R©üòË/»vízöìY³5úZš„æÈcù‘…¤BÀ‹•“$Iª³!±’ìl™ÀU×-©ï¶Ug'@xRªXa¢D,D¢”Ç#ýI•KcC¸|™’ÌŠç/^Y(áÄg)I’,”DpS/±,q‘¢$¹< <5KžÉàËÕ…"€Pœšš B™BÀ•*".p…R’$I¥Œ.έO0 ë/¤ëG¡0µæ¼¦u3´i F €Š‹‹ÿþûï›7o^¾|ùäÉ“;vì°(1"I’$•ñ<€ð$’$³Ãr5I’Ùá܈Ä<¥Ž$Õr©¬PW§D HÈBµHE<àÇ+©\‘TAV+KH–Ž$I]¸"™—„"-’$I²P HÌ.”DD摺¤€ÈT’$¥B€°°ÚžZ„瑤R&€$ªèr#„2…®Pž˜(U’¤ZY(Žà?A­”ò„©HVÔñ<à ¥õ^›'‰àK•fþæ_ ó,/_¾|óæÍ¿ÿþ»¸¸@õrñâE—½{÷š³Ñ¤¤¤Ž;Î;·¬¬Ìœí¾Œ& 9….€Pª Ie,¸‘©dÍí+ÉV“$©È–J³K^RRë¶Í‡×(Œ:ž!!I’TËxñYʬ’’$Õ2O¦T' €+’‘j@$W“d^Å:õÙF*¥<€HIY-h5*¡† "³Š¤¼êKHR'ç$d©sÅáÂBR ¨ÑI…\àŠºúÓ ~KÀÔšóšÖÍЦ4F5Ð#µÄèĉ–%F$I’daªðŃCÒØª$A®¨[‚Ò3†ðD2¥LT#Idjdu\Eê²C"S S#„Šê–sÄ2¥TÈ…±Ž$å±<àÆ+”R.€H¦ I]R8€ >·°0//¯°07IÈàK•:I¯VÓ"™¢P&1(ÄËs“ÂÂs«›Sˆ"$ùõ^›É­6Õ’@btâĉZb„Ð0Jý¯Är¸qãFÇŽcbbÌÙèÓ§Oƒ‚‚zôèqáÂs¶[—¦ 9:q­ ?VI’¤.WȯÑQ–²nIý·¼$ \B’Õ ƒ¥<€/W«Ï£ ¥\À—)sÃ"¥ ’Tˆ¸ž”—'¡B¨úmSW×F’¤:AP=B£PÊc)¹CIIDu(&å/^¡¢lS½‚iP¿E`jÍy5x Ƽèï?d O(–Ëå2™\žšÀñÕ•êÁí¶ŸÿBªY2I$_<]°ëŸ:%w2$ÀåétJ¥Z­ÌMM’l äæÉÏïÃŽ (¹zƒz€¾ð^Àw§¿ÒBÄN ÉLŽÞÐÞp-A.ÚÐé½ÑàüP"çLJx9^‰¿OW777—®‡~À±cªnœ<ÇIÕ:µR­VdË’$²àÞw'{óË'Kò”:R-xp;ß½<ÏêóœŠÒç qgÔs­\=(G¦bš.ýúõ»|ùòO?ýôí·ßš­ÑV­ZíØ±#::úóÏ?_¸p¡E>re)¨2·ò£!V"“Ëdr¹<1’âÛ…š’L¹zÞQR]˜+ÇÇÍ?–™S»äÖÃzoÛ?£ œ×ô…7ã€ûA'È“%ׯ»àÒnàÑ 5}íèV|þ®æ~4À N¶m¹p=õàªáÑáâeئ‡ÜÌ‹ÀõïÆ*X¨ÂÌc1›ÏÞÏ“%ÕÈäe^®_wvÉŸQâÕÚ÷ö(ÿ" Ü9yõ ¦Aý¼c^2¶.Œ†-ÿëáááååá1À½;@Î#Å­}{ï.a;¹sÝÛp§ü»NI—ž ?*ÏSs8ê”è±CücÊmõ17€ËMÎQ9 ïßJî_ïí¤¾vYQÇ3J4šüôùÜ0ˆøv 37IýÚîœ[¼R. ØPrÿ À`Ž”µ9éÉÀÞmëÆ…sg¯)€ÍTÝŠìåí¿ÿQå½óç€<~ˆ³dÏ|înà}ÐÙÉα#œ;z9_ªÛ«Gø„÷nÇ©{­­æÑÙS1Mš.]º¤¥¥ýöÛo³gÏ6õVц|öÙg7nÜÈÏÏ÷ôôLOOý-‘ühnDHBý¼<¼¼<<<>4àúUÎ|ï¾óÞg»tõôì íZ?®]ÒÖ©žÛV•“ 0 Ÿ+”Ü¿0¦§ hnHÄ0ñ}NÑý³GžVéõ÷ÏÆ Y)-ðWÿõ'@DO`{ 柋šÇ.Ûõ¥¶©õwÏïæNïù3^îéõ.ÄpùóÁÅñ%w ¹y~7L|ßI•“ ðaÿŽÀvyÎ- Ž‚ÔÿŽe´©G0¡vý-S§˜0 §1?GSHG“¤"µÎô³BÄžH–—jpä$_˜­&ë–êl*M ’š§#ɼȚD´:+­:$IR&â?A­– ¸Üê x‰ ’Tg'PoC™^M’¹&kýÜ8y, "[G*³kª©®‡TÈ5%‚ †Jù YmA‚š¬çÚj,& Mx ì­(--9rd@@€ZmîõàÁƒ®®®K—.­¨¨0sÓ®9¹âðZËìДP¼\!‰|>½+Õ‘º:%õݶYñÔä‘LÄA¢š$ÑÊÂIZWDÕ"LÊ~ñmd^R ‡'^eÛß".DV/"$²çsX‘â,C¹Csj’¼jÝCm(e|A¼¼¦Òº‚©0¬ß0µæ¼‚Äû|X ñö?Ys¡Z­.++S©TÏž=S(ÅÅÅ3fÌh¿²^U”§(gÚµqsἬ@_”_¶''£Á5—é§ÚißüäeýÊÕ»<’Ö”ä+ô/´¬Wåj8m\8lЫTz[› U¶mÜ^h­îµ A;vìpvvnÓ¦M«V­8޽½½­­-“É´¶¶&¢ñõ7 W| t:]PPP~~þ±cÇZµjeΦ‹ŠŠÂÂÂîܹ³sçN///³µÛ¤5§$?_©Ç6í¨[²nÉÛܶzUQ‰†ÍqáÔ–ÍÁPÛIvb݆±o&š’"pœœØo©o#˜æÄÔšój,ó;Á´D—®œ×”0\ÜÜà qrq©]T’± 88Z,J Š~€íT»eÇÍSó²F_ _u-¦yÁd2÷ìÙîëëûÛo¿uèÐÁlM»¸¸åѤ IDAT:thÏž=þþþaaaß~û-“É4[ëM'77§×•¼ÍmËุԾý$¯ ^²äœ ‚˜;w®¿¿ÿŒ3:´}ûöîÝ»· ¬9˜Æ@£æ4Û}Éš"Ü&®²²R¯×kµZµZ]^^^ZZªR©ž>}úôéS•J…6+S«ÕZ­V«ÕVUU™he¦I€Æ[,‹ÅbÙÚÚ²Ùl‡ÓºuëÖ­[s8;;;[[[‹…†ho´o„øjJKK÷îÝkccC‹ UUUÑÑÑßÿýÿûß°°0£Ô‰5ÓphÑœWÓBõÈ2id÷PUU¥×ëu:F£AÒSZZªT*U*•J¥Òh4åååF§ÓiµÚÊÊJüÓ·dÐbU4öb³Ù666ööö‡Ãá8:::88 ýXÙl6“Éd0F–µØ´Zm```AAÁ±cÇé2ãÎ;AAAgÛ¶m]ºtidmXs0 ‡Íy5x ¬ù`8Oå¢mmmõz=I’È¥Øl¶V«Õëõ蘺MÆÐòƒd666¶5ÔÊHžÎ0,kß¾}óæÍC[E·oßž3úôésùòå~øÁÛÛ[(Μ9³1µaÍÁ4 Ôœ–; ³@9>FG󠌴V«Ec²òòrµZMe¡µZ­N§CC1œŽnÉ ¡¡:-ÔQ!1BYh6›t 墢G-9D±fÍš­[·ž9s¦gÏž4šqóæÍÀÀÀöíÛÿúë¯no{ZÖLáEs^ Î5+¨»ªªÊÆÆu6VVVL&‰:bϰµd¡<3³‹Åf³QvšÁ` ¿âôqY¾|¹««ë Aƒ’’’Þÿ}ºÌèׯßüñý÷ß¿÷Þ{?þø£@ x»z°æ`ˆjYÏ¡YUU•N§£†eÔ<‡!Ðûg;¦‰$ÆÚ$Fè¿hÆd2ÑÔ†±6%à ±XßÙÙ9!!%A/jµzéÒ¥Œ‹‹3fLÃ/Äšƒy-æÔœ×X‚]Ór0[÷€t ÂÌ¢ƒ W Õj§OŸ^\\,‹9Ýæ¤¦¦~ñÅ<oÆ ܽÿî„Em«õÈ‚Àݦyƒ=üÕTUUÍ;7--í·ß~{Ó'ÒMDYYÙ¢E‹Nœ8±mÛ¶‘#GÒmcL°Y¸{À4o°‡7„ÈÈÈíÛ·ÿþûï=zô Û–j$ÉÌ™3?ùä“~øÁÁÁns0ã@ÿ‚; ¢²²ÒÞÞ¾U«VÔs ¦²råÊ¥K—<øÚµktÛRÍðáÃ333µZ­‡‡GJJ Ýæ`0Æ@–ÂܹsÑnªsçÎ¥Û C'!!!?ÿüó¨Q£,'ÚpttܺuëÆÁüùóËËË鶃i,8²ÄbñŽ;Ð ‚;vì8zô(Ýa0:?~ü&MštøðaºmyŽ¿¿ÿ7 —˽|ù2Ýæ`0OÉÓOnnnÿþýËÊʨ{{û7ntëÖ>£0ãƒ×½)ׯ_÷÷÷ÿ¿ÿû¿ºmycÇŽ…†††‡‡ûùù©T*•JUZZÊb±&MšD·iLCÁzD?Ë—/ß´iSII UâääE£UŒÑÁÐ[ð×_1"88xÅŠtÛòÅÅÅ#FŒ¸víZ«V­Ð懥¥¥kÖ¬Y¶lݦa0 ‚N=ªÕtKVÆ?þ855U«Õ‹Åòõõ=}ú4ÝFÑF­",jßLcÀÐÛQXX8jÔ¨ÁƒÇÄÄXÂVѧNš2eŠJ¥¢J:t蟟XÞ1/Á¢äÝÜzDC½  hÉwÈÓ§Oûõë÷äÉhÛ¶íÍ›7[·nM·Q´AÝÔ Ããcè± c pôÖ¨TªÏ>ûÌÕÕu×®]–°U4B¯×·jÕÊpA´]jjª§§'ú'–wL-,JÞͧGµNŠ¡þ‰ FÈd2´ÏØ™3g¼½½é6‡N OŠA·uf-çÅ`Œ€ƒV«:uê³gÏŽ9b![EÀŒ3vïÞM h­­­ÃÂÂÖ­[XÞ1õaQòn&=B·GU •••U5@ ¾OH’d5>0"`0 GGÇÓ§OWTT|úé§¥¥õpL„™åÝb•\žš•%—ËeâX¿è°á›ÒjdO8pne|fÃRl:`3_(bw_‘˜è×ÉR¶GÐ(ïæ[FŠÂ:åé^Ö›ÙþÀ `ɶóÕ}¼¾èØÚP®/Ø~ASo €êvr¨AD@hLf‰n\¸zóÚP?‚ Ä;{p­'ADÀžÌ°q„s׆x¸lO¾žZjõtO¨ß²c÷Ñ?$¯ö ݃†Π¿¿60`uÌÚ@OÔz†^õ(oð¸ S y°}YA„_àžô|ÐÜ?¸`óÁí " íúÁÐе›×†á°ìB~µíÉ15 G }Ý>㇆*ËÒóõšÛGq—,ùdÁÀƒ ÛÔÚZêS‡®Ý¾6ˆyqTazÐí¡×ë©õ1L-lll:Ô­[·aÆ™68¨…9åÝb•\ ÐÝc€»»‡‡‡×ØÐâypþ®¡Jg¨êèjIú?¿µÇî€>ÿl¨Ÿßš½;ì>z¹úÇ}Q“Kj>²ç²í4Lp”Ÿ=º:Ô ¿ÐÍ4zÕÝK—òÅú­M~€*É?»Ö/t{ÉK¾3h>òNš½^_^^^RRòèÑ£¬¬,©Tšœœœ`†¦_@—!)TH#xR%I’d¡$€Ÿ$Ï–KD‘ª¨[BJ¸¼È¹<5‚ À’¤<–!±I’„à'H$±á\‘‚TÆóÂã%2I<"%¤Z6 Z¦HDï!IRˈ¤jÓ0-#•2>Ä&¥&ņ@|V‘L,à S:E,€ž$“‹…|HÌÕ)屨uQ‚䯫±‚جlY$Âsu¤TÄà&H³²Rc€'’Q–è² €05Ô©Õjuž, !)4Té¿3ëÑÕT!€'U&¸Â<]v€ ! }0ˆ•+I’TÊcx2µZ HP“$ù¢&K…HíåÒ„t•¼uëVZZÚ©S§víÚef)TH…<™’Dn.Î%I2+ž HÊÊÓ‘dž\*ÏUÔ-‘Çò‘›’$©Î€8W'ñ DL’$©“ó"S$Iê²bx2¥2–™ŠÚÍM ÖÜ6ê¬x®¤$©\€ø,åóH-ãD$å‘$Iê²ø"™‚ÔÉyÀ“éHuV<$f#·Ï‹àÇÊ•òØêÚHR)„déH’$‘+‹.§ "S ‘%Ù àŠ”T¤È‹¥J’Ô©©"º™uY"àÆªIR&ä¿ú£L•Çò€«4ËïeìÚµëÔ©Siii·nÝzøð¡B¡ÀPS@fã—_~éСƒ\.7i+æ—wËUrµLP+»Àf«IC•®WWI27¢z7o®8WG’¤TÈEJ›+Ï%I’Ô%…u$Y˜ ÀMU$I>×dµ\@u¤Z/+|þéHR&är…ÏÀJ™¨ºE* ![]ÿ÷czͧWÞM;F}BÃ&éXá¿°/àœ·#AØz‹¢·%«Ü'¬ŽäïöïÛ‘Is¶¥ëì8uK8+;A¶Ýø[¬ÖpûuÐë”­ì ¦ò¾Å>  zéÚÿC€ä¿jÖ±ÝGE€ü¸,¿èj’"xî/ÌÅ*Úwä0:úsAzèÔh:&õ²%‚ :®€ ÔžskvÍõ\¯Ž(CËiÝ*5yÀªNÚvô ò›…5 | æ?ç¢ ‚iÛfÈüsàlÃ@A^¡Õ•d9ÏߣºbÛÖÝ Ëõº àŽ@Ëìq­S Šs0KgΜ9"‘høðá/^4QtÈ»E+¹ "Q–——››§;º¸gµ†"•®_Wº.†DlÛ•žcÀ¹·Tª+Ûâ¸Â)]@#OˆØ=‰I톬ï–܀皬Óå´o‡ä™=vÅæ/¼\ž:&ÛÙð{äx yÒ¢¢ôÃrˆÙ“]ÿ÷cͧQÞ[ÆVr*Yt´<GÁd‚N§àJòÔ:¥R­VÊS“Vò{×¾VþŒºB ` ­ìª ‚Û¯]Í Û‡†EsR³ Õ$™'‡âtî ç kv3Ó•ç´³3Ç–Q ÆXLš4iï޽ǎ£Û#aÙJ®hß§·›[מ={öìêVG1_¦«ùñk£¢bΰÝGE‚|[|ün1,™à ù)w?QŠ>·,>âVŸ¬g}uõŠgý…í1Çn—~º:˲zNò¢þŸ½û‹âº÷ÇÿØ…]pÑ! Ö€ASMe©š\É/Í¢iCl²4Ñ&kڢߴ¼mcñ“øè¿7\lnãú¸MÐ4A Í›ËlàŠF—š%É¢B#ÄÕ¸´BÙ» ;0ÃÎ÷ã ¨ˆºËûù‡.ÃîÌ{‡™3ï9çÌ9;JKK¶šJWÄÝ?!mB$@m}­¹k~pojêüù©©÷.2(y¯ùø«3g.-uiçg<´8†.™>×û«û›Ý:޼‘·$ó¿þyɧ¤1°çÖžâEwÓï¡àöÀ‰ï ¦§aÙ°¡ O?š&/ìºÔêêZNtêf-4Á^úöQ§óžxÛ°(ó8ŽìH`CÑžÀ[»í¹:dçö¹‘÷\Å)p7n]Q†åóä#Zè0ýæ¤x´7üδqàû×u®Ã«ºcY.6åîiñÞ}E¹v䪬"„Œ}K–,yï½÷rss_{í5¥c¹Æ~I.ßÁ³6h†-W·?½¡Îdu¶,K~ºÓ ‰Y%Ù;òò,†âûS4€÷í-E(X·|!ûÞóÍ1ÞwàTÀ¶t³ž4!ï¹ÒS¼ØÙX¶hužC¸Ì-ë‚GŸFÙ† úe³G±BÃD¸­÷xi‡¡°~öùï:û±BÃ’×½\ZcÚ´dš:]ã¸- ƒ—Ä'ÝV]lË4$°O–Ú:R5B= €Z^uŒZHÀ`Â’d- ›7eMß VP%-.6bÌ‹Sä¶+̘¬0 ˆXU$Ëݵ“Ó XiXšâùôkIBú¢²µ`*®)X¨÷5ˆ‰ xαÈ4§`®qÎÖèg–Õœ¶(YÛÿ™Ö_ß+G2kéSF˜’ÕEr rQ”÷ض{Þ]–äͼg²çÓÿ,Ï¿Ï4'`¬´oJ†>JãæÏŸðàÁûï¿¿££ã7¿ùÒá\±^’Çàê/¥“\®N;µ'y­%¿²uabJÚ›åæ¬Ü´ÇøâÃIsZiX[fXŸ óÈKu(1ß!¯NgøN>ðÚ¾æÍç7¡Ë~Åz8!=Y›ÀThYªsÔ|½ÿ¿D²øS±aÚ†;â >ã×—Ü?¡‰»®Íl’$±§"}>ß×_íõzÏ;çr¹ºººV­Z56:pðí§Î ê¨ã5]ÞÝé¡ÓÇëFœ1Š^w„xýO´oä¦uU¶n_ž2Â5ñ<4ðÞv¯ÕéõCâð6n‹YéùôÇ|»[¯?Ÿ\ñí.Ú„Ä!‘ˆÞÎ^¯Ó@ôzE­N£‚Èó¢J¥Q©x;Û]݈–8òo}=p·k×®¸¸¸ØØØÉ“'ëtºèèh­V«V«ÃÃÃiBøq„ã®oC.æÿøÇw¾ó¥K—þþ÷¿¿V§Ì+ÞÇ~IÞoDåê©Ý\òæ×§ú‹¿g¼»Ó Í0ˆ‘þJ÷ÏUR¶xŸ5@—¦ILJºÜhôñ‰W¸^•NŸ8¤ÕˆoÙýøœä6güœQiäÓW£KºÒuÃ΋PÅ'Æ_¸\Ÿx‘ØUºøµ©tý¼ª?Õ€ó¿&„Œg7ÝtÓÁƒ¿÷½ïeggïܹS­V_þ3ãÌØ/Éû]®\å÷lþ©iS j®0û ÑŸOöFcûg\›}€ÆUÌôLs©ÕñÂìkyj§/­¬^ª½Æk%„„ˆÉ“'¿ÿþû_}õÕC=ôõ×_+ÎøvýJr@õ´%%¥ÕÎÂŒk¾j2Õ•*qášu ¯Ëšãç/àz¬˜"4Í[o½•››k4«««ãââ.ÿ2œëW’ªùÿhþõY5„j€!d¢õÕWï¿ÿþ;ï¼óôéÓJ‡Cˆ’®o ›ŠE~Á„…………QâE®;f"]„+òÿñ7Þxã]wÝõ׿þõ[ßúÖèVBÅ;¹&,ÞƒÔFg¹Þ!„QûÅ/~ß}÷UUUÝ}÷ÝW³**ÞÉÕP°xÆ‘*'tì{†‡‡‡‡‡a»$d°cF>O0pPBFíñÇgCEïÝ»wÔ+¡â\%‹÷àu‚fgˆJ¥ gaÒ5ŒŒB¥RÉg!äê-]º´ººzÙ²eÅÅÅ?úÑF½*Þɨ)X¼) ¼9P«Õ¯¿þºÇãéÀó¼(Š}}}AŸ'•Œ!ì Q©T&**J£ÑLš4)&&&""‚$ò‚Ò‘"n¿ýöƒ.]º´££ã™gžÅ¨x¡W^yå§?ý©ÒQ(f ïÁH€XZǾžJ¥ŠˆˆˆŒŒÔjµ¢(ÊÍÆ‘‘‘½½½}}}4PìDÆŽv>hµÚÈÈȨ¨(ö"""‚Ý_²áA)"äZ™5k–Õj½ÿþûÏž=û /\Ñ]8ïW$&&Fé3‹÷ëž………õõõÉ·ìþ@£Ñ‚ I;gØé!‚ßï§3d"c‡>;HØYÍîä»ùr B®6Tô²eËž|òÉÒÒR•jD—*Þ¯”^Å£;‡Œ1X¼£ˆÝÈ'ƒ(Š¢(úýþ°°0v¶ôôô‚Ð××G·œ|+©V«###ÙÉîèA0B®¹)S¦ÔÔÔ¬X±â¡‡úË_þ5’OQñ~Ebcc•A1c°xRXxx¸ßðûýF’$vz‚ÀNvÎÐ2Á±3„õ¦T«Õì<‰ŒŒÔh4†Ý:ÈMÅJKH¨Ñh4UUU?ùÉOØPÑ#¹ZSñ~Eâãã/ÿ¦5‹÷àu‚–O´ ‚ ÕjYí(;=è ™Èä»IVS*7³ó„²B®·ðððÒÒÒ‚‚‚;ï¼óƒ>˜>}úe?BÅûÈMäéGÆ`ñ~Ý ÀѱX»²¼ØsòÓ}}}è ™ÈXÍ';än•ìvõ’cJÊ£f)/!¡©¨¨H*ú¶Ûn»ØÛ¨x¿RS¦LQ:ÅŒÁâ=H}€°Ñ±ä†Ý1Èç† !‘±)p0PÖÌN‰À"¨!A——o4-KzzúÅÞFÅû™àOµâ=H kÆ3„ <7è ™È¸!S ÉÏÈ/äIé` qO<ñD\\Ü÷¾÷½×_ýÁö=T¼_‘I“&)‚bÆ`ñÎíˆdC`±3ìGùÙH:7xžÈDÖ‹R qŠ],•Ž‚\™¿ýío=ôÐ /¼““s±÷Pñ>111Gé(6¦Š÷àM…Á¾•ßïg_[T>1è !ŒœþË/äS‚RB‚ìßþíßêëëÙ0‰¿úÕ¯†}ï#©t SÅ»’7dƒ6MgaÕRkWÈ  ñËét~ç;ßyðÁ·lÙ2’S’Š÷¡ÂÃÃYgð‰lLïTB‚„ qÍív/[¶lÖ¬Y¯¾úꇊ&èøkèïA ºŒw>Ÿoùòå*++G8T4‘Ññ?ÖP B!#¢Õj÷ìÙ3uêÔ%K–¸\.¥Ã7$Izë­·n»í6J€ÆJ€!„ŒTxxø®]»-Zt÷ÝwŸ9sFépƇ>úèñÇ?qâÄG}¤t,ä<ª‘#„ 5„’_|ñ÷¿ÿ}CCCbb¢Ò±Œi_~ùå­·ÞÚÙÙ `êÔ©'Nœ˜ÈãA%ÿ û IDAT)Ô‘BÈ[¿~}BBÂÃ?7kÖ¬›o¾ù¦›nºñÆ/^Ì&#Ì~ðƒsçα×^¯wÅŠï¿ÿ¾²!†nÈ!AB5@¡gîܹǎÀfµ°gÏ£ÑHhæÿüŸÿóòË/ùå—ò½^Ÿ››[TT¤`Tc‡²ÁS !„QZ¶lYss³ßïA„¨¨¨¶¶¶Å‹³ßÒ0ÐO=õ”Ùl\ÒÓÓó“Ÿüd"$c#pI0QD!d”î¸ãŽI“&É3¶«ÅŽùº.Û¸J€!„ŒRàýºœ~u|Ó†%L%¶Ú矘¨×éâ>±¾$Ûx²å,€–}Û2XÍËší-^bí–59·l^“Áq\Æšk·ä,ØXV¼ÔÐ oËö9Çq\Úš-{Üø¶7_³ê§'x›*²²6nß¶žã8ŽË©=År ï›ÓXÝÎ΀ز9kÍöÛ28n{Ó?ŽTÕŠM÷¦ÎNMMï¯ØK­<€öÆÝk28Žã²ÖooãÀÛV»1+ã8.-g[$¶WlîgsE# 6l[“³qÛæ.kÛ‘Ú7^ûj…1í†þ…M¥E(Xšâ´×Âx'KHœ50dÌÐà4Kq î^7gí§wÙ.IòUçésãáþ¨¹ó“Dçge0Ì›¡€Î¶­À)ª£ïÔÍVŸàóø|®V[umõ||¼Ûž}÷,¶Ù6ëVdߟ4ÿx›vfnEá³yk`0;Áãñù<ŽúêšW~8½Éî[W%ù:VKI׎¼=Ç;½Nì³M{¶m¯ms4„!3YN{-Œ÷LS9XeLfoû¤ê%dgߦr®CÖɼ³Éã³ú»"øF²³çøNì€áö[õÀ;ÖaùíÓåýçþì#;Œw$k/º7ÒYo!ï'åvÓs¿üìÓóû¹³!X4[ïl<Cf²Ô}0[‚Ïãóyš­Õ5ö_Ïöl}¢ˆBÈX »ë1v¬øuEƒ—ç;Ûl\0s+ríQS§¡®êH»±³â׆2äÿxQlcÅeЀxl–ÏÓÃ}ü´ùfKòóMMÔµìÛ–¹¹sá=¹¸sî4w›µ¿_0àþü# V‚.Ñ€ºÚO\Ш½Ç g.È|óŒ–?SkÇ’¹ €Î£ïøªµ­¥©©q_ÅæÃjCaMAFblJ*ìUv§O§óýïÖ‡enëV‘·`NÞî6M|RZZ€„©Z8ÓÖ)Чl3˜òûÙþ2ÃÊoë€o¬±¸Cç>U ¼ú§:/ĶÚm‹6ÙÍë—¨:>Û$F‰šØéÔ½±·@۾͙[QòÌw½-G€eì»ðο—i) ò=Ù°†¬ê‹îÅߺxGµ™ ¦EÅLC]Õ¡vÞ–ÍK3üY 8ÆâTÀ±¶.•FwöHÅœôÌ¿T»¶>.]ï66Ba¨À %ס$IÎÒ|£|y2ä–´²N3{¾A^Z`í$ÉY[]ì×%Ô8%ÉSž ¥Í–²óMPØÖ\ ˜l>Éf6"¿šõ¤±›0•û$ÉÓ\)oÁXPéêïôcêïÙë±™.¸r +mý½|­Åç—[ï$I¨)<ÿ-rK¬‚$¹l¥ò’BK³$¹Ì¹Wû..kqà6òK­‚$I5F(tJKáù-™k’$ÙÌFäV²H:ê Üæó”<¥&Šë%Éw±½aïïòT mIòØó#È.÷Äi+Í•S\Ý:hë£EûqR"J¡¿2‰ë=ùÇQ:¤Ià}>ß×_íõzÏ;çr¹ºººV­Zu5hog§W´ºX½.°o ß~ê,¢bâõ—œÁ@äyh4*@twº¡Ñéuˆ^¯¨Õi.7óïnw‰Z^¯»Ò9ÄÎö\øIw{»G@LlÂùe¼»Ó ^±@·e,8ò´ï,o»[/{‘çE•†}ÊÝÙîÔº„ø+ŒqÄ{Cô¶wxµ±‰ÃŽ¿Í»;]¢*öâ_áJq·k×®¸¸¸ØØØÉ“'ëtºèèh­V«V«ÃÃïw‰DSa„,ià†ûKaE û—K >]|üpCîi“’Fði•¦ÿÊ­ÒÇÇ,Ó(]ÐèGâÆù¤>1qpÓF©ÞÂÞƒyu†³*Mb|à/’ÐÇYíÈ"éÞPé/:â¡F?Ê=4&Q‚äD‡ -ø/äÑ6ɘ6èuà¿ 4ˆàÑ«-÷,˜£t%@¡†5mÊ­§òøâËåw**QœÙp''=2I’ä唑K œ+0¥&WH•úÀÃJÇ Œ°°°À£(hÛ¥(ÔÈYŽßï—g˜c9›jNÎ(šÈäv.Vô„………‡‡³U*{í÷ûÙo•–ŒEC¯UlIxx¸R!‘ñˆõõöXºÞ›¦(¤È5=}}}¬¢(Šñññ—ÿ$!€ÎÎN¿ßÏz †‡‡³Œ™nëÉ%°:Ò‘ñdÐÁC5@dôäŠQ{{{{{{A•=dd8Žãy>""Ç ÝГK¬J”k•ŠŒ'r•³œý-¢#5tvúéëëëéééííåy^é¸ÈxâóõÏêØ:Æ~T:42F¶¢ªÕj–@ÓCF(""‚U9ËRÐ6M PHaM`¬ñK„žžžîîn¥ƒ"ãIww·Ü“ƒÝ“Q¹¹ï3«ûa PEE…×ëeãù|>VÍîÍ”Ž—(†•'Z­V£ÑLš4I§Ó±H® f?hJ€Bßï—Û¿xž÷ù|JGDÆŸÏÇŠ!V1JEƨa³Fí÷ûÙ¤V«Aèííea(2Q »­béŽF£‰ŒŒŒŽŽŽŽŽÖh4Jå@”…¹ L®¢ˆ\)ŸÏÇ®d‚ ¨T*¹[=µh¡;Éí_Z­VEI’Ø%M£ÑôööŠ¢8™€Øq¢R©X%Pdd¤vÀ V0« • Ð!ÏoªšåV0¥ã"ãIOOF£añÎÅ£t\dŒ’û>«Õjöð)kçR©T½½½Z­¶··Wy ¥ã%ŠaÉœ(³ä˜%@r%Üòœ( )röÆÿ J'hoÅš{Vî0Ø|oÌ¿Ô(ïW«v#·~ŠõÓg,ëÜ’–€R×3ó/64ü•ÅÆ·UhgþÑæ©0|ã–´MÏIo,¿âˆÅ–õê9[äšk^X—¡n+cÏóZ­–=H(ç@JEÆ.ù¶Þï÷GFF²£…µ|±†x–L³:!J€&2–©T*vx0¬Í”µˆ©T*ö[êDFIˆå@¢(^×Íuxyå;`ÿÜùÊü”ë—u~T„åÖ[/Xæý¼ÜŽçâ´×*¶³ï‡á±Û.ÌKâo¶,½}‹Î϶æÛwâÕ„¿×m_‘·dñ2ßÝÃmeìvËNÙ¹4¹Ë<{úµ–²êÖß74ÇÄÆÒšð,’ÿe}€‚Ù šîAòô¬7ôõÜTÛó‹6d›M@û¹þÎFÞ¶ÚYiÇqi9ûÚøa—Þ;7§qÇelÜÙ à[6gålÞ¶%+ãÒr*jl_ŸÅq\ZÎövð~¾¨{í7ÇqÛkOð:ìÈžÅïÍÊØØÒ_ÏÕ¹sMÆÆÝ-‰Mlض&gã¶Í9\Ö¶Fˆí›s8Žã¸´ÍÚwÀ~° 'ƒã¸Œõn|Û›¯Yõ7y7geílt³m´ìÞ˜±¦Â ´7î^“Áq—µ~{?xýmV wYÆüÙ©©©©ó—/_ֿˆnèlܳ¾em¯m±}wxÜæÝMì³C¶xí±cF>„®Ë6H¨;AËý ###Ù }TTTtt´N§‹‰‰‰‰‰™2eÊd2áM™2…:N§ÓEEEVÿŽD}€È ¼Á’s ë·¹¦í¿ÜŠÂŽgrJ7äU9³n¾|ËÓ3—D•Ô´þ×”¿ütAæ#÷ø^òéþœ»º,»Òjm~mÉêô¤žUQ›,e°äW×[t‹L+—”eWÖXîZbZ[öóü?QÍuN|£Þn}ì¿s×.É»ÃSe«…1ë–ØØ“uEVGÁìÙºÎÚWïèªÿÏÙÃÇwë;ÊìÈ.4¯5ª7«§mB~}³ýleÞŠ•…Y¼rÔ  ì¦õõ&ã¢+_ÉÉ\7¹aÃŽw¬/üzòIË‹|ö£ù ámüÍŠ¢4‹ÃµgýLÓÖ‚òz{Ñyé+:ãŽÚuÓÖ?½­úŸŽE^¯£bƒ (¼?Åû§![yfÆÇ L&su«yÚç «—dü@Z×ðëi+>-¶µ¶~ùÁo—¬0Üç‘ë†nqþ5ÿ›ÊÙ¼„îÚɥɭ`…Ñô;d‹M¿Ãš½XM®Šˆëµ¥ÎÚìµ–bkiúeÙåÍlJ3A 8ûa–ÿ|4È0à¤ÓÕÞù»"ä6ÿ8õb±©ŸÔÁd¾+àß/-BaýB–>è¾øÆBoÓö:ä¾´@€o>TÓ Éš¶×·¢ &šÔ{Œö7íî!wƒ½´yµ¶õ/;¬œS¶²ÿ+Í/¨GÖð'«ëPPiûù]q>Ÿ•6!)Qx›>º÷ñ“ï¿dZ±¢UÙ¥©¤<^’»uíŠiELåöÒYËÐ-^§~DÃHô$<¹vÅ’§Îeƒg" P¢ŠH® b/Û¼‚<æ*%@d4¼M¯š¶¢¤Æv×@­þ{UÞŠM-¼ÛqÜ·®JZ×yêÓÃûrMk÷¬zHÐô\°ä©‡4ïÔÍÖwŸNDˆÎã §p÷|¼¼ù–bDZ0ÔÜ¢à´UѬ9ûZîx&™mú“ªW‘½á6¾m+Ps‹à§PU¿ûÿmÍ·8f«.›¡é ™É‚× ÜÁVØ´gÛ¡IËŸ®†1kš œMaȘ¡q¿R„ÜÊ$7ÎJ:,¿{ÑžkÉž­;UQƒÙi{ZçÕ8{äöąGõ‹ëï°[`øå’ù‰> æ´ ÙŠÐðèÓ´’§eQ¢º9GkH5|Ã{ªeêþ ­úÏ–ãW.Y™ýÆ'Ž Ýb0þÒ„Œ »tÉO&=”‘@·Rrê£Èý%@dÚ·Ö¢ fMF”YêǰéÍyO,X0«²uûò”´´$ Sþ™÷­».X2U?É€ºÚO\O/Œõ6nš¹`k®E¸û€Ÿ|ëî¶Oe)ñ`\XþK]g[-WõÞê9vÔ¿´h“ÝlËô}þ P@“z©nm^¡¸ãá¤‹ÆæÏî/3¬üùùZ“3mâ‚îÃ/Ly%ö-µ²6é€?¶¿ ËsõÞ“û€'çN ‰¿u«W×ê;V±)©°WÙ«H÷m~8sÓ »oÑÉ€õ;–Ý<øñüf»€­¨N쯃¡æ‘E‰jwEž¡ Æšéúã%±é¶RWÕff'†• oNá‡l1ãºý} ¥‹]Ì("ÌØªH–HH`#vwwwuu>}úرc‡Ú»wï®]»®ù_ÙaÉLVÏù%¾æR¥vWM¡Q>´rK¬‚$ Y"yš+åº cA¥«ÿã&»O’$Éf6"»Ò'I’ÔQ Ô8=63y-ÅÕ­¾MrV(±{.Ûi³…õl¡ËV*GUhi–$g!Plu±_š (¨q²¨ll› È.µ¬´µØtþkÕ;ö)yýõ…äV ƒ÷Ü0[‘\¶ìeçf0šmÎzóùSÔTÜêv‹×€]»víÝ»÷СCÇŽ;}útWWWww7Ê嚬ÿêWB!×'Qb¤9PÙ„^¯÷ܹs.—«««kÕªUÁü+»ÛÛ=bbô:ÕÅ–€w·»D­N~Ée‰ÞN7¯ÑÅëèÃï^£]e^|øÊê3yw§:½^3ÊjP±³½Wö.¶&o{¯‹×i z½¢V§QAôv:]Ýê¨ØÄx¹ÒêÚmñ"8ŽÛµkW\\\llìäÉ“u:]tt´V«e#´^ý­ÇQC+¨ Œ\cúÄAý^†Y>1ñ ׫ÒÅÇîõ{jß–Õ6ÔÙsí¾+Ì~hôñW5p£*þŠ¿ÃÅÖ¤KLÔ ¼ìOnTºø¤Á_÷Úm‘B&<‘Œcjý-YOW6wü!õzÎÂA!$ôP Ç._·ðòo#„B¡ PÃò˜ $4ÈÃrsD2B 2º@†ˆ¡×*y’B¥B"ãѰ“R&D =”…ynB™Ò‘ñdÐÁCy!$TÑÕ1¤Î6'ÏϬtPd<4'3ÆÚÀe„rÐÕ1ÔN´«V«#""@×02blÔù@R:"B¹.( )rßgV÷Ã ŠŠ ¯×ËHôù|½½½½½½|¢ïîînQcbb”D1¬Ž'"""""B«Õj4šI“&ét:–Éõ@Ôû‡ª( Ãf?&::Úï÷³ë™Z­¡···¯¯o"É{ðàÁO>ùä™gžQ«ÕJÇ¢ ÖAž¥;&222:::::Z£ÑPD™( €äö/­V+Š¢$Iì’¦Ñhz{{EQdS;)²bNŸ>}ë­·¶¶¶Þ}÷ÝJÇ¢ vœ¨T*V ©0¨ Ô„J E”…¹ï³Z­îëëëëëcí\*•ª··W«Õööö ‚Àª&l˜ÓéðØc½üòË=ôÐÄìæÂ’9QfÉ1K€äJ ¹7´ÒÁBȵG PH‘oëý~dd$«ãa-_¢(²ìÇï÷³:¡ ›ÕÕÕ¥§§/\¸°²²òïÿû=÷Ü£tD ` J¥b‡ÃÚLY‹˜J¥b¿¥êBHH¢(¤Èƒ²§ß%Ib9Öé‡Õý0ì·JÇ«Œ?þøÉ'ŸŒ]µjÕ믿þðÃ+‘XZ€%@ò¿¬u"£3¨x™°¥ dè «JEJ€B ;’Xƒ:°O´ßïg-b¬ý‹Q8b%œ;wîĉßûÞ÷^~ùåÖÖÖ (W°É3]°v.ö/ë;Ï¿G¢ˆŒ„\©,w1” ™‰YÚ¡ “AS6¿µ P#·‚>Æz—»þ *›&”>øàž{‹c?®]»öõ×_¿ï¾û J]æåã„9ìu`'hB.¥>¬xa%Ì ¢fb–6d(ù†J.|ä‘{ÙQÌ4ˆ£ã2ÄÈeÍФ‡µ|!àFmúîw¿;oÞ¼ˆˆˆöövžçÿõ¯9räèÑ£7Ýt“Ò¡) ðÞK®ï ìû|m«8Ž œÄÊVÁÌÊfhÉCý‰L.IXÛº\Ú0òm‚˜Qyšä2¹³³œMð¿øþýû?øàƒØØØ?þñ«V­JOOONN¾ù曕ŽK1òݘ܄øúšok‚~¡‡,ró:ëk(×°rY]]]ÍîÁìzHM`¡‰]ºä§À¯:ü ´téÒ¥Qž7™ IDATK—øðÃÓÒÒ–,Y¢tD Ú$¥{&’qD¾Ëb©(Š‚ `—3d„8Žëíí•$Iž¶R®{ÂÖ) e»˜QÙ ..îË/¿d5®%:äjVÿˆ¢(Š"Ïó½½½JÇEÆŸÏ×××§ÑhØ X___xx8{„ùzoš ‰ˆ.{²²²bcciWr•X$BOOOOOÏçS:"2žtwwËéNG^¥ˆLP<òˆÒ!2îÉ]žÙP«===ÝÝÝJEÆ“îînyyðÕà¤A”B=I’X×Axž§ rE|>ŸêBAÛ4ÍòC!d4ئìYw¿ß/Boo/ÏóJÇEÆÖoŒMÓ$?¶œ±Z("Ô‡~¸víZ¥£ d|“Gúa Çyä­X“Æq9#û|[Çe4z/Xظ%ËÙ}å›voËà†ÚÒèQ$-;9n}›xå›XÄŽŸ OÔMM`d‚R«ÕJGAȸ'¹ÊÒ öüxÔyàå•;ì€ýsç+óS4—}ÿÙ÷ÃðØmº Æ-ÞlYzû•o\g2[ jœù Ý´¡ ¼æ‡³§t ÂÔºËp6ÖÀ¸$a|^ÏÙè ìøaÇRÐ6M5@d‚Šu¹\JGAH(`ÏË”gtÚž_´!»ØlÚϱnLbö59·mÎá²¶5Bl¯ØœÃqÇ¥m®hÐÖ¸öƒ9Çe¬¯pàÛÞ|ͪ¿É»9+kç@åMËîk*Ü@{ãî5ÇqYë··ñƒÖoOJ]¸pþü´À¸ü‘ŒÔùó.\˜¢*¶°º¡ŒœÍ "o[íÆ¬4Žã¸´œ}m< Û_fÈ2è€Î†Š¬´Œmµí íÃÑ›àO™B ™ ôz½Û=¢êeBÈÅÈãË­tP£Ñ´ý—[Qøûgrœ¸^ÝQV”÷Ù­æµFõfõ´•›¦Ö7Û+ ã6­,lâ;Z”Ý´âÿÖWÖm]ùJ£›w6lØñNĤ„É'-/~ðx³¢(mÙÝ®=ë§-X÷“z»µÜ³uíOw4^¸þé,Œ‡ª€¦T?Ú“—¾rÓõöV{õ¬²M¹²ƒoyzæ’®Ì[[mÅqe™ìâÑaݧ3ÚölLH_yÛs/­ËHT`Ž–\÷ÃÚ¿Ä‘êÆg•!W-66vüÖÕ2vN³8ó×xÒY›½ÖRl-‡j²]_€÷ó*; kœÏe$vÖnÌ„Éêyq¡øyQþgï©¿ú¼ªÅV×3 õ§±éQڳǎ+oÑiÛ €F  áåÕƒÙõ øõÖìòæçŸ˜  ÈüÇôZ»wµ ¯ ÞV]‡‚gã~Ž™ñ}‹uãà §¹Û…(`ÙܽÇw—%³’¦¥¤<ó—ÖÅŸAån{ˆÛòèÚ²ºR»ëG©úàï¿«ÁòEæÍ¥ 2Aqçñx”Ž‚ñjÐEkÐ ð㊸çù%v`Cz,ÇŬ­ƒÝvÜ ðŽOê`ʺ+àß/-Bá/²9ú…/¾ñÜ´|R‡Ü‡èð͇ê`š¬i³nEÁíñФÞc´WÙÝî†Ü öÒ7Wk[ìÊVÎa]›ÓóêŒõùõË8[Ÿž2ð³÷hÓ‘çÒ“9N;mÁV =%Ag0›°vÉL-ÇeüæÉ·¥øN·ueu@núœq–ý‚• QD!dâò6½jÚŠ’›Ýf³Ûí•…FXZ:D8𙬠x"Øû›ölÛ^Ûæ´UÃxç48›Â1Cãþ¨¹ó“Ü8+è°ü.מkÉž­s6ÖÀ`v ‚ÇãóyõÕ5¯äÖßOt~¶¸ã[7°Û÷-Z¹{ƒµÕ#HõÅ@ö­qÞ&»o]•äëpX-%];òöw;ŽTÃTêpÔ±ãŪ¶ î»qŽ B!VûVÃZԬɘŸ:~jjê÷V<|ú/ŸøÙþ2ÃÊoŸ ëL[§(ž:°Í`ÊC|ÌÑ ëw ðÇö—aù<½÷ä>àιÓhâoE݆ÕE¨ÿV±)©°WÙ>Î÷¿[^”¹­[‹Áë:Ú>²S§õçDÿüÌ Ãï_˜ç_´†ÔT'óÌÉÛݦ‰OJKK0•kª¶˜²Ò“’=‹+*ÆSÿg¥QD&®Ÿüä'T: BˆbNíùÝ&˜¬Ë"ºfÇ?V,¿ó€î/”bÇʵ:yQ^¡¥yMªÐ\†• g|+ îNáö:˜ ɺdƒ È.-»7ôi›ê2“c8.6sSz½swªÆ°þ~ÿø ÏóxžÏÌÌ´Ûí¬§ ìÂÆr¾¾>ÖÔ%‚ ’$MÀÈï÷ÿñ\¶lÙ±cÇ$IŠ‹‹S:"ŰÌF= ""B;€åCÁ™ÿ+%@„ëkݺu‡£¯¯@__ß©S§Ö­[÷òË/+¹XÝ$I~¿_­Vûý~I’XKË{z{{EQôP:Þ`«¬¬œ4iÒc=ö‡?üAÅ©S§*‘bŸŒˆˆ`ÿFFFjµZV$w…¦&0BHˆxë­·§ñù|o½õ%@!#𪆀 !V$küb¹‘ÒÁUKKKuuõ«¯¾:uêÔo|ã<ÏOð ÖÂÅÖ1@~>h!]YxøN´C™„¤ 6Ì›7ïñÇW:ÅqÜÛo¿½xñbÖ@£ÑìÝ»WÙ¨È5!w×`•@ìò˜ùýþ¾¾>V÷3¡®>ŸïùçŸöÙggΜ àæ›onii™2eŠÒq)F2ŠÕñÈã&°Ô‡¥DÝ€‚Òå ¹ÒR~Áâ u(“På÷û‡(ŠJ²8Ž›7o^aaáoû[öÀÝoûÛ (¹6䫚J¥ ̇XO ö/«þÁ»j<õÔS³gÏþþ÷¿Ïª4’’’>£t\Š‘vœ°\‡µy±ƒœýàÒ |Ȳ×ýȪ1)"¡A§Óýë_ÿêééQ:Ð$Oëó³Ÿýlß¾}‡NOO_¿~½|E¤iÆ;ŽãX§ùG–ý¨T*v¥`}¿&à%ãW¿úUaaá¼yóî¾ûî{î¹gîܹÑÑÑJÇ¥¹4À:;³t™¥ÎŠŒÍ]숔Ó†Õa²=&Ø1MBÌ믿n·Û_xᥠ5r&ßÒuuuUTTäää$&&v”…€AwËòM²|Q8>åtvvîß¿ÿþýo¿ý6Çq'OžT:"åÉYŽ,°â'˜Âð |³¼‡ á0‘0 „\n·›ÕxË]‚<ý!¹~.Ö_ø>¹ªªêôéÓëÖ­ðÕW_Mš4Iéˆ&Ÿì÷Hƒ^ÍðM`rÕ%ëÅ&Šboo/&ðAL¹zÇñ<!I›23°VœŒwW²A‹ {í(++ûáÈŽö‰ÜZ6èdWöܦHîñÞ`d9ôôô̘1cÂÄ„«ÇšØƒ¯òà÷¬-Œr zúúúâââNœ8¯t,díÍÚ¿úúúz{{yžƃBF§»»›ÝG…P:(B® ›ÍvóÍ7Sö3f Ÿf?‚ ð<ßÝÝäÈ!¡§»»[~–r Ú¾ÿýï+¹¨ËôE±§§§§§‡j€!WÏçóÉÞ÷õõ±‡¥•Šëâ¿ø…Ò!KæÆ+ðø¾¾>ÖHÅ•«'z½cjäAþjây~L}™±çyV¯,¬‰ý˜4!D)Ã×<³ä§ÀX'è GF.OlÉá¸íMÞ –ÚÍq ÞaÞîmÚÎ] kgC;€ÆmÜš=A»ˆ{›vªc~uJ<µžã¶4¸‡}Oã–4nÍž¯ÒÝx Ñ=’/ÐY;dçx÷lÌÐÆÄ5Ø/OÓö,.g÷…7ÞíiÜÆÚöÎ ´?Û7âP'ºžž6;&+^G#„`ºhÓ»\$W3,2¢óhL‹çèv4ÂUŠm–‹VŸÁ;½Ÿ¤OÜ9íu¦¢ºJ»ó×i7]<¾©Úb¼ç›š ¶ê¨¶cnblüÂG ;¶4—q’¡äêŸÀ BBÏoûÛgŸ}Vé(È¥\ªï!»9c÷j‚ -¦qÏÛ²}cÇq—¶fË7ˆM{¶epÇqëwž‡]¸›¶­Ïâ8.-cÍî&7oSEVÎÆí[Öp—±fÛ»×dpÇmÜÝ £­°lÿuÇq\ÖÆ†N@Û‘­(¸½k÷ÆŒõ»ÙEYlß—“–³¯ý«¦ƒ[Ù,H‚ÏçsÚ-&ÀXb@~µÍZ^` ’ä°ä(­··Ú«sƒÙ&ùš³Ü’šÖV[±0”ø$Wi6€ìJ«½¦4@‰Ý3ÜÛvÍ ˜ì>I’$›ÙS©»µk±Ö—æ€üVAòµ–F«Gjµä((¯·[Ë€Ñl“$g!ä×7Û+ €éãÓÖ\ÙÅõÍþ¿Ø ×RÏÖÜÊÖó¹ì Û\cmþ›ÙSé°_JpZC½K²•d(¬¬©©,S‰G’$ÉSb@±ÍÄcl¼P^^¾oß>«ÕÚÜÜ|æÌ·ÛÝÝÝ-O™IHhðz½ÑÑÑ>Ÿïòo%ʹhär¹¾øâ‹ãÇ>|øÝwß}ã7(O½Åbïð >Ok} »ÛŠ @¾Õá’$ÉÕlkî†.©) æI’$Ée3F«ÇSj ª%I’|6#`¶y$Iê¨)Š]’Ël€±ÄζÚ\bÌ.Í”·ú<öÀhóIBk9€J‡ 9« ƒ’ßܧ 9« €ìfA’$ÉU_»$Ée¯¶X’$¸œ¶|  Æé±™”Ô´ú$IrµZ­­n›@µÃ'I’$8 €b›kèÛ„€]SSÀ²4‰¥‰Æ»Ã’d³”H޺Ò »„Ö\ »¼™}Öj6ÂTúyM`²zØn²æg6û:Š‚ši¸÷ÿ½º@^¿$Ø@i³'ðUb@~µSŽÇ3Ü—ê¨) «(®g"_©†b+‹ÃL ÐÈxã7Þ}÷ÝÇ?~ü‹/¾p¹\”‘Ðóî»ïÞwß}JGA.cpNã÷ûAèîîîêê:}úô±cÇ:´wïÞ]»vQ4"®æ’|Óù$Ãhî$Os¥\ZPjõ ]"4ç®›Ëoö5gÅV—$I{‰|!¯/4 ×"ølF º£³ÖBr-ÞæVÅ"´V¦fÁWn j$Iê¨/LÕ͇ÃÑÚÚêpö_°ë üš€•T ’§¾¼00[²8Ip|-c®¹Ù#Ô ®Ý5Û\CÞ¸k`Ù†$ ÍÙ@±ÍUSО$IÖb¶u©¦(¨÷5—Z¿Ñ|¨<(¬¿p‡[ @¥Cþý&ä÷;«£-0$_¾8Oǰ_ÊZl@®¥­:Èw lÕ̲.I’<6#`¶_ðUɰìÚµkïÞ½‡:vìØéÓ§»ººº»»AgÐ$$”——ÿÏÿüÒQË ñÇ®-q÷º9k?½ËîtI’¯:HŸ«÷žr`q­$t8ìåÆ¢Õ¹Ö ^r¤³û`¶:ŸÇçó4[«k쿞yö³2î¼UÀi«†ážd ÷Ç»í¦Å·Š{LÓúûóžzm“=ÿû·Ÿm<Cf²ªi·˜`yý¥Â•cý¯3|ñqŒ™wÏNJJJJIIIJdSÛº?Þ„\c {ݰÛnºsnǾ¢E+wo°¶z©£¾Ⱦ5ÎÛd÷­«’|«¥¤kGÞžã_}§Îh¶úŸÇçsµÚªkl« ò¶€ž1Þ.+0{š€èü¬ †;gà£"䦳­{?)·›îœ«‚û£"ä§ßìl¬ÁìÇçó8ê«k^É™ãuˆ`ëkÚ³m{m›÷LƒÙs§©†¿˜ÍÞßö¿å@ÖŒ€мÃ^Sê4Í@<ªa¾Ô|Õ'åöìÅßúò³OaL»}²³!X4[À{â`LÆYÃu;'„LHO<ñDVV–ÒQË èšâ›-eÈÏ45Qײo[æVäÎMôÝ0gim;â“RSo,K8=xÉÍz8ÖÖ¥ÒèΩ˜“žùá—jw›Xž¢À­±V~[€?YeGfê4çÑÀ¥îÈ)QìܳñáÈýùÒ„cûËúߦ¹ñ.ŠòвKÍ÷êxTÕøöà«4² Xü­€?SkGæ‚iÿüÌ Ãï_˜ç_´†ÔT'óÌÉÛݦ‰OJKK0UŸh@]í'.hÔÞã…3d¾yF+}[ÀCUjÆ;’uÜmV`YŠêä¾ó[wTÛ‘¹`¼'÷w|ë†Ø”TØ«ìNŸNçûß­/ÊÜÖ­ €3m¢xêÀ6ƒ)ñ ŽCµ0¤ÆÃ¿¿ ö#öN ³±â‘•e†âyú€oïK~Û‘!›µ„:=öüóûÛXiwIC—H’­ô|#Xqu«$I6³ùÕ‚$IRG1PXß!I’¯¹0Ù<ý= äÖ;Ö¥°¿“ЧÄÖ§X’$ÉgÏ>ß% ÜæR¹W2ëzlóHŽêÂÕš²PbwÕžß\n‰U$Os¥ÜLf,¨tI’$ CßvžÇf„µÙÌFäZ¼[•lë¾V<É×Z|¾-‘}AÉe;ßÎUhi–$©µ<€¡Ø6ìûõæÀ£½°ÆQ}¡õãañ û¥|­ål‡_øW²Ë}’$¹ê ƒû‘‹5‘  ³³Ón·+¹¼Á³ÁK’Äz÷ù|_ýµ×ë=wîœËåêêêZµj•D­^žèîtC£Óë4½^Q«Ó¨¾ýÔY¨£bãj †.ïît‰ªX½^3â1yD¯ÛÍC¯ü ÷´ØE+­Ï,Í<|,’„x½ ðzyNÀÝÞשä÷µ»D­N~ɰoøÍ6.ö\}Çs÷^*¤¶Šœ™Å÷x>]£±³½ƒ6À»;½Ðì%žçUöÓ0ïÝ>îçË~ù¡_j`]Þö¯66Qß¿.~wŽvEj½ô̽#\÷ÇqÜ®]»âââbcc'Ož¬Ó颣£µZ­Z­§ áƒihɯT$¡çç?ÿùŒ3~ùË_*Hð :yÇ˹L PèñîÞøôŠ¢2T Ï?¤á G¦­"kæþµÒö.ò{¾vËO—l(3•Ú«~”ÔÈF¥m÷š™+R:¤gh®ç¢HYò°“ò ¹H§²ýJMM-++KKKS:à‘O^ù…<ÃñXžêxL]É5¡ž>ÿžÒÊŸ?º|áXûë¦<òRýtxñÃnÊìÌÊšg¾—1²€ïŽ}¬Õ“AÙûXÆÃªý§`cK@ еóü£³³ó›ßü愚?Šå=lŠ%–ñ„……………qǶ±™µK$¹zš…Ë×,T:ˆáiï½7ñ¿žÿðóƒÍUÒ¤fd(!—8¿5›àH~Ø”] ï½÷ÞÝwßíóù”$HS&<<œe?ò‹°°0¿ß?s J€!$d±œFÎ{ØÔFz½þ²$WãÆoT:…¹Ýn¿ß¯R©Ø&IÒXk榈BB«Ýa³ÏŠ¢(Š"›Ùš*{ÈõÃqÏó’$©T*T)Ú("„ÐØéGEAz{{'Tߢžçå¦UÖh VQD!¡ŒµõõõõööòžçY¥£<ìFà#("„ÅF;”Ÿ£NÐ$8zzzz{{Ù° lÄ©±–ý€šÀÈ ¬£¾ÒQqIõ•Œ)r \ ¤tD$ôÉÕ?5@c %@äòƒ‹„\©1õ€+ Äî¿Ùí¸ J‡CBË~DQduJ‡3øàªU«þð‡?LŸ>ýzl(´±‘½þæ7¿ø«/¾øâoû[eeå¯~õ«ùóçÿû¿ÿûC=¤DŒc ßÙéTúx=õí'dtÆlkkÆNEΨ]ã>@ï¾ûî·¿ýígŸ}ö¿øEGGÇŸÿüçG}tld?ÞíiÜ–F÷°¿k2 [¯Õ–Dw[Cc›x­V7œéÓ§?úè£þóŸÏž=›——·iÓ¦´´´wß}÷znsDšvæp·~OÛùEÞ†,Žã²¶{/ÿéÑÿNØ™ÁibÕ\Æö§.öÎüuÜÛ³8Ž[ßr]ÿ„ðîÌâ2¶7]°ŒoÊáþöÞ?¾‰*ßÿ ¦6S,µè¹”_.¸vê¶‹Eù±¦xY~§ ¬¬„ë².)?ÒÖ]Åp¥w ~í#è®Mwå“V%°´¬{S]‚@»º¡»1ˆS`ºš®¦˜‚égMoS™ØNºz¾Lú3)”Úòó<ÿi:yŸsÞsÎ{fÞ9ó~ŸÃ˜k¿‰"¬YÃô$-¿äPÔ3iÅè[ …B¡ôbÈ ŽŽŽ_üâO=õÔ‹/¾xòäɇ~X©TUåCA̾â¬Ð/ßž™ñöð>=;Q*•ÙÙÙ'Nœx饗žxâ Nw…½µ@QÑ_ºÉØl„ìâN[Ì IDAT…ꞟ»6ÞTéõ ‚Ï]®Çú¹Ë5õ#|±Ñ 5Ø×Ûíãú«bhhì“ô%ÐÞO–rÈ+w¸\<Ïs6sVÑúyÿ÷X ðì8 …B¡DcÈ ùóç9r¤¦¦fÉ’%CUgê*6¯ÙZ²-'‹a˜üâ}‡*¶¥1 Ãdï©•ç UÅ9ò¯cùÇ1€PÓ±ÍÙi Ãäl+­á¡‚u{²söÈßöü&ذss6Ã0LÖš=ÇûjjÚ·­³‰‡åõäuU9Y Ã0Ù9ŵ-¡`]Å|v°iQþž@4ùabñâÅuuu'NœX½zõÄ8Žcæ¹çž«¯¯¿€Øà‰TÿñxØyþµ¼°Ç×Ã2FA·³ øÙO$'¨TI“{éuƒ†õ70¨Ñáþ¸ƒQ‹M;þö“"%` ¸˜ÅÆÆ£zû¶œì4†aÖlÞÓêz#ýõžœ¬Í³h U[³rö˜˜:cÚ´ÔÔÔôe9/[Ô(ÿÛg€/Þ*Îg†aÖì«k€Pãž­á £œmû䡨?T’Í0 Ãdå×¢÷$…B¡Ü@ÞtttH’ÔÖÖÖÜÜ|æÌ™O>ùäèÑ£û÷ïßµkW¤p&“é–[n ƒý ¼Y@g®´—ëšr»Ýœ°&?!N“`Ë.—à @mâˆäÒPëíN»Q &Î/p&Àä'„Òõ™+z0ÕÈâ7«6¯’ãmF «GꩀϮ4•¼›·›è~â³³€ÚPÎó= °ÆFÁc3é­ÕénŒ”f‚Áà¬Y³L&S%%%J¥òæ›oV*•,˾ñÆ‚ ô¸À(Þ¬:/O m¹‹Bü¬¹ÜÖ$ ßI.-°z£Åîä½þÎQÄèHn ·ûüN v r5}%b ¾‹X¬`Ñ@žÅÎÙ-,ƒˆÜƒ@çwÂVMˆ`Vz;9 `tx‰$Š¢èåÊY@o÷ ¼4ç4i!÷3obµ•s¹œV5 ·{‰È©½Õéq;ô´VébÖ>.j<víÚµÿþ£G~òÉ'gΜinnnkk“$©OÂåÛ3¸›ù·¼Pn.lE×Ä•>4ÐìÙ³ß{ï½aV•ð&5t6B‘x `pø !’Ë ¨9¯ Ÿ,é.ׂ5ùx3ÀÊÏ0¹ˆ‰ó ¼ 0ÉǺ>ËWÑe`u‹„B¼@c毛w¹\<ïö‰.‹ÐVº¼!^ÞÉ{ü¼Y¼„BD €Í#I.X³HH¤üpw!äý÷ߟ5kVß–””ôL»»å–[bcc~øá¿üå/’$‘!p€ÔÐXœÖ<ùIìµå5»y3`Äá#Bˆèqšò´]ç¥Î³tú—6:~§Ps‘Ž<›‡D“ %\ÈbÁ¬ ¹7/{„>}:ËN1Ÿš¶|«AS¶pú¸†Ù°ã˜4R¨€‚q Ã0L\Š€§Y%€o—€hòÃÎw¥E_]´öùŠúKÐá·ÊêŒx†‰Ë°E;ªÑ$h ²XÍÈ›ñoòÇÛ﹨:ÝùªO9m¾ü»\cÓ‰Jzõ4€ ·r^¯Çív»=^iﳓ•ÚÕ÷¨ÐY³@oþ´v,ÃÄÄ™^Àcâè¨î~Ö¨+\™1&†‰{ôÕúV…"ZO~»§P†ŸÆª,†ÉÚz(ê—µÅYi}S%ú¤V\0Å!ÔRs¸¦%kÔ cªiZvæ¤ÅÅÇýæXôäŒþj¨)ÎŽ¼ýf Õ†¦5\N†Æúþ÷¿ÿÁ IU¡×㱯 ~¸~õ÷#`¿—Ô ¶9,å“ãKäZäc¦‚í..IÀÚ½¢$¢(ðŽÊÍTvãAAõ™ÀÈÇ^DÁËÙËo/Ê]ká¥v/X“O’Aý{¥ã'l·—)?„=ÑG½÷Þ{ûsxKJJ˜¹‹£FŠÍÎζÛí}2íOs{\ ³/¾üòV~¶x²¢­{÷éá#—åÁ±ñ…- HHš¼à§‹ÎÓÿ{É£àŠŠø¼rÏsÏ;¬zØÖЊ”¼K¸€Å&âÐgÍòG±é3`Á]ÝÚ%¯0©‹ÌeK¡Ú¨‘W½€;¾;59yÂäÉ“'OHî‘ê¯ìöØ­Õ”.¶zü!‚E ¡¡€?eù‹’$¸y‡9íóÕs‹N£ôäEÇ–B¹²Ô¾[^ TXj£ÅTÆÄF9ÖóŸ‹¥8|‘17ã‹ œ¸ÅjͺS…З{KyƒÝólfÂÀ ×0U³ÕétrªFî–= A ¥¦heV|ÿ;ãïÊJþ§&„PmÅ›¥aQ›l5-¡–š§ç"±ûŠQMÍÔ€·¼{<¤R>—»ðÀ?C ¥JF©À§oN™òÅ—œžµô‡Zü›sµ¨T8¾;wÞÂ_ÿ3$7qÎEÊ7ííí<òÈüã È„B!9(--­¸¸¸©©éí·ßÎÊÊR(†jõœv Êòª yÖ4'©ó±¯®1š¾xP°v[US0 ꪶ¯­ÆŠLºÔÑ©ÿóŽjèr~<'55==5uΊÿÐæ÷\‘’µ„þ‘ăÏ5j†Zj_ž[ýzÞbYÍØ6m*Æåi=Š]<¹PB€ö®IT ‡÷¬­‚RÈc›>eìÁLN³àG3Œš¥'/Z9…rEiøÃú2ѤAÙÞ£]L˾m9i “µfóï+«•@´Ô ™È‡`}Åšü’Šù óïÿ™• #3¿¶%ðÙx…¯+žÉµù¹ûêƒúCrLZvqUgŽÂá’¬®Ü‚¦ú­óÃ5xƤfff¦§¦§O˜6ýÁôÔôÌÌœè[ÃeB %9YÙ[÷ köÌNŸ‚Á½6&„¬ZµjÆŒ_ýõ¼™‹ oR³FŽBD^ ˜x9BÉDò:º} QŽmpÙ ‡XfN Äkî”S«µY „ØŸÓÜ£{Ÿ÷¾¢Ç®éî9­Ý#"V»Y8!Dt[€5ù¢È#_ýõ}÷Ý—››{™?þÀsÏ=çv»£ \x”/ oÖÈ]J|5 +w9އ5 dLj·vU:“] äG§É¢Û”#c7°P›#Æq€–pA‹,°šÎ"jƒK ‹ñB!>£P›Â1S"§Ì|¯ˆõž}Û£fÂYò:{TgÈS¬SðYtÝ3iz««¿žü6\ÔxpD\\1@oÔœ(Út€¶\$„É®gÖTé¨4ëhÌÑS+‰žâN#€ÆT¾ÿ/2¬Ñêð·pFÎçª4¬Éj÷-&Z3ïvÛ-yrq·Ðší.Φ`¨âl5t^N¼Y Ö,7YCd:…ÀÉAŠ>“@^Äqa+º&®ô!s€:::~þóŸßqÇû÷ïN…/Œèóz½ÝY@„" >¯××Ûõü>Ÿ_èç†/ ^oÿßÑëñxzW(ú}^Ÿ¯g IEIêO~8Ø¿ÿ¤I“ž~úéóçÏ›z†ÿö7lc$ú½ÇëÄ>‡‡dt"%d Eü^Ÿ?Z ¯ÐY£û©W×ïó…«•!¬‘ßçõx¼½úí"Ö~iPèªâºs€¤Ê<9‘ø€uø !½œçH!¤2¬‰£¥V~Rä4»/,¬†š“HW>f÷"ò•6Î'IòñÙ}áŒ,Ô¹ŸÃ¤3ØÄnù0= (5D¦SÈ?cò´ô®á~l|;®hÈö `æõ×_?xð ^¯ÿ¯ÿú¯_ýêW ,¸ìk!*“’“ûR¨’’û+’’ú¯C•Q ç×É‘*’ú´ªPv…eD‘B‚Á`UUÕ /¼ÐÑÑñÛßþvÑ¢EÃ×Ö1lc¤LHžå=ýN¤ä€,á¢(T ‘§¬«X5}¥ :WöäK¬¯[“ÎkO¡R…HHJîÛA±v åª!È—XS>Pf¯Ÿó£sN ûÖ° ›¦Æ9Hè›ZqèLqà3â;ƒ wT–åo•¯–@{uQ¡ÍJ7VÓŸ£‰Aàx¯~4Cn'iÎÆ’9@°¦K>’ˆ0mùVÃ^váô2š4¨²ãÇ_¾|ù[o½õÕW_åææ¤¥¥MŽW5›¾ªäݼÝT´v®áp šÍž¾ðsu9Ï;îvæ²þ¦eÜŒ<“ÐnX•ùM¤ü =zô‘#GΜ9S\\ÜŸŒÃá3fÌÂ… «ªªž|'¾ôÞÅó<ç°e 3ÇÍ?Ü485ʰLԅꞟ»6ÞTéõ ‚Ï]®Çú¹Ëõw"_¾=3ãí ø6¡ûz€¢}ÜðöE»Ù¶ô%Ð.EïžWîp¹xžçl欢õóþï±à3¬ŠR(Ê5éMGG‡$ImmmÍÍÍgΜùä“OŽ=ºÿþ]»vE w1{öì÷Þ{¯¿o/†Gèí^ùŸÊ<°&NtYXÝ"!„¯Иy7:—D!ÄggwÆÈBmæä²œYÖä9  ¯ôBˆäÒ&ÎÏ™ÔДËEΨ9Á?вFj‹ 7ë0é ¶—`í>Bü°¸Áëæ].Ï»}¢Ë¢´•.¯Dˆ—wò?oÖù E €Í#I.X³HH¤ü`{’BÞÿýY³fõ÷íŽ;äÀj•J• ×ë¿øâ‹žQG™7«eU;ñäÐÛåó±è5 Ö–;½„ÑmÕéŒf£«Ñ;¼r9‰³X`óÌv"¹ZÁdÔ²gáäÑñØÍ–eÕÚ< h8áRÊ:Ìj€Zgrùýå:µÞæk\iPëÊ}. ›¯ëDÜÖê!‚«R§ÎÄû%Ñe W•W.H>›Q'_/yGW?8jh F- ³Ê HÉheû´EqYõZƒÙ¨SÈ3ÙìV# šrÞOˆ`ѬV§ahõå^‰‘{(âNGž£ rjÀÄw©)YÔ`N7yS@ksù !Dò–´²z:c¸cÜv³¦«e»å¨\àÑ%°k×®ýû÷=zô“O>9sæLsss[[›$I.K¹Tw3§P¾=×Ê•>4ШQ£Z[[©‚À©'ßh oV³FNä-}5‰xXsXNä4€éèm9µÙ~È‚‚™…‘k´jÁšÂ¾ŽÀ›5çãVöŒY µ™ï­´WäUz}v= ÷ÂÉ,'xƒ¦Sí<ç“xsߦLœ ð&À$)?Èž$„ÒÚÚ:räH»Ý^]]íp8>øà§ÓùÑGqwòäÉ_ýêW]™en¾ùæØØØûî»ïøC{{;¹ $ô8™Ô`M~â7«6¯’ãmF «Gx3hÍ.7gPÈóHÄmÕ0ÙœœÝ @cæ‰ÀÉ'm®tTšu,.ÑÏ™hV§Ý"{œ0вo 5Û]œM ÀàpÖä—‡R èíDri€Õ-v'ïõwvµÏÎjC9Ï;ô,Àͤ´V§»Ñ®4ò½CvÜ:@o÷ù@íäjúJF‰lËGoÖЙ+íåzÙÊívsž¬¿`Ñ@žÅÎÉÝb°w:@þ(ç(rÀèðIEÑË•³€Þî ‹Æààœ&-ÀšBx ¨­œËå´ªåß!"§ôV§ÇíÐÐZ¥h£Õö¨tU1¸›9 ¤ †aú³"\#WúU0$ôô9ˆÓȲFNàLk÷Š’ ˆ¢À;*9ì1; ^ ˜>úXäÙÜ’$ ¢ès9+.Ivb8yE0±0råZÀàu™5çw °¬U×9ÛAˆŸ·-Qö4F£j£“"‰‚Œ(ÁëvûQðrörÀ9Ù]ðI’ ˆ¢ßc¯tø$ÒåEʲ' !„¼ÿþû™™™jµú‡?üáìÙ³ï¿ÿþûî»ï?øÁ÷¿ÿ}–e¿óïD.¼tÓM7øûßÿNìñf XSãµ6QG=NS^·?ªÎ³tú—6Eçw5'„}ñ<›‡D“àt oRCg#„‰×‡Ÿ"Ɇ*fu·õz¬:Àèët€ÄÈs¹¾î¶Æèe¿Ÿu¤³f 'o¯ä|„H¢ße`ÁDpª½•óKDô¹œœ;m”£ÚÞn]×Ämñú`p7ó‹"…"sa+º&®ô¡‰Z¹rå /¼ÐÞÞ>˜Âª‰Ùjän±4l¨Òoâ•PMÍÔ€·¼{<¤R>—»ðÀ?C@,°©p_8T¼¥Úù©i‹u(*z»ATª$yúÌ…ežhm(g­Ô¡àÿTÔµ Ô¸ëÿ[ÄC1e€eXœ‡Âü}õ-¡@ÝˬfÓgP¬fl›6•aÃò4 ¥JF©À§oN™òÅ—œžµô‡Zü›sµ¨T8¾;wÞÂ_ÿ3HÎù¡HùAÓÞÞþÈ#<öØc‡úë_ÿzøðá£G;vìøñã555§NÚ²e éÜé‚a•Juë­·>õÔSÿûß§OŸ>ð†šl˜x[œ+§Ä1 Ã0ã ´KÀ¦“Ó«T·NÐ~¦–Gõú 9(7c½ ‰±àŽq*PŒ[È"ˆàéãÕlÖ´pfVL,¿XÙoŽWñêG3ä`¬¤9K¶,»uÚ|=øw¹Æ¦•<ôêiªP %0&cã«» ‘ü>w¥E_]´öùŠz@Œc†aâR4<Í¢(|»L[¾Õ )[8}\ ÃlØqL©B‡ß*ª3â&.Ãí¨ D“ŒV6J[À~ïNI0z”€ØáÓŒ¼ÿ&¼ýžûªÓÁÌʈsôVÎëõ¸Ýn·Ç+í}v²@;°ú:k(ðÍŸÖŽe˜˜¸1Ó xLÕÝÏu…+3ÆÄ0q¾ZߪPô7Ê …r-34YÀ7nüðÃçÌ™óþûï_zt†2ûñqóRâråÿ5±€*óu§yì̹eë@c´ë3ÄZ(ÔL/˜ìÞiJÅ´WxýlvJü&` ®W(P;ˆ ŸšœV?aً庇VN€ÕjbËV6yYUJ3e °yÜ3÷PLø¡QM0ýp²²Ïù¤ý‡]S0o\Œ|:Z»çî¤ wW¹…ìXYÀÂùR•ŽNr§ÌíÛ×Wþ;0̹sçæÏŸÿ³ŸýlãÆýÉœ?¾½½ý–[n …BË–-ÓétjµzĈKôƒ5–B¨Í©7IÕk÷›«’B1øüøÒ¿M…pü¹NÑ€B9ȳ¹_^4N !è9Å5V¡ ¤p±ì;ÿ àϵ†KÊñºŠ˜•U$NEuC8¹¥vßë\ÂÆŸÎYaRg˜Ë¾£*T€Z˃lî ?Ù’EBÒä?5X~_øêéÿÍQzÁš|ܥР}uôØ™TVWçéF>öºðÌîÀ§ÇÿZ2oõÚïÌ>õŸRQŸWîøYê( 1­ÿøÃÜ•ë?h|búJÑŽîsÄ­­³Gú¬þÐ;ö:‡>kÆ‚ ĦπwuGÝ'÷9GÈÞáw§&'«Ðeï >°[«)]lõüõG°3+þ÷íü)Ë_”ž~¥Áuò/;þ{õÜ¢O>še”) åZ§ÏŒÐ ãæ:::~þ>ãù— IDATóŸßqÇû÷ïÌT”$ø¼^¿Øû (x½>¿889Hòy}½%%¿¯‡\ÿÈb}`YÁïë]Ö«tVw?â¢×ãñx}=Õý>¯Ï׳%IEIêOþ’Ø¿ÿ¤I“ž~úéóçÏ_@ì³Ï>KIIÙ³gO[[[T¨£Ì›5€Þér¹xžsÚòXZN Dpj­Ù!âãËœ~9ÖDos"Ø@ë%›PÝ!‚Ë@Wím£ßcÓ¬Õå'’׬ á„–õÚòÖæöK‚K@ï „H«lçòÉ]@c¬ô‰’$ ®JƒÝç³ÖÊû&  áEùœÁ-HNÀš¼!D(ׂ5rn«®û5!„¸t€ÆÂGJF‰ÚgR‡_}ö859XÍ)f Ý#J~^p Ïƒ@ç‹®«»¡·º¢ŽòÀ§À5q[¼> eX¹°]W:C:#Bd!çÏŸ—$IÅÖÖÖ@ pîÜ9¿ßßÜÜüøã÷îýû÷ÿú׿æ8nÑ¢E+V¬ÈÌÌ’½ÀBM5{9,YÞ÷Óe'ÔxìÍ ×½šå™"ß2\Ξ={ìØ±ŠŠŠƒfdd á^`r`ÿ¥• ýÁ8UB‚J PS¿6V8õD°±E1&)¡{´B-M¾¢S®ZšC URBϾhÙ@KSÊe73ãš­î’“{(ÜÒø• ÅÄŒ“¬Rö<ÜäA•ÔÕF( )J…66|%ÅŒ¼=9ébæ)¥ld[%hñ16ÊêÕÑÎqÀ[š!yQìP Æ©T  ¥©QhCü˜±ÝýÝ{”£rQãaf×®]‰‰‰cÆŒ=z´J¥’·Cމ‰¹é¦›hþÑÐ2¸›ù`î”hi † T%©®ølˆ¸€©\+Wú°ì°dÉ’%K–È»ÁïÞ½ûÉ'Ÿ1bÄìÙ³'Mš”’’’’’2qâĸ¸8y7øžYÙÑ5)}Å‚áÐ÷’Q$gælÌîVÚÚÚZ[[{îïñxNŸ>}äÈ‘®Ýà_{íµÄÄÄáÖä"(U½ÃM‚àƒ!(’’“zË)’’R_4±–U%$u©¬«X5}¥ :WvoÏ@™}òäɽ{÷ž={V~´·¶¶¶··|Iâ‡#FÄÆÆÊâ¨Q£Æ/ûŽ+V¬xå•W& ôa|ˆÿµ}Sí¯Šøñ M½fù´ëwǯá)×.µï–W(°Ô>“•1ómçÇîµÊ€ÎbÏŸ™$Imµ{ WÏ›Rgs¿ºlX} áX)=tð¥ŒÁàô¬O£ø¼úuV³wºv?6-šðs38‘D:@S5[™ú˜‘1uX»ºpf%÷ÆJm1·M ü·<…ë–!Þ ¾?&L˜ðè£êõú’’’?ÿùÏŸ~úiCCCSSS[[Û…ƒvoXΟ?ßÖÖÖÔÔÔÐÐðé§ŸþùÏ.))Ñëõ>úèÕìý [aŠæÃ†§'¶ ЖW<»B¼b|um0zëµï ¨l ¶ª°ÿñÙô$¤›øÏÚöžŸº (ÿ[ý‚㪷—²Fçd…ròk>[ú«EÛ V´vÏ눶õÕ°º LV"}»a“­¬êìÞ'Ôjì}({N‚xL>Ýø ™>—ælÔws1êJ—1?5AÑÔ–œÐ|æS@…˜¸éY½|fs< Ä‚¯Ô¯Y_T­w‰/M£îOè …B¡P†š _^”­Œa˜±s ¾Ì^@³¸ãÖðÛqÓÔBB;°z’|L‘²ˆ ’‘ÚHý. ¯ž?CκHP?!/‡ÑÏ’ë3Âñr1ÊD ¿ÖThôÓäf•©/íÞ’ªœ°Æ¤.Û~,øôÕjä/KB--Êe9/:EDÁÇ;ʵlÙ¼µ»QXI$QdÖ%mþSkÇÆ111cÙµ@|LôeëØŠÊ4ÓÜû@ …B¡ 1­(ƒÆêäyŽãyÎ’‡Ò­ÂÁ1Ómçšyn§¶9üŽÇ×…1]ÏýPõî\@=>!¼4|÷Ž/üPÕgýrAno5 IíÞ>;0þ„UÝa×R÷Ÿ¾­_JÙOÃeCõ;·í¬âîÅ?GõK ýüiJ¸1cã÷4„(UI©sûU¾ÍíAIè³ße&¼ÀzLLç‚ì’àææ´ÏWÏ-jè½8<€Pã{3W¬®äQ^þT:—­—w–¼½(w­…Ú<ÞËç¡”ÕWETsCC J/ å[p¥í—r•xw[!ôWd¦¦¦§§¦¦/_cŸ{Ø?>ÊÎãïÊJþ§&„PmÅ›]1@ñÀ'ÜÉúººÚÚc;7¯ÐÁ`"¹Ÿ=ã•/•5…B5ï¼Z?}Æ¢¶>à²÷°°íøŸÚ‚‡·¯[»éC( œüïF¶:7·Tc^‘ @u‡X½¶°¦1 ›êÿîU&Þ–u¿K @uÝçM!mú”±09u΂Íú„«´ ~“¦¦¨-û^þe5ÐìggIvâÔäÔÍ#Šn¯iù–C{=Ac€(½ KP(”oKÓñíÕ0›ftP±óó€Uÿ¬ˆÜù1iËf˜®É(Z € PºvnØb5æJWNV2€h{8ÖP¾vlÌZj½í™¬d%ž‰Ü±¶‡Žáy¨h­'e °lÖ¾JcÊB¶h5˜ì–É IË6é6­.ýÙ9˜iBÇÞ¼l^Ƹ‚pa·<¦T!r¿K„ü3Y¬fr ±èÞÔL‰—Kè­®©¿ñ˜@9m¾Iƒ•Sâ¨uz-[8ï¡íQv–Ž€¤9ÿY®Û´:ãw²åªN$¾Œ ËJÐ … s¬{}0¸›9sV‚š|ŘäËÄËÇ0æâ+­‡Å{- ¬ÉŠûå+⡻Ŧ@¯…àºäzÔÖº\{0ЩºVM­-Ébÿø¡ŸöX"ÔÒ褘‘ñ½VǶÀz(„¼k”Ù£÷ؤ%BÁ@H¡R^Ò²õߊ ˜Êµr¥Ó …B¡\Fª¤ˆUÅ£»P½–R—¤jT·J=—53À%×£¶>ÐåÚ•ª{ÜÔm]õh7qo÷®OÑÏòó‘ ¬+”µEY=BñnÊN7iàËÖßèÐ …B¡\ËÄM²[+'_Ëϧ-|¢ÜîÚ0¤›iP† :D¡P(”kERÖU³O䲜WZ Ê@¡3@ …B¡Pn8¨D¡P( 冃:@ …B¡Pn8h ¥#FŒ ‹PÃ0t) …r­@ J/!Ô¢ Ž«gyÊ ¡+zSÈu`'Ô¢P(J:‡G¹q 1@ …rÝ"IÒ/~ñ‹ôôôÚÚÚ‹KS(7—i¨¡¡áÃ?<}ú´Çãñx<_~ùå7ß|ÓÖÖÖÚÚú¯ý‹þæˆdĈ±±±#GŽ9rä¨Q£ÆŸ’’2a„ɓ'ßÿýèBŸ åbx<žÅ‹Ÿ9s& >þøãëÖ­[°àêX/‡B¹ F¨¹¹ùwÞy÷Ýw;6bĈ9sæLš4)==ý‘GIIIéz´ÇÅ] ëw^´u"Šâ_|áñxÞyçüüüŽŽŽÌÌÌ¥K—>üð÷ÝvÛ•Ö”B¡\uTUU­X±" Ê¿0ÛÛÛßxã#Gެ]»öJ«F¡\ ‹´ÿþßüæ7üñ¢E‹üñ×^{müøñÃÑÐõì#ÊŸ¿ûÝïöüêìÙ³}ô‘Õjýå/™žžþôÓO/]ºôJèH¡\?þø•VáÆ% ~úé§|ðÁ•V„B¹*â ƒÞ{ï½Ï?ÿüSO=åóùÞzë­åË—_‹ÞÏ75Ûf[ j©?VSºÒúôaüøñË—/ë­·¾úê«ÜÜÜ‚‚‚´´´ƒ^i½º Ô–0½ÉÙVÑ4äÍkÔ cªiA¨¥æpMË·§–’l†aòë†w°;³™¬’ÞÑÁÚ5 c®ý&Šx°fM¯^LË/9µÅLZq`X5víÚµÿþ£G~òÉ'gΜinnnkk“$©££ƒP†”ÊÊÊ‘#GŽÑ}“W*•wß}÷ìÙ³¯ P(WC6ÔÑÑñÌ3ÏìÝ»×d2-Y²d¨ª½R(ï|ÈjC€/ßž™‘<{uæË)•Êìììììì<ñÄK—.-))¹z²-~æ­€¦TÎ[¹ò«Ñüޜԡl@9q‹Õšt§ à3æfp"Iì8…ìëmŠöq›§e& ¥’½i"Û–¾Ú%)ª|È+wä¤ß*IÒGwkÖÏûνþÿ ðˆ>-)×>?úÑN:µdÉ’†††`0»nݺýèGÍÍÍWZ5 åª`Èf€æÏŸäÈ‘šššËéýë+Öä—TìÌg˜ìšuU9Y Ã0Ù9ŵ-! Xµ-'[ñæì4†aÖl Ï@„šj¶®Ic†I[³çX£|hß¶ù'vþÎÃA $|YsòË`]Å|v°iQþžÐpxg6Ã0 “µf[mK@]Åæœm;·­a–¾ð»ì´œÃMòìA "?;OÝeë‹/®««;qâÄêÕ«/ ÆqÃ0Ï=÷\}}ýð+¥É˜‘:-55555kųåj|Ñ.@°açæl¹åþÖWääl+Ù–Ã0LZöæÃA@ ª¸sPJɳõ‡JÂCS\BÏ>øÀëÿlëü ™ùµ(ãÛÃN¿ô³¬ÍûÂçÞPµ5+g\3÷ÇíÐŒZlÚñ·ðP„UD9‚H«C]Åæ5[K¶åd1 “_¼ïPŶ4†a˜ì=µ-bãQ½}[Žl“›÷4†º~†|½''Šn01uÆ´i©©©éËr^¶¨Qþ·Ï_¼UœÏ0 ìÙWסÆ=[×tηíkŠÚcÑúŸr½’’’òÑGýä'?¹í¶ÛvíÚõ“ŸüäJkD¡\Mô™5íèè$©­­­¹¹ùÌ™3Ÿ|òÉÑ£G÷ïß¿k×®Há.L&Ó-·Ü ‡yN·/ohLåv_£Ô†ržwèY€5úˆ`Ö@žÕérZX€58ñèhŒœÛ]iÒ(w >»ÐTònÞn wøœ(ò ›Ih­NwÀU@g¶»ÝN Àà%„—Ðl} ´å.BñÙ˜yá2÷!$ Κ5Ëd2õ'PRR¢T*o¾ùf¥Rɲìo¼!½ô¼À(_oØJ ‚ Ϊ ÷߬ؼJŽ·5¬)<ŽZ³ËÍÔò<qšÔ[ît¹fjGDN è­NÛ¡ µJîAÀÈál&€5Z~)Êøö´“}ÿ °&?!„f5 ·BˆäÖz»Ïï4j§@!‘Vy„ø"­.l:s¥½\/·[n·›óäv‹l“;g·° v"rEœßaˆÐMä4€Ñá%’(Š¢—+g½Ý>#ÁÁ9MZ€5 „ð&P[9—ËiUz»7JEëÿ!q2ã}vÜÍœBùö\+WúÐ8@³gÏ~ï½÷†YÕ(ÈOY»ðSÇà%„"zllž³È«”…=¶<Àxš7¬3üÐ÷›X°FÎeÑÚJ—W"ÄË;y?ÀEB$— ¬Y$„3²Ð”‹ár°¸Þ¬†Ú,Wæ4²ògMäy.oWtñþûïÏš5«¿oKJJz¦ÝÝrË-±±±?üð_þòI’È;@}Pó]V·Ü‘^ 1óot.ùAì³³€éè‡ZÀàðɵ¹Ëµ`M‚àTz+ç—ˆès99·Ôé:‰WCÍIa“è3¾=íDtYŸ;‘âw5'Ùáȳy!‘Vy$šÕI¼I B$^~Bˆä2jNÌjÀàõóXu€Ñ×yQt9mŸ^ÔÝbø4é¬Yà ÄÇÛ+9!’èwX°F'‰è±@´þ’'ԺʠåJq­\éCó ìĉ³fÍ’ª.Ä[•òP0Ža†‰KÑð4‹ÔÇÊ_ß~WPåimVߥ’Å%³€Ó–o5hÊNÃ0v“Fªºj%€o—8^Å«¦†›Š»u"àk Ií`Ì¥Ó–å£zû§Àñ¥¬qÕ•Z¨ç8yò$Ó999¤ÇNß|óM{{»Íf{衇þñ µ.¬Íåõy½^ŸÏe7Õ•6A€•Sâ†a˜qä÷blú8ùMê։νn¿—>ü'¾¸»Ÿ5ê WfŒ‰aâ}µ¾UÑð’H"€(ã  ËN”ÓæëÁ¿Ë56¨ä¡WOS¡Ão•Õñ —aŠvTÅ*¢ÙI«“ö{wÊZ ÀèQ Ȇ$ÓŒ¼ÿ&¼ýžûªÓÁÌÑtCÐ[9¯×ãv»Ý¯´÷ÙÉÊðiÞ£Bg;ùÓÚ± 7fz‰£c Šè±þúŸB¡Pn0†Æúþ÷¿ÅS+¥v/X“O’Aý{¥ã'ì-ºâýŸ ¦Ü  Öß™éÓì€@`äc¯ ¢àåìå·宵ðÕÇ$NEµ¯­³±¶/€±#{Ü*§Í7€ßa±”Ù°iyÚ°œä8zôè½÷ÞÛŸÃÛ'DzÔ¨Q±±±ÙÙÙv»½O¦ýPxgJrRrrrRÒ´¬›X”Ÿ8+IÀÚ½¢$¢(ðŽÊÍTàÏu–Šà&£;{ø«¿û½1¢?eù‹’$¸y‡9íóÕs‹zglÅÄ"Ç·7É+Lê"s™ÅR¨6j&pEE|^¹ƒç9ŽçV=lë?h EZEä‘hV§€`Ï{k™ˆCŸ…­Rlú XpW·¿¡ w|wjrò„É“'OžÜÃæ”½¾»µšÒÅV_ D°¨!´#èÛc§ƒýô?…B¡Ü` ´råÊ^x¡½½}Hj»Tä°ãïQƒóo®• ÇwçÎ[øë†>÷ÕCÁPK9¿yÓ¾3þe¿Û[ïZ_ ꩟¾9eÊC\rzÖÒj#k?ç (f,Ö¡@·¯.ª u<òäè=HÎ6kKssm¬ñß'+/Ϲ÷¡½½ý‘Gùñ|™P($Ç¥¥¥755½ýöÛYYY ÅÐ'ºõHlRÄ&"16F55SÞòîñJøü]vîÂÿ ±À¦Â}u@àPñ–jhçÿàžGÕÈݲ§!´Ô­,ÊïÇylÓ§Œ=؀ɩsüh&Ð#‹QP]÷y“*Úøv‹XÍØ6m*Æåiêÿ¼£ºœÏIMMOOM³â?t€ù=W¤UD‰juêñàs ‡‚¡–Ú—çBÿƒ„}të,vñÔ| !Ú»&MHP5Þ³¶J¡ˆ5-jÿS(ÊGŸ‚A¿6^µjÕŒ3¾þúë!y37@Þ høp`ŽXiÔt—…ó‘΀ÓNò8?!„¸m†®C:³S"DôØ{jí1À!µ(@ˆè¶r©¿<í”Q[y?!„7©Y#×¥ä­d­eÈ‚*.‰¯¿þú¾ûîËÍͽ€ÌÇ à¹çžs»ÝQ.<ÊGNì>P®ÔF/!>gwxÆh—"†Lv/!Dò:´=äÜ"!ÄgÑu ôVy-ðù‘ÜzrôOäøö¶BˆÏ¨Ô&!òd Û”#c7°P›#¬"ÒN¢Y]«y-`â…"X4`5EÔ—+⺅c’"êÞ$>÷ìjÎ’®–ÕòÔë"z,Zÿ5\#‘׃»™_=‹hP®r†éÏŠp\é é€rþüyI’DQlmm çÎóûýÍÍÍ?þxá>u:ÝþýûßxãÅ‹{ß÷C°¥É‚*!I¥(ÉŠÿã£ü{O¤øZBc“º×ˆ Z|~!&þö¤„®©š`cÃWRÌÈÛ““úÌÞ„‚ÁB¡T(šým3.Yuº¤¡‚IÙj÷ŸÊJˆöípràÀ7fgg¿üòË=—>»Td›BÅ¢ 4úƒqª„yœjŠãׯ §ž6¶(Æô›ýâÆ&w]KS£Ð†ø1cúŽA(„R©@ôñíIãff\³Õ]²bòE°Š(vÒÛêD(Ðâ ¢§M^ºnÑÔmi „ I „1N¥RDí±Þý?T\Ôx†ÙµkWbbâ˜1cF­R©äÍpbbbnºé&úèZw3¿LwʵÏLåZ¹Ò‡ìöÇ0Ì믿~ðàA½^ÿ_ÿõ_¿úÕ¯,X T^î7AÊ„¤äÿ¶W£zA›B¡Jî½²B•¬êã¤(“ûÙaT¡ì¶P%%«¢ !¸oë:MAôöËéýƒÁªªª^x¡££ã·¿ýí¢E‹._Ûߥ*¹WGÁCP$õ'(“’“{ABRr?¬è2·hãÛÙR]Ūé+mй²âaDZE;écuA¡Jˆ´¤KÔ- Ê„¤î>P…ˆÒc}ûŸB¡Pn8†x+ŒE‹:uêÅ_4™LcÇŽ]µjUEEÅÙ³g‡¶•·Øa³/»ë²´¥¸3mžÙRé5d]†ÆÎž=[QQ±jÕª±cÇšL&ƒÁpêÔ©kÆû‰ nüCÖʇ.Ϧ¸Šøñ M§ç•iWßÚÞW³n …r1,7Ú%K–,Y²DÞ ~÷îÝO>ùäˆ#fÏž=iÒ¤””””””‰'ÆÅÅÉ»Áwí÷9 (&ÏY6ÈŸÒ—ÞVú²Ÿ¦immm­­­=wƒ÷x<§OŸ>räH×nð¯½öZbbâ6{P$¥¯Xp¹ÚJÎÌÙ˜y™»D®fÝ( å:ci&&&®[·nݺuœNçéÓ§Ož<¹wïÞ³gÏÊöÖÖÖöööŽŽŽáSãeĈ±±±²ƒ8jÔ¨ñãÇ˾ãŠ+^yå• ý¼­£P( …2.ÓTû„ è3›B¡P(ÊUÂÇQ( …2TÔïÉg¦¸¦%Ú—’4f[﯂u;å½±ëöäô\?-{ë±ÆkÔ cŠ^áEµÔ«©ÄÂYÚ’( ó§_\‰`m6“u,pQ9Ê` Á– …B¹:izÛX w÷± é "W1‘ H€ø Ð;øÿ¸’ôõ»ÿ[3s\µÃwhNÒÄ-Vû“3 IDATk҃ʂüòí™ɳ—úàTM]Ê9ïEÌȯëvÌ[}Èl·Ì¸U’b0E)‚ÎQzÑß&bÊ@¸ÒöK¹®ÖØÄ«M¦<™ùÎYPÓ±ÍÙi Ãäl+­áÃ{ý5*ÉNKKËZóÌ«¯ñ1 €0#uZjjjúœe¯òä¡z |öÁ^!¬¯X“_R±3_ž1 ÔUåd1 Ãdç׶ȳ<-û¶ÉÓHi›wþº®b>» Ø´(Oh8¼3›a†ÉZ³M–¯«Øœ³mç¶5ÌÒ~—–s¸I®$P‘ŸÿŽž™™žžú@ú4 qÆééé™™ÓcþgëùÂÉÙ¶¯ P¨$\mNq]š›Ó²ò5uE‰u€(½¸ª–é¤\[ÐlÊÐrܺš º ?ÓÀVñA#„êž;³PXlwÚ'׿–ZjŠSæ­W­ÞRúü¼C¥½vrì±Óï„5&5ü½%ø¿,*âQjk.+Z¿rí¦òã¿94{úÂÏÕå<ï¸Û™Ë>ø›&àØ¶åšMÎr'ï,_\¸vîÎÝgÒÚ «2™º=)s×Þn¶»ÝN5¿‰SØHÍŸ–nZ» †u‹ÒoçKKßw@Óñ•E¶i©ãÂúHÝjÕn_¸ºÀkå\.§õóMšW5"X³nÞú»­NÛ1³4wú† Ù‡‡Úk2Ön(Üœ~ÙWÙ½Ž¡¯À( …rõª+-€ÞþC¥"A«ÃJó{ú?qý­¬ÓöR¦ YüÑ2ÀGöBSnyv…8 ñ{£Ö„z±ác¬Ý·7+ µ%Ù< Þ-%S÷Ù S4~6ߺ©Z_é},3™SmõÍþ˜¤Eó¿6vIæäO·=M¹)'K lù«£bÌÜ÷êò2 @mv稀ÛìÌ7þ¶ý±iþÿä-Hò²ëõ«•\ê‚ô„` Ô,*>>ûÒŒ°¦ñ2 |.ÍÙà\<š÷þ&§`S™ÉéËÉLЬ‡2hè …B¡P®:š>ÜWÎË01+KÛï7AB;°z’ìN(R²"xúx5›Õ¹zhLl¿6Ø0ñ¶Þ ®&Þ^:]Œc†aâR4<¾€¸c¬Ü’rÙ–’Ÿ¦'‰À·K¯âÕ SÃEãnøÚBR;Ø3äiËòQ½ýÓ@àøŽRÖ¸*j ´ßüiíX†‰‰3½€ÇÄÑ1PÝý¬QW¸2cL ÷è«õ­  _°©þ5Èž¤ôu€( …rµ|¿ttfŽç9Žç9›Õ–÷ë áÿoïþãš:ó|NLH(t.Ê€b§Ò-Áí [´A×õw¨?:NÁuiGpÚ~ôÕÖâ´Üнãb»•0Ûh-µ¢ë,´kü·½«0 n ‚ *l —0&B‚çȹˆÂ1@”ïû¯xxròä<ç|óœç<_ ¦­çA¬qÐM€½Þ!n’9™ °TìÄí¨¥/®« j] Ç™ÍV«ÉXVRþ«G½û4k¾â£Ü£uöÙ72ÿ‡p¦¥³÷Íßž}n§(f/ÉûaAA¡[×F:­ÐížEF“YLÉlîo1…®}‹ãÌõly^äwñ syX€ƒ±,[ºð¥ÛˆŽ! €!„¸™ÖsÙ…Ð%?µ:%…ÙGmÁ? óÿ³š_S¼o(æ­OBæ¿×µƒoÞÿ¿¶Þo°ßÔÕÕÕÔTWMŸ]ˆ„wžè÷9✜àG5`÷}QÛ®Rá«©‹–ýÛЇþI‹Ô7 m|kuáÂÄT#'àz‹EúØŠ$d&­³–ÒI,Ò4³ûÝä ŠËKØ“šªWgÿC˜Ó ‹ðó™!¾ªÆŠC‰gÇõá³O6",bÁÒœ R˜¡Q?›R€Â„·O»ðšD!Ľ4œú‹´êÛQÅcëò°sËÖZ}V¸6:'€€ÒÕoLZ¼>Ü€:A ¨ ƒLþ °snøNñíꄬò£¯D©›l: ï)òö”@@ì+%Ù†eê@±p¡%B¡ ß[y>pn¨2€6KŸ¡’5©³æû˜/ýëÁ´§´áb¤¥)b3C€~Ï«‡¯ŠWo)T§/0mG|—ïüô´ÔÄèÂD@”•¦ÉÜšté7Ÿ$íÓÎ £¨6ÞâÔiUÔ[%¡ËzÖú¬óˆŠÜ±þéìA¸uëÇqV«µ££Ãb±\¿~Ýd2µµµmÚ´©_aB9†aöïßïïïïçççãã£R©¼¼¼”J¥L&›2e =EïZ£;™3Lÿ‹‚â-­-ø8í­Í¼Tà;ª~¶öV•o€Jê¸Í…¯oï&Þfã¥R…T ÀÒÚlê„ß´ •Ó‘„Æb&tG™éRìàÏmÙÚ[-¼Ô7ÀW Þb±*U*)ÐÞÚlî„·_ ¯óýº‹!ºÊ½ò?Ý­/!„ÒT4 Îñ ºËÝ*œìBáÛ'Ê‚T¡°_5ÕBd;ºc³6³eCD?}÷.U©zvæDº €H‰Äýÿ÷Ä0 -D ¹(¯ ~UBìDׄ … Ò‡¸¢ÝDׂܓÜgd› %ZýÏQ] 2,z ŒB!“@„B™tÆéXccãùóç/_¾l4Fãµk×nܸÑÙÙÙÑÑqóæMš70D"‘Ëåžžžžžž^^^ÁÁÁ¡¡¡!!!aaa?þxHˆÓ•E !„2"cµµµ}úé§ÇŽ«ªª’H$ ,˜9sfTTÔš5kBCCí—v¥R9ü¾&¥Î^V«õûï¿7Ÿ~úizzzwwwLL̪U«ž~úéx`¢kJ!„ÜcÆ$:~üø»ï¾û—¿üeùòå›6mzï½÷‚ƒƒÇâƒa³Ø¤*Å=?¿[ŒÅ×?ü°ãŸ®^½úç?ÿ¹¨¨èå—_ŽŠŠz饗V­Z5ug¶ÖV .›Aq=†ah2;‰û Ÿ¸xÐÉ“'çÌ™óúë¯ÿö·¿mii9|øðÚµkÇ3úá›OÇ1Jï˜}u1Llµ5:zWµËößÞPUÝÀ»jw£¼víÚÇÿøã©©©™™™‘‘‘'Ožœèz ÃR“Ïô›ÿßÕ»fW;†i©ÆŠbe```` ŸŒ‰Í¯h¬äÚ¨=?Ža˜ôº±mHËGqLl~MŸm¶š “WsÃIq[õÆ>‡&2=ÿ´°Ôä2‘¹–1­)!½º»»BFà>˜»â²ÒÝÝݯ¼òÊ‘#Gt:ÝÊ•+]µÛ;fþ¿z¤ÕžMžÆ×…ÍPá{×îÿÚ's£a^u“…BwâĉçŸ~ÕªUùùùn˜ëôå1â¦˜ÙØëg¾ÓÛŠôPö&åqޝ{}a¢·®¤iã<ßrl÷æø…«j¹;`‘y`ø6â˶èä5l›ãt®Ñe°‰ç®]œóïjÒ–'Gý„ã¸ïÏÐnYô?æ˜~ã °,Ã#!„ÑqÙÐ’%KΞ=[]]=Ñ­áèº_¦9¯å”¶[ÿVýå7fÇŸø¶Æ¶Å1 ÃÄn>>.Ùáè(#Ÿ{> HHX¡FÛ7;sþôƒÕþÇöü塉'f”XýRKüÜiÅ}î´–ïÖný±„­gËt9‰ ³*ÚÑzz~ø²ï4Y¶ü‘ÊTõSï¶O{,M—$¼°!æÆÀòÍÇÇçìÙ³W®\ÉÍͬŒÁ`P(»wï~ôÑG###÷íÛg±ŒóÝýgG+ªª******ªÛyðæºÿóûÛ å¬¥³æ&ÚÀÈm»>:]UÓÜòÆ‘ëf«FÓF|Ç[Ïd¤lÙü/YØó¾Á8ký‘ô‡V€kû¦0sKCÔ«e3rRµ‹ÖŸÛZV–—¦O8ÐÓ!ØBϸ݆²vgü´öLÎ? ž~fç'ÚÀRº+óŒÿOU€7`û› ¼Íf³5Wÿçî3Xñ÷39“xÚ¯ÜP©K(Ôþò€¨yY|fS‘¡¶¶²è»­Úݧ›a«Þ¼hË#E•Æúò¹{RÃ_(æ‡ëó„2© ¼«Çq\ggg[[Û•+W¾þúësçÎ?~|ÿþý ÛÍŸ?ÿ³Ï>ãŽ#ÂÕêU¬l 1˜CÎSÙkm€¢z« ‚ДhóXsS=[[[˲õ-ÖÚ-PRÛÄ B[ÉMlžÈjA¬F=½‘ãjuPçYa`ù‰üÚN:5oÞ¼ÁþšŸŸïøØÝÔ©SårùÓO?ýùçŸs'­|÷Ìl^ßÞ§©4 6ȱCµ” Vc¥.-áö;Ó ZamdªÌ;†`5h4½QpVr„ýÕi¤AàX-Un«ûž9Od•‹ßÝX”d·X O9“µ¶P—µ‚©\ Ôš«!¡ïÑ6»Þ*4u¹YèݳÖ`ZزC‹ pVSm–êìJÁ\©2Š &N°¶ÔVê-ƒɱ3lç°ÿþãÇŸ;wî믿¾råJ[[[gg'Çq4õÄåFw2'äîÝ+ÿÓ]3táÂ…yóæ¹dWwÉÊNg“p°~–’a†™–  ‹û®p:<<\­ž•wiöÚYÚÂeáÓd ó‡Uœ§ P™Ó†ae¨€±Íjå¶‹œ•w O<ñÄÅ‹ûÏ5œ,8dº¸qãFWW—^¯_¼xñ·ß~;.ÔTÞŽOÇ ú8Pz¹w¸M1{IØc†æÖ %,24³U,@F‘¡©ÉX___ol⎼¦ÐÄ?ªBïžÍ¤¸ñ_‰ #Sú…g²˜á#ƒê‘W³“v®ö“1Ê_înèJÉ1hPB¹'¹&úÅ/~ñå—_ºdWc„ãÌ€º¬ÉÊ™ÍV«™-/ÉÔ>¤N9k6›Íf³5#Æbñ|v¯Ùjn2”|0'5±€åºš ÖµpœÙlµšŒe%å¿Rß¾\,?ßÎѹsçæÌ™3XÀÛoŠ´———\.‹‹+++ë÷¤ýØ‘ 9ÜiKÕ<è½³¤¾aKÿ9«@ƒÊËÿïŽÛÈbÈÉaÓ–³¬ÁÀ²åEÐoù²™XòúCŸù_}ï1ùãô_ÛÄ—ÖÖ¿K~»vAëtšœ¼Â‚‚šl­¸®¥øéÃ…„…………9§~‹:X$h÷¬(2šÌ‚`.ÐÀÜÞb ]ûÇ™ëÙò¼Èïâæ\¶99’#l#B¹ï¹&Z¿~ýöíÛ»ºº\²7²ÿàU=£[pì+^¥²|wL½pÙ‰x©B%RHñ;Y³˜”AQ±«žL€àG5`÷}QÛ®Rá«©‹–ýÛ¼¸Çë-~`ywÐÕÕµfÍšgžyfˆ2<Ï{xx(ŠÈÈÈÜÜÜÖÖÖO>ù$66V*§'Û†…pÚRá+¶™‰»J[mûv¯ŸýË,õ¢Ïý± kFbDýÁa‘Ù48ŽnyËdj-…*@“U› ÔL “†<™­ÁVèž Sô¼;S;þÃ[&óŸž–š]˜¨“²Ò4™[“.ýæó‚¤}ÚYÞb¡Œ¢ÚÕì¡ûX±bÅØ×|Tl–f“M©òõU9ülÍ?r2σöMí­&*ßû;x›—JR©Óòåĉ)))qqqo¿ý¶D2ú=†éß%&†Ó–²µ7ÿhæd2?¿ •Âq³KÚh`Éõ‡añ–ö¬^ݼ™ÖVTŸ¿n4‘¨­½Õ‹‹bó‹U©RIöÖfs'¼ýo·aú¼+ Ûy†Ù¿¿¿¿¿ŸŸŸJ¥“áÈd²)S¦¸ùúU÷œQŸÌ ¹K÷Êÿt—†Ù»wïÉ“'322~÷»ß½ùæ›K—.U(&<0èK¡ b¶²"h@’Q…o@Pß-R…}B†“òãÌf³•––nß¾½»»ûøÃòåË'¶>.ã´¥¾A!NÆ0\ÔFKލ? KªòøUluÅÂ×ë‘T7Êq8…¯=,“ªT=àÔÿ Óç !d’rq*ŒåË—_ºté­·ÞÒét6l(..¾zõªk?…\½zµ¸¸xÆ :.++ëÒ¥K÷Oô3 H½ƒ—é *ïÌv“5Å !d’“³ïÊ•+W®\)fƒ?pàÀ‹/¾(‘HæÏŸ?sæÌÐÐÐÐÐÐ3f(•J1¼=ß'é§³³³££Ã1¼Ñh¼|ùòÙ³gíÙàß{ï=ÿ‰®)¹cÒ ˜ä”˜‰®!„L^cøóÓßßóæÍ›7oÐØØXYYyùòå‹/9räêի⥽£££««ë>È©ær‰D.—‹¢——Wpp°;®[·îwÞ ™è[o„û’D"¡éAd$†¹×¯Ýã4þB×lBqsâ‚a] rpŸ¹Ì£æâ9@„B!î B!„L:ô éCL6ѵ ÷$ê9„{@¤{}R!„2B!ÎYÚ[m<ª•›-ëKîÍ"„âÞšKc&vÇi§¬ÉÜUÝw›%?’ÙUÝ[õF¦ŸØªÖj ÃèªÛoÔä1ÌÆ›óÏä[«wÄ1Þ~ÞJfã®RË`ÕãÛ«+ªÛå®Îëÿù Û¿¶NXjr™ÈÜA?‘¸Bqk5ÇžYPóJlÄ€‘™èÄÜN¹l’òôÏÍyðæÍ›¯ŸûÎx£¨(`º ?¸Öá,pø“¿Î4gU·DúI¿;³W­]†éµží¬ð÷Ñ £ Va`¿‡´;*c2dž²ºÿHŒß9·Äð/\§ì#úÚìˆJ‘Q£ B!î¬ñ?¶&eë´(”þQEŸpŽoÌOŽÛqt*2zBq_–šÒÐ$§$=—„Ì‚S6àOo{J»µòù’òWç·íÔÃ[ðu/ÎÝi^QVYV“º§÷íÞ@õŸWUUUTTTTTÔ4Z`ûÊÉaÍVûG4¿½>óy}¥¡ì…œ-‹6æ×2ÿ‡À¦ªãÒw—V54·/x5ÿ÷ëfíùËCOÌ(1°ú¥–ø¹ÓŠ›üW¤éuök¦3Õ›my¤¨ÒX_>wOjø ÅöÑ%fX f-Ú©z­¯/KŸ‘ºls•­å»µ[,aëÙ2]N⬊vp€Z.Ckî’Ð-{"w¤­¦9H.G·À!„¸-þË· ¡H­P'daaöW¹Ï.ðmú|'›QÖ”,(©Û³µ ¶Ú/ö@]©ÿ}Œ ±Ñì¹Bµø~°gË2{<¤ÑN'€üöG´²c&ϲ: ˆ1ä•D¿¦=9bÝ{-ú¨Ý9ïg®ÏÉ$”÷>aÕo9ƒ¢úKÈz?k«¾°ôê‘ç5Y·À×Zy‡Äd¶Ôj¯Þ¾ç@¦)Ñ¢—DøJ[;#KÚ®|¨ S†Ç¦4±1mÞ€Y¶$cã–œ3µÖßϦðg Ð!„wecæ…ëe ¸0` Ë`i«~ú•XdÚl làÐÄÏ·IC—©{æY€ìJ“ÐëtJÔ€¸VÃâÌ–hñTô=üåßÞ®XüûÓ—«¹…-?˜ .\”¸ßÂÀúYJ†afZ&€.<€³ªG^ÍNÚ¹>ÚOÆ(¹»¡CêtŒ¡Ót)1PÉÈdêDÀ[Ì^»#K[¸,|šŒa^ø°Šó¿†>§@çêƒJD‘>$ÉÀg ‰„Î'ÄÅšÿOq!´E•,k0°¬¡ {vœhÿÖ;¼Òy½ o/Õ´õÜsjqœ¤p:c'•yiúz޳š­Ö–ÚÊ’íOª,¿@ïC<…* bÁ³o¦kÑÖeãÌ€º¬ÉÊ™ÍV«™-/ÉÔ>ÔSx‹)tí[g®gËó"¿‹_˜Ó8`†5ßüÙÜøÌøÖl«A3X,žÏî5[ÍM†²ƒæ¤&°@Æ6±iØ£Î(u>Q›Ü:a‘>BîÂD÷_rŸ±Ûµ)ëb""¢¢""¢ÖnÔM­0ÇiúFA£ ¶ÆÒŒ­¬¿ªàŸ…ùÿY̓¯)Þ·gø÷¸)µ" 99Ÿ4Z*Θ>wY¡ªŸfñ‰;«›-tØøoöÍšµ¸À¤ ŠŠ]õdBoqõŒ‡‚"¶•g#gÙûÕí®9¢ÄÍ"„â–Z¿zÿ òtÙ7¨ÔKÒ€K(.,ûjÚ¢Peª¸]+–Öê³ÂµÑ9ñÔäðä²~W:Ùt@.Ç…¼½¤ÒÕï°óÕ³¼·€:«ö¥R ÓXÖ¶zQô´Ìž7i³Ø‚g*ì­Ì œ»°p h³Ë2b|Á›æª¯^\iþ¼ iŸv–·øŽŒ¢ÚÛêÞ³—è´X?Ë€&)#A½sÑâ÷[Ž–i3M“‰_'¡ÌøÌgp@À‚ßLÚýïZá ‡½`úýháÖ­[ÇY­ÖŽŽ‹Årýúu“ÉÔÖÖ¶iÓ&ú…wßc˜þ]‚¶ó0 ³ÿ~???•Jååå¥T*e2Ù”)SJ%æR£;™ßKgÞÒÚb‘úù*úmƒ_PÀOæÛ[[x©Ê×W%uÜØÜdædžÞ~Žc³4›lÊ>ey› …@{k³¹Þ~}öää³ü|àm^ªRH[sãœÌóÁÑT~ ÑUî•ÿéã4ÔØØxþüùË—/F£ÑxíÚµ7ntvvvttܼy“òO $‘Här¹§§§§§§——WppphhhHHHXXØã?B¿!“›T¤Á¶‘îÎ7 ÈÉÆ ßeª þ#Uô†-¾ANÞ2ØgI½a’"ˆNìãk  ¶¶¶O?ýôرcUUU‰dÁ‚3gÎŒŠŠZ³fMhh¨ýÒ®T*Ç®÷´Î^V«õûï¿7Ÿ~úizzzwwwLL̪U«ž~úéx`¢kJ!„ÜcÆ$:~üø»ï¾û—¿üeùòå›6mzï½÷‚ƒƒÇâƒÝG¼_ˆ1¢øúá‡vüÓÕ«Wÿüç?½üòËQQQ/½ôÒªU«&¢Ž„BÈ=ÉÅOüã?¦¦¦fffFFFžSÌmbBf´®}27VáÕQ÷Ý¡+º–ÌÉ Þ!¾#òÊÙ'Žk=“Ÿ?÷…ëÃ.cB!䎹lhÉ’%gÏž­®®ÿè§®8]»عìí҆οýõÒ5«c\g©+MŽe†‰Kέiïå1_c/^ë¬;”±ÀÖèmÅuN²âñ »6nÜ‘»kc$ÃDÆ}tºâж8†a"7îj°èŸýnB¬X±¢®®îÂ… ñññC3 üöÚk ãV7G£MLØÃVW¼D½غ<ýÅYãÖoÛ¸#Wr,Ã0é¹GOïŠd†‰;Tc_EÃIbE[sÕŽ‘ Ã0ÌÆâšV§[FÑ1¼qæÄû;b†abw­³ áji\drE«ø•-Åéqé‡Ä¿jŸx,bvDDDTlÊ[;ý·M6¼ÙÓGv$Ç2 ›œßhKÃé‘$SºóBȤÖo³îînŽã:;;ÛÚÚ®\¹òõ×_Ÿ;wîøñãû÷ïXØN§ÓM:Õf³ÅÒjÃ2Õ–hh³ MfV§Av¥`5<äLBK™ÐddÙò 5 Înéû^CN²Ï›êKÄ=ÍõEItúJCYm+˜ ZP”•¤i IW^^¤Ô:ƒ`5h€Œ¢Jc}y€„"nBŽ‚ ‚`³ÙæÍ›§Óé+ŸŸ¯P(<<< …Z­þàƒÌf³c!ZÙ¬-”WRYYY^^^^^ÎÍ‚Åðm0YØ?O,‚“&öO!âíf£^—$UÖsΗÍÓHÊ+);˜Ð,+ËKÔ:q1|3›h V«> H8hA°ÔÚ¼Zc½>K¨ Ö[œÕj¸Ž‘Ú¢JC‰. @kîùŽíõI@ÂÁZA„–2ñOf6¯g…Y«Õj5•ç%ƒY`ó$èô†òƒ@£3‚Y !­¯/+H4•f¡¥,ЊÉd”ßù]nØÎ`ÿþýÇ?wîÜ×_}åÊ•¶¶¶ÎÎNŽãº»»Ç¸v“ÎèNæc{ ÷‘¡{Ñ=ñ?Ý5Ðüùó?ûì³1®ê¬hòXA ::Û`€Ø<-Õ$2êèÖ¦úZ¶¶–ekMVÁóTD¶Áa¦l54yq¿†<-Ô:“Õ ²Ê[AàjÅ˧ ‚![­Î6æJ Qd0q‚µ¥¶ÒP? §Nš7oÞ`ÍÏÏw|ìnêÔ©r¹üé§ŸþüóÏ9ŽÆ>²¯q*Òèn7Voä¬ z ‹ pµ:¨ó¬=±N¿ÆåXIzAŽÕYå&ÁÞjfA¸’´ž µ¥< P—›A0穤‚ú«À™ØJÖÄ ÜrçÃjеVAèùu¶ÁäUf«¡É3 ‚QŸ¤{"³>ò*9A¸ýì{¬l‰ÞÐb8®…- Ú-PRÛÄ B[Évþ±í›¹•ÑÌÝù:q+â:@NáùŸîš[`.\˜7ožKv5*\€.§3~T@æ4†aFª`lk-œ®W«Ã÷~ÓÞγâÁ øx)XÅá@¦ðFšýnÜ<ñÄ/^,[Srr²à°tÕ7ºººôzýâÅ‹¿ýöÛq¨ÞhÞfåVlìkåõßMž3>^RØ[ ƒ$V„j͞͞ÄYJFöÔ\l•Jláï¼c€F*N2R=¯vü‘«Óqæýo,–¯>Ü£ÎÞ`_ýã ÁØd4Ö××[Ì’c¤Àíoä°ç‘%Str|FÕhdq«ëqg÷Á~® €~ñ‹_|ùå—.Ù•kq]MPëZ8Îl¶ZMƲ’ò_©ƒSÌ=^аZ•Ó¬x=ë?…B¼ä$ûÝx:wîÜœ9së²ý¦H{yyÉåò¸¸¸²²²~OÚ‘Q&&tVÐY㪠Ï3V}cÄŠ³Ï=Ç™Œµ%+vnYt¨æ¿ûo©»y§p¦¥g“=Ç:–QÌ^’ö‚B=¶®ìݬ™ýHHPHHXXXH€Ã—îýF=]ndÉ=>„B\­_¿~ûöí]]].Ù› ?ª»ï‹Úv• _H]´ìß~à¡Põp\ïmh»ÞbqšoDZ¦á²ß«®®®5kÖ<óÌ3C”áy^œ™››ÛÚÚúÉ'ŸÄÆÆJ'x誇óÄ„Ž8×[,¼ÓÆ7XbÅÆæ7Ãgm,d}Cf/]±X -ý·L™y§€7°ì¥Zy´Vš¨Çó‹gô|GŠËKØ“šªWgÿCØíGÑFðäâH“)Þéñ!„IÅ5×¼”””óçÏ/X°àÔ©S>>>.Ùç‘{rè\M “ľR’mX¦·Zú=öÜ[Þ÷±Ø-ËæË —œdÅ«™Ö'ž·§ìö{¿<ûݸº~ýú’%Kž{î¹”””ÁÊDGGs÷Úk¯ýú׿ Ïê‰F˜ð†?È|‚€ÔYó}Ì—œ4nÃn§ph5ÙßK¬xó_‹2Â×G3‰ N*Xùdÿ-¾wØ1Dj61P– AWþB”¯­Fü޾*^½¥P¾,Àáðx“ x=ÂdŠ! Ýù !d2sY2TA’’’Ž?þÁ¬X±bìk~lí­&*߀A3Ó‰Ål6©˜ËÎyV¼¡Œ ûÝØ:qâDJJJ\\ÜÛo¿-‘Œ~`ÏmR!Õ¼ÍÆK¥ ©#nÜá?ÏÒÚdê”yúõÞ{¸e@{k+/Uõɤ(j,fBw”™.Å—7Èi}G˜LÑUÇg$(ª[õÉœ»t¯üOwÙI‘a˜½{÷žÜvº>qÔsÜý7ºT*•Ëå<Ï‹c?â” 1xÿ‹r¼ fÉår¹\.¹ç•… ÒMH'ä~"Žýtww{xxtww+ A$‰8tóæM{HD1ãiû=V¹\.N G†ì3&º²ýQD!÷3ǽW,ñBÕ/ú¡ˆÜ)û£c $‰Ó€Ü6ú@„r¿r\üPÌvl¿\ñÑGÚKû_;.Š8Ñõíƒ B¹oÙ¯Opˆ‡Ä!{ô#8˜èú’{ÌÀuÆÅˆÇq šD!d¼1 #NúÁ€È~ÛËúPDîÔÀ|söÑ û {÷›èÊöG!„ÜÏ$‰øØ—ý7ºø¬ƒ}ìú»ãÙŸxw¼íEs€!„Lñò#®|h€@Ë=¸H´=âqÏÐGD!„L Ž×$Zí¸Ó5Ý@„2éÜ£W,B\È}Ǧ!„BÆ@„B™t("„BȤÓ?²?´6pu£‰¨!ä¾âøpl¿³ÍDW2¹ ÖPDq9§!„Œ?çaýg™}=Gq%uB¹ö̈bzþˆ2A†z ^ €¤Ré”)Sd2èTE¹;Ž‚è|B™@ƒ@Žc?bZ×?þØl6߸q£££ÃjµvuuñÆ>v²}Ë:ÈNv†±Œuû*ô%mTDŠ´ %¡dK¨•(Ë7kdIÉÒ¢ùý¡úžóþÎû¾ç½}ž{îç~îóÜçœç¹Ü8•€È¨Xšó.3¼§—7ži J¤Àª©““ü[[ €—Ê$*5‚ƒÀÔ\«Zªi‚ÓšoíZø÷<ÀÐ<½¼JÀ²M€/`»_B,5 |¡$2"”h®ÎDD`B¶q#`¶q`âCbÃhž(2% €imDŠ À(™ €9€T‰ŒŒ&pµ€| • À5Êž^Þøí’Éú(ôÛ|aÕwD$þñÉ=À‘nîøÇ·ê @`ŸÇk¨‚Ý €qœN_•`:°U@§/§Ó·.0Œ´EÆÑâÑðßÖÛ{þe $R•Áʸ}–é&sË0ëÛgVŒ§—2·>)¯Ÿ+¿ÖW G¤ ÅNJĉ&Š¥ˆgà3%2%K‘>&sZö¼\™|•BíŽFÅn¥Aå •u«š¤º††›fŠV™öcM=}’ÁùcFâÆ“»fìĽæ·-yvѬlTmÚ}r°s¬ÙÍéáòØMØ=ÂãÆÛoO•Ï_¢ßÿ¾Î@Gò‰ ç!¬¡¦”¸°šð‰HÞ(óèê}ocP±„8¿ø¼„û‰sÉÜ)F©Ôý¥iÝ飓f.ZÉüœµž½õ*‡ýw.žèQùcùÇM ¬Nì>é~Êû´ï™ÀBJQøÙðs”ó”â°’Ð ¤Rï2—‹¶å&—Ô.+TÈUÊ\‘¬Â_½&xÿw5W {-cíÏ››u«·–nÏÔÜhxz·³±©©®ùƽ«÷/¶œyp¬õH[fûŽäNÚ讨Gݤb/¶wòñ­'éOmúúfŸÕ?ÏìwXzÑö²à•ß òà·×O† ‡Io”ß|}ûh$Ô}Ltlz¼úoÚ;íw_'š'S¦ô§Ö§fRgMß3¼ïË›wøÀõáåBá¢çnix¹è£ç neðSÁg‡UŽÕÞ/™k¦kôõÉ›Z›+_«¿…Wø>û£|Ëÿ§øÏ·ô}t:ÅÀƒÂ2ò¡ù™8™ÙX˜Y¶X¿²}dŸæxƒéãlçªã.ç9śŗÀŽÝ+àˆ# ê i +‰¨Šªˆi‹á-$Œ%u¥”¥•d”dwÈä•;´‰J6Êž*Õ$BŽZ‰zƒÆsÍemnM]½dý+C†ÌFZÆûLªM爊æáµ–›VÖ¹6Ãvjö©N»Cœ\nöî'Çý È'ÂNFŸ¢ž¦‰.Œ*¢ž<|޿سÄé‚E©v™òEår¥K —*ä+e¯HWI]•¾&u]ü†HµP`-î&Ï-ÎÛœõ˜; w¹±M¸fÜ=áûø¹*­ZmzífÞ÷tíz„ô¹»·§¸7ò±é'KO»úÎ>‹|Nìí_è{Qþ2á•àäàÚëÞ¡âáè7¦o¹ßŽÜM³çù»ü]Ø„ÊÄÊdãÔñéÐãYÙ¥÷çÎÎG}°X\ø°xéèòÞ*¿¯t:ñÙwUaõó—{kÙëN¸ÑÍò¯”o„o›ßïÿÈØ²ø‰ùùœ¹Ýäà ê ãGôÓóË8ëÛ+ö'-˜ÎR®\î2¯Ÿ“; p—)è#Df©³çÃWHDJêK¡¥^K_•I“u“S’g–¯Ð½£Jñ¨R¬ò3U‚ˆ‹Ú†úŒÆ€f›ÖMíÝx=’¾ÁÎxC´áŠÑ ñ““¦ñf¢‡¹¥…®¥ì.œ£Õºõ¼ÍÛ»ûJ‡"ǧÄÝ!Îî.v®nJîâXO/¤×ïù=“>o÷¾òíóëô@j h¼E¾”L ñ µ¢¨† …3…¯ELGD=ˆ®¡–ï;Cû+&164Î7Þ!Á(Q5I"™/•²šúnÿ³´é×3NH?|È1S3 ›ÈÞ8¼ô×TÎÛ#ý¹ÝyÍGkUåÏ-H?A=I>åvÚòŒf¡tÿYƳ_ÎÍœ.î+ypáFiIÙÉ‹Yå©—¢/“*<*w_±®2¸*y ®^¿£¨šVãX«rss¹®ïÖÕÛ¹õÑw\´îbïn4Ž6µ4—ÜK»Oj!>ieljël¯ìÈì$=4ìêZÔß]Ñ“Û[ü¸ýÉäSú3¡çzýÞ©/Š_ö¼Zz-2ä8œûæéï¨ÿXÓß¼ïÒ'¾L˜ÁÌ^™súÀ½ðz©æã™O«%ku³ßð?ü¦ÑéÛoZ (ÀsÀ¹  @ž[àÄઈŽ|@\Ï„Yþï÷À Ü Ê` ®Ùp  ‚¡ŽðAü…hDÌ#E‘nÈcÈÇ Ì V ¹ (!U‡¢3:2^büŠvB_cB1‘˜Ú˜%˜1ϱسԱ ±f².²y°u°«³—p0qÄqLb1-œŠœE\L\1\ÜNÜ-<Šè¦Y:€LG88B6(ÆÂåÖ ¦XZos6ÔX'WÀ ¼“C]=€ …‘lœ~ጨ;À Ž‘ƒÌ-~q/ÓâœÝ@Qmë ìˆá (·ßZÓ1ñ.¿ã×É$s[@¢“C‰ÛñHI°"˜!" h@^ ððð4 @ Ä â ðØq@2AÌ/~D@Ä ,4 Pþ¥ðÿuÜah@ù C´å -òVp|Qt’¾{(á:ažðð¿¢mÿ(AÔŸLÛê¿×(Y”:J e†2D¡ô¢„@¥‰ÒE™¢ŒQ(-”޳Ż‹²ÿT€ÿ“qhò/µ*C0€ñ1³@ƒH?ÊÁx°=« ¹ŠýZ7S2þõ^Å%Æ£©I4JHh,Þ”J£#©q±A4%¼uT Š^@Ðø?ƒSWÛq IDATxœìÝ@å?ð÷ÀnX0K\ˆ%Z’h¢2k“梧Qg“KCÓº\MÚj–;ãÝ4í%p÷­Üæ.|¿·ô¤K½“å¬]è)i¬5‹µ`[Ø þØ—šA…&` ªl²kv•]2óýc– È/%ðyý‘ì>»3ó™™g˜Ï>Ï33Œ$I „B™Ob¢!„BÈL£ˆB!ó%@„B™w("„BȼC !„BæJ€!„2ïPD!„y‡ B!„Ì;”B!dÞ¡ˆB!ó%@„B™w("„BȼC !„BæJ€!„2ï(¢!3Á×ÑÜ|ì3`v«.M…<Íoó-½~ÓÆ5š±ŸˆÍ¿;æÃŠÛ¶d$_øx=¿{ë,ßž9ÍŠµ·e¤)ˆžæ_¿å[°tÓ–šË8²Å¾ú_þæ#\³ý›Û." "kþÝ[¾3 nÚ´%=¼xß‘úæÏ,¸~Ó–5´Öÿ’ÿk·~ccê¤; ÐÓúF{¿fùúk’Ï»¨¶_¿u –rÛ6ª/=Ò òuºšßï_¸âV]FÊDQvÕ;ßpÕõ·m:oœ»Ž4÷aõÆ;ÓÏÙIŸsûB.•DÈÜçµ±á o¬îŒJn€µºÆ}â—c³º¼3¿Û6Áa¬·õJ’äwqÀ¹ü—¢ßÅÛt¹“s»"cJ¼³š“o¥±‹ o„Ë]Ó qß ÃúÖ„ŸvV›+¿ôåO¾»Gmÿ`g5Ç‚3V^Öúù+s8°úêöàåLMȼA?4ÈÜ'ö5?͇_—UüîñéÓÑlp~ʸeV,JÿQâ €‡Jy±3’ÿ×Íë¯Å1ga…pìÿªí¥ßP.€Ä‹œÓ¸9_“kµüé_Œ¿¼Éå¥Z‘1%ñ_ʵZþ‚/_s¾¹Ÿg+ó=—¿¦¢Œ»ÀЏ}èyå+Â/?oñ< »Ä6 yw/J·Fm…ð©“Ÿ¹¬Œ?s §„Ë™˜ùƒÆ‘¹¯ýåj>òÆñÔ}âÈ›PkM‘NË0 £Õfjô] ÜS[’«e†atÙê;äâP}Q®)÷@iÕ¡Ü,V«Í.ªíék-2eiµZ]vA«'²8ø;œ¥ÙZ­V«3Õ´zƆùIMÉd2ÕwÄæÒ&SvAMÇDëd(øñc>öl£×¦€Ožýq¨§>7ÛdÊ-í §±ÄdÊÎ-i zšK³´ZNg*())8`Ê6Õvqð“`pð D ÔU’kÊ-ªj¬)Òiu:­ÎTP3²ÙÄŽ#õõ£Ök´8åÈ©]1æô- z½ƒgD=G ²uòö©©)Í5™"±ð÷¼y¨ÈÄ0 £Ë*mìšp)“¿µ¹&SvQxKŠG0™² ªÚ„úŽ™²†a´:SAUOèü3‡ØóÚ~gäóùßvŒ”7æfgçÕ4×–hí¡¶_G½\%´Z]nImߨ ÖêüÙlÃhuÙGú䥆·¿ø—æü}œ‡Í‡ºB®”L®¨Z­V«Ë2jì€ØWS”øìÙonì uÕ–dggÕÊq†ê‹r³Ã»;T_”›m:PS_s@ǘµèj<”­Ó2 £Õe—Ô¶N¼ƒ ™3¢ÝEÈtëµ°c¯¶p`(çå:+òQÀqá2Îæš¼Ü_n{ð€ut%ÉoçÎ{Œqv¯$ñös'PÙî—$¹lîþ:3 úr¿$IB§„¥¡ôÊøy;ÀÀ á9*½Í-ÝòK·_ò»å¯éåN"·œ%q6¯$y]t¢ÙÜ^ÉïÖG& ¿»áž©I:qÂK‡Þl¯®®®¬¬®.·œùÈV²¹½R7N°•l“n¥Îs»rF6‚Þ}nÑÄû¨IÞñœÍ+I’Й0×uKýMçî:ÖÚ+IüO î)v¯Lá-i°UÛ ò<åÝsNפÕåõóå箉¡:8²»Ç²ôJ‘m®ol=+Î埬âIMÖsÃ7×Õ.²º¼¼]€³Éë2j/Œ­·¬ÕÕíÈ97Þ‘#…9‰Z€Èêø}>€ýú7wdeéTÚpÿÃà<ü®è9R †ûîNk}ô¶nA v7èðy5­¾I€žšýF½>KŸ Îý¯Él#]“Ð[êš\ߺ^ùrÑnà¬A¡½:* Z"5ÁPÞ+H3Àý—ÀÙm¾è–}ýr’ÊÙú…Fmï$/pä¿òœ v— ôËIRaQ·Cê·ëÀÚÔûèF  0²íÏî…Q¯9»£¡â^ë‹ËÝ‚$µW›Tì~²ƒZÈÜE ™ãZjÿ°=U!&Þ¼ø¼ßv…ÍÍ·²P¶+‰aö>Ó¶>óÑç|¿z’rx>8+žø?&Ó??QÆà]ïFΖwpÔªÔ»6èm¦Õò ­üQ¤+Ho{|Ç:M÷¨œ(?ª:c›¯½ïéi­Àš¿µf’K¦Åùyyùe 6ëýk.js„º_«Ûã9k4êt1w‚‰}ö72ÍuI€D9GQ?ðìQI’L¤â̶êÊÊÊÊÊJ»yÂ/œ>ugyòuÉêÔ¦½ç6<À¸óÎ4µ"Y{[8¶O¦OŠ(qOš &ÙGÁô¿³²œ¿×ÓuDÞ°»2T¾ÑŽýÿþ]ÓþÇJ€Æ×OL6ÿP›³°neÒåè*êùQ_Ñ»ž=¸mÓÆ4Mðd/ØÿNºJ±fGaogggg݆‘mf˽7Uô­÷É©ð9c}T q§RLºR9þŽô¹ÿ¸Q¡H6<ÕÛÙÙÙ]ñM5Tr.¦ºê¢†ºY›^0Ý£ËHQÊ«í:üÄw³MÿYá||:x¾i ¹¢Ñ h2§‰]/æÉC6 ×&FŠùÊÑû÷mÔYêׇ“öî¸@¸ÉlàãPsrpòäµK&[Ó–Ã?—_ìYŸ²g¤Ð±ç•>ÓºH®Ž(ôÑ{NàìvV¥¦¥‰€‘„BnZ9ï@e?Äó­Ô)ŒZ…:%-P(€H+Ó¨Ö›pìuÕU ù“ðŒü€z™1Ç8pòÚEÓ4ΜY€Z€È\à_)–_±aò;Ç~GO¨£à»ÿá<ÜË{oUκ÷=—{¯•›Xrž:|øðáÃ?0l×Þµy{æ†Kº Ìñ|] ÐúËÔçœüÙíÎâýy<`Þ6I+ `àîÞ´qã¦M›6N˜ý(Ã)ÿ“Ÿ«a¤•B½"“€§ž|Á:~sØq)+bWksccs—oâÞ‘Aaä/NrvÇ~Kc_bÏË•¯ŒŸÅØ÷ 8|¶Û~ߺȔüv{|žˆ@Ê “î£5Ûw±€³x~ó¶uj þš%,ÖüÄáÇ~ê[·o¸ksæÖ»—O²Þùr2ÍŽ­Mù¿éœûeÕr¹ùª®î¡Ž*F©T*·÷Åó‹&[©äE‹üûGж*•JevU¤SU. Àñz[@ß›íîð~”C{èñg>|ø¿sïÒÞ•™¹!‘~#“¹‹ 2‡‰o<û4p6ïѰ‘ñ³…õǯJ9^V\\¼“Ý]XþrS›ü«ÿÆk’—NX¾ò–»ŒP¼V›e2e-¿S¿{×îgº.®U$™·\©ËÒ&î*ãX¿÷wçtp)ÒﲎŒÊá¬ú´Ig˜¼í@TËY9qÛ¼E—¥KÚ]N€Dh¶ìÍÀ—íNa˜Äµúñ'Da’ן*ƒ¯ì¾sóæ;_8vîÉ|üÉ}ÂÓ}ÆöÝ,86/‹g”Ë÷ȱ%NðÍq hçpêצ$¥ŒØR.®ž|%ßéìÓÛv¤€bcöCøÂÍÚ,S¶.qóÎ]»vïúX˜øœïs×ÊC—Ýîper‡ÇSÿ¼úÈ×F¶˜úÖ,GÞºlÓW×îýÃ7^D¾,DæâÜóÕì¢þë&^)Eú]ò®Ýëï0™²nÍsÈÙy» ôÀÃ#µ]Å‹W@Å®;²²´Ë6OšîªØ=fÀþõwd›Lº”õ»vïÚµ‹WRDæ.J€ÈÜj©˜`|xk¤Ñ@½v‹<2¥ÎéùÇŠ&# À‘¿Oa…ÐW·? š‰ËUklÝ 9À;ÊÊŒ¶†_<YZœ|®[^″Í0£Oz, §O¿@€2aYêè'LVŸ§Ï? $$-KV_Ö¯c1àñ JJVO<¼¹§¾`yf>XkÿÑÏ{ú>ŸµZ£:i¨µæü,HZÿÍm ±ëÀúU…}ý^AP&-K½¼]zO_¿?¨ˆO<§]ŒP ¥R¥ דIVJôôôúEÄ'-MÕœ­Qb(”ñêðž÷yɳc§MÚ7,Èÿ¯ßΆ64BÈ%¡ˆ+W¨f?[ËS¦u¡®Ú쬂ŽøZ«²uÙ5òªmYY%Ín~ú‰RgÏ_›J²±سß|Ä:ÞZà7OÐ2 £Õ8td|Jß‘“NË0 ÃèJê»Â îk-=Í0 Ã0Y¦¢#}!¶šì¬ÜªÚCÙZ†a´¹‡š»ZÃÓêr«|ª/2(­©*21 Ãh³J›{ävm»m¥ºš«L:-£Õê²rk;&zö{ #²ôìU=!@ì}ËýªIb›lE&,<õ¥t £Õê²ê ÏÀ×|¨@'ÏW—Û<2Û/n0ÃQwœ2 B®8!äÊì¬`mê—$ÉÏÛÎå—$Éo×€Íí—$©½ÜpMý½æ†î€Ë±”w{­ò“X£½Ün`12‡³äG§q96‡£2‡ùB7€Þ^í¨´å`­.I’Ü6ƒüWÅb·E±a´Ø,F€Íí•>ü˜ƒµ²Ò¦¶¡_’¤~+ ˜$Ih°ê°Fke¥C»0&$¡·A~ˆ†­²Ú–Ã07ô ÝŽð"&‰m™lí䇥äØ*Ë­0V%©ÉÂ0Û«•Vk“7U°Ý>~»Bf?J€¹R¹¬`”óù\nçƒRg¥œc˜ëz%©ÓpV—ämbs]·$ù휜jH’·‰ØGP’$IrÛ8@?öD¬6Èi—ßù]F½¥=(ùùrFwø›½€³¹$É_®FÊÛË ìn¯$IB»€Íå:«°æðý.[8kñ»8 ÇÑäí,uÝ# ´°óþq!éú%I’$׬ÕÕÛ`¸&ïd±M¸"¯]“•ôMýáåÕå¬ÍäõkiϷΪ7WË éwYÎM !Wº!W¨žßä9‘“³JŒïDNN€À‰?:JÓVyØŒpã5ñ£¡Zz- ¯eæ]—yïTÈøöóMI¯ý¤ ´Í]Vá`¹ù:¹г=¸N @‘{¼Då¢ð#àÝï8‡oZüû§ŸànúyQ ü°`ÓŠÉ×òTôå:ùÖÕŠŒš _D|K‰Ø‘®Z3Ql“¬ˆg|a¨í‰<@]yÑï‡Ê JX 8ò73Nƒ%kóvýwo œúè7eS½s !ÓŽÆre |äÌ_ÿ²ü#Fµ|½èo}9¯Õßûú’Û~ž[ÈZ 7jÐÝÒnX¦’S ×/äBãºUr6â;Rï„qÝÒ±¿‰6|ÝUmÏ1,.+ÌÛyç*åzQì)ÐÆ¯½SÿÔ›ÇoȲ尴é)bï»e@Ö×úƒÝq›œ¥tµ¼lOOVtµ¼ö¡/ŸÏÓõjuÀ~}}Ï›¯8€·­ŽK™^ÑÎÀ!—ÅïæÛÙÂ^»àlý’$IBƒ™ áÍ^X]ý’$¹í`m~¯‹“ K’$IÝuæq# %¡·A?êo…ÁâðJR°Û1r¸Kןí`7¨ðv`lJ’$Û+Øy°½|ìßÎÞÐ)¯ˆ~äZ6/_Éý‚¾z¤-g”`ålPær—0¼Û?YlÞ WdÂBI 6Ù‘BÖ`ë J’$µW›G}—µ7ÈíR½„¯#„\qèa¨„\™Ä.“rª;Kw¤_Òt¡@ñê‹}»èéé¡HLY–¬™&äëùØŸ¸4Y£B>Ÿ Ö¨/8¿®*Óª]¼ðìj_ßÇ‚rijòÄ÷, ùz>ö+S’5“Í3àé JuJòK,¶ WdÂB àéó !1)Y£5ã¾^oŠø”e©òwÛe±»áö^G€¹QDÈ•êHöÖc…gw\ s†jsãõ6ïÑ}—}³çY%ÔU¿j§Ýí5­›+DȼCc€¹R­Ȫïý ?Úa\Á{ú‡î˜+ÉBèWE9•í”ýrå¢ B!„Ì;ÔD!„y‡ B!„Ì;”B!dÞ¡ˆB!ó%@„B™w("„BȼC !„BæJ€!„2ïPD!„y‡ B!„Ì;”B!dÞ¡ˆB!ó%@„B™w("„BȼC !„BæJ€!„2ïPD!„y‡ B!„Ì;”B!dÞ¡ˆB!óŽ"ÚÌk’$E;B!QÆ0L´C˜(š!’$EÒs^G/(B!QÉ~bbÎöÉŒ~M¦ %@Ónxx#IÏððp$û‰”G9>BfÄÅWuú5Læ¹ÂËÏèe” M†NÀÓ*’ñ "'CIƒ™ó("dB‘¤'&&†a˜ØØX†abbbäòëhÇ87Q4]"M>‘ÔGEQüñŽŽŽO>ù$66ö…^¿YWWWVV™ö{ßûÞæÍ›P9•ÏíòÊÊJŸÏ'¿Õh4Ï<óŒüúÁ¤r*Ÿóå¿üå/Ÿ{î9ùõ}÷Ýwï½÷ÇÄÄ( …B!§D±±±rbD? ¦%@ÓENzäìGQ‡‡‡.\øöÛoßpà ÉÉÉÑBÈl!§>Á`ðôéÓ‘H©TR4}(šr'—(ŠCCC¢(ž9sF„%K–(•Êh‡F!dözõÕW»»»¿þõ¯/X°`Á‚ …"66V¡PP_Ø”£­9õ"_r·×™3gOž<©PÐsB!ç³eË–?ü᯽öÚààà™3gäÞƒ¡¡¡Ñ—“)A Ðt‘Û~A ƒ999CCCÑŠBȬû÷ÿ÷¯¿þz0ŒŒ  hÊQ›ÄÔ‹\óI€B¡Ððð0µB¹ /|á CCC¡P(2(66vxx˜ÆM-:%O±Ñ É ÐÀÀ@´ã"„reX¿~ýéÓ§äÑ?ò¿r$I¥AS…ºÀ¦žÜJþ,Z¹re´ã"ä2…:ª†a²F•Õ˜´ Ãj L8IkËX\šqàŽÉ*m›²@ ™+>ûì³ÁÁA¹ Lþ9M]`SŽ i!wÉ-@rôôÓOG;(B.“  â‰ÏHQàèSe<¿ N8É5[~àØúÅ Îy81(LQ˜„Ì‘@‘1@ò0 hÇ5§P4õ"·x–/ƒ—{Á¢!Ÿÿüo»äW}o8œ€8@Oó¡,†aF—]Ôæ |ØÑÑ?@ô´dk†a´ÙUGúÆÏtñ¸’@Wã,y’¬’ú.ÀWeÒ¨ /º§¾@gª Žz“Ža&ËT"/´£æ€©èPQ6“UÒ:õkOÈ zûí·G7ÿÐ èé@ Ћ<ç+r#DùÐÑŽ‹ÏIo·ʬ¯ø ô{{¡Þb3ƒ@¨£jù»—Ú:;]ŸÇ&öþy'žü”õù]îÎκ‡°ëÖeUw™(_µ¹P½—ïìlÈ]±?ó‘#Íu×: Ê‹Ôå;_£ö4Þ±6ó8WÉóM7ºö³wÿ·N½_–·;–ï¸fº7!Óª¥¥E>wDž% Ÿ\(šB”M=iÄè;A—””D;.B>õ-[w±üþ# ÐbuàÁ¬òï×Z¡¯´™tééþ¾‰Eþo:Àâ ,´Õ‚u=ûèºôômûJl,¬µÇ/´ %Wçpÿ÷?f¤¥e¬×ÊEv–ƒúÀ÷ÎSN”ÿƶKxX*ÞŸ‘±)¿Ö>ï­ðƒ³ûŸ=xϺÔéÜ„ÌA"'‘Èi%ÚAÍ)”M‹ñ9ÐK/½í ùFá› IDAT< ËoÏåPùZ§åE¶M«àÓ–zžËÌPÉߊ¿zÐ?iòv]¯–ʪ /iÀ{twJ<£T¦°»D% Z³Õ þewŸçu<ÌÜ5 ò—1 Ã0ñËõºO…A°Û6¨§|Õ ‰†ÑÙ š”M½ÑÙOä–ÐÑŠÏÉ/(Ô[÷+ {ìÅúòí•àÅâÕpöÜèA8¤$ŒÜ_CÐæI‡NõN4ã¸1χû~së®ü]u¼?(IA7¿©;l\±½¢¼¼³êÓa°¬­_üþ`ÐÛÝP×tK™™S"=_ò„Z€¦%@ÓŽj-™#D¤Þõ-–/+vâÁ­éÉWo©6l7"ßXÛõ…F9Üšp.¢¾îfOn¾æŸíqb/·úœ¹:[Ý­m­²¶žß `åêåj…¯öGÿÇ |°ú½päåU`ï½Z×ÝÌúµvŸZ–g÷oÎü¯h ™Cþæoþft·D¦ÝqŠEª)ÕZ2g(•q@" yC®»{m·¥!$qJEÚ=?¬Ì¹[¿6ÀUóùi€_ž2Y÷¢Ã²JÏŒv×CcÚiâ²ÝëËFÞ³6ïÑ6=v®JÀͶpó–§üG÷©Óî²rȃí®t€dÝ÷ë¬îL6Ež®ÜÝŸ¡ÝPˆÌ×^{í„§:§L!zü“¯{…BŸ~úééÓ§}>ßÉ“'o¹å–o¼1ÚÑ2]ž>ï’–¥ªÐZÄ>€Cü£ëˆ_¿×¯L\š¬¹ˆ@ ú<ý¢")Y£‚ ˆ µJô`–ªî,Ý‘ù^ÈçñŠPk’ÕôSŽÌ-%%%K–,Y²d‰F£Y´hÑÂ… T*•R©ŒvtsýÙ˜!”ý¹MœiÛé¨É]Ÿ×v÷OÂojMªZs)3Sh’G.ãR¨Ô „:j¾½v§Æö¬ôÑßSý!sʱcÇ–,Yí(æ8D™bI+¹òê¦^7U3T$^—i+wu?¾†~²‘ùá½÷Þ‹vs%@3„îDæ”u÷<°c“fê’EêFÓ¾6¦Ñu^„)C Ð ¡ûB!³%@„B™w("„Bf— 6D;„¹ B!dv¹öÚk£ÂÜG Ð ùñí!„F Ð ¡ûB¹HÇŽ‹vs%@„BÈìB÷št[±RRR²o߾˛6&&†žXBf†aä‡TG dš=™ %@3䥗^ºìˆž'Of!†a¢B dš=™ uB!dÞ¡ 2•>OH„J¬¾ÈÇ~B‡î4¨ˆL ÑÓZÅ$&¥¤¤¤$Æ3ÙEõ¡VŽal­¾‹ŸO›c‹ZÏû_iÃ0¹âç‹ø‡²]iÛ˜²P[6ÃØÛ>ÿíPGÃ0Lö¡À¨²“–a˜CmñßÐZÄ2×T†Lf©@•IË0Ù­¡‘÷­% SÐw¡ÉBžŽæ#]—WÍÇM{n Ó¤ñ£-:2¶ÌS¤eŠ&ü#àkÎb&kôQ#ÖÐ1 S2ÉÖ"-cªºxg/ºÐ  h†Ìõû‰¿~l}¾ßâêîú½¼ÃZ‘—¹·ªª««u×^Â3,… .©§a@q­Ûó9¾°Aÿøe ƒÂ1 B*žh‰8úTÀ/L| »fË[¿8EÁÎqÇ¿rÇ“zš²«Œ*>è gÝ-‡aÜz¡ ß·¯½³ð—·Ðs¦Ãôð¼]ˆw]?¦,ðA%•‹ãÇÛwâކã#Øu8³Ð p7_§™p‹o;Xýà—§6h2oQ4Cæú}€‚= 6+kcZ²J­É¸çÑ&«ñº€8öƽ~1ÔU“m*ª*=À0 ÃdÕt„Þõ4—fiµZmvQI‘)·´gtªê9t ‹aF—]uäì¯e÷óOAo±÷ÌkᯋžÚ"Ã0 ÃäjMX:êM:†a˜,SI›OÐQs » ´È¤c&·¤¶±¦HË0 “UÕæ—çSE¦,-Ã0ÙªúÄHñ'U&ÝÚ®ð*ÔèLU#Büó¿ —÷½ápâÂkz(‹‘צH^úÀ‡ýϲµ Ã0Ú1kJdgΜ¹þúë/^ü/ÿò/WàÍQº»3Ï`µé¾ÓA@èO¯;QViÊb†É.ªõ€ØV[¢“kHî¡Ql,Ê^Ÿ8v>uä¯GJLÙJ ²™¬’V:Jd3 Ã0ZSxZºdi†at¦ÚϨi=“Ä0jmv}Wh Ð|¨@žïCGD¡Ž‚¬ì‚’¢,-Ãh³«›Ks³†Ñf—ö‰@àƒzÀùÌ¿ê†at¥=ÝGxV‡~•¥;Ðξ<‡Lº5¶´ÈKÙVŠÿ·À¥'b_Mø(ÖŽ,½ëùŠöë®OÐQ?²¹L¥·±^Ù®Àª~’È”E1 ú|¾ÞÞÞ?ýéOøÃ^}õÕÊÊÊÏ3Ï+a7« Ï±T×¹:{½áâ€ûnÀêöúy;pæW“U°6¿$ùÛËlu®;@ïòKîâ»3¬nIòÚ9€Í©só«@u· I’$tsC¿×e8—_’$©¿Á èëøN¾ÁÀÜä_"õ7°g©äù&3 °Ö~IâízF{]C¥Y ²¡Áž°6¯ä/×@Nyƒ»¡œ`i‚î»b··É"G’$¿Ì ~Þèí6ÃHy°R½Åflno°½€ÑÞÐÙé²°,½’ä.΀õ-Iê6Ð[Ýu6€ÊvTvᥚ±j ccc(•J•Juã7þä'?ùä“Of>’ËÀÛõ€¥_òZÎÎK’$ 9ÀÚÜM•fV—×ë²l¥«½ÝU ÀìòvÖYäØÞ> ‹­Žÿ œ8‹«½Óí°¬Ë/ɵ‹³Tó|C€œ†QÓ Çl7„+¤Ûʬ=8¾Dò–ª]|Cy;ïvVrꚀÁZÝà°ÊkáçË€³4ñ.»‘ôn¿Ô^®Wîïo`òv¿>`Ù&o°\ÎlÕ6·_’$¯Ë èÍF†ê ÔkÀæ4µwºÊsØÜòÒ9—_rÛõlu|§»šX«+Š»x2Ÿ³ZÞ}÷Ý•••¯¾úêþð‡?ýéO½½½>Ÿ/ Š¢8U’Ùû‡ã 5Yd³Ù.{ž³ùïûYB¿ÃnæØHjmhèF2?oØ&95àíò_F·ƒ±Z$I’¼.À¹G `{9€êΠ$I’Ôkôv^ ÿ‰äÜ~I ºõ@Ž£[’¤ör=`¨kï$©—wñÝÞñ%ò9 W’$I v;8ºÞÆÁè$Ix=`iòJ’$´ÛÎí÷Û9ÀÒ$¯\wµ°ö¬N°½`ú%ÉÛ$ÿY÷óvÀàj¯cº~Iò7±€ƒwÉ ÛÊB_)¯LdyMå-ã ç<^ Öêž™=ö9Í|qÕUWÅÅÅ}ík_ûío;“‘\²þ°º¼r¢ÌÊÕ©·îlB/õ[Cu§ÛÊ9®n¯$IÞvw{¿ tWœ;(I~XäÊëor8øþ ôw6ÙÎåV9Žú›ìsµ72í$1øÝ6ö†Î $IÞN—«Ó7II]wP’$Iè6V··Û‘ÛI’‚å`n$I º9 ¼Ýß^i¬ý’\&ÑÁjX›[>`m|P’zÍòá,´›»³œƒÕí—¤~ SÝd×C_ÞÞß` üÈ1c /ÝX½~7XšäåH¼ùÕ1»P4ûQØ y饗¢´}>Õ=¦ÇJA?ßTi`+6ïþÙ¨–éAà¡›5@x”´v²7­ w+ùhÌüع*ža†Y–`PÄæ_TÎõ‰ ¿Þ?SÖÜ[`ÑWd®]¦d˜½ÏÔãK5¿Œa†‰_®Ð}*(ìM×€(øEW)##|N!gCxŒÎÒ›oê?YÕš­fð/»û<¬ãaæÖȃœ ËoÏåPùZ§åE¶M«àÓ–zžËÌ_õ   ÒÛ7ìº>•®œ è˜ΠÏ>ûL’¤_ýêW=öX´Öý"ˆµmæ¼[“&q¼ûýàéj¬›ÓäŠ?ðW ceÊê{r(¾uyÃ0?r Ë“½Gß¶]§B¨û'ôY› ¾Þ÷ϰ)ñÊøÄUwî—µRy¼¢6ÓWäÙ%o2=ûØÿÈ´“Å fõV=öl^Ï0º}eÑéWŸ[’ÖZs@æòx†aåòB@t¹Š‘ó­5 @ì}Ë «þKÇ[œÐ¯_®|·®ÂPyO2@PH>~£;6®€j…ŽÅ‰^o_ã aüáCbï±2°_Z‘´x“ïík|"–ïåê:tëÿ¶¼cø˜ }øfxée0ßl©q"ç6É˧ljí_šxÄ!çE ™ wRJbU@¥NÎØtÿÿËÕãÔà9£ÇÞt!>M þt8ÝP\uÍèÏÁ° ½AÁïý|S]¾~5îâb>§²‰çÝnžoª6ñç>1H¸ÿ§þ ¿×ÝP¹´xÿîr~|‰0Ø ÖÖ/~0èín¨kºUÀ˜!¡cã]ŒÆc§ä—AÏ1`Ûõgs§î°qÅöŠòòBΪO ú…zë^cEÁcý X_¾]£ü X¼Îþ‘u8¤$Œl @›wdɧz/bkÏ3ó+- ÆÄ„ÿR1 £V«“’’rrrŽ?ÞØØÝ-p¶§õŰ7¸y·›çùj GG¿ˆÞªùËò ;ÔV_ îŽ/x»qW£$ôwó•f®p·±%€?»Šaþr2ÐÝö:ØÌå*b;µ{Žþ-ß땤`]pëÍêÞ?9Àm\­±¯ª¨äˆGŒL;q !_ÜwX öw»öSeûkÛNœ[òþ_Þ}ÅÉÙ\A!è½îº÷îux»9\:±ÿ½2°_^©Ð뮫[®úø lÈX.¯þ;‡Ÿ†á›7†ºŠÛWj€ø%,Ž6ÕüÇæâÇ5 øº\€.]£ÉÈÒŸ8Zû› -M9©^·ÜÆåªCzx˜¸ïhú;VãíBäÜúÅÞuÓ.•?ÛÊ aÞ’>£»–Ì”‘© ¾Æ ìÚ]ØÚŧ«ùÉ'X±d‚ ?FP¬½Ýˆ|sm‡/äiÍ_¿HŒ4¾¨WoÔƒ/¹ET«Ç_fïÌ|å#±ëÕgœ0š¾¹)#cݺŒŒM;þÁØÓþþÓ«Vm)÷Ƨ®Ó}ý.Œ/¹îfüÓ¯µûÔj´<»sæ}tÞË‹‰à÷[{B¢¯íGwFNZ2V¿޼¼ ì½W{¶TDê]ßbù²b'ÜšŽ¼Bª ÛÈ7Öv€@}¡‘GÎH£Ô×ÝÌ¢âÉÃm"Ð×ü³=NìåV_Ò¶Ÿ†††än/½^ÿâ‹/z<«ÕºjÕªhÇu}Åì˜LºuëÖedd|mç·€£'ƒwÞäQør«/ê;²ŸÝó¿güùçìÚ-}HNËȸ~°ý‹jßû¯€‡ñØkì®[ÔBíŽ ääÜ›‘ªî¨/É,†ñæTUÊu,œ¿xµC}µ…™»òÞ[¢ ŒL;I ûׯÝ_Ó¥JNÓjÓ¤\ýѹ%K4©,œïx¡RÞ·¬ZŸùü‡ñõÀ†›–ðu¶§'½ÛàÀŽ/©=]Àáÿ ˆbWcÉù¼-73øÁÛ€9=€*ã½³pk=pO€Þ~† )âÔ|q^gËÙ¤îz£ضR uÍ> Ô×¼ïÖ<Öò/ë^zÂ’epné!zª¾ÏV ç¡;/xEÝ•‡î4fæ7Üü1Ù »ï¾û²çyEì¦`wƒ‘U±ôÞ+IAÞü„øy›<ðY’$y¼°;(I’¿Î*¤Ç0w -õ»ìggfm$ydň ÎÞ×Ý ?»`CCw08®D’‚uÖ³eåî~I’xpä €÷ Ï_®«™„³´Ã_+æ’$IR¿•8[xÄC{¹<°I’ü冑ò [Øy¿$y+s"[‡«æ½’tvM;–H`F»K˜‘ýõùÍXµÞ±cÇOúÓÓ§OG7’‹×íÈ‘õGÈÃÚÊ[Þ2ìH]àÌÕ^I’ü|ÎÙê*W¥ÊÛÿlc#ã]‚Ž‘ZÄrô`é•‚ g+¶±¡;™öñ§öNïm°pc«œ0®Dò·WŸ­²æjïH%—Çå¸m ÕAI’‡1™zåqE‘¹Xë:Ç~Mê­3#|8Hò€$y`Ÿ|…D9ï—$©ÉÂÊãŠÆþ‡W’‚íöðÒýüÙƒ‰5»úgéó9«¥Íf£1@Ó‘è:SjhhH„P(400ðé§Ÿž>}ÚçóW„Z“|áùEV)àë!%Y3nо̲SÕ¥;.¶ù=àéó iYª¼ôÖ"öâ]^Š×¯L\z1Ûm–˜=ÕröDrñ|¨PÚÝ¡¾ž¡LH:[]ÅP*Õ9õNôy|P©5jÄ@@ŒW«ïÀU²&rôL8íØúúü“R"×ø„|}^ñâÀÈ’_h¢{Á‡jLñ;Â÷\ä¼Ä€§ß+(“’äyuUe¯²Þá?j’»®ûz>FBâDælñ9«eIIÉ’%K–,Y¢Ñh-Z´pá„„•J¥T*Ϲ&€\¶Y[yæš¹~ ™B“švñ£¿KŸ§7Û¿™Ö±kO±±’?÷†‰*ujêEÞDQ•š–v¡¨4É—ÚV®PkƇê¨ùöÚÛ³.að:ùìœ:jr×çµÝý“ÑK¡qœóˆ&9ylÁøêªPM +ÎN¨PGÒµ&yl%pÚ±¤¦j.T•&õÒ˜ääs˜žú¢ÝyyNÞÈ/6û‘ç4rÀ„‹ÙœW¡/tdÖÝs̱cÇ–,Yí(æ8D¢F³îÑ^¾!óêþ–ŽøÊ¦îÒû3¢ÑÅR$^—i+wu?¾ærA$­äÊ«›^|xÝ”ÆEÈl¤Ô¬ÌÚ[ÝÞÿãŒËmß¼zMfuÿ‹®˜?Ÿß{ï½íæ¾+¯éx–›¬ ìäÉ“ûöí»¼y^‰-üdΛ=ÕröDBHÄ笖Ç=òÈ#Ô6­¨h†ÌõûB!Wtoí(cöÔI:@È,Durö£è på>›@™{è>@3€ºÀ!„ÙåÚk¯vs%@3äÇ?þq´C „BH%@3d~܈BÈ8vìX´C˜û("„BfºÐ  h†”””D;B!„„Q4Cè>@„BÈìA !„BæJ€!„Ù…î4("„Bf—ë®».Ú!Ì}”͆aè>@„B.=LcºQ4Å"UV~ÁŒ¸á†¢!„+ÃÐÐЙ3g"§Œ;³)A дëhLL Ã0111111§NŠvP„B®ÕÕÕ---ò¹C>‰€ú; (šzr5ýÄÄĸ\®ÁÁÁh‡F!dV“$éW¿úUzzzLLLllläTBÙÏ”£hŠ1£ÈÕ766V©T¶´´<ôÐC”B™Œ$Iÿþïÿ.IÒŠ+”JåèˆZ€¦%@Ó"Òð£qà 7(ŠmÛ¶uttD;:B!³Ño¼¡T*7nܨR©äs‡œEZ€(šBŠh0Éýµ‘Ì]©TÆÅÅ-X°àöÛo_ºtéÿüÏÿètºøøø¡¡¡ªªª>ú(2áÞ½{cccTWWS9•χòÖÖÖÔÔÔÙ•Sy´Ê~øá“'Oú|>µZ¿`Á‚¸¸8¥R)w#D@¦#IR´c˜S$Iapp0 }öÙg@ |òÉ'§OŸŸ~úégŸ}688888(ŠâÐÐ$I£÷Â9{$Rã©üŠ(Ÿ…!ÍæòÒÒR“É4{â¹ËgaHT~‘årN«P(âââT*UBBÂÂ… Õjõ¢E‹®¾újµZ­V«¯ºê*•Jɇ( š*Ô4õ"uZýwæÌ™„„Q%IbF¡P„B!AAÆDÔ™-Z퉂ÈÅÂò™B©TÆÇÇ«Tª«®ºjáÂ… qqq£¨hÊQ4Å"uZ´`ÁQEQ–ëú‚ T*•œ K’$ç@„ÌC&Ú!‘+¼äH¥RE®ºêªøøxyø„B¡Ï) 1@SŠ ©#IÒè 9Ë‘Û~,X 7ÿœ9sFnþ‘?=‡ÙÖNKåT>}å‹/žUñP9•ÏL9Æv,X°@÷?ŠÜ4z(4ÈÔ¡hZÈI½B¡ ·îD:zU*•<úG$'@ .02/}ç;ßINNŽv„DÁèîùì T*å4H5"ÒF÷š4zZÈ:rŠ#wu%’ýDF@Ó^ „ùfô0 9’{ F“›¨h:P д«µ|­#F„"=b‘¶9ÂH+!„y"2¨9Ò ¹uœÜí¹µMJ€¦Ã0’$E²õHG¯<:Òó%ç=”ýyë¹çž»ï¾û¢!Q¹o\¤/LNƒ"ÿÊ% áÏÓ€ºÀ¦Q$¿‰\ê!¿¥Î/2Ï%''{<žhGAH4É¿Ïy|¤œú0£D;Ì9ˆZ€¦Q¤H¾.윤‡Æ> >>>Ú!M‘‘@£ÿ$=4îgúP4í"ÕW¾Päµü‚ 2Ï-X° Ú!M‘Öѹå=3€ºÀ¢Œ¶?™Ïbbbh !ÔÃÔeTïÉ|VVVF‡!$*¨ˆB!óõ2B!dÞ¡ˆB!ó%@„¨¡@„h¡ˆB!ó]F™Q¥¥¥“½5™L3!dž¢«À!3çùçŸÿö·¿ ¿}wÐçž{îÛßþvô¢#„Ì#”BfΧŸ~ºdÉ’ÁÁÁñÅÅÅy<µZ=óQBæ!D™9 .üÚ×¾6~ì3Ã0_ýêW)û!„ÌJ€!3ê»ßýîUW]uNáÂ… ¿ûÝïF%BÈüD]`„%IRrrò©S§F&%%øàƒ›nº) ÉoU*ջロžžݨ!ó µBfÚÊ•+׬Yy{ýõ×SöC™a”B¢àŸþéŸä¡Ð .Ü·o_´Ã!„Ì;ÔF‰‚@ œœ<88H·ÿ!„D= #š(û$óÖÂ… ·oßþÒK/}õ«_]¸p! d>£+¢‚Z€fˆ$I‘MyMŸÌgN§ó+_ùJ}}½N§‹v,„DM$û‰<æœ×dšP4톇‡1’ô KcE;:BfÈøÚ.ŠâñãÇW¯^­PŒiЦ_Ãd^‘+¼œñDþ$@” MJ€¦W$ãet2í ™ _Õ)"óÊ複a˜ØØX†abbbäòëhÇ87Ñ éiò‘SŸ¡¡¡¡¡!ù'oAAÁÀÀ€õë×1<öØc---‘ÉŸ~ú餤$*§ò¹]>šF£yæ™gä×>ø Ïç£r*ŸÛåÏ?ÿü/~ñ ùõ}÷Ýwï½÷ÇÄÄ( …B!¿Ž gB SŠZ€¦‹ÜÒÉ{DQ^¸páÐÐ$I .Œv€„Bf‹¡¡¡ØØØ`0xúôéH¤T*åHn¢hjQ д»·"ÙÏ™3gAX²d‰R©Œvh„Bf¹¥'>>þµ×^‹½é¦›äÇÅÈ#ääÔ‡ ©E=‹S/Òù5<<,g?ƒƒƒ?üá?úè£h‡F!dVKOOÿéO Ïœ9#÷È]Ôc3µ¨hºÈm?‚ z½ÞãÇ_wÝuÑŠBȬ¶råÊ“'O~öÙgrºÃŒˆ‰‰‘$‰¦%@S/rÍW$ £!„Ù.66V’¤ùº0yPllìðð0e?S‹ )6ú⯡¡!9¢ì‡Dèéë‡Ô©Éó¸ Ñçñ‰€B­Ñ¨èï!QðØcÉ Pll¬B¡ÿ•ßR#Т1@SOn·Œ –ǽð ю‹ÌaŸâý¡¶ð;O½–1uˆõ4šeʲe))Ë–¥$jM¥]¡óÍ%ÐUŸÍ(“RRRRR’╦’ÆÀç Kôuií?ß´Ÿ¶1L‘ï²fÒv(‹Ñ•~ε d†ÝvÛmŸ}öÙààààà  òÏi4å(š‘{ÿ‚ '@òMP™&!àÄiA~ÝõÛJÞ¸}yãÆå›Ëô–¦ö^¿ßÛîª\Q¶gUüžIò±¯þŽU™FßëõûûÝk¤þÉð IDATÙþÍ{«:>WX¾pëú./ŠL«ºvKµcKüåÍdÐS—7%!Ñ$‚Ay´|qq´ãšS(šzò³/ä1@‘^°hEæ¾Åáÿ¿³V˜ ~ÿ£Í<,½‡nZ“ªVkÖl¼ÿp·(,þu×DS‹¿þQ&Ko龌TZ¼îžGùrcoË»@ô´dk†a´ÙUGú„ºj²MEU¥†a˜¬š€Pß‘ðטìš6O¨£f+›ä}5·ÊÓU“[Zs(—a²ÞrWe™ªäV™PG䵯¶ÈÄ0 ÃhjþdÔ´>ÿ‡­ï|(¯Z}‰ü&·4Ü:ÕQs » ´È¤cFk*9Wxu5È’W'«¤¾ ðU™tjÛ¥§¾@gª Žz“Ža&ËTÒæåe™Še3Y%­—½›¹ ¯×+ÿrŽ4ÿГ¦%@SL® ‘G^Dî‚øæ›oF;42?øÞÙÃs;nYØsœm{êèÒ8;‡ÆŽÓMüë¸ïgwúƳÓú; ÿï‰ p¤DŸ¹ßUéjoo²ïÙ¬/i œz¿"Ï›é{] å‹Ëö?RvÁÔ$P¾js¡z/ßÙÙ»bæ#Gšë®u|Åú¢|çâkÔžÆ;Öfç*y¾éF×~öîÿö©÷ËòvçÁòà×\öþ!ä‚î½÷ÞÁÁAùÜyŒ=B{ÊÑ Ç©yÐiä9‚ üÛ¿ý›ÓéŒvhdîëk®€þáã{ŸuYç~¬H™ønœqÀ©0¾<ÐV_Öõì£ëÔÀ¾ÛÓÖÚã_ÏÀ6½ðØ& þ¶ÀžÇÖìœnS&,»Çü¿õÃk¯NûÒÖ›ÀÆ}mcºÐö;€mè?¬KF í]Dþô(@j{2Ïi®ë½c*6®vtò*“¿:2­Ø@j{r¿ÓÒÔÿÆd`Mgå뫬¯ö­Ã †ÊšGw(€Ç­Oì¾p ’«s¸×oÍÐ(<Zà(€ ;Ë‘ÿÄ=ûtŠwžr¢ü© m/fó°ô¼?X]ë(\®«çŸWÀÎîÖt1ƒÉ ù<䋈#'z~öt  i1>ŠvDdžýþ™2ãž»UŠek¸ñ£_¼G8Ñ?0ᔃ§Õ˜ÜÈ×Q[r¨yƒÀ®ëÃçüøTPºYøõ7Êʹ²Ý«RâåÝϽãQ(~p$«Z|µêÜ…†—'½À5)ò2T÷,}`]òØiÃßÁ‚pâ´lÝàßë!ì†5r©RµaÀ{twJ<£T¦°»D% Z³Õ þewŸçu<ÌÜ5 ò—1 Ã0ñËõºO…A°Û6PöCf@d éè‡gG;¨¹† ©7:û‰Ü:ÚA‘ù!pô¬ac*Ÿ¦¿¿fôxŸPÇÅÀÞ-×O4e|ÚvðûŸõýPÃê÷ÿ¼ €6ïÈHæS½g¿1¶9à_´É!Þîöºòí…{6Wµçê«<¿€ç#°#eálHl>TRÛ1ñU_‹ÂËüøÝ×ÁÞ”"¿iõ™ ýjôŒå¹÷ýæÖ]ù»êxP’‚n~Rwظb{Eyy!gÕ§Â`/X[¿ øýÁ ·»¡®é>–22s"çùFÎ,ÑŽkN¡hÚQ­%3ãàyÇád÷Þ¢ Øò½j pUVQëÿgïþ㛸î|áÆ–lÙX&"ˆ&&Y~HãñÖ´/B¶HÉnÃ¥œ6iû”v+§É>`v7åʹeïš¾àŠì¶È½Mdú$b7¶Û\»MD7kØ×nLÒ¡r›qR‘Æ&v7ò6HAäû<Œ-ä_ ý2ú¾ÿùX:óÕøŒæ«sΜ Çb±¡Síë×n‡Éù—5:Äþp¤©éÄ’‡‹T÷ýuphUÝÁ¾áp,<Öü­m­hú[ßzÖÿýrŸ ŸüçǺñ¸aõÌ­Küϵ«êZݲ5÷o¹Ÿ,.¢òåŸ&þÛãê ËáÞ¿¹÷n,†võ×LØõ]çPLö¶nܱkPRM{-´+6`×wÛ‡b@¸÷жV<ôÙ+HIÊ! îëëUœêû¯`ÀÊÕ˵ªðѧÿ®¸“ð¦ÇáÚ³§o­pëϽê kµ8ý®{7ÿÓ¯òb6B>± 6Lö¢“H:РK4Ói­vÇŽY‹‰ä‡ ÕÞŸ0·_I T•„ŽoñÛÖ¹ö(O0XÛüMêàÜ÷ÿþïÍ_úryPJUqÀÛö­uÛùÖ‰çÛº|ß1êãÏ]M«Lü!€Åáùf•VìÃåž(W«+Ÿê°®Ý¶ŽÛ¼Åù•*­z Øµê ‡[‹òR5hkr˜wíX·h`0(/ךìù%w./ÙÀÔäÚ1åµ@Ý7[{^[ºqyÉc`²õ?y7¦öîÌ2¹©X ØÈHØ…wì&l[UÀ`±šù÷Þ÷LäÍÚe›lì}S¥€Þød—Í»™_¢¼Êé TiÐ7³~BÒ`ÿþý?üágMz(J!Žöfj)×½Çb±‘‘‘‹/^¸p!Ÿ;wîÑGÍvh$?łÌHP—ªB—Hwb¦’³ýNMÙÌ燃!QRk—èµIßäh8ЍË?¥×͘ȃä§ý¡ué¢ÄªÓr,&«TÕ´ïZr8†F§KÞbá`4¹p¶×Æ‚Ã! %K*t×ðíM²j‘^§‹Ê*­F 7rKÏwô·õÎQ7nÚçÚ}•óÜIÞ5mtx7*¦u3þ·ZaÚ´vJ ø^î_9ÛÏ‚§˜n[ª™µ¶ß9Ön<ð›†÷‘¤csó­””eHÞ¯4°ã³Ín†/L|òGN4ÖVsÇU׈ÍZDOÙWÍqgldp8›ÐÝõÞDÿ‡Üw´ÙÈqÇw’g-Â}ÍJ;7Öwö…DûÚkë[Ösg¬o>yr¢)­:0Ð ¸Zž¬å8Ž«m<” œ>ëçÎw6ww*—‡ÕU×–ÿó7ÝàË5ò‰ƒõu÷Õ9Ž3Ö B>q°nÝ^Àµí™SÁYŽGù̾Úú–#ÍFŽk9åi¬«oi98qôVÞá™c“o§¾åL‰Hô@°÷èî‰C¾¶åĦmN €ÕšYÂ=‡×çµ›Xú%æu˜ðM=.;€wt¹;l&Àâ“XÍÀlwy=f—ÄBvÀâ&ðöcŒ‰fÀ䌰ˆÃ ´[Mnw[“rLõw5hp¸úC™Ç£4èR¶nst¼ý+ É#x <`òŠqÚ»„~o‡ÊV&"a!7“½«PpZØCŒ%mn¨ ßÐãë÷8ؽS67(fùÏùÑ®¥Yž?Þn··µµ?~ü7Þxçwü~8EQ–å™çæËǼ1Wôúë¯_uóçó}7؉±ˆ×ؽÆ˜×Æ žÁc,äóúÒÌ·àíJ«yí€Á‰8M€µ‹±‰Æ¯Ôp[[ˆ…ì|"›g>‡ °‡"^ÐÖ/F`ðŠLêoÐ1(1Q0V·Ÿ…zxÀÖ`Œ1I0m>QìPž™íxô' ‚Ó4ôKŒ1& Ààö€¦ž‰,_pÀ_ŽD žcb$à²ò0µ‰Œ%6p[³0‘å„l36—㮥YÞsÏ=”eÀüøà˜GæJ€î¹çž«®s¾|¾ÏAr5Líu49"Œ1iÐfš(0Xì¾ÈÌÉm5Lë°´{Cn+ÐàfŒ1©ß2™ˆD`D±Ã|9ÛˆvÀä 6Mžc!;†.¿ßH¡fMœ¨1&¶™%+š“/Ÿx¦WdnëD*&8 08C!ÒÛ$úœÓÞ‚ÁîMªËf™;‘|”ˆ×<µ%XÚ|Œ±ˆ¯#ÑÊ­N8³DòY¦µ!4øDŸyJãŸHzšxX\’è5]“}‹ž&WÔ7Ñê¤þÀä“Ä6ÓD£UzU]ƒRÄkWº—c¢Ï©´íÉä~öã±§‰GCcŒ1±Íƒ}"ëRÉc]V apr¸­€µGœŒ$àuY’ª4;ÆXòw‰Ë‡ž(˜¦o.×Q”ûhI¯hßs¦Cp¸½‚×+BG“®3X¸Ow¾ÌÄÀ Çå8x×Ѿ÷¦—üî?ßz¥Û`÷ˆ’ÅP¿·ËíÝQƒ_@ƒ¡€xû0øÏ­Ôð{»À—k>x½Ÿ¯Z®lú·/?ó_Þ8üÙJP²˜Ç›=ÿpï¡WãÕ±Éì{ üæåRÔ H©°ïhsˉ¿· † KUàï{ ¼q…&üë°Ô,pÓê;€ëi‹`q™×hý½nðv¿$E"¢ìérÿ¸ŽOªŸä‹“‡v´òÖAðz½‚ÐcÞ=wAŽ bÓ &…6«áÀ‹ç¿¦—œ޼ Ø=~IŒˆbÄçér O®úà÷­à7|:Ñø¿°\ ü›NÁ´éÓò Ð ÓÒ‰)ÆCÏïüܽ­Nµt¥ ®y¦i»ËÐó¤ÀoŸ,ŸYªò '`ذDiÛ½nðÆüÁ£Ì׉Îz<þ¦S0ÿÙjý§]¨5,W¶úÛ—ŸÙ\þ{ ÕŸRŠä>çXï«ô+‘H§^gyØíHLÌ@ Øœ`®¬P^~³ËÓV'mŽkF I«áCüc°ºë5U55UUU_Úö0ðæ¹è{»Ö­ÝÕ9 Ñ/«®^`É œ^²XWÁ£ûÄoCШ£¿kZµnó‹ï—Dß;|þ3ŸxØR©{ËíÂCŸÕN/¿üïQY8Ѽq¯`ß½Y<ûkÀZ© ©ú‚©ûÀ®Ã¼­ñesÆ&Ê¿µ•ßþ§—¯Py (ËC'›yÓ.èËßr»øZ^ ±·_mÅCŸÕEß;l¸c)þÓèÞ³ãz¾÷€ XTYáeÁ/jµâ/=°qsóH ¦×O®wò@çÆ½‚Ãi½»ªª¦¦¦ªêîVt¿üÛàïþ…_{߉aè—UU}z)°eɦ—ü‰Þ8¯Òh?8ݾöÎͯ¨x€‡*uPÿDsн÷²€ÍUKýoýàê>=$ËÁ£†å¯ï[òv¢Õinº‹Ç]ÌNûÝ:ð‚iÃRU¬÷rÛ–'Ú6¿{| d”Ìr<ÆÞ?!àÞ;–@xèðÜOº£H}÷ê/E÷˧‡eÈÁö'ùV4|sãD$x÷Õnð;¾²±BnßÅ·Âð¹[u¸¼9hí:bÃ'wÞ¹‡oúÛuÒæ¹vÙÞÐX²AWô{eHÈ)„ÜM—û¾-Ĥ%,âëà'K ÖŽÐd·¼ÒÛïµ`îSæ–ZÝ~eŽB¢[WÿÔ§1—€Cˆ|dl°ó—g-„¼—ǰš\>ÆüM‰ @,dçauûƒŒMÌ}V:ócLìOŒë–¿¤¼*Qÿü•;Í2w"™ƒØf,Écž‚ÃÞŠIc°†!Äf–0æu^»Üªº$ƔƯ4§‰v™˜=w«‹8 HLÖQ~48¼SÛvÄÁÃêö3i3€Ó™åxìoK´üÇ–|fipz$ÆXDhH¼†·zI‘„. š-fL\pys#Q›©É5ms¹ïZš¥Õj¥!° àÝC'¥ÆÆÆ$IŠÅb###/^¼páB8>wîœ,ËW}%<Ç]Ÿ¦ððpDBù¢%:­j®ÄÂÃ!¹D«»\ò±äh0ÓhõÚécL±Îú’m¥.é|²{àÅÂÁ(´:æ*o'‡ødïaÈf™;‘\•ØðÐP—.ªÐkæ,A, ɪEŸ¤ÊÑp8^7ýá“Õ‹6n÷¾³^…5ÅbÐ(žûxìm6®;ý¸øBmt8¬Y”|ôņ‡>@iù’™‘ÈÑá@L»H¯Õ@ŽFå­F5esr4IêE‹f̹ï›essóâÅ‹/^¬Óé.\XVVVZZªÑhÔjuaaa ãÌgóúƒ#Í•=úè£W]ç<ÿ|Ï CÇîØ³§[°bKÕüû,ÍE¹Ó,s'’œíl||ÛVX»¤ý÷§46såÏ9„7ë«RYë|F Pî£9@$/¨u+kïð~DÙÉcê[k¾àìðDRœý(1t¹œ_Y›âZóU(Êvy¾9¥Ø\=@Ë—/¿ë®«¼O}Á%9(wšeîDBHµ4KƒÁðàƒRPºQP†<õÔSÙB!®§I™×-Žã8ŽËv„L‘;m’’ƒ¨Mæ>J€æñññl‡@HrhŒBÉ!6lÈvy  Ù±cG¶C „2ìß¿?Û!äJ€2äªWA$„BHÊQD!„äZ(3(Ê_ýêWÙBÈ<°uëÖl‡(ÊZˆBÉ”B!$ïPD!„¼C !„’Ch Ì (Ch B!Wbÿþýt'  (8Ž£u€!„\9ÊÒ K4Yå7ill,«qB™”óEâôg’”¥…ÒF 8Ž+(((((8þ|¶ƒ"„2466PÎÊI“ùP¶C»®P”zJ3MÎ~ þöoÿvpp0Û¡BÉiï¿ÿ¾ÏçS©T………‰S e?)G PŠqI”æ[XX¨V«oºé¦;vŒŒŒd;@B!9*‹íß¿éÒ¥EEEjµ:9¢ ”£(-?ªI<Ï/_¾üÁÌvh„Br‘,Ë?üá,Xpûí·+ç%JôQ”BªlpRÆk™»Z­......¾ë®»|>ŸÃáÐëõ%%%'Ožôx<‰W}ùË_^¾|9Çsúôi*§ò|(®¨¨Èx¨œÊ³Rþàƒêõú@ péÒ¥›nºI£Ñ«Õje!Ñ ’:c,Û1\Wcccc’$ÅãñX,véÒ¥h4F?üðà .D£Ñ‹/^ºt)ÇãqY–ÇÆÆcÉ…i‘D‹§òyQžƒ!åryKKK}}}îÄ3Ës0$*¿Âr%§),,T©TÅÅŦ´´´¬¬L«Õ.\¸ð†nÐjµZ­vÁ‚&‘Q”*Ô”z‰6­Ìþ)..---•e™1ÆqœJ¥ŠÅb’$I’4666>>ŽÙ>ÔÉ .Ìv„dAâbaåL¡V«KJJ4Í‚ ÊÊÊJKK•¡ƒD'õ¥%@)–hÓÊ ¢¢"Y–eYWÚzQQ‘F£Q ññqƘ’’‡t:]¶C $;Wx) F£It-X° ¤¤¤¸¸¸¨¨H¹",q1|¶£¾~P”zŒ±ä %ËQú~ŠŠŠ”îŸÑÑQ¥ûGùmr ¹ÖOKåTž¾òo¼1§â¡r*ÏL9¦)ó~J’(=@ÉS¡AR‡ ´P’z•J…ÉÖŸèÕh4Êìe’aÆABH>øö·¿­×ë³!Y<\ œÔjµ’i&%†Àh t IÐi¡tê()Ž2Ô5š$‘ý$f@Ó_BòMò4 %RF ’)Ý?Ô”Ô”J³.,,Lü˜˜éV\\œèûQ 4ˆBòJbRsb,±tœ2ì•Xˆz€Ò„ ´à8Ž1–ÈÖ½ÊlèÄÈ—’÷PöCòV{{û£>ší(ɚĺq‰±0% Jü«”€¦?§ ¥Q"¿I\ê• üHƒ_$Ïéõú`0˜í(É&åò´ÛG*©—$Ûa^‡¨(=@ÊuaÓ’šûL€’’’l‡@H6%f%ÿ›HzhÞOúP”v‰æ«¬”x¬< ˆä¹¢¢¢l‡@H6%zw’sÊ{2€†À²Œö?Ég4ŽáÊ êÊ2j÷$Ÿµ´´Ð!@É ê"„BHÞ¡QFB!„äJ€!„’w("„d M"„d %@„BÉ;t!$£ZZZfý‘ã8‹Å’ˆ!ùˆ®#„d΋/¾øÈ#”––*?&¯:22ò“Ÿüä‘GÉ^t„óWÅÅÅÁ`P«Õf>*BH¢9@„Ì)++ûÒ—¾4sî3Çq[¶l¡ì‡’1”B2ê‰'žX°`Á´Â²²²'žx"+ñBò B2Š1¦×ëÏŸ?Ÿ\xã7ƒAº*ž’1ÔDÉ(Žãêëë“o_TTd±X(û!„dõB2íìÙ³ŸùÌgb±˜ò£F£yë­·*++³!$¯P!$ÓV®\yÛm·%~¼í¶Û(û!„d%@„,عs§2zÁ‚;wîÌv8„¼CC`„,ˆF£z½>Óò?„¬ [ad ¥ž$Ÿ•••mٲ套^Ú²eKYY$oÑôÿl¡ L`Œ%öó´ÇÙ Š,ëîîþâ¿xüøqƒÁíXÉŽDö“¸'Ì´Ç$}(J¯ññqL&=ããã‰ì'QžåøɈY›º,Ëï¾ûîêÕ«UªË]Ñôm˜ä¥Á+OâßDD™PZQ”F‰Œglll<‰’ a2 "äºwåŸ3”‘¼’œôpWXXÈq\AAò@yœí¯[”¥E¢Ë'‘úȲ,Ëòøøø¿ýÛ¿uvv^¼xÀO+?êtºçŸ^yüo|ƒÊ©üº/ñÅúÓŸ*¿úÕ¯nÛ¶m||\¥R©T*%%*,,T#úb”¥…’ô(Ù$I‰ìgáÂ…¡PhÁ‚7ÜpC¶c$„’+ÆÆÆ c±ØÅ‹ T*•Z­¦(­(J=eK–å±±1Y–GGGGGG%Iºù曓—ÿ'„B¦9vìXqqqUUUQQ‘J¥*,,T©T4–´CS,1ø¥ {ŽŽÆãñsçÎ9r¤°°0ÛÑBÉi•••Ï>ûlÚ]D7 IDAT<U†ÆÆÆ’/&©B륅Ò÷#IR<Eñµ×^S«Õ”Bùh+W®™(ÐÐÖS_sƒ$IïýêÓc÷Þü§¡o—ÔéØ^<‚ó騗ù'k4e•Ä ºÙêzC=@)–XâY¹ ^Ív\„|b`EÕç׬©ªªªy þi§m¯þðÞO›wsÇquGÏ„@nß7ÑaTðh0p¢¥–ã8Ž3Ö7ŸQ:vbCGk9ŽãŒuí§†¯$†èÀ‰ÆÚjŽã¸êÚæc@¸½ÞØxt@ùíб}Æúö(=s¬ÞÈqW[ßÜ–œél¬?xä`WÛÜ›êCHz…B¡äîŸäÛ(‘¢(•÷ùJ,„¨,xáÂ… .d;:B>™r öar,‹ ÷þŸtcËçVÅÀ¡'õx=vs«éá¢@ß3›·ïõwx}>OÇ»{L?81ŒXï·î}ìöÏ`χw­}¼SF¸å¿-ßñÊŠ.¯àº?ºýÎ¥CòÇ…u®º÷€öq¡¿ß½{Å®Íß:ÕÝzK÷タ豃{»o¼I<ñ…µ›ß5´ BÏíž]ü=ßÒùßÞ³cš¾ñê|%óÌÖ­[•sGâ^ÊÉ…r Ô¢(ÅØ¤ä• }>ßK/½”íÐùd´ÀžK9uIIIÉÒuÛ“í›wé|Ï ß½»fýãO9 œx7Š› ?èò¾øPͪ埾ÃÀã•_ÿ'$  ._v÷ހϳû³±3®ÇºÑñó÷×T=ðgš€Öc¾ Amèry¿ÿÿT-[Vµ®Z)úü6'„ç~¿}¦ί}¾ïçÍšZ¿ûhUÕÝ{º ìù!ˆÀàˆ¼ðÝj*Ò·‹II’'‘Äi%ÛA]o(J½™95\2Ek‡×ïìïïïôK/§R l¿C ¢ @…‹/íXÂqê’Ek÷ X±P ííß±Yl[·HÍ•<üƒK*•ÛV•pÇqK÷ˆKÃHèÍKJ8µz ¿(Wš5a…ð ïpð7]¬†5Z@ ì]ÊqÇ•,7è$’&”¥Xrö“XšÚ.™"ÀM·­®¨XVYYY¹¬"éŠ ÍÔ«'¢/˜M‡·t †"ŒEœD⣡å[¿'I‘~¡ÇQýîö‡ÎÆ"ïö‹R$"Š¡§k¯iõÌ&O¯–‡ÿýÎí{·w ‘1Ñk@D€Š‡ì†CŽV§ó€ÁfZHq?x{@’"Q º»z¾ÊSæCæ·Ä¹C™WJ=@é@ PzQ×%™ß¤¦ 2ó§W.Ói‡N¶ïèb’<èZ»jÉ¿ ¡²êîû¿x'€kÖ› 8qZÖj£ïþ‚߸ù•?N«¼ÂÐé¾¾^Å©¾ÿ †¬\½\« }úïºK1oz®={ZñøÖj·Þa€ðÜ«¾°V‹Ó/ìºwó?M¯˜yeÆ Éç:ƒ¤ ]ŸJ‰f:­Õ–——¯X±"karUÊbõlü”g©Õº/ìnصc]뀷45öî±¼ùíÿë´*!) Ñé5UZíľB7ýyÚŠŠO4AG¥ÓO^Æ¥ÒhUˆé|dí6,¾ÚÊäçi.?ù- e;„¼@s€2!Ó:@„¤„ªüÖÍv§gð×Ð×7rÚºuk¶CÈ ”eÂÙ³gi BRBU±¾~ç××/£ë¼!ׄ B!„äJ€!„’w("„BrȆ ²B^ (´Z-­D!äJìß¿?Û!äJ€2á–[nÙ´iS¶£ „BȺtÞ((( U+I®á8N¹WQÖÑBrÐÕ ´PfP” Ê:@ .¼–Jèžb$q—í&ÐBrÐÕ [·nýÖ·¾•ò`È44– ´!„’S¨ˆd ‡c²J¥Õé4ÿlB!$u¨ˆ\µh{]57ÕÁÞpïAžkò ÖWÇq޾‹s¼6|ì`½º|Ñ’%K-*áj÷õå9ž)õêŠ^.>fä8㾩~;SÅzœñTtJÙÅ>ÇÕõÅfyz´¯eÊŽ¨®k?5  ¯ÙX}°7½¡’\m¯¯æ¸ºÞÙZÎL±vŽ3öNm{½«¹ºÎ´n÷ªh䪞šZÆßù˜Í˾S£üÜ÷‹¶n{}O«ÒÜs¤.™Yöþ¥¹R5ÀÑ#lº’ìnÙ½ýÎǫė%uú"Ì+Á`P¯×g;ŠO,xòÙí‡@8ëÿqMåÇ7Ù~ó*ø‡oŸz«7ísÝ÷¹´n÷j}y>=¥,z¶MÀwoœåø‘ý¿?ØÝ޿Ы%Hït·lÛuï¦-âŸÍö®ó­”Ô” ×ñ:@†5›Ö¯_·Âxw¥Ny_øíû#É©uô̱z#Çq\m}s_XðÞ©càí×h5Zý£]h3¯Ž‡droç¾jŽã¸êÝ-'¢À™vëcö¬kì<úÉc­›Ý„Ö—Tê ŸÚ7ÑU×ÙœµdfÍÖÕík>XWÍqÕµGNœlo¬å8®ºîà@ÊÑýÊ3ûŒÇqƃGÏ$ÞûÏcµÕõ''º¬¢»kw·+¿5Ýõùª5UUU5ÆßÛ¸ÞñÇÔ(N¼¼¯ÞÈqœ±¾e(ѵJ,µÍÇ@=X¯|!Þ}ädlŽý–Ïü~ÿ’%KjjjŽ9réÒ¥l‡såöoÜc¶ÙMÀð Ÿj®¯klÞWÇÕ6÷BnßW§tîkï0Ð{ÂkÖ:#ÇqÆÝía±Ÿ÷ènŽî«­=2Ù­r¦³ÑX߆{;'ÚÉî–ØGl7¹áÕˆÍZDOQŽcã‘S2€Ø™}µuûšÖVs\u]û‰“-»•#¥eX¢gÝÏÿwåHi91 :xJ€yuì_kg&B ©76vž xËcÍšªªªªš‡Ú2îÌw {îž¡£É˜1`7€ÍÕÓÓÑÀæ ‰ýmì‡@S€Íò®YÈ Àdïêœöc] €Áæíïw;Ìz"l®=#®ºY¶µµ?~ü7Þxçwü~8EQ–åÔ†—çrñ#cþÊ·ÈiššMóöcÞC÷TÙ¼‰Hù ö3Æ]\ƒc¬ßí´˜øÄK›:ÆB6ÇÄç—×ao1ÑiHœ9¤®ÀÜ!1èiR>O‹8xÀâìˆL !$Í,™­fÑkšzŒ1ɧäUŒ1æµñ¼ÍËD¯púDå:xð6ïDeƒ#ÂØ Ë4 NdfS˜‰1Án€Å5±]¥f& ].o@d’œJäsšs—Ï/1æ<Âàœû-×d>RpWVV¶xñâÆÆÆ¡¡¡LFò Ü<`ó„”o |ScŒE< ÉígiÉaŒ1ò4˜›|Aaâ%ŒI‚h󉃮À`b›¼ÝËóØxðö””‹3æ±`rFæØnÄkàp÷‹Œ±P¿ÇÓž£¤kPdŒ1iРؼ¡AW`ñIŒ1Ñi¬nÆØäñµ™‰ì\ôÚƒ7"v˜'¾E˜» 2æ·*ß:XÈa˜v ˜ºú#Ê>™ö®¥€ÐÑá‰0&F.+S›ÈúÞÚáHŒ‰‚ÇçØ9ãêšåùóç)Ê€ÜûÈ˜ÏæJ€<øá‡^cå¹÷ùqfù¾5#2OûÀ³{#‘P`¢×GŠø}»… Þ€0ý©G(y+½2—Y:úcsòC•·:Ü‘™%âl5‹^`÷&u,EcL°& ‰”ˆMæ.‰Hô9Þ‰t˜&¾‘+ P›wÐ?8Øßß?˜øöÚ |âK¹R3=mM—S?˜¼Æ"BÓd6ij°{Ò¬û-½Ï«‚ *)™>§¤°°@}}=ËÅDr5L ×äˆ0& À$ˆŒ1±Í (YѤˆà˜Ì6&žé™Û:‘v ÎPÈ£ô¬ˆ>ç´b°{çÚ.“m“mÌ`±û"3K$·uzzb÷†ÜV ÁÍcR¿e2M‰L¼ ±Ã|9ÿˆvÀä 6Mžc!;†.¿ß=™B‰^`íðúýƒýýýýƒþÈÜï:àuY’Â1;ƘÇaI¼«6!4ÇÈ!W×,ï¹çJ€2€æeB>¯$ÅýàíIŠDD14èîêù*/?»hIù÷{@¥­X³~çÿúÐý~d¼hpõK’Å€ÏÓõ›’çDÿ²³¦ x½‚àu6àð¾WˆFÞ풤Р¯Ë¹åÀc÷¶÷ý×ô’3£s×<}nMÒ´íîÀÄ5)1áWBòs4kþ¢ ÂóNg« {¶VOÖܾ¬bÙ²ÊÊÊeú¤À''%(5ËÃÿ~çö½Û»„ˆ¨|ŽH@4Zúè#bÄïu·}êЮNa¶ý–£D3óQõöÛo«T—g–iµÚ üÕ_ýUooï³Ï>›Å·?—hßs¦Cp¸½‚×+BG“®3ƒ}¯ß¼\@Šú)Ïï;ÚÜrbÀïí‚aÃRøû^o\¡ ÿú,5ËÜ´úN àzÚ"X\æ5Z¯¼Ý¯4’È`O—ûÇuüìÛ…ûqçËL z\Žó‡wí{ozÉïþó­Wº v(‰Q õ{»ÜÞ5øõ4*È·ƒÿÜJ¿· ¼q¹æƒ×[ñùªåÊ[øíËÏÁü—·Ç¶R”,æñfOç?Ü{¨ÁÕ¸F…Ø à¿ùÞšŠŠe••••Ë*”6=Ë»–N=¼Î4ò°Û‘˜(˜*þ–èЙÅù#&†|^w“ɵÝüÂ;³íŒþ™É|F I¯[ï0@xîU_X«ÅévÝ»ùŸþ(ë6Ø Ø³ãÈÉ!Y–cá¡Îÿý=À´bég¶XpèÐφDVt¬½ssë ã<Î_DýÅÁ°î|h}UUMMUUÍÖ:;„]'‡†ÿçÚUu­‚nÙšû·ÜÇ@`zIáÊÙjžnÚkåÀæ¿9”ìýù¾yßÄ4öQ¨¨u˜ïÚåâmžt}ͽM!GBV®^®U…>ýwÝÀ¥˜ü»çV­ºÏ*©¨1~y“y®ýö‰wþu&–”” †þç‡Ã‡ã³Ÿýlî¬Fdøÿ¬îzcMUMMUUÕ—¶= ¼yN”ÿj+¿ýO/'³ïeyèd3oÚ}ù[n_«¤º±·_mÅCŸÕEß;l¸c)þÓèÞ³ãz¾÷€ XTYáeÁ/jµâ/=°qsóHI`öíFßÛµní®Î~Yuõ2Knøãô’ź Ý'~‚Fý]Óªu›_|¿$úÞ1àóŸù€ðÀ›À–J=€Ø[nú¬68pxùåÊòÀ‰æ{ûîÍâÙ_ÖJ=MÕLÝvæm,àë?€-¢›¶¯b3ßµêÝW»ÁïøÊÆ u¸}ß ÃçnÕýî_Ö®ÚÑÖèÖðk–üöõ2Ë K›ÉËÌ··<1רc=æt:¯±òÜûcEœ¦Y:œ…‰!0Á ¢Œ‰]¶Ës…œÞcŒIþ‰yÇ NŸ1Æ"‚5ñýoòEcÌë0à¿ëà‡4 $ù“CðuXñg€±™%³Ô, æÉ #—G%.™~ò%f{ÄXTxx@yšäïâ'»å§Õ0eoL {%?öÛ/;XÍ<ÀÛƒî¤ùTf÷ 8û~Ë=k–.\XµjÕ?þã?~ðÁÙäJ º.OîaŒ1eØNáv~bæc,ä½<‚Óäò1æoJL…a!;«Û/úœÊcsŸ­Ž‰ýImÄÒã—æÞnÈÝtùˆ³8<“f”°ˆ¯#q”¬¡‰—O4l¯Ýs‡Èc`uû•yE‰Zl]ýSŸÆü]V$¶=M<,3æ²Íò®Yèòx·Ùb`°{ý=öËG‰ÉÖ/βRó÷K«k–4–£»ç¤ÎØØ˜$I±XlddäâÅ‹.\‡ÃçÎ;yòäúõë¿þõ¯_Kå7ÿX±p0$C«ÓkUS ?ˆŒ¨KË—èuIÅr8UZîòsc±˜J£ùˆovr4è¨KULŽ=Í,™µæe•V?s­ê¡Nnù>wèMãô¯³WB‰d‘^§‹Ê*­FƇ>Ô¥ŸªÐ'66ë~Ë)¹Ó,s'’O&F¡Õé>ª}98@ɵêððpDBù¢%‰çÎ,A,<’¯¬¾DÑ`8¦ÑêµÓ’Xg}ɶR—ôƒ®æÍÉÑá@L»H¯Õ@ŽFå­F5ûq}å{ ó®®Y666ÞqÇ‹/Öét .,+++--Õh4jµZ™÷FRb~~d䪹 ßþö·[¶lÙ´iÓµT>_?߯C±£û¾eÚÛ «›í7f;˜,Ëf™;‘CÇîØ³§[°bKº,ÍeWÝ,ÛÛÛ)J7š” ·ÜrË5f?$—¨n©¾×áìò7å{öCÈ\Ôº•µwø?Êçì‡ä¸ì2$$Ç©jøzM¶ƒ $—U¬hçúl1o…B¡l‡¨(âñø… ²!„y`ëÖ­Ù!/PP&(ë]û$蜼ܗäµÜi“t€Dm2—Q4oŒg;Br „O„†À!„’w("„BrȆ ²B^ (´ZíŠ+²!„y`ÿþýÙ!/P” ´!„’S("„Br­””e­D!ä Ñ:@™A P&(ëe; B!„L ˆB!y‡ B!„äJ€!„Bëe%@™P^^NëB¹´PfP”vÇÑ:@„B®ÝE5(J¥D“Up“Œe32B!óÄØØXòécÚ™…¤ %@©§´Ñ‚‚Žã @¶ã"„2<õÔSãã㉓&¿Ng;®ë %@)¦4Óäì§   ‹íÝ»÷Ã?Ìvt„BrÚûï¿ïóùT*UaaaâTBÙO:P”J\¥ã§°°P­V/\¸°°°pÏž=£££ÙŽ‘BHŽŠÅbû÷ﯬ¬,..VN"JöC=@é@ Pê%:~T“Š‹‹×®]{îܹ¯|å+ÙŽŽBH.’eùG?ú‘^¯¯©©QÎJ”è¢(µTÙàz£Œ×&2wµZ]\\\TTTZZºaƳgÏÚíö%K–”••½þúë§NJ¼ðË_þòòåËx<žÓ§OS9•çCùððpEEEîÄCåTž•ò­[·Þ|óÍçÎpË-·«Õje!Ñ ’Rc,Û1\?cccc’$ÅãñX,véÒ¥h4F?üðà .D£Ñ‹/^ºt)ÇãqY–ÇÆÆcÉ‚iŽD‹§òyQžƒ!åxyKKK}}}îÄ3ïÊs0$*¿Âr%§),,TF 4MiiiYY™V«]¸pá 7Ü ÕjµZí‚ 4M"¢4(…¨(ÅmZ™ýS\\<::ZZZ*Ë2cŒã8•J‹Å$I’$illl||³}¨’'.\˜íÉ´ÄÅÂÊ™B­V—””h4š ”•••––'wQP:P”J‰6­L***’eY–åññqåšÆÂ¢¢"F£$@ãããŒ1%"$?étºl‡@H$®ðR F“èZ°`AII‰2}B¥R)çРT£(Å cÉ=@J–£ôý)Ý?£££J÷òÛär­Ÿ–Ê©<­å7ÞxcNÅCåTžrL.(**Ræý”$Qz€’§Bƒ¤%@©§$õ*• €Ò»“èÕh4Êìe’†ÀH¾úö·¿­×ë³!™–<\ œÔjµ’i&%†Àh 4¡IЩ§tê()Ž2Ô5š$‘ý$f@ÓŸ€BòMò4 %RF ’)Ý?Ô”&Ô”zJ³.,,Lü˜˜éV\\œèûQ LöBɉI͉Q°ÄÒqʰWb êJJ€Rã8ÆX"[O ô*³¡#_JÞCÙÉgííí>úh¶£ $;ëÆ%ÆÂ”4(ñ¯Ršþœ4–.‰ü&q©W‚ò# ~¢×ëƒÁ`¶£ $k”oÈÓn©¤>\’l‡y}¢ tIô)×…MKzhî3!Š’’’l‡@HÖ$f%ÿ›HzhÞOZQ”^‰æ«¬”x¬< ˆ¢¢¢l‡@HÖ$zw’sÊ{2ƒ†À²‰v>És4 Žä9áÊêÊ&j÷$ϵ´´ÐQ@É ê"„BHÞ¡FB!„äJ€!„’w("„d M"„d %@„BÉ;t!$£ZZZfý‘ã8‹Å’ˆ!ùˆ®#„d΋/¾øÈ#”––*?&/:22ò“Ÿüä‘GÉ^t„óWÅÅÅÁ`P«Õf>*BH¢9@„Ì)++ûÒ—¾4sî3Çq[¶l¡ì‡’1”B2ê‰'žX°`Á´Â²²²'žx"+ñBò B2Š1¦×ëÏŸ?Ÿ\xã7ƒAº*ž’1ÔDÉ(åj¯ä›ÀY,Ê~!™D=@„L;{öìg>ó™X,¦ü¨ÑhÞzë­ÊÊÊìFEÉ+ÔDÉ´•+WÞvÛm‰o»í6Ê~!F !$ vîÜ©L…^°`ÁÎ;³!$ïÐ!$ ¢Ñ¨^¯Çã´ü!$+èVYC©'Égeee[¶ly饗¶lÙRVVF‡É[4ý?[¨(c‰ý<íqö‚"$˺»»¿øÅ/?~Ü`0d;B²#‘ý$î 3í1IJ€Òk||“IÏøøx"ûI”g9>B2bÖ¦.Ëò»ï¾»zõj•êrW4}&yEiðJÆ“ø7‘Q&”V”¥Q"ãO¢$C˜Lƒ¹î]ùç %@$¯$'=ÇrWPP ²,˲<>>þÊ+¯üìg?»xñ"€'žxâ¾ûîS^òàƒ&^¾jÕª§Ÿ~šÊ©üº/?þ|8V~ÔétÏ?ÿ¼òøßø•Sùu_þâ‹/þô§?Uõ«_ݶmÛøø¸J¥R©TJJTXX¨$FôÅ (J %éQ²I’ÙÏÂ… C¡Ð‚ n¸á†lÇH!$WŒÆb±‹/¨T*µZM9PZQ”zÊ —,Ëccc²,ŽŽŽŽŽJ’tóÍ7'/ÿO!„LsìØ±ââ⪪ª¢¢"•JUXX¨R©h,,h‡¦Xb7B IDATðKöÇãçÎ;räHaaa¶£#„’Ó*++Ÿ}öÙx<>::ª Œ%_>LR…ÖJ ¥ïG’¤x<.Šâk¯½¦V«)"„òÑV®\yîÜ9Qp“ c4 –Z”¥X⚯D‹ÅB¡ÐÒ¥K³!„\WXXÈ‹Åb‰ @………ããã”ý¤%@©”|ñ×ØØ˜’ŒŒH’Dm—BȕؿÿÈȈ2ûGùWIƒ¨(µhPŠ)ôÉÓŸãñøêÕ«ï¿ÿþl‡FÈUŠöµp3U7‡?ö•±¾ZÎx*:û/ûŽÔrÆ–9~IHþÚ°aC<Çã’$)_§iP:PPê)C`J’ÝtÓMÙŽ‹«¤]ýe¯çO¡.ýðÌó÷n?áp;?ƒ$©oº‚û—J‘øe<‚ó) ’ëI<×h4Ê**‰t³Ôõ†z€R,±Ä³r¼2 6::ší¸¹šŠšõëkjªîªYÜøù»jjjÖ¯_«þ?ûê”ΠúƒGƒ€-µÇqœ±¾ùÌÔ¾Þ#ÕÆÝ½Ûk$·O­öLg£±¾}âuáSõƺcC1ĆŽ4ÖrÇëÚO ˆ tÖíné<²›ãj{©[‰Ìg¡P(¹û'ù6J$…(J¥Ä}¾ !*K ^¸páÂ… ÙŽŽk%IÊÐ÷Ìæí{ý^ŸÏÓñîÓN #Öû­{»½Ã3Øßsçá]k%è;R·nÇÇ4Öè>f3«]zÛ²îÃÛO`ÈýüáîÒÕKÅ–ÿ¶|Ç++º¼‚ëþèö;—vÉÒÈùÖCmÛñž½mç­%iÜ „¤ÛÖ­[•sGâ^ÊÉ…r Ô¢(ÅØ¤ä• }>ßK/½”íÐI¥› ?èò¾øPͪ埾ÃÀã•_ÿçd~¤._v÷ހϳû³Êqþåï×ó;Zíž@ýzýUT«­º¿h{uˆu?s˜·}ci¿ë±ntüüÀý5U|ç™& õ˜À»/ï|Ô¨§±}2ÏI’”8‰$N+ÙêzC PêĮ́á’ë _Ú±„ãÔ%‹Öî°b¡ÚÛ¿c³ضn‘š+yø—T*@ aïžÃpeãÀ³T‹euvCë3§¢Ñßý »¨Vº ¶­*á8Žã–îWr¯oФéí’Qɧ:‰¤ %@)–œý$–„¦¶K®;Ñ̦Ã[:CÆ"N"qÈÑÐò­ß“¤H¿Ðã¨~wûÆCC2¢€Ó;è¶ñ»6þM_l–ŠÔW-€Û·üºÿ?§³E€õ/Öh$)ðn¿(E"¢zºöšVgâM’)‰s‡2¯”z€Ò ô¢®Kr’˜?½r™N;t²}G7“äA×ÚUKþm•UwßÿÅ;@… üíËŒ;f´šŸ>1µ’rC§ûúz§ú‚±Yª ©üsß½k×a“ã¡ @»z½ ‚ó§e­6úî/ø›_ù£2ÝHé"d~Û°aCò¹ƒÎ iB P*%šé´V[^^¾bÅŠ¬…EH*•t_ØÝкcÇqËÿº·©ÁнÇòæò¯:-¼iU9ÇqË7°vÔ/Ê•©ÓššïuY…½÷¶$õky~âNþ'ïªfV{* @ÿÀ €oÜÏ€vý=ŽÖÇ6–pÜ~»Éæ¶®W&W——ª§‡Kȼ³ÿþY“Ê„R‹îŸJÊuï±XlddäâÅ‹.\‡ÃçÎ;wîÜÎ;³!) £²J§×© G£b‰V«ÂÁáÈÊ-Ñi¯r*ò¬Õöµù¿9ñõË‹ŢáX‰VwÕ"$gµ··/^¼X§Ó-\¸°¬¬¬´´T£ÑÐ=%S‹>8!WI£ÓOÎ9Viµ™‰N_ñq—ºÂjcgö=òð^—`÷þlÊÒ‹mEŬÅHÈ| …²B^ !°LˆÇã´!WIU^½ù›mnß㻈!×…­[·f;„¼@ P&œ={–Ö"ä*©*¨ßù¨q õWBRˆ B!„äJ€!„’w("„BrȆ ²B^ (´Z-­D!äJìß¿?Û!äšV˜ ·Ür˦M›®úå´\É5Ç)‹ôg $åÎBæB Ð<@7Ó 9ˆã¸l‡0’ƒ®å¡u€2ƒ†À2Ö"„r…h Ì (h ‹ÆälÇ@!$PD²c }7ÇqͽáYÛ×l¬>Ø;µ,ÚRͼüüpK-Çq»ÏÌšÑÈáÞ“½aˆõ8ÎÞÂGê«KÊK¾jö-ÎUCos-7ƒqzl³ˆö5sÕÍÑ+Ú!W.Ú^_Íqu½±*€Ø@;Ç{§6ÄÞƒÕ\]ç'ßt¸Ù8óhH>*?2’3G8n÷}!9ƒ ’ÁŸÙØõ©Y?Õų”%ÿ ¹s8tÔœ­‚÷Öm\÷ž hV|·£Ãx‹òû/šÜƒßY…·S˜¨aµiŸÇãñ Þ6+Xº¼‚×ã±o½²kú„+Ûù8áð•¥­y xòÙ퇠õ¬ÿŠ2 ~ó*ø‡oŸzÏ´7ísí¾ë“o\k²{<^¯Çe`ms ^¯ÇãÙºâŠîÈæïuÃP½„æ’œA ɂؙWö»½‡Âåï¦á£ë«9ÎX×ø/]Ý7j@žj¬­æ8®þàá^“÷È„÷Åg`j²™±çùW•*6ÐY·»¥óÈnŽûóo×X·~w_8úû×_÷G>ì|r— Ø»{×ÑXtà„R'W]Û|l@©pèd‹òåÖXß|&8°ï/&j\Tµ~ýúšªšše+À×ÜSSU³~ýrüfz rðèÁzå ñî#'§œšä¡–zcí¾£WöL'Ëò¢E‹jjjŽ9réÒ¥l‡“]û7î1Ûì&`ø‚O5××56ï«ãj›{!·ï«ã8Žãª÷µ÷è= á5k‘ã8ãîö0€ØÀ‹Ï{t7G÷ÕÖ™ì¼9ÓÙh¬oýõFŽã¸ÚÝ-±iõ ˪֯¯©©^¡ }ÅXUS³~ýúJ|ªýàÄáS·ïTPt”ÕˆòÛ¯¶òµ¼žj¯­66ŸÎÒ>œh  a$udYE1ûýþwÞyç7Þ8~üx[[Û“O>ùË_þòª«½þþL=M€©C”`íò3Æ“ÜVàí]=] “ÃË$Ÿ€Áêö¸mf°{CŒ1&õ[«;ò4O„1Æ"‚`²·ýëÿ}Éð¶ŽžPØ{`ó|]v€·w¸#a;³Cèïw;”—G'³ÃíóºÌšŽy]“5H1 x‡²©™5ÜVÀÔ%ô n;kO(ⵃwˆ,`7h"ÙØÑé”±f)ŠbAA€²²2F³mÛ¶_þò—ããã™$ë‡ h ° 08Æc;æ&{— 4@COèh2&ATšl®žžŽ&6oHìoxO$dçÁÛ<Œ1ñš€×`¿«€µ­Gð´ƒÝ;µþÀdÀ˜ŒjÐeàìú…. ÀÛ½Lô™‹ÃÝßïµÞ!2¿p¡~—€µÃ—…Ý—Yר,ÛÚÚŽ?þÆo¼óÎ;~¿?‹¢(ËrªÂ#Œ±|ùàÈŒ¹ »Ý~-Õ^oŸï’Ï XÝƤ `rFclÐ XÝJ2ĺÀÛ½¢àx%¿a’`šL€B`ðF'>¸ÙDÄ»O6Àà•½÷‡¼¡Ë%Lº\Þ€È$) 8•ôÅkãaPÂ`»¥É%^~þ„¤h–|N`îòù%Æü‚G E`j0°úÄÌìÙŒÊdTXX˜øÎÆq\YY™^¯ê©§Þ{ï½LF’e7Øq¼„< æ&_Ðc˜x‰rP Í'º[€‰mfðv/cÌcãÁÛCR¿0·M¤&»&g$©þI¢ÓX݉ŸCB—Ë3Șò{«ÛñÚ8Üý"c,ôÿ·wÿQQç¾ÀŸÍì™Ù3°ÁQÇ$`4Ñ´Œ=Ð,°+j=©Öı!ž¤Q»bzjîB<÷6\’Î=¤K¦÷Y+èM°'hëÑüÀ®\m{‘“j‡“9F‰Ð+Ü–_#3Èìaïaî/lGÄu˜Ùßφy™ÙóÞaç}ßýÎ…¦¦ ò`£È¾ÍND5®ÁHü¸¢ (öa "­ïw'k‰ö­]Àqú-ÕDuÿv®È;ÐDt÷œñÅ)Ëì$‘L~¢­÷±6~ÑIDDÊÙŸ!jÈLä8SfQù›§'¦ÑæÍa“dŠLD²/äYCZFÿ¸c‰ÓëØv%êÉ{î´ËþT&{ëªÂª—7 ×!ÄuG e¹¯”9j7,OÑsÜ®7›e3;X]y- ÈáúÙŘ)ÄΓɺ¡\0îëë{õÕW×­[ÅÿýÈRNî]ë"*ΞËq‰ är~ê%’:?n Çæo$I¿®ÙGeÿ5‹u=KÖÁ·^Nù7PÞ¦L Im¿m DzEBGS9•|ÝJBúÃv×{.·»9¯ØUsl‡éÂÙj¢Ú­ËÙ={wƒ=Ǧ¿z|µÎßÕQQvÚÄmï'­ç^Î^Äqú¹)™åDÙi D›c¿ƒ Ö.1q\Î?éÁ4ßÅO]D µ DyÙ˧¹O»°Pd Eö !ýºº˜ò*.—Óér9ëÔPóëöñoN,t "’‰¨u`|™tïø ¯³¼ÜUt¤‘ ñx Õ|Ô3ÅZj½þú6Rz~•½µtë)—Ç úœvòȤŸ·”ºÆS»[O˜XÄ3í#×k~æ'Ÿ§ÛYä®òÝ;j\D~¢"W·«ˆªm%§gåµ/‘y—¦N1f³Ùh4®_¿þwÞùÓŸþÅÿýHò¶¾á(§Êz§Ëét¹\ÇËìT×Þ«Pgë‡dÛ°H "ÙÛMDvÿÖ“¯Uéèvž"ûÊžˆ¨»õC²å,ÜØGy©Dt÷Òl¢ÞºWó\yuÛ–‰Ý-õd«è–eÇçót6žªÿÉv[ÈñÇ)ÝŸU=ô•»ØÍžÓûVo=QÜtÁ#{÷m»ž·Õå+|/èëílª«¨Þ}òSwç¹Sä¨é쬷SõÁ÷:"ú³»a È@ŠìtUßo÷×REþ3éééé› K¨vÿÉ>qñf;í~¹¦K"©ëtI±kž@â½÷ÕVý{‹BJë‰7ª‰ˆ¨ã—o6P^þ߯bXõäwóˆ*ÕÆ/_ýOCûù).S<ƒDtßÒE"ï>ùêk º"ñߨXDûöœìp+ÞöWmŽâÏH˜úþAùô%KÖÕ š’3r_³mâî¶ÅK“Ó_lÜOåMïRa˜R àyÞd2Ýÿýû÷ïïéé9uêÔÆC§Æfµžr[•Ôççd¤gd¤§§?¶å)¢?öû”Ï>¨µmýÚÕ«°.uô)J×Ù×lŽÝdMü¤¾Ž­;&’þóƒZzòo-Þ‹§‰V~5…ˆëýÔP¼c5þpO47-\ﹺ}¢èûMù¦Õ^1Ñäãõvü‘h[zÊx&úËgMdûÞße¥Q÷Ù\]L¶ô»ø‹»3—ï>Ñ!XSW¬H%¢ó¹ÖSuŽÍÙ©©«wåQõ–£Xÿ 1!2ïá4âFk€ jjjnù°³é×táHQÑ…µ5g%ïôÉÝõÛBz¦£Ò ÛêÊ&lDTéì©QW?L¨/³‘½òÏ®J"‡‹­¶‘/”؈ÈÖÔëÚFôc—7èsÚÇ—KwW8ÆhÏ+Ùf#²Ux‚ƒÇKìÏS䔯abñ²«Ò1±\iŠ#ôvÖ;®Ö¾­¾ÓçqU­‚-š>’GDe3ÿ㤈uKEQî½÷ÞÂÂÂO>ù$º•DKg]ÑÕÅ=Á`0ôµÕQëÏ6*k_Ž<è¬Q»`Y][0Ø]¦. Vب¤¾Û×VCäp²—‰Çé ÚVãš8è…ýW;q^c·Ì¥ŸqVØÉ^©ÖÒyJ}…:¶Ù‰ˆ*]ƒõeö«ªl’ƒED.O0tVQÍì»(à:·Ó-y䬊.ˆÏÐ Ÿ@ ˲$I###ÃÃÃCCCn·»¿¿ÿìÙ³YYYÏ>ûì­–ã4ókR¼}½^~n²E˜ÔFs“­Â7å±$‰aÊ]Gw_¯ÂϵZR$¯Â‹OD^wŸD‚Õ"Þꤞ®¿Êzó]7]ê)vºeìT}’»ÏK¢Å2u·ýrJ_O/™D‹Eœþ$wß Â/°Zx"¯WEˆÜ==™ç.¸™#Í*·Ó-ívûÎ;çÏŸo±X’’’Ìf³ z½^3£ž‘ Ñ® 1Š­É“7U›ªmZÇnCx‹5Y½—ú÷Y´X¯}ž›=‚œšz …„`¹½ôÍ[““¿ü^×=§ú–~ˆÈ’œŒ¥Î· ûEÖE‚(Š‹Ooï`ж½{÷F»M@Š„… ®Y³&ÚUÀ8 €‚}€"k€"í”””tkgû’…·$€Û;}/ˆA·Ó'ssswîÜÆb`J@‘Àöºå«ÀB·Á€Ið€[€)0Ð Ð €‚}€"(°LöŠ  HÀ>@1 †` È@жP´«€;@nnn´KРH`ûE» ‡šƒšƒC°Pd EBbb"ö€éÀ>@‘4ã8ŽÃ>@0}·óaò0M@á¤vYö7ˆ@4+€;D =}L:³@¸ …ë£qqqÇÅÅÅÅÅÅétºÞÞÞh×w€—^zillL=‰ÐÄÛéh×5Û …릡é'..N’¤ÒÒÒË—/G»:ˆi—.]jkkãy^§Ó©§¤Ÿ™€N\6ð£Óéôz}RR’N§+..v£$IÚ»woZZšÑhd'–~04€ÂOøá'ÆåË—÷÷÷?ñÄÑ®b‘¢(¯¿þºÕjÍÈÈ`ç€Ô d ðâ£]ÀlÃækÕä®×ëF£Á`0›Í+W®¼xñbEEÅ‚ >úè£ææfõ?þø¢E‹ˆ¨©©éܹshG»Ú{zz’““c§´£=*í¹¹¹÷ÜsO?-\¸Ð`0F½^ϦÔA ‚°â‚Á`´k˜=‚Á` eÙï÷K’tåʯ×ëõz/_¾<44äõz‡‡‡¯\¹â÷ûý~¿¢(@  †þ &ý:Ôö;¢=KŠñöªªªüüüØ©çŽkÁ’Ð>Ív–it:›%Ál6'$$ˆ¢˜””4gÎQEQŒAÍCˆAa„ 0Sû4[ýc4GGGÍf³¢(Á`ã8žç%I’eY–å@ 066FSýQЈ¤¤¤h—iêÅÂìL¡×ëM&“ ñññ f³Ùh4†ah& …“Ú§Ù ƒÁ (Š¢(cccìšFNg0A`hll, ²  M‹%Ú%Dz… @‚ ¨ƒ@ñññ&“‰-ŸàyžSk€Â (Ìâââ‚Á`èK9lìÇ`0°áŸÑÑQ6üþz„X§E;Úg´}Þ¼y1UÚÑvºvºÀ`0°u?¦l(t)4AX!… õ<ÏÓDïW'zA`«Ø €èº €F|ÿûß·Z­Ñ® ÒB§ ØÙA¯×³$LP§À°Ð Á"èðcƒ:,â°©®ÑjúQW@ãW 5¡Ë€Xb³¡ØðF€fF€ÂukN§ÞTWºFuì‡ " MQ5«³`êÖqlÚKÝ#@3(ü8Ž ƒjZW'zÙjhuæ‹å¤в£G>óÌ3Ñ® :Ô}ãÔ¹0ƒÔY aùóÌÀØLQóz©—ŠÝÄä€Õjíëë‹vQÃÞ!OúøH}¸Ñ.svÂÐLQG€Øua“BÖ>0&“)Ú%Dº(ô_5ô`ÝÏŒBšYj÷eû©_³/€ C´Kˆut'4ë ÷D¦À¢ ?|и¸¸8,ƒà W´`(šÐïA㪪ªð*€¨Àh&@s€@s€ j°¢4W@DUUUMy“㸼¼¼hTZ„«À rŽ;öôÓO›Ífv3tƒÐ‘‘‘ŸýìgO?ýtôª A€Èž?¾ßï¿þ[F£±¯¯OÅÈW„5@9 =öØõkŸ9ŽÛ¸q#ÒD DÔóÏ??©1!!áùçŸJ= M˜€ˆ ƒV«u`` ´qÞ¼y}}}¸*"#@Qìj¯Ð7 yyyH?I€HûüóÏ¿ò•¯H’Än ‚ðÉ'Ÿ¤¥¥E·*ÐŒ@¤Ýwß}<ð€zó@ú€C€((,,dK¡ããã £]h¦À ¼^¯ÕjõûýØþ¢…5ˆž e 7n|÷Ýw7nܘ€—h–ÿG F€"! ª?çI_G¯(€(khhøæ7¿ùË_þÒn·G»€èPÓú™0“¾†™ƒ4³ÆÆÆh"ôŒ©éGmr}1eWWåüùóK—.åù«CÑx7 šÂ:Š¢(Š266öþûïÿô§?ew[²dÉ«¯¾Ê¾þö·¿­>íh×HûÀÀ€Ûíf7-Ë›o¾É¾~î¹çÐŽöYß~ìØ±Ÿÿüçìëï|ç;[¶lãyžçy‰t: Fxc0€f =,ýȲ¬¦Ÿ¤¤¤ÁÁÁøøø9sæD»Fˆ@@§ÓI’4<<Çó¼^¯GšQ@áÇ&¹E Š¢ŒŽŽŽŽŽÊ²|Ï=÷„nÿ0ÉéÓ§FczzºÁ`ày^§Óñ<¹°™€h˜©“_lÚkttÔï÷÷÷÷>|X§ÓE»:ˆiiii?þñý~ÿèè(›:¡—C¸` ÁÆ~dYöûý>ŸïÃ?Ôëõ@ðÅî»ï¾þþ~ŸÏGDÜ„¸¸¸`0ˆY°ðB 3õš/5I’488˜’’íÒ Öétº`0(I’ºH§Ó!ý„P8…^üØü×ÈȈ,Ëè»0{÷îa«Ø¿,a(¼°(ÌØ4­:Æ2ÐÒ¥Kׯ_íÒ¦ÅÛú·â5oHÃá.§ª•HéjmníòQËWÖDRëvŽ«ln9ÀqÜDŠ»£¹¥C!R[nVëáÍ\N•÷Ëï0k­\¹Òï÷ûý~Y–ÙÛi¬š @áǦÀ€€ ÃÝwßíº¦ÍuÍ-?ùe"å´-Ûvì<-\w î±¿!E¾Dä—eaáºãuëLDtéíìÌ·¢«-7Ëï¡0üÜÑXúa»¨¨;èF»¨Ù(ÌÔ-žÙeðlÐèèh´ë¸]íGK ˆ¨8óÅížK®/¨SèŠçRËÇ—¤öÚŠ‰Š¿µç¨Ûs©åãKì›-'^YÁq·bOÕ6´Óq¦j3Çq—“ÿZûtF{”ž£¯lg«Aóœì#j?ñbNþÑñ&ws~ÎöÓ]I]‡_ÜÌq—³ýhsI'¶ï©:qxÇmnÁ°Ü!C‡B?F Â(œÔÏù ÝýYQ”¡¡¡¡¡¡hWp[îÊúæ6"rìò¡ÏÅÚjïW¿¥xÚ÷ýÓE9å¡¢Š<¢m»žÎÒ{Ú÷ýÓEQljç3·”~¯®ÉY¿«¼`íöªV’Zv®-xðxSç…ÆìêÝËwP¾ì©[mØZÚ}ÜÙÖÖtü|±ãà™ž”Rª·6÷uÕ¿YÝ`^šâ«úÖ¢ï/>åtÕ­÷nÍN9Ñ¥È#µå[v\¬8Rxï­ŒGDAnn.;w¨Ÿ%ÀN.È@á…fÁ j ’e¹­­íÝwßviÓf›¢Í’öÈZ;Ù7lÈH‰æ¥SÈ®žz#™ÄÔo=ú²=üXV¯7‘žÜo¿Rm¯tnÊÊÈÉwV:ê5¸e™=&1uUio[Óž¿ýÒrî¶<å<ödÆ’E÷Õn£÷ÿðÅôõEDG>è ’UÛö?—r¡® Ž¿³o}Fú¦•Õžncÿ3õ½ï>“cÅ%pçeYý8õ´í¢f ð Í@j÷vQ7ÃõŸÝ!Ã2F¢‰ˆä‰Å@7䓉\!÷.µº¨¡ “Í^eÔÑ<#‰¾°?oߖ̹zÎôÔÁŽ+ü—&ž†ßݱ€ãô¦¹ËK]´8IO”º½Â^{¨Ùëýô`íÙ´‚d"¢-KLÇq\JéÕRçÍnågE¡§œDfP˜…¦u}î$25 ù&n*Ý¿k 'WÞ{+‡âõf¢¢º ²ìóø|½mM§þyÉ;¸(÷‡²ì¹àj¬\q~ëêò®ëæÀô×Üò¾µÍQ½ñxç 'ôÔØÉã'"zpã?PÃÿª©©rQ ehÊIDATÉ£ËYöÙê»}²Çãóy\§JKo¥f€ ž;غRŒÍ ™…¡K¸ãˆ‹³äÊÞþZ‡[’¼]GðT5QZ²H¤Ð õ~Ñbb™ˆ†z½‰†_²1ÊËßîò ¢ÜY¹<{Cm§ÒY·|É‚ÿÝEié«Ö3›hÒ~d‰äê:×ÚÚÂ4·öI m»ÿ¾T‹ØuöèŽ"I&"!íïöÛvï®vT>™L$.Ír«æçQôžÿ…mõ†÷ÿ¢\- àαråÊÐsÎ 3³âá¤vÓI½611qñâÅQ+ à¦X²Þj«s,w,™»›5T6u?“& íÚæ*Øð°ÑYkdßÑ/$"½žˆ(ˆHŸ”L´{ÉÃI=µ¬…ßô#WÉö%‰ÅDD¶²¶­O3kòÞp,Id‡(9Þ–úìF‘hßjÛ>µ¡ÂåyxOÑ;ˆlyeEöÒâ¼æïÿ1K´n*Î+ÞZýÜz‘˜õ“¦ÊÙ«k ˆˆûëK²,¾V"J4_; ãöîÝ{ôèÑëÛ‘„ ŸNìºwI’FFF†‡‡‡††Ünwaaa´«¸Š»«ÛCD湩Vñj³$I¼ |Á;'E’ž®YØ£¸ûz^´XDµÕÝ×ã¡Ä¹ BÚ¾ˆäîó*¼ÅjáIñz}&Qä‰Z«rlǾë9óìÕ%oÏ dºæ©î@áÄ'®Øð½#õm»2n*GÜrss£]‚& EÂ矎}€Â‰OÞ”_øLÎ2 bÀ­AÍAÍAˆ!+W®Œv š€ ¢(b ˜Ž½{÷F»MÀ ÂHX¸páš5knùáqqqØ® b Çql“þ¨Ã bPì¼@àF€îø0 ˆAÇE»„qx@ ºöŠ LEö€iÂ>@‘ Ø ¦ Ad¸«6s·§]ùò»ÞïáÍ\NUë5mRëvŽ«lžâîRËvn’œæ¾;ÇU´¸‡[+9n{«tã'z­%ôP›9®ªÕKŠ»ål‹[!’¦s€›7¹ß®ØSuÆ;ǵ°qeMÓ}µ'£·Ã,…5@ JW}A•Ÿt¾¸,Ë:sOä÷\ÿÜò%"¿,Oy/Q^eÝs_»ktt”ˆˆâï·,~ùøqëB‘þJD—®Ü ±]ÿD"¿¬]Ì\éô-´Žp ¼DEGó3æÈ²|ñ·o9 ÖÞóµÁ²¾äSAî^÷úѿ™ö“Lôd½f'ŒA$8"GÙþmTüæã•¾“òÙØ=‡ÏJS¶yÛOççpÇmέխQû‰·¿Ru ?‡ã¸=¯šŸóâÉv£ëô+9ùG½D¢Œ5ßÊÊÊZ5.ÃBÞÏ>ú¨Û3^¦ˆHi9ñÊŠé¼Õ\|åÑL"ÊÌÚÓêž|©§ù•í+8Žã¸í'ZûÂùóñ-NhÙ²ôôôŒMù¯ÖØéÈŸI'¶ï©:qxÇmnñR×ÙÛ٨æöìµ3r©½½w„ˆHê:üâfö½£Í=ì˜]g«rØýó_kïë¸Ú“oÔãÑÛg öŠ  HÐú>@JǛŠ%…;ÿKUrz‰ˆú:ŠÿzÊuÁU_Q¾cuÙY÷õ-ÔwæáåÎÛ¸\6í¶=ò¯}DòÀ§µ¥/Ô))ßíX»å·Åõõ•Eu[·½åfOçª5o>謯qíÛš²ïÌDsî]ذïå÷ÝDDÞÓJæÝ-%µ|𚛛Ϟ={öìÙÖ./IýÇÊË]ŸZ~ljç3·”~¯®ÉY¿«¼`íöISl¡tÖED¶ý/?±›té]Ù¥Þ]mêʺ·ØÖµ`šnU"‘tyI’¤ž–?Ø@¿~Ÿ<2P[^°eÇÅŠ#…Ö®£‹V︫²þÂ…&»«Ø6w_‘çbmq{?‘»ê[‹v¼¿ø”ÓU·Þ»5;åD—âm=¼huAJe}›³.¥z÷òÊ W{²éE ·Ï옋„ÛÜèNçv¾]MvçCV‹~£ƒJÞЕµ)uàÏŸ‰¤7-Ï)ìve $Ò@Ãä–Öw^sQY÷ËÏ$-=Y·o‘ãw]ÿ¸Øï¡¼ºªüõ¤¤8¶îËl¬yf•EI®,(?vÑ»Ãï!*k<øì*":yüw‹¶ü¡ïëXm©¡ÒƒÿÑW˜Ã|¨j=Dt^$ª.ØP=Qª½Ây&ˆÈRþÛ¯TÛ+…›2ˆ²œ•§25¸ów\ÿ¿™H$QBÆ·ìvzoÝæU¥åÚãÈÞ‹DÙF½9eSÉÛ®G/-Ä‹n•HT¼:¥X½íØÿÎ7¬tžˆlõ½ïåX©åÀ r©Èψ^þM㉹«Õ^d£yédÚë èø…}ëÓÊ8TV\W{ºí¾¡ƒd¯9”Ÿ#ýkc…ù7þÕžÌO1„Þ³F€`¦)g~„¨!3‘ãL™uDåožö-Ë}¥ÌQ»ayŠžãv½Ù,›Åë[ˆD¢ÒŽã8δÈAD>™Èö•…DDŠì!JŠç‰È§®ð ¢‡ÆW9ÜõÕ•D§?Ÿøë-,{´„\¿pöôýÇ)•Ø—‰Dä%Úß4œp¦0crùÒ¥V5d²¹¹Ì‚:šg¤kþÖ‘÷rÙV.¶"‘ì›|"ñ‰ê{õŽ% Lœþ‘Ÿ}ÜÇã”·ÊKTrÜÙÝÝyáÂ… Ýò{/¤ ì;óæDä=wÚeß>Þfš³˜¨wdbaŽLD´e‰‰ã8ŽK)%"ÿйÓ.ûS™"YWV½¼IéÉèí†}€"(4½×Y^î*:Òèr9.Wãñª+ø¨GñzÍÏüÄãót;ëÜU¾{GëúÙßM¶Š^Yöx|¾ÁÎúSß±‰DD× §_»Þrùl€}éëûŒhýý¢ú½ä'+ì啵55ûìû©DDä!ô_X?¯7Õ]eŸÇçëmk:õÏkD37ÛÞ8§¾5ö~þ¢y†‰¿òú)Žéõ$­ª“åÁζS5÷¬=zõ_ÂCt÷K““SÓÒÒÒR“¯KúyK©-÷!"yä"Ñóø½dÙCd«ïöÉÏçq5ž*u<0o)5t¯Ôq·ž<0±O¯'Bo8ì@‘ å}€:~ùfååÿýªôôŒŒôôUO~7¨òWmŸ¾±dɺšASrFÎãk¶]ßrïWíäzãƒ6·(Ò¹·v¯Ýð?ÿò…W—ÈD”H®Ýegº$ÅÝúêê}TòõÐ clŽ]TW\\K»rWL³þQ~ÉÆ<*/»Ë'ˆrgåòì µD”¸h¹ J7{ÅÝqfWv1ÙÖß+²"ÚÏO^õ9J½ÿcù’íµ.Kê²õ×Ù¦ùô7"Oýb‰ˆ„‡6æQiÞÉv/‘÷ô¾<±!O"—f9ÈUó‹sŠ(zÏÿ¶zÃû῱±ˆöí9ÙáV¼í¯ÚÅŸ‘Ò“ÑÛaV¸$Ì(ïÙCÕ¶²ÆeW;Ú²§Êlkÿí·?®©w”®MÑï&"¢mõ® É-ÖÔOíwn°-`¬qö¦ ²YŸBDzõЉz=‰lZ»ÈDDd/k+Í!j]HãïRùÔ5ûíTLk&& ‰ŒúI¯ýB"ãø»ÚÄxžßô#WÉö%‰ÅDD¶²¶­ç‰R7tÖPæŽìr¶ÈVâúð…d"2%eÛh«m]ZoíµÇI{éxÉò-™Ü""[^Íé"Ü’©úíøwÌz"¢ÔMÿr¤èÇòD""²w•¦_Ì.fý¤©rAöêÚ""Çþú’, O¥ÇKþèX2—ˆÈVäüÁJ2u÷dϳÐÛa6âð:adY–$idddxxxhhÈív÷÷÷Ÿ={6++ëÙgŸ½µÃrÜlý5I=]•õæ»’­Â [Hr÷ *$Z¬â´ãºâu÷J´Àj¹î=/r)Ç/T=™v“¥*î¾^…-–kªÜ=õÈDú»R“…;K Âå*Þ¾îÁ½yn²õŽ?ÄN·ŒJb·¯gp„æ¦$³^ÛrÀö,v½AD$y{%Óµ=Úëî“H°ZÔÎyMOÖro¿·Ó-ívûÎ;çÏŸo±X’’’Ìf³ z½^§Ó…·N-ÃD‘œšúe-$X¬É7y\^´$_÷'Wj?ñôò-u”×¶ùfÓñSV!X’S§Ø|Ž„ëYaÖT-ž :DëÕ×Aû‰=™Å­üxâ¶ &_÷"-“¢Ê5=½=b°Pd` P$h} ØÀ'Þ»¡¢¦©óGËûA{æÞg¯9ÞøÎ?\w#Äì8D‚Æ÷Š|rV~aV´«ˆŽ›žEø €‚}€"#@‘ÀöJJJºµ‡³-øÂ[ÀmŠ>‰Ä Û铹¹¹;wî c10% H`ûÝòU`ccca-`VÁ n¦À@s€@s€böŠ  HÀ>@0MØ(2€"ûÄ €‚}€"(Ø>@Ѯ¹Ñ.A€"íí*`hh@ Á>@‘ ‰‰‰Ø¦ûEÐŒã8ûÀôÝ·ÉÃ4!…“ÚeÙÜ" Ѭ î@ ôô1éÌá‚~¬ÆÅÅq§Óéz{{£]Ü^z饱±1õ$Bo§£]×lƒf¬›†¦Ÿ¸¸8I’JKK/_¾íê ¦]ºt©­­çyN§žJ~fP8q!ØÀN§ÓëõIII:®¸¸xtt4Ú5@Œ’$iïÞ½iiiF£‘DXúÁÐL@ ?uà‡Ÿ`4—/_ÞßßÿÄOD»:ˆEŠ¢¼þúëV«5##ƒ;XRG€Â‹v³ ›¯U“»^¯7ƒÁl6¯\¹òâÅ‹ ,HHHøè£š››Õ>þøã‹-"¢¦¦¦sçΡ=\íÍÍÍ¿ÿýïÑŽv´£=òíÓü{•››{Ï=÷ô÷÷ÑÂ… ƒÑhÔëõlA"+. F»†Ù# Y–ý~¿$IW®\ñz½^¯÷òåËCCC^¯wxxøÊ•+~¿ßï÷+Š‚Á`è¯`Ò¯Cíñh¿#Úc°$´Ïîö, íÓlg™F§Ó±YAÌfsBB‚(ŠIIIsæÌEQÅøøxAÔ<„F 3µO³Õ?F£qttÔl6+Š 9Žãy^’$Y–eYccc4Õ5˜­Ô‹…Ù™B¯×›L&AâããÌf³Ñh ÂÐL@ 'µO³@ƒAQEQÆÆÆØ5:Î`0‚ÀÐØØX0d´C½Â‹ AÔA øøx“ÉÄ–Oð<ÏÎ)„5@á†fqqqÁ`0tˆ¥6öc0ØðÏèè(þaß =B¬Ó¢íhG;ÚÃÛN×N ¶îÇ‚….…&+ ðc¡žçy"b£;êD¯ lõ[Äa @KB§ ØÙA¯×³$LP§À°Ð A 35Ô³LÃÆ~X‹^¯5™L,ý¨+ ‘~´&tË@l– TèvˆÈ@a‡~¬›êt:õ¦ºÒÍh4ªc?,ÑÄ(h„hÔY0uë86í¥î„ ™ƒ~ǃAu¾Vb«¡Õ™/–{~´IÝ7N c1Hý—µ–?Ï ì4SÔ|£^ê¥b71ù qìò¤dч í2g' ™¥®qžz°öÔ•@¡ÿª¡W~Í(  êR¿Æ@ËÔÑЬƒÜ@Ñ„>€Æa†+Z€@s0Κƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšƒšóÿ'k-‡ÕáIEND®B`‚maven-assembly-plugin-2.2~beta5/src/main/0000755000175000017500000000000011361635314020367 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/main/java/0000755000175000017500000000000011361635311021305 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/main/java/org/0000755000175000017500000000000011361635311022074 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/0000755000175000017500000000000011361635311023315 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/0000755000175000017500000000000011361635311024423 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/0000755000175000017500000000000011361635311025721 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/0000755000175000017500000000000011361635314027543 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/io/0000755000175000017500000000000011361635313030151 5ustar twernertwerner././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/io/AssemblyReader.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/io/AssemblyReader.jav0000644000175000017500000000424611123544663033566 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.io; /* * 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 org.apache.maven.plugin.MojoFailureException; import org.apache.maven.plugin.assembly.AssemblerConfigurationSource; import org.apache.maven.plugin.assembly.InvalidAssemblerConfigurationException; import org.apache.maven.plugin.assembly.model.Assembly; import java.io.File; import java.io.Reader; import java.util.List; /** * @version $Id: AssemblyReader.java 728546 2008-12-21 22:56:51Z bentmann $ */ public interface AssemblyReader { public List readAssemblies( AssemblerConfigurationSource configSource ) throws AssemblyReadException, InvalidAssemblerConfigurationException; public Assembly getAssemblyForDescriptorReference( String ref, AssemblerConfigurationSource configSource ) throws AssemblyReadException, InvalidAssemblerConfigurationException; public Assembly getAssemblyFromDescriptorFile( File file, AssemblerConfigurationSource configSource ) throws AssemblyReadException, InvalidAssemblerConfigurationException; public Assembly readAssembly( Reader reader, String locationDescription, AssemblerConfigurationSource configSource ) throws AssemblyReadException, InvalidAssemblerConfigurationException; public void includeSiteInAssembly( Assembly assembly, AssemblerConfigurationSource configSource ) throws MojoFailureException, InvalidAssemblerConfigurationException; } ././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/io/AssemblyReadException.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/io/AssemblyReadExcept0000644000175000017500000000227411123544663033630 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.io; /* * 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. */ /** * @version $Id: AssemblyReadException.java 728546 2008-12-21 22:56:51Z bentmann $ */ public class AssemblyReadException extends Exception { public AssemblyReadException( String message, Throwable cause ) { super( message, cause ); } public AssemblyReadException( String message ) { super( message ); } } ././@LongLink0000000000000000000000000000016300000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/io/RelativeFileLocatorStrategy.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/io/RelativeFileLocato0000644000175000017500000000367610741522710033622 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.io; /* * 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 org.apache.maven.shared.io.location.FileLocation; import org.apache.maven.shared.io.location.Location; import org.apache.maven.shared.io.location.LocatorStrategy; import org.apache.maven.shared.io.logging.MessageHolder; import java.io.File; /** * @version $Id: RelativeFileLocatorStrategy.java 610981 2008-01-10 23:10:00Z vsiveton $ */ public class RelativeFileLocatorStrategy implements LocatorStrategy { private File basedir; public RelativeFileLocatorStrategy( File basedir ) { this.basedir = basedir; } public Location resolve( String locationSpecification, MessageHolder messageHolder ) { File file = new File( basedir, locationSpecification ); messageHolder.addInfoMessage( "Searching for file location: " + file.getAbsolutePath() ); Location location = null; if ( file.exists() ) { location = new FileLocation( file, locationSpecification ); } else { messageHolder.addMessage( "File: " + file.getAbsolutePath() + " does not exist." ); } return location; } } ././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/io/DefaultAssemblyReader.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/io/DefaultAssemblyRea0000644000175000017500000005100011213744326033605 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.io; /* * 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 org.apache.maven.artifact.factory.ArtifactFactory; import org.apache.maven.artifact.resolver.ArtifactResolver; import org.apache.maven.plugin.MojoExecutionException; import org.apache.maven.plugin.MojoFailureException; import org.apache.maven.plugin.assembly.AssemblerConfigurationSource; import org.apache.maven.plugin.assembly.InvalidAssemblerConfigurationException; import org.apache.maven.plugin.assembly.interpolation.AssemblyInterpolationException; import org.apache.maven.plugin.assembly.interpolation.AssemblyInterpolator; import org.apache.maven.plugin.assembly.model.Assembly; import org.apache.maven.plugin.assembly.model.Component; import org.apache.maven.plugin.assembly.model.ContainerDescriptorHandlerConfig; import org.apache.maven.plugin.assembly.model.DependencySet; import org.apache.maven.plugin.assembly.model.FileItem; import org.apache.maven.plugin.assembly.model.FileSet; import org.apache.maven.plugin.assembly.model.Repository; import org.apache.maven.plugin.assembly.model.io.xpp3.AssemblyXpp3Reader; import org.apache.maven.plugin.assembly.model.io.xpp3.AssemblyXpp3Writer; import org.apache.maven.plugin.assembly.model.io.xpp3.ComponentXpp3Reader; import org.apache.maven.project.MavenProject; import org.apache.maven.shared.io.location.ArtifactLocatorStrategy; import org.apache.maven.shared.io.location.ClasspathResourceLocatorStrategy; import org.apache.maven.shared.io.location.FileLocatorStrategy; import org.apache.maven.shared.io.location.Location; import org.apache.maven.shared.io.location.Locator; import org.apache.maven.shared.io.location.LocatorStrategy; import org.apache.maven.shared.io.location.URLLocatorStrategy; import org.codehaus.plexus.logging.AbstractLogEnabled; import org.codehaus.plexus.logging.Logger; import org.codehaus.plexus.logging.console.ConsoleLogger; import org.codehaus.plexus.util.DirectoryScanner; import org.codehaus.plexus.util.IOUtil; import org.codehaus.plexus.util.xml.pull.XmlPullParserException; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.Reader; import java.io.StringWriter; import java.io.UnsupportedEncodingException; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; /** * @version $Id: DefaultAssemblyReader.java 783381 2009-06-10 14:53:10Z pgier $ * @plexus.component role="org.apache.maven.plugin.assembly.io.AssemblyReader" role-hint="default" */ public class DefaultAssemblyReader extends AbstractLogEnabled implements AssemblyReader { /** * @plexus.requirement */ private ArtifactFactory factory; /** * @plexus.requirement */ private ArtifactResolver resolver; public List readAssemblies( AssemblerConfigurationSource configSource ) throws AssemblyReadException, InvalidAssemblerConfigurationException { Locator locator = new Locator(); LocatorStrategy prefixedClasspathStrategy = new PrefixedClasspathLocatorStrategy( "/assemblies/" ); LocatorStrategy classpathStrategy = new ClasspathResourceLocatorStrategy(); List strategies = new ArrayList(); strategies.add( new RelativeFileLocatorStrategy( configSource.getBasedir() ) ); strategies.add( new ArtifactLocatorStrategy( factory, resolver, configSource.getLocalRepository(), configSource.getRemoteRepositories(), "xml", "assembly-descriptor" ) ); strategies.add( prefixedClasspathStrategy ); strategies.add( classpathStrategy ); strategies.add( new FileLocatorStrategy() ); strategies.add( new URLLocatorStrategy() ); List refStrategies = new ArrayList(); refStrategies.add( prefixedClasspathStrategy ); refStrategies.add( classpathStrategy ); List assemblies = new ArrayList(); String descriptor = configSource.getDescriptor(); String descriptorId = configSource.getDescriptorId(); String[] descriptors = configSource.getDescriptors(); String[] descriptorRefs = configSource.getDescriptorReferences(); File descriptorSourceDirectory = configSource.getDescriptorSourceDirectory(); if ( descriptor != null ) { locator.setStrategies( strategies ); addAssemblyFromDescriptor( descriptor, locator, configSource, assemblies ); } if ( descriptorId != null ) { locator.setStrategies( refStrategies ); addAssemblyForDescriptorReference( descriptorId, configSource, assemblies ); } if ( ( descriptors != null ) && ( descriptors.length > 0 ) ) { locator.setStrategies( strategies ); for ( int i = 0; i < descriptors.length; i++ ) { getLogger().info( "Reading assembly descriptor: " + descriptors[i] ); addAssemblyFromDescriptor( descriptors[i], locator, configSource, assemblies ); } } if ( ( descriptorRefs != null ) && ( descriptorRefs.length > 0 ) ) { locator.setStrategies( refStrategies ); for ( int i = 0; i < descriptorRefs.length; i++ ) { addAssemblyForDescriptorReference( descriptorRefs[i], configSource, assemblies ); } } if ( ( descriptorSourceDirectory != null ) && descriptorSourceDirectory.isDirectory() ) { locator.setStrategies( Collections.singletonList( new RelativeFileLocatorStrategy( descriptorSourceDirectory ) ) ); DirectoryScanner scanner = new DirectoryScanner(); scanner.setBasedir( descriptorSourceDirectory ); scanner.setIncludes( new String[]{ "**/*.xml" } ); scanner.addDefaultExcludes(); try { scanner.scan(); } // FIXME: plexus-utils >= 1.3-SNAPSHOT should fix this. catch ( NullPointerException e ) { StackTraceElement frameZero = e.getStackTrace()[0]; if ( "org.codehaus.plexus.util.DirectoryScanner".equals( frameZero.getClassName() ) && "scandir".equals( frameZero.getMethodName() ) ) { if ( getLogger().isDebugEnabled() ) { getLogger().debug( "Caught filesystem error while scanning directories..." + "using zero-length list as the result.", e ); } } else { throw e; } } String[] paths = scanner.getIncludedFiles(); if ( paths != null ) { for ( int i = 0; i < paths.length; i++ ) { addAssemblyFromDescriptor( paths[i], locator, configSource, assemblies ); } } } if ( assemblies.isEmpty() ) { if ( configSource.isIgnoreMissingDescriptor() ) { getLogger().debug( "Ignoring missing assembly descriptors per configuration. See messages above for specifics." ); } else { throw new AssemblyReadException( "No assembly descriptors found." ); } } // check unique IDs Set ids = new HashSet(); for ( Iterator i = assemblies.iterator(); i.hasNext(); ) { Assembly assembly = (Assembly) i.next(); if ( !ids.add( assembly.getId() ) ) { getLogger().warn( "The assembly id " + assembly.getId() + " is used more than once." ); } } return assemblies; } public Assembly getAssemblyForDescriptorReference( String ref, AssemblerConfigurationSource configSource ) throws AssemblyReadException, InvalidAssemblerConfigurationException { return addAssemblyForDescriptorReference( ref, configSource, new ArrayList( 1 ) ); } public Assembly getAssemblyFromDescriptorFile( File file, AssemblerConfigurationSource configSource ) throws AssemblyReadException, InvalidAssemblerConfigurationException { return addAssemblyFromDescriptorFile( file, configSource, new ArrayList( 1 ) ); } private Assembly addAssemblyForDescriptorReference( String ref, AssemblerConfigurationSource configSource, List assemblies ) throws AssemblyReadException, InvalidAssemblerConfigurationException { InputStream resourceAsStream = Thread.currentThread().getContextClassLoader().getResourceAsStream( "assemblies/" + ref + ".xml" ); if ( resourceAsStream == null ) { if ( configSource.isIgnoreMissingDescriptor() ) { getLogger().debug( "Ignoring missing assembly descriptor with ID '" + ref + "' per configuration." ); return null; } else { throw new AssemblyReadException( "Descriptor with ID '" + ref + "' not found" ); } } try { // TODO use ReaderFactory.newXmlReader() when plexus-utils is upgraded to 1.4.5+ Assembly assembly = readAssembly( new InputStreamReader( resourceAsStream, "UTF-8" ), ref, configSource ); assemblies.add( assembly ); return assembly; } catch ( UnsupportedEncodingException e ) { // should not occur since UTF-8 support is mandatory throw new AssemblyReadException( "Encoding not supported for descriptor with ID '" + ref + "'" ); } } private Assembly addAssemblyFromDescriptorFile( File descriptor, AssemblerConfigurationSource configSource, List assemblies ) throws AssemblyReadException, InvalidAssemblerConfigurationException { if ( !descriptor.exists() ) { if ( configSource.isIgnoreMissingDescriptor() ) { getLogger().debug( "Ignoring missing assembly descriptor: '" + descriptor + "' per configuration." ); return null; } else { throw new AssemblyReadException( "Descriptor: '" + descriptor + "' not found" ); } } Reader r = null; try { // TODO use ReaderFactory.newXmlReader() when plexus-utils is upgraded to 1.4.5+ r = new InputStreamReader( new FileInputStream( descriptor ), "UTF-8" ); Assembly assembly = readAssembly( r, descriptor.getAbsolutePath(), configSource ); assemblies.add( assembly ); return assembly; } catch ( IOException e ) { throw new AssemblyReadException( "Error reading assembly descriptor: " + descriptor, e ); } finally { IOUtil.close( r ); } } private Assembly addAssemblyFromDescriptor( String spec, Locator locator, AssemblerConfigurationSource configSource, List assemblies ) throws AssemblyReadException, InvalidAssemblerConfigurationException { Location location = locator.resolve( spec ); if ( location == null ) { if ( configSource.isIgnoreMissingDescriptor() ) { getLogger().debug( "Ignoring missing assembly descriptor with ID '" + spec + "' per configuration.\nLocator output was:\n\n" + locator.getMessageHolder().render() ); return null; } else { throw new AssemblyReadException( "Error locating assembly descriptor: " + spec + "\n\n" + locator.getMessageHolder().render() ); } } Reader r = null; try { // TODO use ReaderFactory.newXmlReader() when plexus-utils is upgraded to 1.4.5+ r = new InputStreamReader( location.getInputStream(), "UTF-8" ); Assembly assembly = readAssembly( r, spec, configSource ); assemblies.add( assembly ); return assembly; } catch ( IOException e ) { throw new AssemblyReadException( "Error reading assembly descriptor: " + spec, e ); } finally { IOUtil.close( r ); } } public Assembly readAssembly( Reader reader, String locationDescription, AssemblerConfigurationSource configSource ) throws AssemblyReadException, InvalidAssemblerConfigurationException { Assembly assembly; File basedir = configSource.getBasedir(); MavenProject project = configSource.getProject(); try { Map context = new HashMap( System.getProperties() ); context.put( "basedir", basedir.getAbsolutePath() ); AssemblyXpp3Reader r = new AssemblyXpp3Reader(); assembly = r.read( reader ); mergeComponentsWithMainAssembly( assembly, configSource ); debugPrintAssembly( "Before assembly is interpolated:", assembly ); assembly = new AssemblyInterpolator().interpolate( assembly, project, configSource ); debugPrintAssembly( "After assembly is interpolated:", assembly ); } catch ( IOException e ) { throw new AssemblyReadException( "Error reading descriptor at: " + locationDescription + ": " + e.getMessage(), e ); } catch ( XmlPullParserException e ) { throw new AssemblyReadException( "Error reading descriptor at: " + locationDescription + ": " + e.getMessage(), e ); } catch ( AssemblyInterpolationException e ) { throw new AssemblyReadException( "Error reading descriptor at: " + locationDescription + ": " + e.getMessage(), e ); } finally { IOUtil.close( reader ); } if ( configSource.isSiteIncluded() || assembly.isIncludeSiteDirectory() ) { includeSiteInAssembly( assembly, configSource ); } return assembly; } private void debugPrintAssembly( String message, Assembly assembly ) { StringWriter sWriter = new StringWriter(); try { new AssemblyXpp3Writer().write( sWriter, assembly ); } catch ( IOException e ) { getLogger().debug( "Failed to print debug message with assembly descriptor listing, and message: " + message, e ); } getLogger().debug( message + "\n\n" + sWriter.toString() + "\n\n" ); } /** * Add the contents of all included components to main assembly * * @param assembly * @throws AssemblyReadException * @throws MojoFailureException * @throws MojoExecutionException */ protected void mergeComponentsWithMainAssembly( Assembly assembly, AssemblerConfigurationSource configSource ) throws AssemblyReadException { RelativeFileLocatorStrategy fls = new RelativeFileLocatorStrategy( configSource.getBasedir() ); ClasspathResourceLocatorStrategy crls = new ClasspathResourceLocatorStrategy(); ArtifactLocatorStrategy als = new ArtifactLocatorStrategy( factory, resolver, configSource.getLocalRepository(), configSource.getRemoteRepositories(), "assembly-component" ); URLLocatorStrategy uls = new URLLocatorStrategy(); Locator locator = new Locator(); locator.addStrategy( fls ); locator.addStrategy( als ); locator.addStrategy( crls ); locator.addStrategy( uls ); List componentLocations = assembly.getComponentDescriptors(); for ( Iterator it = componentLocations.iterator(); it.hasNext(); ) { String location = (String) it.next(); Location resolvedLocation = locator.resolve( location ); if ( resolvedLocation == null ) { throw new AssemblyReadException( "Failed to locate component descriptor: " + location ); } Component component = null; Reader reader = null; try { reader = new InputStreamReader( resolvedLocation.getInputStream() ); component = new ComponentXpp3Reader().read( reader ); } catch ( IOException e ) { throw new AssemblyReadException( "Error reading component descriptor", e ); } catch ( XmlPullParserException e ) { throw new AssemblyReadException( "Error reading component descriptor", e ); } finally { IOUtil.close( reader ); } mergeComponentWithAssembly( component, assembly ); } } /** * Add the content of a single Component to main assembly * @param component * @param assembly */ protected void mergeComponentWithAssembly( Component component, Assembly assembly ) { List containerHandlerDescriptors = component.getContainerDescriptorHandlers(); for ( Iterator it = containerHandlerDescriptors.iterator(); it.hasNext(); ) { ContainerDescriptorHandlerConfig cfg = (ContainerDescriptorHandlerConfig) it.next(); assembly.addContainerDescriptorHandler( cfg ); } List dependencySetList = component.getDependencySets(); for ( Iterator it = dependencySetList.iterator(); it.hasNext(); ) { DependencySet dependencySet = ( DependencySet ) it.next(); assembly.addDependencySet( dependencySet ); } List fileSetList = component.getFileSets(); for ( Iterator it = fileSetList.iterator(); it.hasNext(); ) { FileSet fileSet = ( FileSet ) it.next(); assembly.addFileSet( fileSet ); } List fileList = component.getFiles(); for ( Iterator it = fileList.iterator(); it.hasNext(); ) { FileItem fileItem = ( FileItem ) it.next(); assembly.addFile( fileItem ); } List repositoriesList = component.getRepositories(); for ( Iterator it = repositoriesList.iterator(); it.hasNext(); ) { Repository repository = ( Repository ) it.next(); assembly.addRepository( repository ); } } public void includeSiteInAssembly( Assembly assembly, AssemblerConfigurationSource configSource ) throws InvalidAssemblerConfigurationException { File siteDirectory = configSource.getSiteDirectory(); if ( !siteDirectory.exists() ) { throw new InvalidAssemblerConfigurationException( "site did not exist in the target directory - please run site:site before creating the assembly" ); } getLogger().info( "Adding site directory to assembly : " + siteDirectory ); FileSet siteFileSet = new FileSet(); siteFileSet.setDirectory( siteDirectory.getPath() ); siteFileSet.setOutputDirectory( "/site" ); assembly.addFileSet( siteFileSet ); } protected Logger getLogger() { Logger logger = super.getLogger(); if ( logger == null ) { logger = new ConsoleLogger( Logger.LEVEL_INFO, "assemblyReader-internal" ); enableLogging( logger ); } return logger; } } ././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/io/PrefixedClasspathLocatorStrategy.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/io/PrefixedClasspathL0000644000175000017500000000411511306533772033627 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.io; /* * 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 org.apache.maven.shared.io.location.ClasspathResourceLocatorStrategy; import org.apache.maven.shared.io.location.Location; import org.apache.maven.shared.io.logging.MessageHolder; /** * @version $Id: PrefixedClasspathLocatorStrategy.java 887583 2009-12-05 19:43:54Z bentmann $ */ public class PrefixedClasspathLocatorStrategy extends ClasspathResourceLocatorStrategy { private final String prefix; public PrefixedClasspathLocatorStrategy( String prefix ) { this.prefix = formatPrefix( prefix ); } private String formatPrefix( String prefix ) { if ( prefix.startsWith( "/" ) ) { prefix = prefix.substring( 1 ); } if ( prefix.length() > 0 && !prefix.endsWith( "/" ) ) { prefix += "/"; } return prefix; } public Location resolve( String locationSpecification, MessageHolder messageHolder ) { String spec = formatLocation( locationSpecification ); return super.resolve( spec, messageHolder ); } private String formatLocation( String location ) { if ( location.startsWith( "/" ) ) { location = location.substring( 1 ); } return prefix + location; } } maven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/utils/0000755000175000017500000000000011361635312030701 5ustar twernertwerner././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/utils/InterpolationConstants.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/utils/InterpolationCo0000644000175000017500000000157411123544663033750 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.utils; import java.util.ArrayList; import java.util.Collections; import java.util.List; public final class InterpolationConstants { public static final List PROJECT_PREFIXES; public static final List PROJECT_PROPERTIES_PREFIXES; static { List projectPrefixes = new ArrayList(); projectPrefixes.add( "pom." ); projectPrefixes.add( "project." ); PROJECT_PREFIXES = Collections.unmodifiableList( projectPrefixes ); List projectPropertiesPrefixes = new ArrayList(); projectPropertiesPrefixes.add( "pom.properties." ); projectPropertiesPrefixes.add( "project.properties." ); PROJECT_PROPERTIES_PREFIXES = Collections.unmodifiableList( projectPropertiesPrefixes ); } private InterpolationConstants() { } } ././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/utils/ProjectUtils.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/utils/ProjectUtils.ja0000644000175000017500000001341511123544663033654 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.utils; /* * 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 org.apache.maven.project.MavenProject; import org.codehaus.plexus.logging.Logger; import java.io.File; import java.io.IOException; import java.util.Collections; import java.util.HashSet; import java.util.Iterator; import java.util.LinkedHashSet; import java.util.List; import java.util.Set; /** * @version $Id: ProjectUtils.java 728546 2008-12-21 22:56:51Z bentmann $ */ public final class ProjectUtils { private ProjectUtils() { } public static Set getProjectModules( MavenProject project, List reactorProjects, boolean includeSubModules, Logger logger ) throws IOException { Set singleParentSet = Collections.singleton( project ); Set moduleCandidates = new LinkedHashSet( reactorProjects ); Set modules = new LinkedHashSet(); // we temporarily add the master project to the modules set, since this // set is pulling double duty as a set of // potential module parents in the tree rooted at the master // project...this allows us to use the same looping // algorithm below to discover both direct modules of the master project // AND modules of those direct modules. modules.add( project ); int changed = 0; do { changed = 0; for ( Iterator candidateIterator = moduleCandidates.iterator(); candidateIterator.hasNext(); ) { MavenProject moduleCandidate = ( MavenProject ) candidateIterator.next(); if ( moduleCandidate.getFile() == null ) { logger.warn( "Cannot compute whether " + moduleCandidate.getId() + " is a module of: " + project.getId() + "; it does not have an associated POM file on the local filesystem." ); continue; } Set currentPotentialParents; if ( includeSubModules ) { currentPotentialParents = new HashSet( modules ); } else { currentPotentialParents = singleParentSet; } for ( Iterator parentIterator = currentPotentialParents.iterator(); parentIterator.hasNext(); ) { MavenProject potentialParent = ( MavenProject ) parentIterator.next(); if ( potentialParent.getFile() == null ) { logger.warn( "Cannot use: " + moduleCandidate.getId() + " as a potential module-parent while computing the module set for: " + project.getId() + "; it does not have an associated POM file on the local filesystem." ); continue; } // if this parent has an entry for the module candidate in // the path adjustments map, it's a direct // module of that parent. if ( projectContainsModule( potentialParent, moduleCandidate ) ) { // add the candidate to the list of modules (and // potential parents) modules.add( moduleCandidate ); // remove the candidate from the candidate pool, because // it's been verified. candidateIterator.remove(); // increment the change counter, to show that we // verified a new module on this pass. changed++; } } } } while ( changed != 0 ); // remove the master project from the modules set, now that we're done // using it as a set of potential module // parents... modules.remove( project ); return modules; } private static boolean projectContainsModule( MavenProject mainProject, MavenProject moduleProject ) throws IOException { List modules = mainProject.getModules(); File basedir = mainProject.getBasedir(); File moduleFile = moduleProject.getFile().getCanonicalFile(); File moduleBasedir = moduleProject.getBasedir(); if ( moduleBasedir == null ) { moduleBasedir = new File( "." ); } moduleBasedir = moduleBasedir.getCanonicalFile(); for ( Iterator it = modules.iterator(); it.hasNext(); ) { String moduleSubpath = ( String ) it.next(); File moduleDir = new File( basedir, moduleSubpath ).getCanonicalFile(); if ( moduleDir.equals( moduleFile ) || moduleDir.equals( moduleBasedir ) ) { return true; } } return false; } } ././@LongLink0000000000000000000000000000015600000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/utils/AssemblyFormatUtils.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/utils/AssemblyFormatU0000644000175000017500000003770411212274043033707 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.utils; /* * 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.IOException; import java.util.Collections; import java.util.Properties; import org.apache.maven.artifact.Artifact; import org.apache.maven.execution.MavenSession; import org.apache.maven.plugin.assembly.AssemblerConfigurationSource; import org.apache.maven.plugin.assembly.format.AssemblyFormattingException; import org.apache.maven.plugin.assembly.model.Assembly; import org.apache.maven.project.MavenProject; import org.codehaus.plexus.interpolation.InterpolationException; import org.codehaus.plexus.interpolation.PrefixedObjectValueSource; import org.codehaus.plexus.interpolation.PrefixedPropertiesValueSource; import org.codehaus.plexus.interpolation.PropertiesBasedValueSource; import org.codehaus.plexus.interpolation.StringSearchInterpolator; import org.codehaus.plexus.util.StringUtils; /** * @version $Id: AssemblyFormatUtils.java 782119 2009-06-05 19:55:15Z jdcasey $ */ public final class AssemblyFormatUtils { private AssemblyFormatUtils() { } /** * Get the full name of the distribution artifact * * @param assembly * @return the distribution name */ public static String getDistributionName( Assembly assembly, AssemblerConfigurationSource configSource ) { String finalName = configSource.getFinalName(); boolean appendAssemblyId = configSource.isAssemblyIdAppended(); String classifier = configSource.getClassifier(); String distributionName = finalName; if ( appendAssemblyId ) { if ( !StringUtils.isEmpty( assembly.getId() ) ) { distributionName = finalName + "-" + assembly.getId(); } } else if ( classifier != null ) { distributionName = finalName + "-" + classifier; } return distributionName; } /** * @deprecated Use {@link AssemblyFormatUtils#getOutputDirectory(String, MavenProject, MavenProject, String, AssemblerConfigurationSource)} * instead. */ public static String getOutputDirectory( String output, MavenProject mainProject, MavenProject artifactProject, String finalName ) throws AssemblyFormattingException { return getOutputDirectory( output, mainProject, null, artifactProject, finalName, null ); } public static String getOutputDirectory( String output, MavenProject mainProject, MavenProject artifactProject, String finalName, AssemblerConfigurationSource configSource ) throws AssemblyFormattingException { return getOutputDirectory( output, mainProject, null, artifactProject, finalName, configSource ); } /** * ORDER OF INTERPOLATION PRECEDENCE: *
    *
  1. Support for special expressions, like ${finalName} (use the assembly plugin configuration not the build config)
  2. *
  3. prefixed with "module." if moduleProject is non-null *
    1. MavenProject instance for module being assembled
    *
  4. *
  5. prefixed with "artifact." if artifactProject is non-null *
    1. MavenProject instance for artifact
    *
  6. *
  7. user-defined properties from the command line
  8. *
  9. prefixed with "pom." or "project.", or no prefix at all *
    1. MavenProject instance from current build
    *
  10. *
  11. properties from main project
  12. *
  13. system properties, from the MavenSession instance (to support IDEs)
  14. *
  15. environment variables.
  16. *
*/ public static String getOutputDirectory( String output, MavenProject mainProject, MavenProject moduleProject, MavenProject artifactProject, String finalName, AssemblerConfigurationSource configSource ) throws AssemblyFormattingException { String value = output; if ( value == null ) { value = ""; } StringSearchInterpolator interpolator = new StringSearchInterpolator(); Properties specialExpressionOverrides = new Properties(); if ( finalName != null ) { specialExpressionOverrides.setProperty( "finalName", finalName ); specialExpressionOverrides.setProperty( "build.finalName", finalName ); } // 1 interpolator.addValueSource( new PropertiesBasedValueSource( specialExpressionOverrides ) ); if ( moduleProject != null ) { // 2 interpolator.addValueSource( new PrefixedObjectValueSource( "module.", moduleProject ) ); } if ( artifactProject != null ) { // 3 interpolator.addValueSource( new PrefixedObjectValueSource( "artifact.", artifactProject ) ); } MavenSession session = null; if ( configSource != null ) { session = configSource.getMavenSession(); if ( session != null ) { Properties userProperties = null; try { userProperties = session.getExecutionProperties(); } catch ( NoSuchMethodError nsmer ) { // OK, so user is using Maven <= 2.0.8. No big deal. } if ( userProperties != null ) { // 4 interpolator.addValueSource( new PropertiesBasedValueSource( userProperties ) ); } } } if ( mainProject != null ) { // 5 interpolator.addValueSource( new PrefixedObjectValueSource( InterpolationConstants.PROJECT_PREFIXES, mainProject, true ) ); // 6 interpolator.addValueSource( new PrefixedPropertiesValueSource( InterpolationConstants.PROJECT_PROPERTIES_PREFIXES, mainProject.getProperties(), true ) ); } Properties commandLineProperties = System.getProperties(); try { if ( session != null ) { commandLineProperties = session.getExecutionProperties(); } } catch ( NoSuchMethodError nsmer ) { // OK, so user is using Maven <= 2.0.8. No big deal. } // 7 interpolator.addValueSource( new PropertiesBasedValueSource( commandLineProperties ) ); try { // 8 interpolator.addValueSource( new PrefixedPropertiesValueSource( Collections.singletonList( "env." ), CommandLineUtils.getSystemEnvVars( false ), true ) ); } catch ( IOException e ) { throw new AssemblyFormattingException( "Failed to retrieve OS environment variables. Reason: " + e.getMessage(), e ); } try { value = interpolator.interpolate( value ); } catch ( InterpolationException e ) { throw new AssemblyFormattingException( "Failed to interpolate output directory. Reason: " + e.getMessage(), e ); } if ( ( value.length() > 0 ) && !value.endsWith( "/" ) && !value.endsWith( "\\" ) ) { value += "/"; } if ( ( value.length() > 0 ) && ( value.startsWith( "/" ) || value.startsWith( "\\" ) ) ) { value = value.substring( 1 ); } value = StringUtils.replace( value, "//", "/" ); value = StringUtils.replace( value, "\\\\", "\\" ); value = StringUtils.replace( value, "./", "" ); value = StringUtils.replace( value, ".\\", "" ); return value; } /** * @deprecated Use {@link AssemblyFormatUtils#evaluateFileNameMapping(String, Artifact, MavenProject, MavenProject, AssemblerConfigurationSource)} * instead. */ public static String evaluateFileNameMapping( String expression, Artifact artifact, MavenProject mainProject, MavenProject artifactProject ) throws AssemblyFormattingException { return evaluateFileNameMapping( expression, artifact, mainProject, null, null, artifactProject, null ); } public static String evaluateFileNameMapping( String expression, Artifact artifact, MavenProject mainProject, MavenProject artifactProject, AssemblerConfigurationSource configSource ) throws AssemblyFormattingException { return evaluateFileNameMapping( expression, artifact, mainProject, null, null, artifactProject, configSource ); } /** * ORDER OF INTERPOLATION PRECEDENCE: *
    *
  1. prefixed with "module.", if moduleProject != null *
      *
    1. Artifact instance for module, if moduleArtifact != null
    2. *
    3. ArtifactHandler instance for module, if moduleArtifact != null
    4. *
    5. MavenProject instance for module
    6. *
    *
  2. *
  3. prefixed with "artifact." *
      *
    1. Artifact instance
    2. *
    3. ArtifactHandler instance for artifact
    4. *
    5. MavenProject instance for artifact
    6. *
    *
  4. *
  5. prefixed with "pom." or "project." *
    1. MavenProject instance from current build
    *
  6. *
  7. no prefix, using main project instance *
    1. MavenProject instance from current build
    *
  8. *
  9. Support for special expressions, like ${dashClassifier?}
  10. *
  11. user-defined properties from the command line
  12. *
  13. properties from main project
  14. *
  15. system properties, from the MavenSession instance (to support IDEs)
  16. *
  17. environment variables.
  18. *
*/ public static String evaluateFileNameMapping( String expression, Artifact artifact, MavenProject mainProject, MavenProject moduleProject, Artifact moduleArtifact, MavenProject artifactProject, AssemblerConfigurationSource configSource ) throws AssemblyFormattingException { String value = expression; // TODO: This is BAD! Accessors SHOULD NOT change the behavior of the object. // [jdcasey; 16-Aug-1007] This is fixed in SVN, just waiting for it to pass out of legacy. artifact.isSnapshot(); StringSearchInterpolator interpolator = new StringSearchInterpolator(); if ( moduleArtifact != null ) { // 1A interpolator.addValueSource( new PrefixedObjectValueSource( "module.", moduleArtifact ) ); // 1B interpolator.addValueSource( new PrefixedObjectValueSource( "module.", moduleArtifact.getArtifactHandler() ) ); interpolator.addValueSource( new PrefixedObjectValueSource( "module.handler.", moduleArtifact.getArtifactHandler() ) ); } // 1C if ( moduleProject != null ) { interpolator.addValueSource( new PrefixedObjectValueSource( "module.", moduleProject ) ); } // 2A interpolator.addValueSource( new PrefixedObjectValueSource( "artifact.", artifact ) ); // 2B interpolator.addValueSource( new PrefixedObjectValueSource( "artifact.", artifact.getArtifactHandler() ) ); interpolator.addValueSource( new PrefixedObjectValueSource( "artifact.handler.", artifact.getArtifactHandler() ) ); // 2C if ( artifactProject != null ) { interpolator.addValueSource( new PrefixedObjectValueSource( "artifact.", artifactProject ) ); } if ( mainProject != null ) { // 3 // 4 interpolator.addValueSource( new PrefixedObjectValueSource( InterpolationConstants.PROJECT_PREFIXES, mainProject, true ) ); } Properties specialRules = new Properties(); String classifier = artifact.getClassifier(); if ( classifier != null ) { specialRules.setProperty( "dashClassifier?", "-" + classifier ); specialRules.setProperty( "dashClassifier", "-" + classifier ); } else { specialRules.setProperty( "dashClassifier?", "" ); specialRules.setProperty( "dashClassifier", "" ); } // 5 interpolator.addValueSource( new PropertiesBasedValueSource( specialRules ) ); MavenSession session = null; if ( configSource != null ) { session = configSource.getMavenSession(); if ( session != null ) { Properties userProperties = null; try { userProperties = session.getExecutionProperties(); } catch ( NoSuchMethodError nsmer ) { // OK, so user is using Maven <= 2.0.8. No big deal. } if ( userProperties != null ) { // 6 interpolator.addValueSource( new PropertiesBasedValueSource( userProperties ) ); } } } if ( mainProject != null ) { // 7 interpolator.addValueSource( new PrefixedPropertiesValueSource( InterpolationConstants.PROJECT_PROPERTIES_PREFIXES, mainProject.getProperties(), true ) ); } Properties commandLineProperties = System.getProperties(); try { if ( session != null ) { commandLineProperties = session.getExecutionProperties(); } } catch ( NoSuchMethodError nsmer ) { // OK, so user is using Maven <= 2.0.8. No big deal. } // 8 interpolator.addValueSource( new PropertiesBasedValueSource( commandLineProperties ) ); try { // 9 interpolator.addValueSource( new PrefixedPropertiesValueSource( Collections.singletonList( "env." ), CommandLineUtils.getSystemEnvVars( false ), true ) ); } catch ( IOException e ) { throw new AssemblyFormattingException( "Failed to retrieve OS environment variables. Reason: " + e.getMessage(), e ); } try { value = interpolator.interpolate( value ); } catch ( InterpolationException e ) { throw new AssemblyFormattingException( "Failed to interpolate output filename mapping. Reason: " + e.getMessage(), e ); } value = StringUtils.replace( value, "//", "/" ); value = StringUtils.replace( value, "\\\\", "\\" ); value = StringUtils.replace( value, "./", "" ); value = StringUtils.replace( value, ".\\", "" ); return value; } } ././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/utils/AssemblyFileUtils.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/utils/AssemblyFileUti0000644000175000017500000001462611212274043033671 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.utils; /* * 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.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.io.RandomAccessFile; import java.io.Reader; import java.nio.channels.FileChannel; import org.apache.maven.plugin.assembly.archive.ArchiveExpansionException; import org.apache.maven.plugin.assembly.format.AssemblyFormattingException; import org.codehaus.plexus.archiver.ArchiverException; import org.codehaus.plexus.archiver.UnArchiver; import org.codehaus.plexus.archiver.manager.ArchiverManager; import org.codehaus.plexus.archiver.manager.NoSuchArchiverException; import org.codehaus.plexus.logging.Logger; import org.codehaus.plexus.util.IOUtil; /** * @version $Id: AssemblyFileUtils.java 782119 2009-06-05 19:55:15Z jdcasey $ */ public final class AssemblyFileUtils { public static final String LINE_ENDING_KEEP = "keep"; public static final String LINE_ENDING_DOS = "dos"; public static final String LINE_ENDING_UNIX = "unix"; public static final String LINE_ENDING_CRLF = "crlf"; public static final String LINE_ENDING_LF = "lf"; private AssemblyFileUtils() { } public static String makePathRelativeTo( String path, final File basedir ) { if ( basedir == null ) { return path; } if ( path == null ) { return null; } path = path.trim(); String base = basedir.getAbsolutePath(); if ( path.startsWith( base ) ) { path = path.substring( base.length() ); if ( path.length() > 0 ) { if ( path.startsWith( "/" ) || path.startsWith( "\\" ) ) { path = path.substring( 1 ); } } if ( path.length() == 0 ) { path = "."; } } if ( !new File( path ).isAbsolute() ) { path = path.replace( '\\', '/' ); } return path; } public static void verifyTempDirectoryAvailability( final File tempDir, final Logger logger ) { if (!tempDir.exists()) { tempDir.mkdirs(); } } /** * Unpacks the archive file. * * @param source * File to be unpacked. * @param destDir * Location where to put the unpacked files. */ public static void unpack( File source, File destDir, ArchiverManager archiverManager ) throws ArchiveExpansionException, NoSuchArchiverException { try { UnArchiver unArchiver = archiverManager.getUnArchiver( source ); unArchiver.setSourceFile( source ); unArchiver.setDestDirectory( destDir ); unArchiver.extract(); } catch ( ArchiverException e ) { throw new ArchiveExpansionException( "Error unpacking file: " + source + "to: " + destDir, e ); } } /** * NOTE: It is the responsibility of the caller to close the source Reader instance. * The file content is written using platform encoding. * @param lineEndings This is the result of the getLineEndingChars(..) method in this utility class; the actual * line-ending characters. */ public static void convertLineEndings( Reader source, File dest, String lineEndings ) throws IOException { BufferedWriter out = null; BufferedReader bufferedSource = null; try { if ( source instanceof BufferedReader ) { bufferedSource = (BufferedReader) source; } else { bufferedSource = new BufferedReader( source ); } out = new BufferedWriter( new FileWriter( dest ) ); // platform encoding String line; do { line = bufferedSource.readLine(); if ( line != null ) { out.write( line ); out.write( lineEndings ); } } while ( line != null ); out.flush(); } finally { IOUtil.close( out ); } } public static String getLineEndingCharacters( String lineEnding ) throws AssemblyFormattingException { String value = lineEnding; if ( lineEnding != null ) { if ( LINE_ENDING_KEEP.equals( lineEnding ) ) { value = null; } else if ( LINE_ENDING_DOS.equals( lineEnding ) || LINE_ENDING_CRLF.equals( lineEnding ) ) { value = "\r\n"; } else if ( LINE_ENDING_UNIX.equals( lineEnding ) || LINE_ENDING_LF.equals( lineEnding ) ) { value = "\n"; } else { throw new AssemblyFormattingException( "Illlegal lineEnding specified: '" + lineEnding + "'" ); } } return value; } public static void copyFile( File src, File dst ) throws IOException { FileChannel c1 = new RandomAccessFile( src, "r" ).getChannel(); FileChannel c2 = new RandomAccessFile( dst, "rw" ).getChannel(); long tCount = 0, size = c1.size(); while ( ( tCount += c2.transferFrom( c1, 0, size - tCount ) ) < size ) ; c1.close(); c2.force( true ); c2.close(); } public static String normalizePath( String path ) { return path.replace( '\\', '/' ); } } ././@LongLink0000000000000000000000000000015600000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/utils/TypeConversionUtils.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/utils/TypeConversionU0000644000175000017500000001145711212274043033743 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.utils; /* * 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 org.apache.maven.plugin.assembly.format.AssemblyFormattingException; import org.codehaus.plexus.logging.Logger; import java.util.List; /** * @version $Id: TypeConversionUtils.java 782119 2009-06-05 19:55:15Z jdcasey $ */ public final class TypeConversionUtils { private static final int U_R = 256; private static final int U_W = 128; private static final int U_X = 64; private static final int G_R = 32; private static final int G_W = 16; private static final int G_X = 8; private static final int W_R = 4; private static final int W_W = 2; private static final int W_X = 1; private TypeConversionUtils() { } public static String[] toStringArray( List list ) { String[] result = null; if ( ( list != null ) && !list.isEmpty() ) { result = (String[]) list.toArray( new String[0] ); } return result; } public static int modeToInt( String mode, Logger logger ) throws AssemblyFormattingException { if ( mode == null || mode.trim().length() < 1 ) { return -1; } try { int value = Integer.parseInt( mode, 8 ); // discard sanity assessment here; we're pushing ahead. verifyModeSanity( value, logger ); return value; } catch( NumberFormatException e ) { throw new AssemblyFormattingException( "Failed to parse mode as an octal number: \'" + mode + "\'.", e ); } } // the boolean return type is for people who want to make a decision based on the sanity // assessment. public static boolean verifyModeSanity( int mode, Logger logger ) { StringBuffer messages = new StringBuffer(); messages.append( "The mode: " + Integer.toString( mode, 8 ) + " contains nonsensical permissions:" ); boolean warn = false; // read-access checks. if ( ( ( mode & U_R ) == 0 ) && ( ( mode & G_R ) == G_R ) ) { messages.append( "\n- Group has read access, but user does not." ); warn = true; } if ( ( ( mode & U_R ) == 0 ) && ( ( mode & W_R ) == W_R ) ) { messages.append( "\n- World has read access, but user does not." ); warn = true; } if ( ( ( mode & G_R ) == 0 ) && ( ( mode & W_R ) == W_R ) ) { messages.append( "\n- World has read access, but group does not." ); warn = true; } // end read-access checks. // write-access checks. if ( ( ( mode & U_W ) == 0 ) && ( ( mode & G_W ) == G_W ) ) { messages.append( "\n- Group has write access, but user does not." ); warn = true; } if ( ( ( mode & U_W ) == 0 ) && ( ( mode & W_W ) == W_W ) ) { messages.append( "\n- World has write access, but user does not." ); warn = true; } if ( ( ( mode & G_W ) == 0 ) && ( ( mode & W_W ) == W_W ) ) { messages.append( "\n- World has write access, but group does not." ); warn = true; } // end write-access checks. // execute-/list-access checks. if ( ( ( mode & U_X ) == 0 ) && ( ( mode & G_X ) == G_X ) ) { messages.append( "\n- Group has execute/list access, but user does not." ); warn = true; } if ( ( ( mode & U_X ) == 0 ) && ( ( mode & W_X ) == W_X ) ) { messages.append( "\n- World has execute/list access, but user does not." ); warn = true; } if ( ( ( mode & G_X ) == 0 ) && ( ( mode & W_X ) == W_X ) ) { messages.append( "\n- World has execute/list access, but group does not." ); warn = true; } // end execute-/list-access checks. if ( warn ) { logger.warn( messages.toString() ); } return !warn; } } ././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/utils/FilterUtils.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/utils/FilterUtils.jav0000644000175000017500000001470111123544663033660 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.utils; /* * 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.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.List; import java.util.Set; import org.apache.maven.artifact.Artifact; import org.apache.maven.artifact.resolver.filter.AndArtifactFilter; import org.apache.maven.artifact.resolver.filter.ArtifactFilter; import org.apache.maven.plugin.assembly.InvalidAssemblerConfigurationException; import org.apache.maven.project.MavenProject; import org.apache.maven.shared.artifact.filter.PatternExcludesArtifactFilter; import org.apache.maven.shared.artifact.filter.PatternIncludesArtifactFilter; import org.apache.maven.shared.artifact.filter.StatisticsReportingArtifactFilter; import org.codehaus.plexus.logging.Logger; /** * @version $Id: FilterUtils.java 728546 2008-12-21 22:56:51Z bentmann $ */ public final class FilterUtils { private FilterUtils() { } public static void filterProjects( Set projects, List includes, List excludes, boolean actTransitively, Logger logger ) { List allFilters = new ArrayList(); AndArtifactFilter filter = new AndArtifactFilter(); if ( !includes.isEmpty() ) { PatternIncludesArtifactFilter includeFilter = new PatternIncludesArtifactFilter( includes, actTransitively ); filter.add( includeFilter ); allFilters.add( includeFilter ); } if ( !excludes.isEmpty() ) { PatternExcludesArtifactFilter excludeFilter = new PatternExcludesArtifactFilter( excludes, actTransitively ); filter.add( excludeFilter ); allFilters.add( excludeFilter ); } for ( Iterator it = projects.iterator(); it.hasNext(); ) { MavenProject project = (MavenProject) it.next(); Artifact artifact = project.getArtifact(); if ( !filter.include( artifact ) ) { it.remove(); } } for ( Iterator it = allFilters.iterator(); it.hasNext(); ) { ArtifactFilter f = (ArtifactFilter) it.next(); if ( f instanceof StatisticsReportingArtifactFilter ) { ( (StatisticsReportingArtifactFilter) f ).reportMissedCriteria( logger ); } } } public static void filterArtifacts( Set artifacts, List includes, List excludes, boolean strictFiltering, boolean actTransitively, List additionalFilters, Logger logger ) throws InvalidAssemblerConfigurationException { List allFilters = new ArrayList(); AndArtifactFilter filter = new AndArtifactFilter(); if ( additionalFilters != null && !additionalFilters.isEmpty() ) { for ( Iterator it = additionalFilters.iterator(); it.hasNext(); ) { ArtifactFilter additionalFilter = (ArtifactFilter) it.next(); filter.add( additionalFilter ); } } if ( !includes.isEmpty() ) { ArtifactFilter includeFilter = new PatternIncludesArtifactFilter( includes, actTransitively ); filter.add( includeFilter ); allFilters.add( includeFilter ); } if ( !excludes.isEmpty() ) { ArtifactFilter excludeFilter = new PatternExcludesArtifactFilter( excludes, actTransitively ); filter.add( excludeFilter ); allFilters.add( excludeFilter ); } if ( additionalFilters != null && !additionalFilters.isEmpty() ) { allFilters.addAll( additionalFilters ); } for ( Iterator it = artifacts.iterator(); it.hasNext(); ) { Artifact artifact = (Artifact) it.next(); if ( !filter.include( artifact ) ) { it.remove(); if ( logger.isDebugEnabled() ) { logger.debug( artifact.getId() + " was removed by one or more filters." ); } } } reportFilteringStatistics( allFilters, logger ); for ( Iterator it = allFilters.iterator(); it.hasNext(); ) { ArtifactFilter f = (ArtifactFilter) it.next(); if ( f instanceof StatisticsReportingArtifactFilter ) { StatisticsReportingArtifactFilter sFilter = (StatisticsReportingArtifactFilter) f; if ( strictFiltering && sFilter.hasMissedCriteria() ) { throw new InvalidAssemblerConfigurationException( "One or more filters had unmatched criteria. Check debug log for more information." ); } } } } public static void reportFilteringStatistics( Collection filters, Logger logger ) { for ( Iterator it = filters.iterator(); it.hasNext(); ) { ArtifactFilter f = (ArtifactFilter) it.next(); if ( f instanceof StatisticsReportingArtifactFilter ) { StatisticsReportingArtifactFilter sFilter = (StatisticsReportingArtifactFilter) f; if ( logger.isDebugEnabled() ) { logger.debug( "Statistics for " + sFilter + "\n" ); } sFilter.reportMissedCriteria( logger ); sFilter.reportFilteredArtifacts( logger ); } } } } ././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/utils/PropertyUtils.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/utils/PropertyUtils.j0000644000175000017500000000706211266672224033735 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.utils; /* * 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 org.apache.maven.plugin.assembly.format.AssemblyFormattingException; import org.codehaus.plexus.interpolation.InterpolationException; import org.codehaus.plexus.interpolation.PropertiesBasedValueSource; import org.codehaus.plexus.interpolation.StringSearchInterpolator; import org.codehaus.plexus.util.IOUtil; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.util.Enumeration; import java.util.Properties; /** * @author Kenney Westerhof * @version $Id: PropertyUtils.java 826512 2009-10-18 20:03:32Z bentmann $ */ public final class PropertyUtils { private PropertyUtils() { // prevent instantiation } /** * Reads a property file, resolving all internal variables. * * @param propfile The property file to load * @param fail wheter to throw an exception when the file cannot be loaded or to return null * @param useSystemProps wheter to incorporate System.getProperties settings into the returned Properties object. * @return the loaded and fully resolved Properties object */ public static Properties getInterpolatedPropertiesFromFile( File propfile, boolean fail, boolean useSystemProps ) throws IOException, AssemblyFormattingException { Properties props; if ( useSystemProps ) { props = new Properties( System.getProperties() ); } else { props = new Properties(); } if ( propfile.exists() ) { FileInputStream inStream = new FileInputStream( propfile ); try { props.load( inStream ); } finally { IOUtil.close( inStream ); } } else if ( fail ) { throw new FileNotFoundException( propfile.toString() ); } StringSearchInterpolator interpolator = new StringSearchInterpolator(); interpolator.addValueSource( new PropertiesBasedValueSource( props ) ); for ( Enumeration n = props.propertyNames(); n.hasMoreElements(); ) { String key = (String) n.nextElement(); String value = props.getProperty( key ); try { value = interpolator.interpolate( value ); } catch ( InterpolationException e ) { throw new AssemblyFormattingException( "Failed to interpolate property value: '" + value + "' for key: '" + key + "'. Reason: " + e.getMessage(), e ); } props.setProperty( key, value ); } return props; } } ././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/utils/CommandLineUtils.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/utils/CommandLineUtil0000644000175000017500000000667411123544663033671 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.utils; /* * The MIT License * * Copyright (c) 2004, The Codehaus * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies * of the Software, and to permit persons to whom the Software is furnished to do * so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Properties; /** * @author Trygve Laugstøl * @version $Id: CommandLineUtils.java 728546 2008-12-21 22:56:51Z bentmann $ */ public abstract class CommandLineUtils { /** * Return the shell environment variables. If caseSensitive == true, then envar * keys will all be upper-case. * * @param caseSensitive Whether environment variable keys should be treated case-sensitively. * @return Properties object of (possibly modified) envar keys mapped to their values. * @throws IOException */ public static Properties getSystemEnvVars( boolean caseSensitive ) throws IOException { Process p = null; Properties envVars = new Properties(); Runtime r = Runtime.getRuntime(); String os = System.getProperty( "os.name" ).toLowerCase(); //If this is windows set the shell to command.com or cmd.exe with correct arguments. if ( os.indexOf( "windows" ) != -1 ) { if ( os.indexOf( "95" ) != -1 || os.indexOf( "98" ) != -1 || os.indexOf( "Me" ) != -1 ) { p = r.exec( "command.com /c set" ); } else { p = r.exec( "cmd.exe /c set" ); } } else { p = r.exec( "env" ); } BufferedReader br = new BufferedReader( new InputStreamReader( p.getInputStream() ) ); String line; String lastKey = null; String lastVal = null; while ( ( line = br.readLine() ) != null ) { int idx = line.indexOf( '=' ); if ( idx > 1 ) { lastKey = line.substring( 0, idx ); if ( !caseSensitive ) { lastKey = lastKey.toUpperCase(); } lastVal = line.substring( idx + 1 ); envVars.setProperty( lastKey, lastVal ); } else if ( lastKey != null ) { lastVal += "\n" + line; envVars.setProperty( lastKey, lastVal ); } } return envVars; } } ././@LongLink0000000000000000000000000000017300000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/InvalidAssemblerConfigurationException.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/InvalidAssemblerConfi0000644000175000017500000000237511123544663033702 0ustar twernertwernerpackage org.apache.maven.plugin.assembly; /* * 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. */ /** * @version $Id: InvalidAssemblerConfigurationException.java 728546 2008-12-21 22:56:51Z bentmann $ */ public class InvalidAssemblerConfigurationException extends Exception { public InvalidAssemblerConfigurationException( String message, Throwable error ) { super( message, error ); } public InvalidAssemblerConfigurationException( String message ) { super( message ); } } ././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/DefaultAssemblyContext.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/DefaultAssemblyContex0000644000175000017500000000063011123544663033734 0ustar twernertwernerpackage org.apache.maven.plugin.assembly; import java.util.Map; public class DefaultAssemblyContext implements AssemblyContext { private Map managedVersions; public Map getManagedVersionMap() { return managedVersions; } public AssemblyContext setManagedVersionMap( Map managedVersions ) { this.managedVersions = managedVersions; return this; } } maven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/0000755000175000017500000000000011361635312031162 5ustar twernertwerner././@LongLink0000000000000000000000000000016600000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/ArchiveExpansionException.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/ArchiveExpans0000644000175000017500000000232111123544663033647 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.archive; /* * 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. */ /** * @version $Id: ArchiveExpansionException.java 728546 2008-12-21 22:56:51Z bentmann $ */ public class ArchiveExpansionException extends Exception { public ArchiveExpansionException( String message, Throwable error ) { super( message, error ); } public ArchiveExpansionException( String message ) { super( message ); } } ././@LongLink0000000000000000000000000000016600000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/ManifestCreationFinalizer.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/ManifestCreat0000644000175000017500000001171011123544663033636 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.archive; /* * 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.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStreamReader; import java.io.Reader; import java.util.Collections; import java.util.List; import org.apache.maven.archiver.MavenArchiveConfiguration; import org.apache.maven.archiver.MavenArchiver; import org.apache.maven.artifact.DependencyResolutionRequiredException; import org.apache.maven.project.MavenProject; import org.codehaus.plexus.archiver.AbstractArchiveFinalizer; import org.codehaus.plexus.archiver.Archiver; import org.codehaus.plexus.archiver.ArchiverException; import org.codehaus.plexus.archiver.jar.JarArchiver; import org.codehaus.plexus.archiver.jar.Manifest; import org.codehaus.plexus.archiver.jar.ManifestException; import org.codehaus.plexus.util.IOUtil; /** * @version $Id: ManifestCreationFinalizer.java 728546 2008-12-21 22:56:51Z bentmann $ */ public class ManifestCreationFinalizer extends AbstractArchiveFinalizer { private final MavenProject project; private final MavenArchiveConfiguration archiveConfiguration; // TODO: I'd really prefer to rewrite MavenArchiver as either a // separate manifest creation utility (and to // create an include pom.properties etc into another archiver), or // an implementation of an archiver // (the first is preferable). private MavenArchiver mavenArchiver = new MavenArchiver(); public ManifestCreationFinalizer( MavenProject project, MavenArchiveConfiguration archiveConfiguration ) { this.project = project; this.archiveConfiguration = archiveConfiguration; } public void finalizeArchiveCreation( Archiver archiver ) throws ArchiverException { if ( archiveConfiguration != null ) { try { Manifest manifest; File manifestFile = archiveConfiguration.getManifestFile(); if ( manifestFile != null ) { Reader manifestFileReader = null; try { manifestFileReader = new InputStreamReader( new FileInputStream( manifestFile ), "UTF-8" ); manifest = new Manifest( manifestFileReader ); } catch ( FileNotFoundException e ) { throw new ArchiverException( "Manifest not found: " + e.getMessage(), e ); } catch ( IOException e ) { throw new ArchiverException( "Error processing manifest: " + e.getMessage(), e ); } finally { IOUtil.close( manifestFileReader ); } } else { manifest = mavenArchiver.getManifest( project, archiveConfiguration ); } if ( ( manifest != null ) && ( archiver instanceof JarArchiver ) ) { JarArchiver jarArchiver = (JarArchiver) archiver; jarArchiver.addConfiguredManifest( manifest ); } } catch ( ManifestException e ) { throw new ArchiverException( "Error creating manifest: " + e.getMessage(), e ); } catch ( DependencyResolutionRequiredException e ) { throw new ArchiverException( "Dependencies were not resolved: " + e.getMessage(), e ); } } } public List getVirtualFiles() { if ( archiveConfiguration != null ) { try { if ( mavenArchiver.getManifest( project, archiveConfiguration.getManifest() ) != null ) { return Collections.singletonList( "META-INF/MANIFEST.MF" ); } } catch ( ManifestException e ) { } catch ( DependencyResolutionRequiredException e ) { } } return null; } } ././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/DefaultAssemblyArchiver.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/DefaultAssemb0000644000175000017500000005164111306760127033635 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.archive; /* * 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 org.apache.maven.artifact.resolver.ArtifactResolutionException; import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.plugin.DebugConfigurationListener; import org.apache.maven.plugin.assembly.AssemblerConfigurationSource; import org.apache.maven.plugin.assembly.AssemblyContext; import org.apache.maven.plugin.assembly.DefaultAssemblyContext; import org.apache.maven.plugin.assembly.InvalidAssemblerConfigurationException; import org.apache.maven.plugin.assembly.archive.archiver.AssemblyProxyArchiver; import org.apache.maven.plugin.assembly.archive.phase.AssemblyArchiverPhase; import org.apache.maven.plugin.assembly.artifact.DependencyResolver; import org.apache.maven.plugin.assembly.filter.ComponentsXmlArchiverFileFilter; import org.apache.maven.plugin.assembly.filter.ContainerDescriptorHandler; import org.apache.maven.plugin.assembly.format.AssemblyFormattingException; import org.apache.maven.plugin.assembly.interpolation.AssemblyExpressionEvaluator; import org.apache.maven.plugin.assembly.model.Assembly; import org.apache.maven.plugin.assembly.model.ContainerDescriptorHandlerConfig; import org.apache.maven.plugin.assembly.utils.AssemblyFileUtils; import org.apache.maven.plugin.assembly.utils.AssemblyFormatUtils; import org.apache.maven.project.artifact.InvalidDependencyVersionException; import org.codehaus.plexus.PlexusConstants; import org.codehaus.plexus.PlexusContainer; import org.codehaus.plexus.archiver.Archiver; import org.codehaus.plexus.archiver.ArchiverException; import org.codehaus.plexus.archiver.filters.JarSecurityFileSelector; import org.codehaus.plexus.archiver.jar.JarArchiver; import org.codehaus.plexus.archiver.manager.ArchiverManager; import org.codehaus.plexus.archiver.manager.NoSuchArchiverException; import org.codehaus.plexus.archiver.tar.TarArchiver; import org.codehaus.plexus.archiver.tar.TarLongFileMode; import org.codehaus.plexus.archiver.war.WarArchiver; import org.codehaus.plexus.collections.ActiveCollectionManager; import org.codehaus.plexus.component.configurator.ComponentConfigurationException; import org.codehaus.plexus.component.configurator.ComponentConfigurator; import org.codehaus.plexus.component.configurator.ConfigurationListener; import org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator; import org.codehaus.plexus.component.repository.exception.ComponentLookupException; import org.codehaus.plexus.configuration.PlexusConfiguration; import org.codehaus.plexus.configuration.xml.XmlPlexusConfiguration; import org.codehaus.plexus.context.Context; import org.codehaus.plexus.context.ContextException; import org.codehaus.plexus.logging.AbstractLogEnabled; import org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable; import org.codehaus.plexus.util.xml.Xpp3Dom; import org.codehaus.plexus.util.xml.Xpp3DomBuilder; import org.codehaus.plexus.util.xml.pull.XmlPullParserException; import java.io.File; import java.io.IOException; import java.io.StringReader; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.Collections; import java.util.Iterator; import java.util.List; import java.util.Map; /** * Controller component designed to organize the many activities involved in * creating an assembly archive. This includes locating and configuring {@link Archiver} * instances, executing multiple {@link AssemblyArchiverPhase} instances to * interpret the various sections of the assembly descriptor and determine which * files to add, and other associated activities. * * @version $Id: DefaultAssemblyArchiver.java 887709 2009-12-06 16:48:23Z bentmann $ * @plexus.component role="org.apache.maven.plugin.assembly.archive.AssemblyArchiver" role-hint="default" */ public class DefaultAssemblyArchiver extends AbstractLogEnabled implements AssemblyArchiver, Contextualizable { /** * @plexus.requirement */ private ArchiverManager archiverManager; /** * @plexus.requirement role="org.apache.maven.plugin.assembly.archive.phase.AssemblyArchiverPhase" */ private List assemblyPhases; /** * @plexus.requirement role="org.apache.maven.plugin.assembly.filter.ContainerDescriptorHandler" */ private Map containerDescriptorHandlers; /** * @plexus.requirement */ private DependencyResolver dependencyResolver; private PlexusContainer container; public DefaultAssemblyArchiver() { // needed for plexus } // introduced for testing. protected DefaultAssemblyArchiver( ArchiverManager archiverManager, ActiveCollectionManager collectionManager, DependencyResolver resolver, List assemblyPhases ) { this.archiverManager = archiverManager; dependencyResolver = resolver; this.assemblyPhases = assemblyPhases; } /** * Create the assembly archive. Generally: * *
    *
  1. Setup any directory structures for temporary files
  2. *
  3. Calculate the output directory/file for the assembly
  4. *
  5. Setup any handler components for special descriptor files we may encounter
  6. *
  7. Lookup and configure the {@link Archiver} to be used
  8. *
  9. Determine what, if any, dependency resolution will be required, and * resolve any dependency-version conflicts up front to produce a * managed-version map for the whole assembly process.
  10. *
  11. Iterate through the available {@link AssemblyArchiverPhase} instances, * executing each to handle a different top-level section of the * assembly descriptor, if that section is present.
  12. *
*/ public File createArchive( Assembly assembly, String fullName, String format, AssemblerConfigurationSource configSource ) throws ArchiveCreationException, AssemblyFormattingException, InvalidAssemblerConfigurationException { String filename = fullName; if ( !configSource.isIgnoreDirFormatExtensions() || !format.startsWith( "dir" ) ) { filename += "." + format; } AssemblyFileUtils.verifyTempDirectoryAvailability( configSource.getTemporaryRootDirectory(), getLogger() ); File outputDirectory = configSource.getOutputDirectory(); File destFile = new File( outputDirectory, filename ); try { String finalName = configSource.getFinalName(); String specifiedBasedir = assembly.getBaseDirectory(); String basedir = finalName; if ( specifiedBasedir != null ) { basedir = AssemblyFormatUtils.getOutputDirectory( specifiedBasedir, configSource.getProject(), null, finalName, configSource ); } List containerHandlers = selectContainerDescriptorHandlers( assembly.getContainerDescriptorHandlers(), configSource ); Archiver archiver = createArchiver( format, assembly.isIncludeBaseDirectory(), basedir, configSource, containerHandlers ); archiver.setDestFile( destFile ); Map managedVersionMap = dependencyResolver.buildManagedVersionMap( assembly, configSource ); AssemblyContext context = new DefaultAssemblyContext().setManagedVersionMap( managedVersionMap ); for ( Iterator phaseIterator = assemblyPhases.iterator(); phaseIterator.hasNext(); ) { AssemblyArchiverPhase phase = (AssemblyArchiverPhase) phaseIterator.next(); phase.execute( assembly, archiver, configSource, context ); } archiver.createArchive(); } catch ( ArchiverException e ) { throw new ArchiveCreationException( "Error creating assembly archive " + assembly.getId() + ": " + e.getMessage(), e ); } catch ( IOException e ) { throw new ArchiveCreationException( "Error creating assembly archive " + assembly.getId() + ": " + e.getMessage(), e ); } catch ( NoSuchArchiverException e ) { throw new ArchiveCreationException( "Unable to obtain archiver for extension '" + format + "'" ); } catch ( ArtifactResolutionException e ) { throw new ArchiveCreationException( "Unable to create managed-version map for all assembly activities: " + e.getMessage(), e ); } catch ( InvalidVersionSpecificationException e ) { throw new ArchiveCreationException( "Unable to create managed-version map for all assembly activities: " + e.getMessage(), e ); } catch ( InvalidDependencyVersionException e ) { throw new ArchiveCreationException( "Unable to create managed-version map for all assembly activities: " + e.getMessage(), e ); } return destFile; } private List selectContainerDescriptorHandlers( List requestedContainerDescriptorHandlers, AssemblerConfigurationSource configSource ) throws InvalidAssemblerConfigurationException { getLogger().debug( "All known ContainerDescritporHandler components: " + ( containerDescriptorHandlers == null ? "none; map is null." : "" + containerDescriptorHandlers.keySet() ) ); if ( requestedContainerDescriptorHandlers == null ) { requestedContainerDescriptorHandlers = new ArrayList(); } List handlers = new ArrayList(); boolean foundPlexus = false; if ( ( requestedContainerDescriptorHandlers != null ) && !requestedContainerDescriptorHandlers.isEmpty() ) { for ( Iterator it = requestedContainerDescriptorHandlers.iterator(); it.hasNext(); ) { ContainerDescriptorHandlerConfig config = (ContainerDescriptorHandlerConfig) it.next(); String hint = config.getHandlerName(); ContainerDescriptorHandler handler = (ContainerDescriptorHandler) containerDescriptorHandlers.get( hint ); if ( handler == null ) { throw new InvalidAssemblerConfigurationException( "Cannot find ContainerDescriptorHandler with hint: " + hint ); } getLogger().debug( "Found container descriptor handler with hint: " + hint + " (component: " + handler + ")" ); if ( config.getConfiguration() != null ) { getLogger().debug( "Configuring handler with:\n\n" + config.getConfiguration() + "\n\n" ); configureContainerDescriptorHandler( handler, (Xpp3Dom) config.getConfiguration(), configSource ); } handlers.add( handler ); if ( "plexus".equals( hint ) ) { foundPlexus = true; } } } if ( !foundPlexus ) { handlers.add( new ComponentsXmlArchiverFileFilter() ); } return handlers; } /** * Creates the necessary archiver to build the distribution file. * * @param format * Archive format * @param includeBaseDir * @param finalName * @param configSource * @param containerHandlers * @return archiver Archiver generated * @throws org.codehaus.plexus.archiver.ArchiverException * @throws org.codehaus.plexus.archiver.manager.NoSuchArchiverException */ protected Archiver createArchiver( String format, boolean includeBaseDir, String finalName, AssemblerConfigurationSource configSource, List containerHandlers ) throws ArchiverException, NoSuchArchiverException { Archiver archiver; if ( format.startsWith( "tar" ) ) { archiver = createTarArchiver( format, configSource.getTarLongFileMode() ); } else if ( "war".equals( format ) ) { archiver = createWarArchiver(); } else { archiver = archiverManager.getArchiver( format ); } List extraSelectors = null; List extraFinalizers = null; if ( archiver instanceof JarArchiver ) { extraSelectors = Collections.singletonList( new JarSecurityFileSelector() ); extraFinalizers = Collections.singletonList( new ManifestCreationFinalizer( configSource.getProject(), configSource.getJarArchiveConfiguration() ) ); } if ( configSource.getArchiverConfig() != null ) { configureArchiver( archiver, configSource ); } String prefix = ""; if ( includeBaseDir ) { prefix = finalName; } archiver = new AssemblyProxyArchiver( prefix, archiver, containerHandlers, extraSelectors, extraFinalizers, getLogger(), configSource.isDryRun() ); return archiver; } private void configureContainerDescriptorHandler( ContainerDescriptorHandler handler, Xpp3Dom config, AssemblerConfigurationSource configSource ) throws InvalidAssemblerConfigurationException { getLogger().debug( "Configuring handler: '" + handler.getClass().getName() + "' -->" ); try { configureComponent( handler, config, configSource ); } catch ( ComponentConfigurationException e ) { throw new InvalidAssemblerConfigurationException( "Failed to configure handler: " + handler.getClass().getName(), e ); } catch ( ComponentLookupException e ) { throw new InvalidAssemblerConfigurationException( "Failed to lookup configurator for setup of handler: " + handler.getClass().getName(), e ); } getLogger().debug( "-- end configuration --" ); } private void configureArchiver( Archiver archiver, AssemblerConfigurationSource configSource ) throws ArchiverException { Xpp3Dom config; try { config = Xpp3DomBuilder.build( new StringReader( configSource.getArchiverConfig() ) ); } catch ( XmlPullParserException e ) { throw new ArchiverException( "Failed to parse archiver configuration for: " + archiver.getClass().getName(), e ); } catch ( IOException e ) { throw new ArchiverException( "Failed to parse archiver configuration for: " + archiver.getClass().getName(), e ); } getLogger().debug( "Configuring archiver: '" + archiver.getClass().getName() + "' -->" ); try { configureComponent( archiver, config, configSource ); } catch ( ComponentConfigurationException e ) { throw new ArchiverException( "Failed to configure archiver: " + archiver.getClass().getName(), e ); } catch ( ComponentLookupException e ) { throw new ArchiverException( "Failed to lookup configurator for setup of archiver: " + archiver.getClass().getName(), e ); } getLogger().debug( "-- end configuration --" ); } private void configureComponent( Object component, Xpp3Dom config, AssemblerConfigurationSource configSource ) throws ComponentLookupException, ComponentConfigurationException { ComponentConfigurator configurator = (ComponentConfigurator) container.lookup( ComponentConfigurator.ROLE, "basic" ); ConfigurationListener listener = new DebugConfigurationListener( getLogger() ); ExpressionEvaluator expressionEvaluator = new AssemblyExpressionEvaluator( configSource ); XmlPlexusConfiguration configuration = new XmlPlexusConfiguration( config ); Object[] containerRealm = getContainerRealm(); /* * NOTE: The signature of configureComponent() has changed in Maven 3.x, the reflection prevents a linkage error * and makes the code work with both Maven 2 and 3. */ try { Method configureComponent = ComponentConfigurator.class.getMethod( "configureComponent", new Class[] { Object.class, PlexusConfiguration.class, ExpressionEvaluator.class, (Class) containerRealm[1], ConfigurationListener.class } ); configureComponent.invoke( configurator, new Object[] { component, configuration, expressionEvaluator, containerRealm[0], listener } ); } catch ( NoSuchMethodException e ) { throw new RuntimeException( e ); } catch ( IllegalAccessException e ) { throw new RuntimeException( e ); } catch ( InvocationTargetException e ) { if ( e.getCause() instanceof ComponentConfigurationException ) { throw (ComponentConfigurationException) e.getCause(); } throw new RuntimeException( e.getCause() ); } } private Object[] getContainerRealm() { /* * NOTE: The return type of getContainerRealm() has changed in Maven 3.x, the reflection prevents a linkage * error and makes the code work with both Maven 2 and 3. */ try { Method getContainerRealm = container.getClass().getMethod( "getContainerRealm", null ); return new Object[] { getContainerRealm.invoke( container, null ), getContainerRealm.getReturnType() }; } catch ( NoSuchMethodException e ) { throw new RuntimeException( e ); } catch ( IllegalAccessException e ) { throw new RuntimeException( e ); } catch ( InvocationTargetException e ) { throw new RuntimeException( e.getCause() ); } } protected Archiver createWarArchiver() throws NoSuchArchiverException { WarArchiver warArchiver = (WarArchiver) archiverManager.getArchiver( "war" ); warArchiver.setIgnoreWebxml( false ); // See MNG-1274 return warArchiver; } protected Archiver createTarArchiver( String format, String tarLongFileMode ) throws NoSuchArchiverException, ArchiverException { TarArchiver tarArchiver = (TarArchiver) archiverManager.getArchiver( "tar" ); int index = format.indexOf( '.' ); if ( index >= 0 ) { // TODO: this needs a cleanup in plexus archiver - use a real // typesafe enum TarArchiver.TarCompressionMethod tarCompressionMethod = new TarArchiver.TarCompressionMethod(); // TODO: this should accept gz and bz2 as well so we can skip // over the switch String compression = format.substring( index + 1 ); if ( "gz".equals( compression ) ) { tarCompressionMethod.setValue( "gzip" ); } else if ( "bz2".equals( compression ) ) { tarCompressionMethod.setValue( "bzip2" ); } else { // TODO: better handling throw new IllegalArgumentException( "Unknown compression format: " + compression ); } tarArchiver.setCompression( tarCompressionMethod ); } TarLongFileMode tarFileMode = new TarLongFileMode(); tarFileMode.setValue( tarLongFileMode ); tarArchiver.setLongfile( tarFileMode ); return tarArchiver; } public void contextualize( Context context ) throws ContextException { container = (PlexusContainer) context.get( PlexusConstants.PLEXUS_KEY ); } protected void setContainer( PlexusContainer container ) { this.container = container; } } maven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/phase/0000755000175000017500000000000011361635312032262 5ustar twernertwerner././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/phase/AssemblyArchiverPhase.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/phase/Assembl0000644000175000017500000000716411123544663033607 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.archive.phase; /* * 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 org.apache.maven.plugin.assembly.AssemblerConfigurationSource; import org.apache.maven.plugin.assembly.AssemblyContext; import org.apache.maven.plugin.assembly.DefaultAssemblyContext; import org.apache.maven.plugin.assembly.InvalidAssemblerConfigurationException; import org.apache.maven.plugin.assembly.archive.ArchiveCreationException; import org.apache.maven.plugin.assembly.format.AssemblyFormattingException; import org.apache.maven.plugin.assembly.model.Assembly; import org.codehaus.plexus.archiver.Archiver; /** * Handles one top-level section of the assembly descriptor, to determine which * files to include in the assembly archive for that section. * * @version $Id: AssemblyArchiverPhase.java 728546 2008-12-21 22:56:51Z bentmann $ */ public interface AssemblyArchiverPhase { String ROLE = AssemblyArchiverPhase.class.getName(); /** * Handle the associated section of the assembly descriptor. * * @param assembly The assembly descriptor to use * @param archiver The archiver used to create the assembly archive, to * which files/directories/artifacts are added * @param configSource The configuration for this assembly build, normally * derived from the plugin that launched the assembly * process. * * @deprecated Use {@link AssemblyArchiverPhase#execute(Assembly, Archiver, AssemblerConfigurationSource, AssemblyContext)} * instead. This method should be the equivalent of calling the new execute() method with a newly-minted * instance of {@link DefaultAssemblyContext}. */ void execute( Assembly assembly, Archiver archiver, AssemblerConfigurationSource configSource ) throws ArchiveCreationException, AssemblyFormattingException, InvalidAssemblerConfigurationException; /** * Handle the associated section of the assembly descriptor. * * @param assembly The assembly descriptor to use * @param archiver The archiver used to create the assembly archive, to * which files/directories/artifacts are added * @param configSource The configuration for this assembly build, normally * derived from the plugin that launched the assembly * process. * @param context Context instance that contains the collected managed * versions for dependencies, and potentially any caches that * may be useful for the assembly process. */ void execute( Assembly assembly, Archiver archiver, AssemblerConfigurationSource configSource, AssemblyContext context ) throws ArchiveCreationException, AssemblyFormattingException, InvalidAssemblerConfigurationException; } ././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/phase/FileItemAssemblyPhase.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/phase/FileIte0000644000175000017500000001145211123544663033535 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.archive.phase; /* * 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.Iterator; import java.util.List; import org.apache.maven.plugin.assembly.AssemblerConfigurationSource; import org.apache.maven.plugin.assembly.AssemblyContext; import org.apache.maven.plugin.assembly.DefaultAssemblyContext; import org.apache.maven.plugin.assembly.archive.ArchiveCreationException; import org.apache.maven.plugin.assembly.format.AssemblyFormattingException; import org.apache.maven.plugin.assembly.format.FileFormatter; import org.apache.maven.plugin.assembly.model.Assembly; import org.apache.maven.plugin.assembly.model.FileItem; import org.apache.maven.plugin.assembly.utils.AssemblyFormatUtils; import org.apache.maven.plugin.assembly.utils.TypeConversionUtils; import org.codehaus.plexus.archiver.Archiver; import org.codehaus.plexus.archiver.ArchiverException; import org.codehaus.plexus.logging.AbstractLogEnabled; /** * Handles the top-level <files/> section of the assembly descriptor. * * @version $Id: FileItemAssemblyPhase.java 728546 2008-12-21 22:56:51Z bentmann $ * @plexus.component role="org.apache.maven.plugin.assembly.archive.phase.AssemblyArchiverPhase" * role-hint="file-items" */ public class FileItemAssemblyPhase extends AbstractLogEnabled implements AssemblyArchiverPhase { /** * {@inheritDoc} */ public void execute( Assembly assembly, Archiver archiver, AssemblerConfigurationSource configSource ) throws ArchiveCreationException, AssemblyFormattingException { execute( assembly, archiver, configSource, new DefaultAssemblyContext() ); } /** * {@inheritDoc} */ public void execute( Assembly assembly, Archiver archiver, AssemblerConfigurationSource configSource, AssemblyContext context ) throws ArchiveCreationException, AssemblyFormattingException { List fileList = assembly.getFiles(); File basedir = configSource.getBasedir(); FileFormatter fileFormatter = new FileFormatter( configSource, getLogger() ); for ( Iterator i = fileList.iterator(); i.hasNext(); ) { FileItem fileItem = (FileItem) i.next(); String sourcePath = fileItem.getSource(); // ensure source file is in absolute path for reactor build to work File source = new File( sourcePath ); // save the original sourcefile's name, because filtration may // create a temp file with a different name. String sourceName = source.getName(); if ( !source.isAbsolute() ) { source = new File( basedir, sourcePath ); } source = fileFormatter.format( source, fileItem.isFiltered(), fileItem.getLineEnding() ); String destName = fileItem.getDestName(); if ( destName == null ) { destName = sourceName; } String outputDirectory = AssemblyFormatUtils.getOutputDirectory( fileItem.getOutputDirectory(), configSource.getProject(), null, configSource.getFinalName(), configSource ); String target; // omit the last char if ends with / or \\ if ( outputDirectory.endsWith( "/" ) || outputDirectory.endsWith( "\\" ) ) { target = outputDirectory + destName; } else if ( outputDirectory.length() < 1 ) { target = destName; } else { target = outputDirectory + "/" + destName; } try { archiver.addFile( source, target, TypeConversionUtils.modeToInt( fileItem.getFileMode(), getLogger() ) ); } catch ( ArchiverException e ) { throw new ArchiveCreationException( "Error adding file to archive: " + e.getMessage(), e ); } } } } ././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/phase/wrappers/maven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/phase/wrapper0000755000175000017500000000000011361635312033663 5ustar twernertwerner././@LongLink0000000000000000000000000000021200000000000011560 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/phase/wrappers/RepoBuilderConfigSourceWrapper.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/phase/wrapper0000644000175000017500000000330511123544663033672 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.archive.phase.wrappers; /* * 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 org.apache.maven.artifact.repository.ArtifactRepository; import org.apache.maven.plugin.assembly.AssemblerConfigurationSource; import org.apache.maven.project.MavenProject; import org.apache.maven.shared.repository.RepositoryBuilderConfigSource; /** * @version $Id: RepoBuilderConfigSourceWrapper.java 728546 2008-12-21 22:56:51Z bentmann $ */ public class RepoBuilderConfigSourceWrapper implements RepositoryBuilderConfigSource { private final AssemblerConfigurationSource configSource; public RepoBuilderConfigSourceWrapper( AssemblerConfigurationSource configSource ) { this.configSource = configSource; } public ArtifactRepository getLocalRepository() { return configSource.getLocalRepository(); } public MavenProject getProject() { return configSource.getProject(); } } ././@LongLink0000000000000000000000000000017300000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/phase/wrappers/RepoInfoWrapper.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/phase/wrapper0000644000175000017500000000453711123544663033702 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.archive.phase.wrappers; /* * 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 org.apache.maven.plugin.assembly.model.GroupVersionAlignment; import org.apache.maven.plugin.assembly.model.Repository; import org.apache.maven.shared.repository.model.RepositoryInfo; import java.util.ArrayList; import java.util.Iterator; import java.util.List; /** * @version $Id: RepoInfoWrapper.java 728546 2008-12-21 22:56:51Z bentmann $ */ public class RepoInfoWrapper implements RepositoryInfo { private final Repository repo; private List convertedAlignments; public RepoInfoWrapper( Repository repo ) { this.repo = repo; } public List getExcludes() { return repo.getExcludes(); } public List getGroupVersionAlignments() { List alignments = repo.getGroupVersionAlignments(); if ( convertedAlignments == null || alignments.size() != convertedAlignments.size() ) { List l = new ArrayList( alignments.size() ); for ( Iterator it = alignments.iterator(); it.hasNext(); ) { GroupVersionAlignment alignment = (GroupVersionAlignment) it.next(); l.add( new GroupVersionAlignmentWrapper( alignment ) ); } convertedAlignments = l; } return convertedAlignments; } public List getIncludes() { return repo.getIncludes(); } public String getScope() { return repo.getScope(); } public boolean isIncludeMetadata() { return repo.isIncludeMetadata(); } } ././@LongLink0000000000000000000000000000021000000000000011556 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/phase/wrappers/GroupVersionAlignmentWrapper.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/phase/wrapper0000644000175000017500000000310711123544663033672 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.archive.phase.wrappers; /* * 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 org.apache.maven.plugin.assembly.model.GroupVersionAlignment; import java.util.List; /** * @version $Id: GroupVersionAlignmentWrapper.java 728546 2008-12-21 22:56:51Z bentmann $ */ public class GroupVersionAlignmentWrapper implements org.apache.maven.shared.repository.model.GroupVersionAlignment { private final GroupVersionAlignment alignment; public GroupVersionAlignmentWrapper( GroupVersionAlignment alignment ) { this.alignment = alignment; } public List getExcludes() { return alignment.getExcludes(); } public String getId() { return alignment.getId(); } public String getVersion() { return alignment.getVersion(); } } ././@LongLink0000000000000000000000000000017100000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/phase/ModuleSetAssemblyPhase.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/phase/ModuleS0000644000175000017500000004743111123544663033572 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.archive.phase; /* * 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 org.apache.maven.artifact.Artifact; import org.apache.maven.artifact.ArtifactUtils; import org.apache.maven.plugin.assembly.AssemblerConfigurationSource; import org.apache.maven.plugin.assembly.AssemblyContext; import org.apache.maven.plugin.assembly.DefaultAssemblyContext; import org.apache.maven.plugin.assembly.InvalidAssemblerConfigurationException; import org.apache.maven.plugin.assembly.archive.ArchiveCreationException; import org.apache.maven.plugin.assembly.archive.task.AddArtifactTask; import org.apache.maven.plugin.assembly.archive.task.AddDependencySetsTask; import org.apache.maven.plugin.assembly.archive.task.AddFileSetsTask; import org.apache.maven.plugin.assembly.artifact.DependencyResolver; import org.apache.maven.plugin.assembly.format.AssemblyFormattingException; import org.apache.maven.plugin.assembly.model.Assembly; import org.apache.maven.plugin.assembly.model.DependencySet; import org.apache.maven.plugin.assembly.model.FileSet; import org.apache.maven.plugin.assembly.model.ModuleBinaries; import org.apache.maven.plugin.assembly.model.ModuleSet; import org.apache.maven.plugin.assembly.model.ModuleSources; import org.apache.maven.plugin.assembly.utils.AssemblyFormatUtils; import org.apache.maven.plugin.assembly.utils.FilterUtils; import org.apache.maven.plugin.assembly.utils.ProjectUtils; import org.apache.maven.plugin.assembly.utils.TypeConversionUtils; import org.apache.maven.project.MavenProject; import org.apache.maven.project.MavenProjectBuilder; import org.codehaus.plexus.archiver.Archiver; import org.codehaus.plexus.logging.AbstractLogEnabled; import org.codehaus.plexus.logging.Logger; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; /** * Handles the <moduleSets/> top-level section of the assembly descriptor. * * @version $Id: ModuleSetAssemblyPhase.java 728546 2008-12-21 22:56:51Z bentmann $ * @plexus.component role="org.apache.maven.plugin.assembly.archive.phase.AssemblyArchiverPhase" role-hint="module-sets" */ public class ModuleSetAssemblyPhase extends AbstractLogEnabled implements AssemblyArchiverPhase { /** * @plexus.requirement */ private MavenProjectBuilder projectBuilder; /** * @plexus.requirement */ private DependencyResolver dependencyResolver; public ModuleSetAssemblyPhase() { // needed for plexus } public ModuleSetAssemblyPhase( MavenProjectBuilder projectBuilder, DependencyResolver dependencyResolver, Logger logger ) { this.projectBuilder = projectBuilder; this.dependencyResolver = dependencyResolver; enableLogging( logger ); } /** * {@inheritDoc} */ public void execute( Assembly assembly, Archiver archiver, AssemblerConfigurationSource configSource ) throws ArchiveCreationException, AssemblyFormattingException, InvalidAssemblerConfigurationException { execute( assembly, archiver, configSource, new DefaultAssemblyContext() ); } /** * {@inheritDoc} */ public void execute( Assembly assembly, Archiver archiver, AssemblerConfigurationSource configSource, AssemblyContext context ) throws ArchiveCreationException, AssemblyFormattingException, InvalidAssemblerConfigurationException { List moduleSets = assembly.getModuleSets(); for ( Iterator i = moduleSets.iterator(); i.hasNext(); ) { ModuleSet moduleSet = ( ModuleSet ) i.next(); Set moduleProjects = getModuleProjects( moduleSet, configSource, getLogger() ); ModuleSources sources = moduleSet.getSources(); ModuleBinaries binaries = moduleSet.getBinaries(); if ( ( sources == null ) && ( binaries == null ) ) { getLogger().warn( "Encountered ModuleSet with no sources or binaries specified. Skipping." ); continue; } addModuleSourceFileSets( moduleSet.getSources(), moduleProjects, archiver, configSource ); addModuleBinaries( moduleSet.getBinaries(), moduleProjects, archiver, configSource, context ); } } protected void addModuleBinaries( ModuleBinaries binaries, Set projects, Archiver archiver, AssemblerConfigurationSource configSource, AssemblyContext context ) throws ArchiveCreationException, AssemblyFormattingException, InvalidAssemblerConfigurationException { if ( binaries == null ) { return; } Set moduleProjects = new HashSet( projects ); for ( Iterator it = moduleProjects.iterator(); it.hasNext(); ) { MavenProject project = ( MavenProject ) it.next(); if ( "pom".equals( project.getPackaging() ) ) { String projectId = ArtifactUtils.versionlessKey( project.getGroupId(), project.getArtifactId() ); getLogger().debug( "Excluding POM-packaging module: " + projectId ); it.remove(); } } String classifier = binaries.getAttachmentClassifier(); Map chosenModuleArtifacts = new HashMap(); for ( Iterator j = moduleProjects.iterator(); j.hasNext(); ) { MavenProject project = ( MavenProject ) j.next(); Artifact artifact = null; if ( classifier == null ) { getLogger().debug( "Processing binary artifact for module project: " + project.getId() ); artifact = project.getArtifact(); } else { getLogger().debug( "Processing binary attachment: " + classifier + " for module project: " + project.getId() ); List attachments = project.getAttachedArtifacts(); if ( ( attachments != null ) && !attachments.isEmpty() ) { for ( Iterator attachmentIterator = attachments.iterator(); attachmentIterator.hasNext(); ) { Artifact attachment = (Artifact) attachmentIterator.next(); if ( classifier.equals( attachment.getClassifier() ) ) { artifact = attachment; break; } } } if ( artifact == null ) { throw new InvalidAssemblerConfigurationException( "Cannot find attachment with classifier: " + classifier + " in module project: " + project.getId() + ". Please exclude this module from the module-set." ); } } chosenModuleArtifacts.put( project, artifact ); addModuleArtifact( artifact, project, archiver, configSource, binaries ); } List depSets = getDependencySets( binaries ); if ( depSets != null ) { for ( Iterator it = depSets.iterator(); it.hasNext(); ) { DependencySet ds = (DependencySet) it.next(); // NOTE: Disabling useProjectArtifact flag, since module artifact has already been handled! ds.setUseProjectArtifact( false ); } // FIXME: This will produce unpredictable results when module dependencies have a version conflict. getLogger().warn( "NOTE: Currently, inclusion of module dependencies may produce unpredictable " + "results if a version conflict occurs." ); for ( Iterator it = moduleProjects.iterator(); it.hasNext(); ) { MavenProject moduleProject = ( MavenProject ) it.next(); getLogger().debug( "Processing binary dependencies for module project: " + moduleProject.getId() ); AddDependencySetsTask task = new AddDependencySetsTask( depSets, moduleProject, context.getManagedVersionMap(), projectBuilder, dependencyResolver, getLogger() ); task.setModuleProject( moduleProject ); task.setModuleArtifact( (Artifact) chosenModuleArtifacts.get( moduleProject ) ); task.setDefaultOutputDirectory( binaries.getOutputDirectory() ); task.setDefaultOutputFileNameMapping( binaries.getOutputFileNameMapping() ); task.execute( archiver, configSource ); } } } public static List getDependencySets( ModuleBinaries binaries ) { List depSets = binaries.getDependencySets(); if ( ( ( depSets == null ) || depSets.isEmpty() ) && binaries.isIncludeDependencies() ) { DependencySet impliedDependencySet = new DependencySet(); impliedDependencySet.setOutputDirectory( binaries.getOutputDirectory() ); impliedDependencySet.setOutputFileNameMapping( binaries.getOutputFileNameMapping() ); impliedDependencySet.setFileMode( binaries.getFileMode() ); impliedDependencySet.setDirectoryMode( binaries.getDirectoryMode() ); impliedDependencySet.setExcludes( binaries.getExcludes() ); impliedDependencySet.setIncludes( binaries.getIncludes() ); impliedDependencySet.setUnpack( binaries.isUnpack() ); // unpackOptions is handled in the first stage of dependency-set handling, below. depSets = Collections.singletonList( impliedDependencySet ); } return depSets; } protected List collectExcludesFromQueuedArtifacts( Set visitedArtifacts, List binaryExcludes ) { List excludes = binaryExcludes; if ( excludes == null ) { excludes = new ArrayList(); } else { excludes = new ArrayList( excludes ); } for ( Iterator it = visitedArtifacts.iterator(); it.hasNext(); ) { excludes.add( it.next() ); } return excludes; } protected void addModuleArtifact( Artifact artifact, MavenProject project, Archiver archiver, AssemblerConfigurationSource configSource, ModuleBinaries binaries ) throws ArchiveCreationException, AssemblyFormattingException { if ( artifact.getFile() == null ) { throw new ArchiveCreationException( "Artifact: " + artifact.getId() + " (included by module) does not have an artifact with a file. " + "Please ensure the package phase is run before the assembly is generated." ); } AddArtifactTask task = new AddArtifactTask( artifact, getLogger() ); task.setFileNameMapping( binaries.getOutputFileNameMapping() ); task.setOutputDirectory( binaries.getOutputDirectory() ); task.setProject( project ); task.setModuleProject( project ); task.setModuleArtifact( artifact ); int dirMode = TypeConversionUtils.modeToInt( binaries.getDirectoryMode(), getLogger() ); if ( dirMode != -1 ) { task.setDirectoryMode( dirMode ); } int fileMode = TypeConversionUtils.modeToInt( binaries.getFileMode(), getLogger() ); if ( fileMode != -1 ) { task.setFileMode( fileMode ); } task.setUnpack( binaries.isUnpack() ); if ( binaries.isUnpack() && binaries.getUnpackOptions() != null ) { task.setIncludes( binaries.getUnpackOptions().getIncludes() ); task.setExcludes( binaries.getUnpackOptions().getExcludes() ); } task.execute( archiver, configSource ); } protected void addModuleSourceFileSets( ModuleSources sources, Set moduleProjects, Archiver archiver, AssemblerConfigurationSource configSource ) throws ArchiveCreationException, AssemblyFormattingException { if ( sources == null ) { return; } List fileSets = new ArrayList(); if ( isDeprecatedModuleSourcesConfigPresent( sources ) ) { FileSet fs = new FileSet(); fs.setOutputDirectory( sources.getOutputDirectory() ); fs.setIncludes( sources.getIncludes() ); fs.setExcludes( sources.getExcludes() ); fs.setUseDefaultExcludes( sources.isUseDefaultExcludes() ); fileSets.add( fs ); } List subFileSets = sources.getFileSets(); if ( ( subFileSets == null ) || subFileSets.isEmpty() ) { FileSet fs = new FileSet(); fs.setDirectory( "src" ); subFileSets = Collections.singletonList( fs ); } fileSets.addAll( subFileSets ); for ( Iterator j = moduleProjects.iterator(); j.hasNext(); ) { MavenProject moduleProject = ( MavenProject ) j.next(); getLogger().info( "Processing sources for module project: " + moduleProject.getId() ); List moduleFileSets = new ArrayList(); for ( Iterator fsIterator = fileSets.iterator(); fsIterator.hasNext(); ) { FileSet fileSet = ( FileSet ) fsIterator.next(); moduleFileSets.add( createFileSet( fileSet, sources, moduleProject, configSource ) ); } AddFileSetsTask task = new AddFileSetsTask( moduleFileSets ); task.setProject( moduleProject ); task.setModuleProject( moduleProject ); task.setLogger( getLogger() ); task.execute( archiver, configSource ); } } /** * Determine whether the deprecated file-set configuration directly within the ModuleSources object is present. */ protected boolean isDeprecatedModuleSourcesConfigPresent( ModuleSources sources ) { boolean result = false; if ( sources.getOutputDirectory() != null ) { result = true; } else if ( ( sources.getIncludes() != null ) && !sources.getIncludes().isEmpty() ) { result = true; } else if ( ( sources.getExcludes() != null ) && !sources.getExcludes().isEmpty() ) { result = true; } if ( result ) { getLogger().warn( "[DEPRECATION] Use of as a file-set is deprecated. " + "Please use the sub-element of instead." ); } else if ( !sources.isUseDefaultExcludes() ) { getLogger().warn( "[DEPRECATION] Use of directoryMode, fileMode, or useDefaultExcludes " + "elements directly within are all deprecated. " + "Please use the sub-element of instead." ); } return result; } protected FileSet createFileSet( FileSet fileSet, ModuleSources sources, MavenProject moduleProject, AssemblerConfigurationSource configSource ) throws AssemblyFormattingException { FileSet fs = new FileSet(); String sourcePath = fileSet.getDirectory(); File moduleBasedir = moduleProject.getBasedir(); if ( sourcePath != null ) { File sourceDir = new File( sourcePath ); if ( !sourceDir.isAbsolute() ) { sourcePath = new File( moduleBasedir, sourcePath ).getAbsolutePath(); } } else { sourcePath = moduleBasedir.getAbsolutePath(); } fs.setDirectory( sourcePath ); fs.setDirectoryMode( fileSet.getDirectoryMode() ); List excludes = new ArrayList(); List originalExcludes = fileSet.getExcludes(); if ( ( originalExcludes != null ) && !originalExcludes.isEmpty() ) { excludes.addAll( originalExcludes ); } if ( sources.isExcludeSubModuleDirectories() ) { List modules = moduleProject.getModules(); for ( Iterator moduleIterator = modules.iterator(); moduleIterator.hasNext(); ) { String moduleSubPath = ( String ) moduleIterator.next(); excludes.add( moduleSubPath + "/**" ); } } fs.setExcludes( excludes ); fs.setFiltered( fileSet.isFiltered() ); fs.setFileMode( fileSet.getFileMode() ); fs.setIncludes( fileSet.getIncludes() ); fs.setLineEnding( fileSet.getLineEnding() ); String destPathPrefix = ""; if ( sources.isIncludeModuleDirectory() ) { destPathPrefix = AssemblyFormatUtils.evaluateFileNameMapping( sources.getOutputDirectoryMapping(), moduleProject.getArtifact(), configSource.getProject(), moduleProject, moduleProject.getArtifact(), moduleProject, configSource ); if ( !destPathPrefix.endsWith( "/" ) ) { destPathPrefix += "/"; } } String destPath = fileSet.getOutputDirectory(); if ( destPath == null ) { destPath = destPathPrefix; } else { destPath = destPathPrefix + destPath; } destPath = AssemblyFormatUtils.getOutputDirectory( destPath, configSource.getProject(), moduleProject, moduleProject, configSource.getFinalName(), configSource ); fs.setOutputDirectory( destPath ); getLogger().debug( "module source directory is: " + sourcePath ); getLogger().debug( "module dest directory is: " + destPath + " (assembly basedir may be prepended)" ); return fs; } public static Set getModuleProjects( ModuleSet moduleSet, AssemblerConfigurationSource configSource, Logger logger ) throws ArchiveCreationException { MavenProject project = configSource.getProject(); Set moduleProjects; try { moduleProjects = ProjectUtils.getProjectModules( project, configSource.getReactorProjects(), moduleSet.isIncludeSubModules(), logger ); } catch ( IOException e ) { throw new ArchiveCreationException( "Error retrieving module-set for project: " + project.getId() + ": " + e.getMessage(), e ); } FilterUtils.filterProjects( moduleProjects, moduleSet.getIncludes(), moduleSet.getExcludes(), true, logger ); return moduleProjects; } } ././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/phase/DependencySetAssemblyPhase.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/phase/Depende0000644000175000017500000000710311123544663033556 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.archive.phase; /* * 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 org.apache.maven.plugin.assembly.AssemblerConfigurationSource; import org.apache.maven.plugin.assembly.AssemblyContext; import org.apache.maven.plugin.assembly.DefaultAssemblyContext; import org.apache.maven.plugin.assembly.InvalidAssemblerConfigurationException; import org.apache.maven.plugin.assembly.archive.ArchiveCreationException; import org.apache.maven.plugin.assembly.archive.task.AddDependencySetsTask; import org.apache.maven.plugin.assembly.artifact.DependencyResolver; import org.apache.maven.plugin.assembly.format.AssemblyFormattingException; import org.apache.maven.plugin.assembly.model.Assembly; import org.apache.maven.project.MavenProjectBuilder; import org.codehaus.plexus.archiver.Archiver; import org.codehaus.plexus.logging.AbstractLogEnabled; import org.codehaus.plexus.logging.Logger; /** * Handles the top-level <dependencySets/> section of the assembly descriptor. * * @version $Id: DependencySetAssemblyPhase.java 728546 2008-12-21 22:56:51Z bentmann $ * @plexus.component role="org.apache.maven.plugin.assembly.archive.phase.AssemblyArchiverPhase" * role-hint="dependency-sets" */ public class DependencySetAssemblyPhase extends AbstractLogEnabled implements AssemblyArchiverPhase { /** * @plexus.requirement */ private MavenProjectBuilder projectBuilder; /** * @plexus.requirement */ private DependencyResolver dependencyResolver; public DependencySetAssemblyPhase() { // used for plexus init } public DependencySetAssemblyPhase( MavenProjectBuilder projectBuilder, DependencyResolver dependencyResolver, Logger logger ) { this.projectBuilder = projectBuilder; this.dependencyResolver = dependencyResolver; enableLogging( logger ); } /** * {@inheritDoc} */ public void execute( Assembly assembly, Archiver archiver, AssemblerConfigurationSource configSource ) throws ArchiveCreationException, AssemblyFormattingException, InvalidAssemblerConfigurationException { execute( assembly, archiver, configSource, new DefaultAssemblyContext() ); } /** * {@inheritDoc} */ public void execute( Assembly assembly, Archiver archiver, AssemblerConfigurationSource configSource, AssemblyContext context ) throws ArchiveCreationException, AssemblyFormattingException, InvalidAssemblerConfigurationException { AddDependencySetsTask task = new AddDependencySetsTask( assembly.getDependencySets(), configSource.getProject(), context.getManagedVersionMap(), projectBuilder, dependencyResolver, getLogger() ); task.execute( archiver, configSource ); } } ././@LongLink0000000000000000000000000000017200000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/phase/RepositoryAssemblyPhase.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/phase/Reposit0000644000175000017500000002023211123544663033635 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.archive.phase; /* * 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 org.apache.maven.artifact.repository.ArtifactRepository; import org.apache.maven.artifact.resolver.ArtifactNotFoundException; import org.apache.maven.artifact.resolver.ArtifactResolutionException; import org.apache.maven.plugin.assembly.AssemblerConfigurationSource; import org.apache.maven.plugin.assembly.AssemblyContext; import org.apache.maven.plugin.assembly.DefaultAssemblyContext; import org.apache.maven.plugin.assembly.InvalidAssemblerConfigurationException; import org.apache.maven.plugin.assembly.archive.ArchiveCreationException; import org.apache.maven.plugin.assembly.archive.phase.wrappers.RepoBuilderConfigSourceWrapper; import org.apache.maven.plugin.assembly.archive.phase.wrappers.RepoInfoWrapper; import org.apache.maven.plugin.assembly.archive.task.AddDirectoryTask; import org.apache.maven.plugin.assembly.artifact.DependencyResolver; import org.apache.maven.plugin.assembly.format.AssemblyFormattingException; import org.apache.maven.plugin.assembly.model.Assembly; import org.apache.maven.plugin.assembly.model.Repository; import org.apache.maven.plugin.assembly.utils.AssemblyFormatUtils; import org.apache.maven.plugin.assembly.utils.TypeConversionUtils; import org.apache.maven.project.MavenProject; import org.apache.maven.project.artifact.InvalidDependencyVersionException; import org.apache.maven.shared.repository.RepositoryAssembler; import org.apache.maven.shared.repository.RepositoryAssemblyException; import org.apache.maven.shared.repository.RepositoryBuilderConfigSource; import org.apache.maven.shared.repository.model.RepositoryInfo; import org.codehaus.plexus.archiver.Archiver; import org.codehaus.plexus.logging.AbstractLogEnabled; import java.io.File; import java.util.Iterator; import java.util.LinkedHashSet; import java.util.List; import java.util.Set; /** * @version $Id: RepositoryAssemblyPhase.java 728546 2008-12-21 22:56:51Z bentmann $ * @plexus.component role="org.apache.maven.plugin.assembly.archive.phase.AssemblyArchiverPhase" * role-hint="repositories" */ public class RepositoryAssemblyPhase extends AbstractLogEnabled implements AssemblyArchiverPhase { /** * @plexus.requirement */ private RepositoryAssembler repositoryAssembler; /** * @plexus.requirement */ private DependencyResolver dependencyResolver; public RepositoryAssemblyPhase() { // used for plexus. } // introduced for testing. public RepositoryAssemblyPhase( RepositoryAssembler repositoryAssembler, DependencyResolver resolver ) { this.repositoryAssembler = repositoryAssembler; dependencyResolver = resolver; } /** * {@inheritDoc} */ public void execute( Assembly assembly, Archiver archiver, AssemblerConfigurationSource configSource ) throws ArchiveCreationException, AssemblyFormattingException, InvalidAssemblerConfigurationException { execute( assembly, archiver, configSource, new DefaultAssemblyContext() ); } /** * {@inheritDoc} */ public void execute( Assembly assembly, Archiver archiver, AssemblerConfigurationSource configSource, AssemblyContext context ) throws ArchiveCreationException, AssemblyFormattingException, InvalidAssemblerConfigurationException { List repositoriesList = assembly.getRepositories(); File tempRoot = configSource.getTemporaryRootDirectory(); for ( Iterator i = repositoriesList.iterator(); i.hasNext(); ) { Repository repository = (Repository) i.next(); resolveDependencies( repository, configSource, context ); String outputDirectory = AssemblyFormatUtils.getOutputDirectory( repository.getOutputDirectory(), configSource.getProject(), null, configSource.getFinalName(), configSource ); File repositoryDirectory = new File( tempRoot, outputDirectory ); if ( !repositoryDirectory.exists() ) { repositoryDirectory.mkdirs(); } try { getLogger().debug( "Assembling repository to: " + repositoryDirectory ); repositoryAssembler.buildRemoteRepository( repositoryDirectory, wrap( repository ), wrap( configSource ) ); getLogger().debug( "Finished assembling repository to: " + repositoryDirectory ); } catch ( RepositoryAssemblyException e ) { throw new ArchiveCreationException( "Failed to assemble repository: " + e.getMessage(), e ); } AddDirectoryTask task = new AddDirectoryTask( repositoryDirectory ); int dirMode = TypeConversionUtils.modeToInt( repository.getDirectoryMode(), getLogger() ); if ( dirMode != -1 ) { task.setDirectoryMode( dirMode ); } int fileMode = TypeConversionUtils.modeToInt( repository.getFileMode(), getLogger() ); if ( fileMode != -1 ) { task.setFileMode( fileMode ); } task.setUseDefaultExcludes( repository.isUseDefaultExcludes() ); task.setOutputDirectory( outputDirectory ); task.execute( archiver, configSource ); } } private void resolveDependencies( Repository repository, AssemblerConfigurationSource configSource, AssemblyContext context ) throws ArchiveCreationException { MavenProject project = configSource.getProject(); ArtifactRepository localRepository = configSource.getLocalRepository(); List additionalRemoteRepositories = configSource.getRemoteRepositories(); Set dependencyArtifacts; try { // NOTE: hard-coding to resolve artifacts transitively, since this is meant to be a self-contained repository... dependencyArtifacts = dependencyResolver.resolveDependencies( project, repository.getScope(), context.getManagedVersionMap(), localRepository, additionalRemoteRepositories, true ); if ( ( dependencyArtifacts != null ) && !dependencyArtifacts.isEmpty() ) { dependencyArtifacts = new LinkedHashSet( dependencyArtifacts ); } } catch ( ArtifactResolutionException e ) { throw new ArchiveCreationException( "Failed to resolve dependencies for project: " + project.getId(), e ); } catch ( ArtifactNotFoundException e ) { throw new ArchiveCreationException( "Failed to resolve dependencies for project: " + project.getId(), e ); } catch ( InvalidDependencyVersionException e ) { throw new ArchiveCreationException( "Failed to resolve dependencies for project: " + project.getId(), e ); } project.setDependencyArtifacts( dependencyArtifacts ); } private RepositoryBuilderConfigSource wrap( AssemblerConfigurationSource configSource ) { return new RepoBuilderConfigSourceWrapper( configSource ); } private RepositoryInfo wrap( Repository repository ) { return new RepoInfoWrapper( repository ); } } ././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/phase/FileSetAssemblyPhase.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/phase/FileSet0000644000175000017500000000531011123544663033543 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.archive.phase; /* * 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 org.apache.maven.plugin.assembly.AssemblerConfigurationSource; import org.apache.maven.plugin.assembly.AssemblyContext; import org.apache.maven.plugin.assembly.DefaultAssemblyContext; import org.apache.maven.plugin.assembly.archive.ArchiveCreationException; import org.apache.maven.plugin.assembly.archive.task.AddFileSetsTask; import org.apache.maven.plugin.assembly.format.AssemblyFormattingException; import org.apache.maven.plugin.assembly.model.Assembly; import org.codehaus.plexus.archiver.Archiver; import org.codehaus.plexus.logging.AbstractLogEnabled; import java.util.List; /** * Handles the <fileSets/> top-level section of the assembly descriptor. * * @version $Id: FileSetAssemblyPhase.java 728546 2008-12-21 22:56:51Z bentmann $ * @plexus.component role="org.apache.maven.plugin.assembly.archive.phase.AssemblyArchiverPhase" * role-hint="file-sets" */ public class FileSetAssemblyPhase extends AbstractLogEnabled implements AssemblyArchiverPhase { /** * {@inheritDoc} */ public void execute( Assembly assembly, Archiver archiver, AssemblerConfigurationSource configSource ) throws ArchiveCreationException, AssemblyFormattingException { execute( assembly, archiver, configSource, new DefaultAssemblyContext() ); } /** * {@inheritDoc} */ public void execute( Assembly assembly, Archiver archiver, AssemblerConfigurationSource configSource, AssemblyContext context ) throws ArchiveCreationException, AssemblyFormattingException { List fileSets = assembly.getFileSets(); if ( ( fileSets != null ) && !fileSets.isEmpty() ) { AddFileSetsTask task = new AddFileSetsTask( fileSets ); task.setLogger( getLogger() ); task.execute( archiver, configSource ); } } } ././@LongLink0000000000000000000000000000016500000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/ArchiveCreationException.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/ArchiveCreati0000644000175000017500000000231511123544663033623 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.archive; /* * 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. */ /** * @version $Id: ArchiveCreationException.java 728546 2008-12-21 22:56:51Z bentmann $ */ public class ArchiveCreationException extends Exception { public ArchiveCreationException( String message, Throwable error ) { super( message, error ); } public ArchiveCreationException( String message ) { super( message ); } } maven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/archiver/0000755000175000017500000000000011361635312032765 5ustar twernertwerner././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/archiver/PrefixedArchivedFileSet.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/archiver/Pref0000644000175000017500000000622411122225415033602 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.archive.archiver; /* * 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 org.codehaus.plexus.archiver.ArchivedFileSet; import org.codehaus.plexus.components.io.fileselectors.FileSelector; import java.io.File; /** * @version $Id: PrefixedArchivedFileSet.java 727431 2008-12-17 16:38:37Z jdcasey $ */ public class PrefixedArchivedFileSet implements ArchivedFileSet { private final String rootPrefix; private final ArchivedFileSet fileSet; private final FileSelector[] selectors; public PrefixedArchivedFileSet( ArchivedFileSet fileSet, String rootPrefix, FileSelector[] selectors ) { this.fileSet = fileSet; this.selectors = selectors; if ( rootPrefix.length() > 0 && ! rootPrefix.endsWith( "/" ) ) { this.rootPrefix = rootPrefix + "/"; } else { this.rootPrefix = rootPrefix; } } public File getArchive() { return fileSet.getArchive(); } public String[] getExcludes() { return fileSet.getExcludes(); } public FileSelector[] getFileSelectors() { FileSelector[] sel = fileSet.getFileSelectors(); if ( ( sel != null ) && ( selectors != null ) ) { FileSelector[] temp = new FileSelector[ sel.length + selectors.length ]; System.arraycopy( sel, 0, temp, 0, sel.length ); System.arraycopy( selectors, 0, temp, sel.length, selectors.length ); sel = temp; } else if ( ( sel == null ) && ( selectors != null ) ) { sel = selectors; } return sel; } public String[] getIncludes() { return fileSet.getIncludes(); } public String getPrefix() { String prefix = fileSet.getPrefix(); if ( prefix.startsWith( "/" ) ) { if ( prefix.length() > 1 ) { prefix = prefix.substring( 1 ); } else { prefix = ""; } } return rootPrefix + prefix; } public boolean isCaseSensitive() { return fileSet.isCaseSensitive(); } public boolean isIncludingEmptyDirectories() { return fileSet.isIncludingEmptyDirectories(); } public boolean isUsingDefaultExcludes() { return fileSet.isUsingDefaultExcludes(); } } ././@LongLink0000000000000000000000000000016500000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/archiver/PrefixedFileSet.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/archiver/Pref0000644000175000017500000000614011122225103033571 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.archive.archiver; /* * 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 org.codehaus.plexus.archiver.FileSet; import org.codehaus.plexus.components.io.fileselectors.FileSelector; import java.io.File; /** * @version $Id: PrefixedFileSet.java 727430 2008-12-17 16:35:15Z jdcasey $ */ public class PrefixedFileSet implements FileSet { private final String rootPrefix; private final FileSet fileSet; private final FileSelector[] selectors; public PrefixedFileSet( FileSet fileSet, String rootPrefix, FileSelector[] selectors ) { this.fileSet = fileSet; this.selectors = selectors; if ( rootPrefix.length() > 0 && ! rootPrefix.endsWith( "/" ) ) { this.rootPrefix = rootPrefix + "/"; } else { this.rootPrefix = rootPrefix; } } public String[] getExcludes() { return fileSet.getExcludes(); } public FileSelector[] getFileSelectors() { FileSelector[] sel = fileSet.getFileSelectors(); if ( ( sel != null ) && ( selectors != null ) ) { FileSelector[] temp = new FileSelector[ sel.length + selectors.length ]; System.arraycopy( sel, 0, temp, 0, sel.length ); System.arraycopy( selectors, 0, temp, sel.length, selectors.length ); sel = temp; } else if ( ( sel == null ) && ( selectors != null ) ) { sel = selectors; } return sel; } public String[] getIncludes() { return fileSet.getIncludes(); } public String getPrefix() { String prefix = fileSet.getPrefix(); if ( prefix.startsWith( "/" ) ) { if ( prefix.length() > 1 ) { prefix = prefix.substring( 1 ); } else { prefix = ""; } } return rootPrefix + prefix; } public boolean isCaseSensitive() { return fileSet.isCaseSensitive(); } public boolean isIncludingEmptyDirectories() { return fileSet.isIncludingEmptyDirectories(); } public boolean isUsingDefaultExcludes() { return fileSet.isUsingDefaultExcludes(); } public File getDirectory() { return fileSet.getDirectory(); } } ././@LongLink0000000000000000000000000000017300000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/archiver/AssemblyProxyArchiver.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/archiver/Asse0000644000175000017500000005726311212274043033613 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.archive.archiver; /* * 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 org.apache.maven.plugin.assembly.filter.ContainerDescriptorHandler; import org.codehaus.plexus.archiver.ArchiveFinalizer; import org.codehaus.plexus.archiver.ArchivedFileSet; import org.codehaus.plexus.archiver.Archiver; import org.codehaus.plexus.archiver.ArchiverException; import org.codehaus.plexus.archiver.FileSet; import org.codehaus.plexus.archiver.FinalizerEnabled; import org.codehaus.plexus.archiver.ResourceIterator; import org.codehaus.plexus.archiver.util.DefaultArchivedFileSet; import org.codehaus.plexus.archiver.util.DefaultFileSet; import org.codehaus.plexus.components.io.fileselectors.FileInfo; import org.codehaus.plexus.components.io.fileselectors.FileSelector; import org.codehaus.plexus.components.io.resources.PlexusIoResource; import org.codehaus.plexus.components.io.resources.PlexusIoResourceCollection; import org.codehaus.plexus.logging.Logger; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; /** * Delegating archiver implementation that supports: *
    *
  • dry-running (where the delegate archiver is never actually called)
  • *
  • prefixing (where all paths have a set global prefix prepended before addition)
  • *
  • duplication checks on archive additions (for archive-file path + prefix)
  • *
* * @author jdcasey * @version $Id: AssemblyProxyArchiver.java 782119 2009-06-05 19:55:15Z jdcasey $ */ public class AssemblyProxyArchiver implements Archiver { private Archiver delegate; private String rootPrefix; private FileSelector[] selectors; private ThreadLocal inPublicApi = new ThreadLocal(); private final Logger logger; private final boolean dryRun; private Set seenPaths = new HashSet(); public AssemblyProxyArchiver( String rootPrefix, Archiver delegate, List containerDescriptorHandlers, List extraSelectors, List extraFinalizers, Logger logger ) { this( rootPrefix, delegate, containerDescriptorHandlers, extraSelectors, extraFinalizers, logger, false ); } public AssemblyProxyArchiver( String rootPrefix, Archiver delegate, List containerDescriptorHandlers, List extraSelectors, List extraFinalizers, Logger logger, boolean dryRun ) { this.rootPrefix = rootPrefix; this.delegate = delegate; this.logger = logger; this.dryRun = dryRun; if ( !"".equals( rootPrefix ) && !rootPrefix.endsWith( "/" ) ) { this.rootPrefix += "/"; } List selectors = new ArrayList(); boolean isFinalizerEnabled = ( delegate instanceof FinalizerEnabled ); if ( containerDescriptorHandlers != null ) { for ( Iterator it = containerDescriptorHandlers.iterator(); it.hasNext(); ) { ContainerDescriptorHandler handler = (ContainerDescriptorHandler) it.next(); selectors.add( handler ); if ( isFinalizerEnabled ) { ( (FinalizerEnabled) delegate ).addArchiveFinalizer( handler ); } } } if ( extraSelectors != null ) { for ( Iterator it = extraSelectors.iterator(); it.hasNext(); ) { FileSelector selector = (FileSelector) it.next(); selectors.add( selector ); } } if ( ( extraFinalizers != null ) && isFinalizerEnabled ) { for ( Iterator it = extraFinalizers.iterator(); it.hasNext(); ) { ( (FinalizerEnabled) delegate ).addArchiveFinalizer( (ArchiveFinalizer) it.next() ); } } if ( !selectors.isEmpty() ) { this.selectors = (FileSelector[]) selectors.toArray( new FileSelector[0] ); } } public void addArchivedFileSet( File archiveFile, String prefix, String[] includes, String[] excludes ) throws ArchiverException { String archiveKey = getArchiveKey( archiveFile, prefix ); if ( seenPaths.contains( archiveKey ) ) { warn( "Archive: " + archiveFile + " has already been added. Skipping." ); return; } inPublicApi.set( Boolean.TRUE ); try { DefaultArchivedFileSet fs = new DefaultArchivedFileSet(); fs.setArchive( archiveFile ); fs.setIncludes( includes ); fs.setExcludes( excludes ); fs.setPrefix( rootPrefix + prefix ); fs.setFileSelectors( selectors ); debug( "Adding archived file-set in: " + archiveFile + " to archive location: " + fs.getPrefix() ); if ( dryRun ) { debug( "DRY RUN: Skipping delegated call to: " + getMethodName() ); } else { delegate.addArchivedFileSet( fs ); seenPaths.add( archiveKey ); } } finally { inPublicApi.set( null ); } } private String getArchiveKey( File archiveFile, String prefix ) { return archiveFile.getAbsolutePath() + ":" + prefix; } private void debug( String message ) { if ( ( logger != null ) && logger.isDebugEnabled() ) { logger.debug( message ); } } private void warn( String message ) { if ( ( logger != null ) && logger.isWarnEnabled() ) { logger.warn( message ); } } public void addArchivedFileSet( File archiveFile, String prefix ) throws ArchiverException { String archiveKey = getArchiveKey( archiveFile, prefix ); if ( seenPaths.contains( archiveKey ) ) { warn( "Archive: " + archiveFile + " has already been added. Skipping." ); return; } inPublicApi.set( Boolean.TRUE ); try { DefaultArchivedFileSet fs = new DefaultArchivedFileSet(); fs.setArchive( archiveFile ); fs.setPrefix( rootPrefix + prefix ); fs.setFileSelectors( selectors ); debug( "Adding archived file-set in: " + archiveFile + " to archive location: " + fs.getPrefix() ); if ( dryRun ) { debug( "DRY RUN: Skipping delegated call to: " + getMethodName() ); } else { delegate.addArchivedFileSet( fs ); seenPaths.add( archiveKey ); } } finally { inPublicApi.set( null ); } } public void addArchivedFileSet( File archiveFile, String[] includes, String[] excludes ) throws ArchiverException { String archiveKey = getArchiveKey( archiveFile, "" ); if ( seenPaths.contains( archiveKey ) ) { warn( "Archive: " + archiveFile + " has already been added. Skipping." ); return; } inPublicApi.set( Boolean.TRUE ); try { DefaultArchivedFileSet fs = new DefaultArchivedFileSet(); fs.setArchive( archiveFile ); fs.setIncludes( includes ); fs.setExcludes( excludes ); fs.setPrefix( rootPrefix ); fs.setFileSelectors( selectors ); debug( "Adding archived file-set in: " + archiveFile + " to archive location: " + fs.getPrefix() ); if ( dryRun ) { debug( "DRY RUN: Skipping delegated call to: " + getMethodName() ); } else { delegate.addArchivedFileSet( fs ); seenPaths.add( archiveKey ); } } finally { inPublicApi.set( null ); } } public void addArchivedFileSet( File archiveFile ) throws ArchiverException { String archiveKey = getArchiveKey( archiveFile, "" ); if ( seenPaths.contains( archiveKey ) ) { warn( "Archive: " + archiveFile + " has already been added. Skipping." ); return; } inPublicApi.set( Boolean.TRUE ); try { DefaultArchivedFileSet fs = new DefaultArchivedFileSet(); fs.setArchive( archiveFile ); fs.setPrefix( rootPrefix ); fs.setFileSelectors( selectors ); debug( "Adding archived file-set in: " + archiveFile + " to archive location: " + fs.getPrefix() ); if ( dryRun ) { debug( "DRY RUN: Skipping delegated call to: " + getMethodName() ); } else { delegate.addArchivedFileSet( fs ); seenPaths.add( archiveKey ); } } finally { inPublicApi.set( null ); } } public void addDirectory( File directory, String prefix, String[] includes, String[] excludes ) throws ArchiverException { inPublicApi.set( Boolean.TRUE ); try { DefaultFileSet fs = new DefaultFileSet(); fs.setDirectory( directory ); fs.setIncludes( includes ); fs.setExcludes( excludes ); fs.setPrefix( rootPrefix + prefix ); fs.setFileSelectors( selectors ); debug( "Adding directory file-set in: " + directory + " to archive location: " + fs.getPrefix() ); if ( dryRun ) { debug( "DRY RUN: Skipping delegated call to: " + getMethodName() ); } else { delegate.addFileSet( fs ); } } finally { inPublicApi.set( null ); } } public void addDirectory( File directory, String prefix ) throws ArchiverException { inPublicApi.set( Boolean.TRUE ); try { DefaultFileSet fs = new DefaultFileSet(); fs.setDirectory( directory ); fs.setPrefix( rootPrefix + prefix ); fs.setFileSelectors( selectors ); debug( "Adding directory file-set in: " + directory + " to archive location: " + fs.getPrefix() ); if ( dryRun ) { debug( "DRY RUN: Skipping delegated call to: " + getMethodName() ); } else { delegate.addFileSet( fs ); } } finally { inPublicApi.set( null ); } } public void addDirectory( File directory, String[] includes, String[] excludes ) throws ArchiverException { inPublicApi.set( Boolean.TRUE ); try { DefaultFileSet fs = new DefaultFileSet(); fs.setDirectory( directory ); fs.setIncludes( includes ); fs.setExcludes( excludes ); fs.setPrefix( rootPrefix ); fs.setFileSelectors( selectors ); debug( "Adding directory file-set in: " + directory + " to archive location: " + fs.getPrefix() ); if ( dryRun ) { debug( "DRY RUN: Skipping delegated call to: " + getMethodName() ); } else { delegate.addFileSet( fs ); } } finally { inPublicApi.set( null ); } } public void addDirectory( File directory ) throws ArchiverException { inPublicApi.set( Boolean.TRUE ); try { DefaultFileSet fs = new DefaultFileSet(); fs.setDirectory( directory ); fs.setPrefix( rootPrefix ); fs.setFileSelectors( selectors ); debug( "Adding directory file-set in: " + directory + " to archive location: " + fs.getPrefix() ); if ( dryRun ) { debug( "DRY RUN: Skipping delegated call to: " + getMethodName() ); } else { delegate.addFileSet( fs ); } } finally { inPublicApi.set( null ); } } public void addFile( File inputFile, String destFileName, int permissions ) throws ArchiverException { if ( acceptFile( inputFile ) ) { inPublicApi.set( Boolean.TRUE ); try { debug( "Adding file: " + inputFile + " to archive location: " + rootPrefix + destFileName ); if ( dryRun ) { debug( "DRY RUN: Skipping delegated call to: " + getMethodName() ); } else { delegate.addFile( inputFile, rootPrefix + destFileName, permissions ); } } finally { inPublicApi.set( null ); } } } public void addFile( File inputFile, String destFileName ) throws ArchiverException { if ( acceptFile( inputFile ) ) { inPublicApi.set( Boolean.TRUE ); try { debug( "Adding file: " + inputFile + " to archive location: " + rootPrefix + destFileName ); if ( dryRun ) { debug( "DRY RUN: Skipping delegated call to: " + getMethodName() ); } else { delegate.addFile( inputFile, rootPrefix + destFileName ); } } finally { inPublicApi.set( null ); } } } public void createArchive() throws ArchiverException, IOException { inPublicApi.set( Boolean.TRUE ); try { if ( dryRun ) { debug( "DRY RUN: Skipping delegated call to: " + getMethodName() ); } else { delegate.createArchive(); } } finally { inPublicApi.set( null ); } } public int getDefaultDirectoryMode() { inPublicApi.set( Boolean.TRUE ); try { return delegate.getDefaultDirectoryMode(); } finally { inPublicApi.set( null ); } } public int getDefaultFileMode() { inPublicApi.set( Boolean.TRUE ); try { return delegate.getDefaultFileMode(); } finally { inPublicApi.set( null ); } } public File getDestFile() { inPublicApi.set( Boolean.TRUE ); try { return delegate.getDestFile(); } finally { inPublicApi.set( null ); } } public Map getFiles() { inPublicApi.set( Boolean.TRUE ); try { return delegate.getFiles(); } finally { inPublicApi.set( null ); } } public boolean getIncludeEmptyDirs() { inPublicApi.set( Boolean.TRUE ); try { return delegate.getIncludeEmptyDirs(); } finally { inPublicApi.set( null ); } } public boolean isForced() { inPublicApi.set( Boolean.TRUE ); try { return delegate.isForced(); } finally { inPublicApi.set( null ); } } public boolean isSupportingForced() { inPublicApi.set( Boolean.TRUE ); try { return delegate.isSupportingForced(); } finally { inPublicApi.set( null ); } } public void setDefaultDirectoryMode( int mode ) { inPublicApi.set( Boolean.TRUE ); try { delegate.setDefaultDirectoryMode( mode ); } finally { inPublicApi.set( null ); } } public void setDefaultFileMode( int mode ) { inPublicApi.set( Boolean.TRUE ); try { delegate.setDefaultFileMode( mode ); } finally { inPublicApi.set( null ); } } public void setDestFile( File destFile ) { inPublicApi.set( Boolean.TRUE ); try { delegate.setDestFile( destFile ); } finally { inPublicApi.set( null ); } } public void setForced( boolean forced ) { inPublicApi.set( Boolean.TRUE ); try { delegate.setForced( forced ); } finally { inPublicApi.set( null ); } } public void setIncludeEmptyDirs( boolean includeEmptyDirs ) { inPublicApi.set( Boolean.TRUE ); try { delegate.setIncludeEmptyDirs( includeEmptyDirs ); } finally { inPublicApi.set( null ); } } public void setDotFileDirectory( File dotFileDirectory ) { throw new UnsupportedOperationException( "Undocumented feature of plexus-archiver; this is not yet supported." ); } public void addArchivedFileSet( ArchivedFileSet fileSet ) throws ArchiverException { String archiveKey = getArchiveKey( fileSet.getArchive(), "" ); if ( seenPaths.contains( archiveKey ) ) { warn( "Archive: " + fileSet.getArchive() + " has already been added. Skipping." ); return; } inPublicApi.set( Boolean.TRUE ); try { PrefixedArchivedFileSet fs = new PrefixedArchivedFileSet( fileSet, rootPrefix, selectors ); debug( "Adding archived file-set in: " + fileSet.getArchive() + " to archive location: " + fs.getPrefix() ); if ( dryRun ) { debug( "DRY RUN: Skipping delegated call to: " + getMethodName() ); } else { delegate.addArchivedFileSet( fs ); seenPaths.add( archiveKey ); } } finally { inPublicApi.set( null ); } } public void addFileSet( FileSet fileSet ) throws ArchiverException { inPublicApi.set( Boolean.TRUE ); try { PrefixedFileSet fs = new PrefixedFileSet( fileSet, rootPrefix, selectors ); debug( "Adding file-set in: " + fileSet.getDirectory() + " to archive location: " + fs.getPrefix() ); if ( dryRun ) { debug( "DRY RUN: Skipping delegated call to: " + getMethodName() ); } else { delegate.addFileSet( fs ); } } finally { inPublicApi.set( null ); } } private String getMethodName() { NullPointerException npe = new NullPointerException(); StackTraceElement[] trace = npe.getStackTrace(); StackTraceElement methodElement = trace[1]; return methodElement.getMethodName() + " (archiver line: " + methodElement.getLineNumber() + ")"; } private boolean acceptFile( File inputFile ) throws ArchiverException { if ( Boolean.TRUE != inPublicApi.get() ) { if ( selectors != null ) { FileInfo fileInfo = new DefaultFileInfo( inputFile ); for ( int i = 0; i < selectors.length; i++ ) { FileSelector selector = selectors[i]; try { if ( !selector.isSelected( fileInfo ) ) { return false; } } catch ( IOException e ) { throw new ArchiverException( "Error processing file: " + inputFile + " using selector: " + selectors[i], e ); } } } } return true; } private static final class DefaultFileInfo implements FileInfo { private final File inputFile; DefaultFileInfo( File inputFile ) { this.inputFile = inputFile; } public InputStream getContents() throws IOException { return new FileInputStream( inputFile ); } public String getName() { return inputFile.getName(); } public boolean isDirectory() { return inputFile.isDirectory(); } public boolean isFile() { return inputFile.isFile(); } } public void addResource( PlexusIoResource resource, String destFileName, int permissions ) throws ArchiverException { inPublicApi.set( Boolean.TRUE ); try { delegate.addResource( resource, destFileName, permissions ); } finally { inPublicApi.set( null ); } } public void addResources( PlexusIoResourceCollection resources ) throws ArchiverException { inPublicApi.set( Boolean.TRUE ); try { delegate.addResources( resources ); } finally { inPublicApi.set( null ); } } public ResourceIterator getResources() throws ArchiverException { return delegate.getResources(); } public String getDuplicateBehavior() { return delegate.getDuplicateBehavior(); } public void setDuplicateBehavior( String duplicate ) { inPublicApi.set( Boolean.TRUE ); try { delegate.setDuplicateBehavior( duplicate ); } finally { inPublicApi.set( null ); } } public int getDirectoryMode() { return delegate.getDirectoryMode(); } public int getFileMode() { return delegate.getFileMode(); } public int getOverrideDirectoryMode() { return delegate.getOverrideDirectoryMode(); } public int getOverrideFileMode() { return delegate.getOverrideFileMode(); } public void setDirectoryMode( int mode ) { inPublicApi.set( Boolean.TRUE ); try { delegate.setDirectoryMode( mode ); } finally { inPublicApi.set( null ); } } public void setFileMode( int mode ) { inPublicApi.set( Boolean.TRUE ); try { delegate.setFileMode( mode ); } finally { inPublicApi.set( null ); } } } ././@LongLink0000000000000000000000000000016300000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/archiver/SarUnArchiver.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/archiver/SarU0000644000175000017500000000226011123544663033566 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.archive.archiver; /* * 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 org.codehaus.plexus.archiver.zip.ZipUnArchiver; /** * @author jdcasey * @version $Id: SarUnArchiver.java 728546 2008-12-21 22:56:51Z bentmann $ * @todo delete this class once the plexus maven plugin can merge a generated components.xml with an existing one. */ public class SarUnArchiver extends ZipUnArchiver { } maven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/task/0000755000175000017500000000000011361635312032124 5ustar twernertwerner././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/task/AddDependencySetsTask.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/task/AddDepen0000644000175000017500000003534011123544663033524 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.archive.task; /* * 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 org.apache.maven.artifact.Artifact; import org.apache.maven.artifact.repository.ArtifactRepository; import org.apache.maven.artifact.resolver.ArtifactNotFoundException; import org.apache.maven.artifact.resolver.ArtifactResolutionException; import org.apache.maven.model.Model; import org.apache.maven.plugin.assembly.AssemblerConfigurationSource; import org.apache.maven.plugin.assembly.InvalidAssemblerConfigurationException; import org.apache.maven.plugin.assembly.archive.ArchiveCreationException; import org.apache.maven.plugin.assembly.artifact.DependencyResolver; import org.apache.maven.plugin.assembly.format.AssemblyFormattingException; import org.apache.maven.plugin.assembly.model.DependencySet; import org.apache.maven.plugin.assembly.model.UnpackOptions; import org.apache.maven.plugin.assembly.utils.AssemblyFormatUtils; import org.apache.maven.plugin.assembly.utils.FilterUtils; import org.apache.maven.plugin.assembly.utils.TypeConversionUtils; import org.apache.maven.project.MavenProject; import org.apache.maven.project.MavenProjectBuilder; import org.apache.maven.project.ProjectBuildingException; import org.apache.maven.project.artifact.InvalidDependencyVersionException; import org.codehaus.plexus.archiver.Archiver; import org.codehaus.plexus.archiver.ArchiverException; import org.codehaus.plexus.logging.Logger; import java.io.File; import java.util.ArrayList; import java.util.Collections; import java.util.Iterator; import java.util.LinkedHashSet; import java.util.List; import java.util.Map; import java.util.Set; /** * @version $Id: AddDependencySetsTask.java 728546 2008-12-21 22:56:51Z bentmann $ */ public class AddDependencySetsTask implements ArchiverTask { private static final List NON_ARCHIVE_DEPENDENCY_TYPES; static { List nonArch = new ArrayList(); nonArch.add( "pom" ); NON_ARCHIVE_DEPENDENCY_TYPES = Collections.unmodifiableList( nonArch ); } private final List dependencySets; private final Logger logger; private final MavenProject project; private MavenProject moduleProject; private final MavenProjectBuilder projectBuilder; private String defaultOutputDirectory; private String defaultOutputFileNameMapping; private final DependencyResolver dependencyResolver; private final Map managedVersions; private Artifact moduleArtifact; public AddDependencySetsTask( List dependencySets, MavenProject project, Map managedVersions, MavenProjectBuilder projectBuilder, DependencyResolver dependencyResolver, Logger logger ) { this.dependencySets = dependencySets; this.project = project; this.managedVersions = managedVersions; this.projectBuilder = projectBuilder; this.dependencyResolver = dependencyResolver; this.logger = logger; } public void execute( Archiver archiver, AssemblerConfigurationSource configSource ) throws ArchiveCreationException, AssemblyFormattingException, InvalidAssemblerConfigurationException { if ( ( dependencySets == null ) || dependencySets.isEmpty() ) { logger.debug( "No dependency sets specified." ); return; } List deps = project.getDependencies(); if ( ( deps == null ) || deps.isEmpty() ) { logger.debug( "Project " + project.getId() + " has no dependencies. Skipping dependency set addition." ); } for ( Iterator i = dependencySets.iterator(); i.hasNext(); ) { DependencySet dependencySet = (DependencySet) i.next(); addDependencySet( dependencySet, archiver, configSource ); } } protected void addDependencySet( DependencySet dependencySet, Archiver archiver, AssemblerConfigurationSource configSource ) throws AssemblyFormattingException, ArchiveCreationException, InvalidAssemblerConfigurationException { logger.debug( "Processing DependencySet (output=" + dependencySet.getOutputDirectory() + ")" ); if ( !dependencySet.isUseTransitiveDependencies() && dependencySet.isUseTransitiveFiltering() ) { logger.warn( "DependencySet has nonsensical configuration: useTransitiveDependencies == false " + "AND useTransitiveFiltering == true. Transitive filtering flag will be ignored." ); } Set dependencyArtifacts = resolveDependencyArtifacts( dependencySet, configSource ); logger.debug( "Adding " + dependencyArtifacts.size() + " dependency artifacts." ); for ( Iterator j = dependencyArtifacts.iterator(); j.hasNext(); ) { Artifact depArtifact = (Artifact) j.next(); MavenProject depProject; try { depProject = projectBuilder.buildFromRepository( depArtifact, configSource.getRemoteRepositories(), configSource.getLocalRepository() ); } catch ( ProjectBuildingException e ) { logger.debug( "Error retrieving POM of module-dependency: " + depArtifact.getId() + "; Reason: " + e.getMessage() + "\n\nBuilding stub project instance." ); depProject = buildProjectStub( depArtifact ); } if ( NON_ARCHIVE_DEPENDENCY_TYPES.contains( depArtifact.getType() ) ) { addNonArchiveDependency( depArtifact, depProject, dependencySet, archiver, configSource ); } else { AddArtifactTask task = new AddArtifactTask( depArtifact, logger ); task.setProject( depProject ); task.setModuleProject( moduleProject ); task.setModuleArtifact( moduleArtifact ); task.setOutputDirectory( dependencySet.getOutputDirectory(), defaultOutputDirectory ); task.setFileNameMapping( dependencySet.getOutputFileNameMapping(), defaultOutputFileNameMapping ); int dirMode = TypeConversionUtils.modeToInt( dependencySet.getDirectoryMode(), logger ); if ( dirMode != -1 ) { task.setDirectoryMode( dirMode ); } int fileMode = TypeConversionUtils.modeToInt( dependencySet.getFileMode(), logger ); if ( fileMode != -1 ) { task.setFileMode( fileMode ); } task.setUnpack( dependencySet.isUnpack() ); UnpackOptions opts = dependencySet.getUnpackOptions(); if ( dependencySet.isUnpack() && ( opts != null ) ) { task.setIncludes( opts.getIncludes() ); task.setExcludes( opts.getExcludes() ); } task.execute( archiver, configSource ); } } } private MavenProject buildProjectStub( Artifact depArtifact ) { Model model = new Model(); model.setGroupId( depArtifact.getGroupId() ); model.setArtifactId( depArtifact.getArtifactId() ); model.setVersion( depArtifact.getBaseVersion() ); model.setPackaging( depArtifact.getType() ); model.setDescription( "Stub for " + depArtifact.getId() ); return new MavenProject( model ); } protected Set resolveDependencyArtifacts( DependencySet dependencySet, AssemblerConfigurationSource configSource ) throws ArchiveCreationException, InvalidAssemblerConfigurationException { ArtifactRepository localRepository = configSource.getLocalRepository(); List additionalRemoteRepositories = configSource.getRemoteRepositories(); Set dependencyArtifacts; try { dependencyArtifacts = dependencyResolver.resolveDependencies( project, dependencySet.getScope(), managedVersions, localRepository, additionalRemoteRepositories, dependencySet.isUseTransitiveDependencies() ); if ( ( dependencyArtifacts != null ) && !dependencyArtifacts.isEmpty() ) { dependencyArtifacts = new LinkedHashSet( dependencyArtifacts ); } } catch ( ArtifactResolutionException e ) { throw new ArchiveCreationException( "Failed to resolve dependencies for project: " + project.getId(), e ); } catch ( ArtifactNotFoundException e ) { throw new ArchiveCreationException( "Failed to resolve dependencies for project: " + project.getId(), e ); } catch ( InvalidDependencyVersionException e ) { throw new ArchiveCreationException( "Failed to resolve dependencies for project: " + project.getId(), e ); } if ( dependencySet.isUseProjectArtifact() ) { Artifact projectArtifact = project.getArtifact(); if ( ( projectArtifact != null ) && ( projectArtifact.getFile() != null ) ) { dependencyArtifacts.add( projectArtifact ); } else { logger.warn( "Cannot include project artifact: " + projectArtifact + "; it doesn't have an associated file or directory." ); } } if ( dependencySet.isUseProjectAttachments() ) { List attachments = project.getAttachedArtifacts(); if ( attachments != null ) { for ( Iterator attachmentIt = attachments.iterator(); attachmentIt.hasNext(); ) { Artifact attachment = (Artifact) attachmentIt.next(); if ( attachment.getFile() != null ) { dependencyArtifacts.add( attachment ); } else { logger.warn( "Cannot include attached artifact: " + project.getId() + " for project: " + project.getId() + "; it doesn't have an associated file or directory." ); } } } } if ( dependencySet.isUseTransitiveFiltering() ) { logger.debug( "Filtering dependency artifacts USING transitive dependency path information." ); } else { logger.debug( "Filtering dependency artifacts WITHOUT transitive dependency path information." ); } FilterUtils.filterArtifacts( dependencyArtifacts, dependencySet.getIncludes(), dependencySet.getExcludes(), dependencySet.isUseStrictFiltering(), dependencySet.isUseTransitiveFiltering(), Collections.EMPTY_LIST, logger ); return dependencyArtifacts; } protected void addNonArchiveDependency( Artifact depArtifact, MavenProject depProject, DependencySet dependencySet, Archiver archiver, AssemblerConfigurationSource configSource ) throws AssemblyFormattingException, ArchiveCreationException { File source = depArtifact.getFile(); String outputDirectory = dependencySet.getOutputDirectory(); outputDirectory = AssemblyFormatUtils.getOutputDirectory( outputDirectory, configSource.getProject(), moduleProject, depProject, depProject.getBuild().getFinalName(), configSource ); String destName = AssemblyFormatUtils.evaluateFileNameMapping( dependencySet.getOutputFileNameMapping(), depArtifact, configSource.getProject(), moduleProject, moduleArtifact, depProject, configSource ); String target; // omit the last char if ends with / or \\ if ( outputDirectory.endsWith( "/" ) || outputDirectory.endsWith( "\\" ) ) { target = outputDirectory + destName; } else { target = outputDirectory + "/" + destName; } try { int mode = TypeConversionUtils.modeToInt( dependencySet.getFileMode(), logger ); if ( mode > -1 ) { archiver.addFile( source, target, mode ); } else { archiver.addFile( source, target ); } } catch ( ArchiverException e ) { throw new ArchiveCreationException( "Error adding file to archive: " + e.getMessage(), e ); } } public List getDependencySets() { return dependencySets; } public Logger getLogger() { return logger; } public String getDefaultOutputDirectory() { return defaultOutputDirectory; } public void setDefaultOutputDirectory( String defaultOutputDirectory ) { this.defaultOutputDirectory = defaultOutputDirectory; } public String getDefaultOutputFileNameMapping() { return defaultOutputFileNameMapping; } public void setDefaultOutputFileNameMapping( String defaultOutputFileNameMapping ) { this.defaultOutputFileNameMapping = defaultOutputFileNameMapping; } public MavenProject getModuleProject() { return moduleProject; } public void setModuleProject( MavenProject moduleProject ) { this.moduleProject = moduleProject; } public void setModuleArtifact( Artifact moduleArtifact ) { this.moduleArtifact = moduleArtifact; } public Artifact getModuleArtifact() { return moduleArtifact; } } ././@LongLink0000000000000000000000000000015600000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/task/ArchiverTask.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/task/Archiver0000644000175000017500000000276111123544663033624 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.archive.task; /* * 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 org.apache.maven.plugin.assembly.AssemblerConfigurationSource; import org.apache.maven.plugin.assembly.InvalidAssemblerConfigurationException; import org.apache.maven.plugin.assembly.archive.ArchiveCreationException; import org.apache.maven.plugin.assembly.format.AssemblyFormattingException; import org.codehaus.plexus.archiver.Archiver; /** * @version $Id: ArchiverTask.java 728546 2008-12-21 22:56:51Z bentmann $ */ public interface ArchiverTask { void execute( Archiver archiver, AssemblerConfigurationSource configSource ) throws ArchiveCreationException, AssemblyFormattingException, InvalidAssemblerConfigurationException; } ././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/task/AddArtifactTask.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/task/AddArtif0000644000175000017500000002310511212274043033521 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.archive.task; /* * 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 org.apache.maven.artifact.Artifact; import org.apache.maven.plugin.assembly.AssemblerConfigurationSource; import org.apache.maven.plugin.assembly.archive.ArchiveCreationException; import org.apache.maven.plugin.assembly.format.AssemblyFormattingException; import org.apache.maven.plugin.assembly.utils.AssemblyFormatUtils; import org.apache.maven.plugin.assembly.utils.TypeConversionUtils; import org.apache.maven.project.MavenProject; import org.codehaus.plexus.archiver.Archiver; import org.codehaus.plexus.archiver.ArchiverException; import org.codehaus.plexus.logging.Logger; import org.codehaus.plexus.util.FileUtils; import org.codehaus.plexus.util.StringUtils; import java.io.File; import java.io.IOException; import java.util.List; /** * @version $Id: AddArtifactTask.java 782119 2009-06-05 19:55:15Z jdcasey $ */ public class AddArtifactTask implements ArchiverTask { public static final String[] DEFAULT_INCLUDES_ARRAY = { "**/*" }; private int directoryMode = -1; private int fileMode = -1; private boolean unpack = false; private List includes; private List excludes; private final Artifact artifact; private MavenProject project; private MavenProject moduleProject; private Artifact moduleArtifact; private String outputDirectory; private String outputFileNameMapping; private final Logger logger; public AddArtifactTask( Artifact artifact, Logger logger ) { this.artifact = artifact; this.logger = logger; } public void execute( Archiver archiver, AssemblerConfigurationSource configSource ) throws ArchiveCreationException, AssemblyFormattingException { // MASSEMBLY-282: We should support adding a project's standard output file as part of an assembly that replaces it. if ( ( ( artifact.getFile() != null ) && ( archiver.getDestFile() != null ) ) && artifact.getFile().equals( archiver.getDestFile() ) ) { File tempRoot = configSource.getTemporaryRootDirectory(); File tempArtifactFile = new File( tempRoot, artifact.getFile().getName() ); logger.warn( "Artifact: " + artifact.getId() + " references the same file as the assembly destination file. Moving it to a temporary location for inclusion." ); try { FileUtils.copyFile( artifact.getFile(), tempArtifactFile ); } catch ( IOException e ) { throw new ArchiveCreationException( "Error moving artifact file: '" + artifact.getFile() + "' to temporary location: " + tempArtifactFile + ". Reason: " + e.getMessage(), e ); } artifact.setFile( tempArtifactFile ); } String destDirectory = outputDirectory; destDirectory = AssemblyFormatUtils.getOutputDirectory( destDirectory, configSource.getProject(), moduleProject, project, configSource.getFinalName(), configSource ); if ( unpack ) { String outputLocation = destDirectory; if ( ( outputLocation.length() > 0 ) && !outputLocation.endsWith( "/" ) ) { outputLocation += "/"; } String[] includesArray = TypeConversionUtils.toStringArray( includes ); if ( includesArray == null ) { includesArray = DEFAULT_INCLUDES_ARRAY; } String[] excludesArray = TypeConversionUtils.toStringArray( excludes ); int oldDirMode = archiver.getOverrideDirectoryMode(); int oldFileMode = archiver.getOverrideFileMode(); logger.debug( "Unpacking artifact: " + artifact.getId() + " to assembly location: " + outputLocation + "." ); boolean fileModeSet = false; boolean dirModeSet = false; try { if ( fileMode != -1 ) { archiver.setFileMode( fileMode ); fileModeSet = true; } if ( directoryMode != -1 ) { archiver.setDirectoryMode( directoryMode ); dirModeSet = true; } File artifactFile = artifact.getFile(); if ( artifactFile == null ) { logger.warn( "Skipping artifact: " + artifact.getId() + "; it does not have an associated file or directory." ); } else if ( artifactFile.isDirectory() ) { logger.debug( "Adding artifact directory contents for: " + artifact + " to: " + outputLocation ); archiver.addDirectory( artifactFile, outputLocation, includesArray, excludesArray ); } else { logger.debug( "Unpacking artifact contents for: " + artifact + " to: " + outputLocation ); logger.debug( "includes:\n" + StringUtils.join( includesArray, "\n" ) + "\n" ); logger.debug( "excludes:\n" + (excludesArray == null ? "none" : StringUtils.join( excludesArray, "\n" ) ) + "\n" ); archiver.addArchivedFileSet( artifactFile, outputLocation, includesArray, excludesArray ); } } catch ( ArchiverException e ) { throw new ArchiveCreationException( "Error adding file-set for '" + artifact.getId() + "' to archive: " + e.getMessage(), e ); } finally { if ( dirModeSet ) { archiver.setDirectoryMode( oldDirMode ); } if ( fileModeSet ) { archiver.setFileMode( oldFileMode ); } } } else { String fileNameMapping = AssemblyFormatUtils.evaluateFileNameMapping( outputFileNameMapping, artifact, configSource.getProject(), moduleProject, moduleArtifact, project, configSource ); String outputLocation = destDirectory + fileNameMapping; try { File artifactFile = artifact.getFile(); logger.debug( "Adding artifact: " + artifact.getId() + " with file: " + artifactFile + " to assembly location: " + outputLocation + "." ); if ( fileMode != -1 ) { archiver.addFile( artifactFile, outputLocation, fileMode ); } else { archiver.addFile( artifactFile, outputLocation ); } } catch ( ArchiverException e ) { throw new ArchiveCreationException( "Error adding file '" + artifact.getId() + "' to archive: " + e.getMessage(), e ); } } } public void setDirectoryMode( int directoryMode ) { this.directoryMode = directoryMode; } public void setFileMode( int fileMode ) { this.fileMode = fileMode; } public void setExcludes( List excludes ) { this.excludes = excludes; } public void setIncludes( List includes ) { this.includes = includes; } public void setUnpack( boolean unpack ) { this.unpack = unpack; } public void setProject( MavenProject project ) { this.project = project; } public void setOutputDirectory( String outputDirectory ) { this.outputDirectory = outputDirectory; } public void setFileNameMapping( String outputFileNameMapping ) { this.outputFileNameMapping = outputFileNameMapping; } public void setOutputDirectory( String outputDirectory, String defaultOutputDirectory ) { setOutputDirectory( outputDirectory == null ? defaultOutputDirectory : outputDirectory ); } public void setFileNameMapping( String outputFileNameMapping, String defaultOutputFileNameMapping ) { setFileNameMapping( outputFileNameMapping == null ? defaultOutputFileNameMapping : outputFileNameMapping ); } public MavenProject getModuleProject() { return moduleProject; } public void setModuleProject( MavenProject moduleProject ) { this.moduleProject = moduleProject; } public Artifact getModuleArtifact() { return moduleArtifact; } public void setModuleArtifact( Artifact moduleArtifact ) { this.moduleArtifact = moduleArtifact; } } ././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/task/AddFileSetsTask.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/task/AddFileS0000644000175000017500000001677011212274043033470 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.archive.task; /* * 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 org.apache.maven.plugin.assembly.AssemblerConfigurationSource; import org.apache.maven.plugin.assembly.archive.ArchiveCreationException; import org.apache.maven.plugin.assembly.format.AssemblyFormattingException; import org.apache.maven.plugin.assembly.format.FileSetFormatter; import org.apache.maven.plugin.assembly.model.FileSet; import org.apache.maven.plugin.assembly.utils.AssemblyFormatUtils; import org.apache.maven.plugin.assembly.utils.TypeConversionUtils; import org.apache.maven.project.MavenProject; import org.codehaus.plexus.archiver.Archiver; import org.codehaus.plexus.logging.Logger; import org.codehaus.plexus.logging.console.ConsoleLogger; import java.io.File; import java.io.IOException; import java.util.Iterator; import java.util.List; /** * @version $Id: AddFileSetsTask.java 782119 2009-06-05 19:55:15Z jdcasey $ */ public class AddFileSetsTask implements ArchiverTask { private final List fileSets; private Logger logger; private MavenProject project; private MavenProject moduleProject; public AddFileSetsTask( List fileSets ) { this.fileSets = fileSets; } public void execute( Archiver archiver, AssemblerConfigurationSource configSource ) throws ArchiveCreationException, AssemblyFormattingException { // don't need this check here. it's more efficient here, but the logger is not actually // used until addFileSet(..)...and the check should be there in case someone extends the // class. // checkLogger(); File archiveBaseDir = configSource.getArchiveBaseDirectory(); if ( archiveBaseDir != null ) { if ( !archiveBaseDir.exists() ) { throw new ArchiveCreationException( "The archive base directory '" + archiveBaseDir.getAbsolutePath() + "' does not exist" ); } else if ( !archiveBaseDir.isDirectory() ) { throw new ArchiveCreationException( "The archive base directory '" + archiveBaseDir.getAbsolutePath() + "' exists, but it is not a directory" ); } } for ( Iterator i = fileSets.iterator(); i.hasNext(); ) { FileSet fileSet = (FileSet) i.next(); addFileSet( fileSet, archiver, configSource, archiveBaseDir ); } } protected void addFileSet( FileSet fileSet, Archiver archiver, AssemblerConfigurationSource configSource, File archiveBaseDir ) throws AssemblyFormattingException, ArchiveCreationException { // throw this check in just in case someone extends this class... checkLogger(); FileSetFormatter fileSetFormatter = new FileSetFormatter( configSource, logger ); if ( project == null ) { project = configSource.getProject(); } File basedir = project.getBasedir(); String destDirectory = fileSet.getOutputDirectory(); if ( destDirectory == null ) { destDirectory = fileSet.getDirectory(); } destDirectory = AssemblyFormatUtils.getOutputDirectory( destDirectory, configSource.getProject(), moduleProject, project, configSource.getFinalName(), configSource ); if ( logger.isDebugEnabled() ) { logger.debug( "FileSet[" + destDirectory + "]" + " dir perms: " + Integer.toString( archiver.getOverrideDirectoryMode(), 8 ) + " file perms: " + Integer.toString( archiver.getOverrideFileMode(), 8 ) + ( fileSet.getLineEnding() == null ? "" : " lineEndings: " + fileSet.getLineEnding() ) ); } logger.debug( "The archive base directory is '" + archiveBaseDir + "'" ); File fileSetDir = getFileSetDirectory( fileSet, basedir, archiveBaseDir ); if ( fileSetDir.exists() ) { try { fileSetDir = fileSetFormatter.formatFileSetForAssembly( fileSetDir, fileSet ); } catch ( IOException e ) { throw new ArchiveCreationException( "Error fixing file-set line endings for assembly: " + e.getMessage(), e ); } logger.debug( "Adding file-set from directory: '" + fileSetDir.getAbsolutePath() + "'\nassembly output directory is: \'" + destDirectory + "\'" ); AddDirectoryTask task = new AddDirectoryTask( fileSetDir ); int dirMode = TypeConversionUtils.modeToInt( fileSet.getDirectoryMode(), logger ); if ( dirMode != -1 ) { task.setDirectoryMode( dirMode ); } int fileMode = TypeConversionUtils.modeToInt( fileSet.getFileMode(), logger ); if ( fileMode != -1 ) { task.setFileMode( fileMode ); } task.setUseDefaultExcludes( fileSet.isUseDefaultExcludes() ); List excludes = fileSet.getExcludes(); excludes.add( "**/*.filtered" ); task.setExcludes( excludes ); task.setIncludes( fileSet.getIncludes() ); task.setOutputDirectory( destDirectory ); task.execute( archiver, configSource ); } } protected File getFileSetDirectory( FileSet fileSet, File basedir, File archiveBaseDir ) throws ArchiveCreationException, AssemblyFormattingException { String sourceDirectory = fileSet.getDirectory(); if ( sourceDirectory == null || sourceDirectory.trim().length() < 1 ) { sourceDirectory = basedir.getAbsolutePath(); } File fileSetDir = null; if ( archiveBaseDir == null ) { fileSetDir = new File( sourceDirectory ); if ( !fileSetDir.isAbsolute() ) { fileSetDir = new File( basedir, sourceDirectory ); } } else { fileSetDir = new File( archiveBaseDir, sourceDirectory ); } return fileSetDir; } private void checkLogger() { if ( logger == null ) { logger = new ConsoleLogger( Logger.LEVEL_INFO, "AddFileSetsTask-internal" ); } } public void setLogger( Logger logger ) { this.logger = logger; } public void setProject( MavenProject project ) { this.project = project; } public MavenProject getModuleProject() { return moduleProject; } public void setModuleProject( MavenProject moduleProject ) { this.moduleProject = moduleProject; } } ././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/task/AddDirectoryTask.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/task/AddDirec0000644000175000017500000001523111212274043033503 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.archive.task; /* * 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.Iterator; import java.util.List; import org.apache.maven.plugin.assembly.AssemblerConfigurationSource; import org.apache.maven.plugin.assembly.archive.ArchiveCreationException; import org.codehaus.plexus.archiver.Archiver; import org.codehaus.plexus.archiver.ArchiverException; import org.codehaus.plexus.archiver.util.DefaultFileSet; /** * @version $Id: AddDirectoryTask.java 782119 2009-06-05 19:55:15Z jdcasey $ */ public class AddDirectoryTask implements ArchiverTask { private final File directory; private List includes; private List excludes; private String outputDirectory; private boolean useDefaultExcludes = true; private int directoryMode = -1; private int fileMode = -1; public AddDirectoryTask( File directory ) { this.directory = directory; } public void execute( Archiver archiver, AssemblerConfigurationSource configSource ) throws ArchiveCreationException { if ( ".".equals( outputDirectory ) ) { outputDirectory = ""; } else if ( "..".equals( outputDirectory ) ) { throw new ArchiveCreationException( "Cannot add source directory: " + directory + " to archive-path: " + outputDirectory + ". All paths must be within the archive root directory." ); } int oldDirMode = archiver.getOverrideDirectoryMode(); int oldFileMode = archiver.getOverrideFileMode(); boolean fileModeSet = false; boolean dirModeSet = false; try { if ( directoryMode != -1 ) { archiver.setDirectoryMode( directoryMode ); dirModeSet = true; } if ( fileMode != -1 ) { archiver.setFileMode( fileMode ); fileModeSet = true; } if ( directory.exists() ) { List directoryExcludes; if ( excludes != null && !excludes.isEmpty() ) { directoryExcludes = new ArrayList( excludes ); } else { directoryExcludes = new ArrayList(); } try { String[] includesArray = null; if ( includes != null && !includes.isEmpty() ) { includesArray = new String[includes.size()]; int i = 0; for ( Iterator it = includes.iterator(); it.hasNext(); ) { String value = (String) it.next(); if ( value.startsWith( "./" ) || value.startsWith( ".\\" ) ) { value = value.substring( 2 ); } if ( value.startsWith( "/" ) || value.startsWith( "\\" ) ) { value = value.substring( 1 ); } includesArray[i] = value; i++; } } // this one is guaranteed to be non-null by code above. String[] excludesArray = new String[directoryExcludes.size()]; int i = 0; for ( Iterator it = directoryExcludes.iterator(); it.hasNext(); ) { String value = (String) it.next(); if ( value.startsWith( "./" ) || value.startsWith( ".\\" ) ) { value = value.substring( 2 ); } if ( value.startsWith( "/" ) || value.startsWith( "\\" ) ) { value = value.substring( 1 ); } excludesArray[i] = value; i++; } DefaultFileSet fs = new DefaultFileSet(); fs.setUsingDefaultExcludes( useDefaultExcludes ); fs.setPrefix( outputDirectory ); fs.setDirectory( directory ); fs.setIncludes( includesArray ); fs.setExcludes( excludesArray ); archiver.addFileSet( fs ); } catch ( ArchiverException e ) { throw new ArchiveCreationException( "Error adding directory to archive: " + e.getMessage(), e ); } } } finally { if ( dirModeSet ) { archiver.setDirectoryMode( oldDirMode ); } if ( fileModeSet ) { archiver.setFileMode( oldFileMode ); } } } public void setExcludes( List excludes ) { this.excludes = excludes; } public void setIncludes( List includes ) { this.includes = includes; } public void setOutputDirectory( String outputDirectory ) { this.outputDirectory = outputDirectory; } public void setDirectoryMode( int directoryMode ) { this.directoryMode = directoryMode; } public void setFileMode( int fileMode ) { this.fileMode = fileMode; } public void setUseDefaultExcludes( boolean useDefaultExcludes ) { this.useDefaultExcludes = useDefaultExcludes; } } ././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/AssemblyArchiver.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/archive/AssemblyArchi0000644000175000017500000000304311123544663033637 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.archive; /* * 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 org.apache.maven.plugin.assembly.AssemblerConfigurationSource; import org.apache.maven.plugin.assembly.InvalidAssemblerConfigurationException; import org.apache.maven.plugin.assembly.format.AssemblyFormattingException; import org.apache.maven.plugin.assembly.model.Assembly; import java.io.File; /** * @version $Id: AssemblyArchiver.java 728546 2008-12-21 22:56:51Z bentmann $ */ public interface AssemblyArchiver { String ROLE = AssemblyArchiver.class.getName(); File createArchive( Assembly assembly, String fullName, String format, AssemblerConfigurationSource configSource ) throws ArchiveCreationException, AssemblyFormattingException, InvalidAssemblerConfigurationException; } maven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/AssemblyContext.java0000644000175000017500000000032311123544663033532 0ustar twernertwernerpackage org.apache.maven.plugin.assembly; import java.util.Map; public interface AssemblyContext { AssemblyContext setManagedVersionMap( Map managedVersions ); Map getManagedVersionMap(); } maven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/format/0000755000175000017500000000000011361635314031033 5ustar twernertwerner././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/format/FileFormatter.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/format/FileFormatter.0000644000175000017500000001003511306760127033576 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.format; /* * 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 org.apache.maven.plugin.assembly.AssemblerConfigurationSource; import org.apache.maven.plugin.assembly.utils.AssemblyFileUtils; import org.apache.maven.shared.filtering.MavenFilteringException; import org.codehaus.plexus.logging.Logger; import org.codehaus.plexus.util.FileUtils; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.io.Reader; import java.util.Locale; /** * @version $Id: FileFormatter.java 887709 2009-12-06 16:48:23Z bentmann $ */ public class FileFormatter { private final Logger logger; private final AssemblerConfigurationSource configSource; public FileFormatter( AssemblerConfigurationSource configSource, Logger logger ) { this.configSource = configSource; this.logger = logger; } public File format( File source, boolean filter, String lineEnding ) throws AssemblyFormattingException { return format ( source, filter, lineEnding, configSource.getTemporaryRootDirectory() ); } public File format( File source, boolean filter, String lineEnding, File tempRoot ) throws AssemblyFormattingException { AssemblyFileUtils.verifyTempDirectoryAvailability( tempRoot, logger ); File result = source; if ( filter ) result = doFileFilter( source, tempRoot ); String lineEndingChars = AssemblyFileUtils.getLineEndingCharacters( lineEnding ); if ( lineEndingChars != null ) { result = formatLineEndings( lineEndingChars, result, tempRoot ); } return result; } private File doFileFilter( File source, File tempRoot ) throws AssemblyFormattingException { try { File target = FileUtils.createTempFile( source.getName() + ".", ".filtered", tempRoot ); //@todo this test can be improved boolean isPropertiesFile = source.getName().toLowerCase( Locale.ENGLISH ).endsWith( ".properties" ); configSource.getMavenFileFilter().copyFile( source, target, true, configSource.getProject(), configSource.getFilters(), isPropertiesFile, null, configSource.getMavenSession() ); return target; } catch (MavenFilteringException e) { throw new AssemblyFormattingException( "Error filtering file '" + source + "': " + e.getMessage(), e ); } } private File formatLineEndings( String lineEndingChars, File source, File tempRoot ) throws AssemblyFormattingException { try { Reader contentReader = new FileReader( source ); File target = FileUtils.createTempFile( source.getName() + ".", ".formatted", tempRoot ); AssemblyFileUtils.convertLineEndings( contentReader, target, lineEndingChars ); return target; } catch ( FileNotFoundException e ) { throw new AssemblyFormattingException( "File to filter not found: " + e.getMessage(), e ); } catch ( IOException e ) { throw new AssemblyFormattingException( "Error line formatting file '" + source + "': " + e.getMessage(), e ); } } } ././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/format/ReflectionProperties.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/format/ReflectionProp0000644000175000017500000000434611243306471033716 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.format; /* * Copyright 2001-2005 The Apache Software Foundation. * * Licensed 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 org.apache.maven.project.MavenProject; import org.codehaus.plexus.util.StringUtils; import org.codehaus.plexus.util.introspection.ReflectionValueExtractor; import java.util.Properties; /** * @author Andreas Hoheneder (ahoh_at_inode.at) * @version $Id: ReflectionProperties.java 806277 2009-08-20 17:51:53Z epunzalan $ * * @depcrecated */ public class ReflectionProperties extends Properties { private MavenProject project; boolean escapedBackslashesInFilePath; public ReflectionProperties( MavenProject aProject, boolean escapedBackslashesInFilePath ) { super(); project = aProject; this.escapedBackslashesInFilePath = escapedBackslashesInFilePath; } public Object get( Object key ) { Object value = null; try { value = ReflectionValueExtractor.evaluate( "" + key , project ); if ( escapedBackslashesInFilePath && value != null && "java.lang.String".equals( value.getClass().getName() ) ) { String val = (String) value; // Check if it's a windows path if ( val.indexOf( ":\\" ) == 1 ) { value = StringUtils.replace( (String)value, "\\", "\\\\" ); value = StringUtils.replace( (String)value, ":", "\\:" ); } } } catch ( Exception e ) { //TODO: remove the try-catch block when ReflectionValueExtractor.evaluate() throws no more exceptions } return value; } } ././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/format/FileSetFormatter.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/format/FileSetFormatt0000644000175000017500000001126511123544663033655 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.format; /* * 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 org.apache.maven.plugin.assembly.AssemblerConfigurationSource; import org.apache.maven.plugin.assembly.utils.AssemblyFileUtils; import org.apache.maven.shared.model.fileset.FileSet; import org.apache.maven.shared.model.fileset.util.FileSetManager; import org.codehaus.plexus.logging.Logger; import org.codehaus.plexus.util.FileUtils; import java.io.File; import java.io.IOException; /** * @version $Id: FileSetFormatter.java 728546 2008-12-21 22:56:51Z bentmann $ */ public class FileSetFormatter { private final AssemblerConfigurationSource configSource; private final Logger logger; public FileSetFormatter( AssemblerConfigurationSource configSource, Logger logger ) { this.configSource = configSource; this.logger = logger; } public File formatFileSetForAssembly( File fileSetDir, org.apache.maven.plugin.assembly.model.FileSet set ) throws AssemblyFormattingException, IOException { String lineEndingHint = set.getLineEnding(); String lineEnding = AssemblyFileUtils.getLineEndingCharacters( lineEndingHint ); if ( ( lineEnding != null ) || set.isFiltered() ) { FileSet fileSet = new FileSet(); fileSet.setLineEnding( lineEnding ); fileSet.setDirectory(fileSetDir.getAbsolutePath()); fileSet.setIncludes( set.getIncludes() ); fileSet.setExcludes( set.getExcludes() ); fileSet.setUseDefaultExcludes( true ); FileSetManager fsm = new FileSetManager( logger ); String[] files = fsm.getIncludedFiles( fileSet ); // if we don't have anything to process, let's just skip all of this mess. if ( ( files == null ) || ( files.length == 0 ) ) { logger.info( "No files selected for line-ending conversion or filtering. Skipping: " + fileSet.getDirectory() ); } else { File formattedDir = FileUtils.createTempFile( "fileSetFormatter.", ".tmp", configSource.getTemporaryRootDirectory() ); logger.debug( "Filtering files from: " + fileSetDir + " into temp dir: " + formattedDir ); formattedDir.delete(); formattedDir.mkdirs(); FileFormatter fileFormatter = new FileFormatter( configSource, logger ); for ( int i = 0; i < files.length; i++ ) { String file = files[i]; logger.debug( "Filtering: " + file ); File targetFile = new File( formattedDir, file ); targetFile.getParentFile().mkdirs(); File sourceFile = new File( fileSetDir, file ); try { sourceFile = fileFormatter.format( sourceFile, set.isFiltered(), lineEndingHint, formattedDir ); AssemblyFileUtils.copyFile( sourceFile, targetFile ); } catch ( AssemblyFormattingException e ) { deleteDirectory( formattedDir ); throw e; } catch ( IOException e ) { deleteDirectory( formattedDir ); throw e; } } return formattedDir; } } else { logger.debug( "NOT reformatting any files in " + fileSetDir ); } return fileSetDir; } private static void deleteDirectory( File formattedDir ) { try { FileUtils.deleteDirectory( formattedDir ); } catch ( IOException e1 ) { // ignore } } } ././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/format/AssemblyFormattingException.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/format/AssemblyFormat0000644000175000017500000000233011123544663033706 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.format; /* * 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. */ /** * @version $Id: AssemblyFormattingException.java 728546 2008-12-21 22:56:51Z bentmann $ */ public class AssemblyFormattingException extends Exception { public AssemblyFormattingException( String message, Throwable error ) { super( message, error ); } public AssemblyFormattingException( String message ) { super( message ); } } maven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/artifact/0000755000175000017500000000000011361635314031340 5ustar twernertwerner././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/artifact/DefaultDependencyResolver.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/artifact/DefaultDepen0000644000175000017500000005547111123544663033641 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.artifact; /* * 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.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.LinkedHashSet; import java.util.List; import java.util.Map; import java.util.Set; import org.apache.maven.artifact.Artifact; import org.apache.maven.artifact.factory.ArtifactFactory; import org.apache.maven.artifact.metadata.ArtifactMetadataSource; import org.apache.maven.artifact.repository.ArtifactRepository; import org.apache.maven.artifact.resolver.ArtifactCollector; import org.apache.maven.artifact.resolver.ArtifactNotFoundException; import org.apache.maven.artifact.resolver.ArtifactResolutionException; import org.apache.maven.artifact.resolver.ArtifactResolutionResult; import org.apache.maven.artifact.resolver.ArtifactResolver; import org.apache.maven.artifact.resolver.DebugResolutionListener; import org.apache.maven.artifact.resolver.filter.ArtifactFilter; import org.apache.maven.artifact.resolver.filter.ExcludesArtifactFilter; import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.artifact.versioning.VersionRange; import org.apache.maven.model.Dependency; import org.apache.maven.model.DependencyManagement; import org.apache.maven.model.Exclusion; import org.apache.maven.plugin.assembly.AssemblerConfigurationSource; import org.apache.maven.plugin.assembly.archive.ArchiveCreationException; import org.apache.maven.plugin.assembly.archive.phase.ModuleSetAssemblyPhase; import org.apache.maven.plugin.assembly.model.Assembly; import org.apache.maven.plugin.assembly.model.DependencySet; import org.apache.maven.plugin.assembly.model.ModuleBinaries; import org.apache.maven.plugin.assembly.model.ModuleSet; import org.apache.maven.plugin.assembly.model.Repository; import org.apache.maven.plugin.assembly.utils.FilterUtils; import org.apache.maven.project.MavenProject; import org.apache.maven.project.artifact.InvalidDependencyVersionException; import org.apache.maven.project.artifact.MavenMetadataSource; import org.apache.maven.shared.artifact.filter.ScopeArtifactFilter; import org.codehaus.plexus.logging.AbstractLogEnabled; import org.codehaus.plexus.logging.Logger; import org.codehaus.plexus.util.StringUtils; /** * @plexus.component role="org.apache.maven.plugin.assembly.artifact.DependencyResolver" role-hint="default" * * @author jdcasey * @version $Id: DefaultDependencyResolver.java 728546 2008-12-21 22:56:51Z bentmann $ */ public class DefaultDependencyResolver extends AbstractLogEnabled implements DependencyResolver { /** * @plexus.requirement */ private ArtifactResolver resolver; /** * @plexus.requirement */ private ArtifactMetadataSource metadataSource; /** * @plexus.requirement */ private ArtifactFactory factory; /** * @plexus.requirement */ private ArtifactCollector collector; public DefaultDependencyResolver() { // for plexus init } protected DefaultDependencyResolver( ArtifactResolver resolver, ArtifactMetadataSource metadataSource, ArtifactFactory factory, ArtifactCollector collector, Logger logger ) { this.resolver = resolver; this.metadataSource = metadataSource; this.factory = factory; this.collector = collector; enableLogging( logger ); } public Map buildManagedVersionMap( Assembly assembly, AssemblerConfigurationSource configSource ) throws ArchiveCreationException, InvalidVersionSpecificationException, InvalidDependencyVersionException, ArtifactResolutionException { MavenProject currentProject = configSource.getProject(); ResolutionManagementInfo depInfo = new ResolutionManagementInfo( currentProject ); getDependencySetResolutionRequirements( assembly.getDependencySets(), depInfo ); getModuleSetResolutionRequirements( assembly.getModuleSets(), depInfo, configSource ); getRepositoryResolutionRequirements( assembly.getRepositories(), depInfo ); if ( !depInfo.isResolutionRequired() ) { return new HashMap(); } Map managedVersions = new HashMap(); Set allRequiredArtifacts = new LinkedHashSet(); List allRemoteRepos = new ArrayList(); for ( Iterator it = depInfo.getEnabledProjects().iterator(); it.hasNext(); ) { MavenProject project = (MavenProject) it.next(); Map projectManagedVersions = getManagedVersionMap( project ); if ( projectManagedVersions != null ) { for ( Iterator versionIterator = projectManagedVersions.keySet().iterator(); versionIterator.hasNext(); ) { String id = (String) versionIterator.next(); if ( !managedVersions.containsKey( id ) ) { managedVersions.put( id, projectManagedVersions.get( id ) ); } } } } if ( configSource.getRemoteRepositories() != null && !configSource.getRemoteRepositories().isEmpty() ) { allRemoteRepos.addAll( configSource.getRemoteRepositories() ); } for ( Iterator it = depInfo.getEnabledProjects().iterator(); it.hasNext(); ) { MavenProject project = (MavenProject) it.next(); allRequiredArtifacts.addAll( MavenMetadataSource.createArtifacts( factory, project.getDependencies(), null, depInfo.getScopeFilter(), project ) ); allRemoteRepos = aggregateRemoteArtifactRepositories( allRemoteRepos, project ); } if ( depInfo.isResolvedTransitively() ) { // TODO: such a call in MavenMetadataSource too - packaging not really the intention of type Artifact projectArtifact = factory.createBuildArtifact( currentProject.getGroupId(), currentProject.getArtifactId() + "-[assembly process]", currentProject.getVersion(), currentProject.getPackaging() ); List listeners = getLogger().isDebugEnabled() ? Collections.singletonList( new DebugResolutionListener( getLogger() ) ) : Collections.EMPTY_LIST; ArtifactResolutionResult resolutionResult = collector.collect( allRequiredArtifacts, projectArtifact, managedVersions, configSource.getLocalRepository(), allRemoteRepos, metadataSource, depInfo.getScopeFilter(), listeners ); Set artifacts = resolutionResult.getArtifacts(); if ( artifacts != null ) { for ( Iterator versionIterator = artifacts.iterator(); versionIterator.hasNext(); ) { Artifact artifact = (Artifact) versionIterator.next(); String id = artifact.getDependencyConflictId(); if ( !managedVersions.containsKey( id ) ) { managedVersions.put( id, artifact ); } } } } else { if ( allRequiredArtifacts != null ) { for ( Iterator versionIterator = allRequiredArtifacts.iterator(); versionIterator.hasNext(); ) { Artifact artifact = (Artifact) versionIterator.next(); if ( artifact.getVersion() == null ) { if ( getLogger().isDebugEnabled() ) { getLogger().debug( "Not sure what to do with the version range: " + artifact.getVersionRange() + " in non-transitive mode, encountered while building managed versions collection; skipping it for now. Artifact: " + artifact ); } continue; } String id = artifact.getDependencyConflictId(); if ( !managedVersions.containsKey( id ) ) { managedVersions.put( id, artifact ); } } } } return managedVersions; } /* (non-Javadoc) * @see org.apache.maven.plugin.assembly.artifact.DependencyResolver#resolveDependencies(org.apache.maven.project.MavenProject, java.lang.String, org.apache.maven.artifact.repository.ArtifactRepository, java.util.List) */ public Set resolveDependencies( MavenProject project, String scope, Map managedVersions, ArtifactRepository localRepository, List remoteRepositories, boolean resolveTransitively ) throws InvalidDependencyVersionException, ArtifactResolutionException, ArtifactNotFoundException { List repos = aggregateRemoteArtifactRepositories( remoteRepositories, project ); ArtifactFilter filter = new ScopeArtifactFilter( scope ); // TODO: such a call in MavenMetadataSource too - packaging not really the intention of type Artifact artifact = factory.createBuildArtifact( project.getGroupId(), project.getArtifactId(), project.getVersion(), project.getPackaging() ); Set dependencyArtifacts = MavenMetadataSource.createArtifacts( factory, project.getDependencies(), null, filter, project ); getLogger().debug( "Dependencies for project: " + project.getId() + " are:\n" + StringUtils.join( dependencyArtifacts.iterator(), "\n" ) ); for ( Iterator it = dependencyArtifacts.iterator(); it.hasNext(); ) { Artifact depArtifact = (Artifact) it.next(); if ( managedVersions.containsKey( depArtifact.getDependencyConflictId() ) ) { manageArtifact( depArtifact, managedVersions ); } } if ( resolveTransitively ) { getLogger().debug( "Resolving project dependencies transitively." ); return resolveTransitively( dependencyArtifacts, artifact, managedVersions, localRepository, repos, filter, project ); } else { getLogger().debug( "Resolving project dependencies ONLY. Transitive dependencies WILL NOT be included in the results." ); return resolveNonTransitively( dependencyArtifacts, artifact, managedVersions, localRepository, repos, filter ); } } protected Set resolveNonTransitively( Set dependencyArtifacts, Artifact artifact, Map managedVersions, ArtifactRepository localRepository, List repos, ArtifactFilter filter ) throws ArtifactResolutionException, ArtifactNotFoundException { for ( Iterator it = dependencyArtifacts.iterator(); it.hasNext(); ) { Artifact depArtifact = (Artifact) it.next(); resolver.resolve( depArtifact, repos, localRepository ); } return dependencyArtifacts; } private Set resolveTransitively( Set dependencyArtifacts, Artifact artifact, Map managedVersions, ArtifactRepository localRepository, List repos, ArtifactFilter filter, MavenProject project ) throws InvalidDependencyVersionException, ArtifactResolutionException, ArtifactNotFoundException { ArtifactResolutionResult result = resolver.resolveTransitively( dependencyArtifacts, artifact, managedVersions, localRepository, repos, metadataSource, filter ); getLogger().debug( "While resolving dependencies of " + project.getId() + ":" ); FilterUtils.reportFilteringStatistics( Collections.singleton( filter ), getLogger() ); return result.getArtifacts(); } // Copied from DefaultArtifactCollector, SVN: http://svn.apache.org/repos/asf/maven/components/branches/maven-2.1.x@679206 // with modifications to work with non-transitive resolution processes. protected void manageArtifact( Artifact targetArtifact, Map managedVersions ) { Artifact artifact = (Artifact) managedVersions.get( targetArtifact.getDependencyConflictId() ); if ( artifact == null ) { return; } // Before we update the version of the artifact, we need to know // whether we are working on a transitive dependency or not. This // allows depMgmt to always override transitive dependencies, while // explicit child override depMgmt (viz. depMgmt should only // provide defaults to children, but should override transitives). // We can do this by calling isChildOfRootNode on the current node. if ( artifact.getVersion() != null ) { if ( getLogger().isDebugEnabled() ) { getLogger().debug( "Managing version for: " + targetArtifact.getDependencyConflictId() + " to: " + artifact.getVersion() ); } targetArtifact.setVersion( artifact.getVersion() ); } if ( artifact.getScope() != null ) { if ( getLogger().isDebugEnabled() ) { getLogger().debug( "Managing scope for: " + targetArtifact.getDependencyConflictId() + " to: " + artifact.getScope() ); } targetArtifact.setScope( artifact.getScope() ); } } protected List aggregateRemoteArtifactRepositories( List remoteRepositories, MavenProject project ) { List repoLists = new ArrayList(); repoLists.add( remoteRepositories ); repoLists.add( project.getRemoteArtifactRepositories() ); List remoteRepos = new ArrayList(); Set encounteredUrls = new HashSet(); for ( Iterator listIterator = repoLists.iterator(); listIterator.hasNext(); ) { List repositoryList = ( List ) listIterator.next(); if ( ( repositoryList != null ) && !repositoryList.isEmpty() ) { for ( Iterator it = repositoryList.iterator(); it.hasNext(); ) { ArtifactRepository repo = ( ArtifactRepository ) it.next(); if ( !encounteredUrls.contains( repo.getUrl() ) ) { remoteRepos.add( repo ); encounteredUrls.add( repo.getUrl() ); } } } } return remoteRepos; } // TODO: Remove this, once we can depend on Maven 2.0.7 or later...in which // MavenProject.getManagedVersionMap() exists. This is from MNG-1577. protected Map getManagedVersionMap( MavenProject project ) throws InvalidVersionSpecificationException { DependencyManagement dependencyManagement = project.getModel().getDependencyManagement(); Map map = null; List deps; if ( ( dependencyManagement != null ) && ( ( deps = dependencyManagement.getDependencies() ) != null ) && ( deps.size() > 0 ) ) { map = new HashMap(); if ( getLogger().isDebugEnabled() ) { getLogger().debug( "Adding managed dependencies for " + project.getId() ); } for ( Iterator i = dependencyManagement.getDependencies().iterator(); i.hasNext(); ) { Dependency d = (Dependency) i.next(); VersionRange versionRange = VersionRange.createFromVersionSpec( d.getVersion() ); Artifact artifact = factory.createDependencyArtifact( d.getGroupId(), d.getArtifactId(), versionRange, d.getType(), d.getClassifier(), d.getScope(), d.isOptional() ); if ( getLogger().isDebugEnabled() ) { getLogger().debug( " " + artifact ); } // If the dependencyManagement section listed exclusions, // add them to the managed artifacts here so that transitive // dependencies will be excluded if necessary. if ( ( null != d.getExclusions() ) && !d.getExclusions().isEmpty() ) { List exclusions = new ArrayList(); Iterator exclItr = d.getExclusions().iterator(); while ( exclItr.hasNext() ) { Exclusion e = (Exclusion) exclItr.next(); exclusions.add( e.getGroupId() + ":" + e.getArtifactId() ); } ExcludesArtifactFilter eaf = new ExcludesArtifactFilter( exclusions ); artifact.setDependencyFilter( eaf ); } else { artifact.setDependencyFilter( null ); } map.put( d.getManagementKey(), artifact ); } } else if ( map == null ) { map = Collections.EMPTY_MAP; } return map; } protected void getRepositoryResolutionRequirements( List repositories, ResolutionManagementInfo requirements ) { if ( repositories != null && !repositories.isEmpty() ) { requirements.setResolutionRequired( true ); for ( Iterator it = repositories.iterator(); it.hasNext(); ) { Repository repo = (Repository) it.next(); enableScope( repo.getScope(), requirements ); } } } protected void getModuleSetResolutionRequirements( List moduleSets, ResolutionManagementInfo requirements, AssemblerConfigurationSource configSource ) throws ArchiveCreationException { if ( moduleSets != null && !moduleSets.isEmpty() ) { for ( Iterator it = moduleSets.iterator(); it.hasNext(); ) { ModuleSet set = (ModuleSet) it.next(); ModuleBinaries binaries = set.getBinaries(); if ( binaries != null ) { Set projects = ModuleSetAssemblyPhase.getModuleProjects( set, configSource, getLogger() ); if ( projects != null && !projects.isEmpty() ) { for ( Iterator projectIterator = projects.iterator(); projectIterator.hasNext(); ) { MavenProject p = (MavenProject) projectIterator.next(); requirements.enableProjectResolution( p ); } } if ( binaries.isIncludeDependencies() ) { getDependencySetResolutionRequirements( ModuleSetAssemblyPhase.getDependencySets( binaries ), requirements ); } } } } } protected void getDependencySetResolutionRequirements( List depSets, ResolutionManagementInfo requirements ) { if ( depSets != null && !depSets.isEmpty() ) { requirements.setResolutionRequired( true ); for ( Iterator it = depSets.iterator(); it.hasNext(); ) { DependencySet set = (DependencySet) it.next(); requirements.setResolvedTransitively( requirements.isResolvedTransitively() || set.isUseTransitiveDependencies() ); enableScope( set.getScope(), requirements ); } } } private void enableScope( String scope, ResolutionManagementInfo requirements ) { if ( Artifact.SCOPE_COMPILE.equals( scope ) ) { requirements.enableCompileScope(); } else if ( Artifact.SCOPE_PROVIDED.equals( scope ) ) { requirements.enableProvidedScope(); } else if ( Artifact.SCOPE_RUNTIME.equals( scope ) ) { requirements.enableRuntimeScope(); } else if ( Artifact.SCOPE_SYSTEM.equals( scope ) ) { requirements.enableSystemScope(); } else if ( Artifact.SCOPE_TEST.equals( scope ) ) { requirements.enableTestScope(); } } protected ArtifactResolver getArtifactResolver() { return resolver; } protected DefaultDependencyResolver setArtifactResolver( ArtifactResolver resolver ) { this.resolver = resolver; return this; } protected ArtifactMetadataSource getArtifactMetadataSource() { return metadataSource; } protected DefaultDependencyResolver setArtifactMetadataSource( ArtifactMetadataSource metadataSource ) { this.metadataSource = metadataSource; return this; } protected ArtifactFactory getArtifactFactory() { return factory; } protected DefaultDependencyResolver setArtifactFactory( ArtifactFactory factory ) { this.factory = factory; return this; } protected ArtifactCollector getArtifactCollector() { return collector; } protected DefaultDependencyResolver setArtifactCollector( ArtifactCollector collector ) { this.collector = collector; return this; } protected DefaultDependencyResolver setLogger( Logger logger ) { enableLogging( logger ); return this; } } ././@LongLink0000000000000000000000000000016600000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/artifact/ResolutionManagementInfo.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/artifact/ResolutionMa0000644000175000017500000000464711123544663033721 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.artifact; import java.util.LinkedHashSet; import java.util.Set; import org.apache.maven.project.MavenProject; import org.apache.maven.shared.artifact.filter.ScopeArtifactFilter; /** * Helper class used to accumulate scopes and modules (with binaries included) * that are used in an assembly, for the purposes of creating an aggregated * managed-version map with dependency version conflicts resolved. * * @author jdcasey */ class ResolutionManagementInfo { private boolean resolutionRequired; private ScopeArtifactFilter scopeFilter = new ScopeArtifactFilter(); private boolean resolvedTransitively; private Set enabledProjects = new LinkedHashSet(); ResolutionManagementInfo( MavenProject mainProject ) { enabledProjects.add( mainProject ); } boolean isResolutionRequired() { return resolutionRequired; } void setResolutionRequired( boolean resolutionRequired ) { this.resolutionRequired = resolutionRequired; } boolean isResolvedTransitively() { return resolvedTransitively; } void setResolvedTransitively( boolean resolvedTransitively ) { this.resolvedTransitively = resolvedTransitively; } ScopeArtifactFilter getScopeFilter() { return scopeFilter; } void enableCompileScope() { scopeFilter.setIncludeCompileScope( true ); scopeFilter.setIncludeProvidedScope( true ); scopeFilter.setIncludeSystemScope( true ); } void enableProvidedScope() { scopeFilter.setIncludeProvidedScope( true ); } void enableRuntimeScope() { scopeFilter.setIncludeRuntimeScope( true ); scopeFilter.setIncludeCompileScope( true ); } void enableTestScope() { scopeFilter.setIncludeTestScope( true ); scopeFilter.setIncludeCompileScope( true ); scopeFilter.setIncludeProvidedScope( true ); scopeFilter.setIncludeSystemScope( true ); scopeFilter.setIncludeRuntimeScope( true ); } void enableSystemScope() { scopeFilter.setIncludeSystemScope( true ); } void enableProjectResolution( MavenProject project ) { if ( !enabledProjects.contains( project ) ) { enabledProjects.add( project ); } } Set getEnabledProjects() { return enabledProjects; } } ././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/artifact/DependencyResolver.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/artifact/DependencyRe0000644000175000017500000001037011123544663033633 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.artifact; /* * 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.util.List; import java.util.Map; import java.util.Set; import org.apache.maven.artifact.Artifact; import org.apache.maven.artifact.repository.ArtifactRepository; import org.apache.maven.artifact.resolver.ArtifactCollector; import org.apache.maven.artifact.resolver.ArtifactNotFoundException; import org.apache.maven.artifact.resolver.ArtifactResolutionException; import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.plugin.assembly.AssemblerConfigurationSource; import org.apache.maven.plugin.assembly.archive.ArchiveCreationException; import org.apache.maven.plugin.assembly.model.Assembly; import org.apache.maven.project.MavenProject; import org.apache.maven.project.artifact.InvalidDependencyVersionException; /** * Convenience component that aids in the resolution of dependency artifacts, * according to various configurations such as transitivity flag and scope. * * @version $Id: DependencyResolver.java 728546 2008-12-21 22:56:51Z bentmann $ */ public interface DependencyResolver { /** * Resolve the project dependencies, according to the supplied configuration. * * @param project The project whose dependencies should be resolved * @param scope The dependency scope to resolve * @param managedVersions The map of managed versions, which allows * dependency version conflict resolution to happen * once for the entire assembly process. * @param localRepository The local repository which acts as a local cache * for remote artifact repositories * @param remoteRepositories The list of remote {@link ArtifactRepository} * instances to use during resolution, in addition * to those defined in the supplied * {@link MavenProject} instance. * @param resolveTransitively If true, resolve project dependencies * transitively; if false, only resolve the * project's direct dependencies. * @return The set of resolved {@link Artifact} instances for the project */ Set resolveDependencies( MavenProject project, String scope, Map managedVersions, ArtifactRepository localRepository, List remoteRepositories, boolean resolveTransitively ) throws InvalidDependencyVersionException, ArtifactResolutionException, ArtifactNotFoundException; /** * Traverse the assembly descriptor to determine which scopes, modules, etc. * will require dependency resolution. Once we have a complete picture of * what will be required in the way of resolution, feed all of this into the * {@link ArtifactCollector} to discover/resolve versions for all * dependencies in the mix, then save these versions in a mapping of: *
* {@link Artifact#getDependencyConflictId()} -> {@link Artifact} *
* This allows dependency conflict resolution to happen a single time, then * be reused multiple times during the construction of the assembly archive. */ Map buildManagedVersionMap( Assembly assembly, AssemblerConfigurationSource configSource ) throws ArchiveCreationException, InvalidVersionSpecificationException, InvalidDependencyVersionException, ArtifactResolutionException; }maven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/mojos/0000755000175000017500000000000011361635314030672 5ustar twernertwerner././@LongLink0000000000000000000000000000015600000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/mojos/DirectorySingleMojo.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/mojos/DirectorySingle0000644000175000017500000000407311123544663033731 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.mojos; /* * 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 org.apache.maven.project.MavenProject; /** * Like the assembly:attached goal, assemble an application bundle * or distribution from an assembly descriptor. This goal is suitable either for * binding to the lifecycle or calling directly from the command line (provided * all required files are available before the build starts, or are produced * by another goal specified before this one on the command line). *
* * This goal differs from assembly:single in that it ignores the <formats/> * section of the assembly descriptor, and forces the assembly to be created as * a directory in the project's build-output directory (usually ./target). * * @author John Casey * @author Gilles Scokart * @version $Id: DirectorySingleMojo.java 728546 2008-12-21 22:56:51Z bentmann $ * * @goal directory-single */ public class DirectorySingleMojo extends AbstractDirectoryMojo { /** * @parameter default-value="${project}" * @required * @readonly */ private MavenProject project; public MavenProject getProject() { return project; } } ././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/mojos/DirectoryMojo.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/mojos/DirectoryMojo.j0000644000175000017500000000455311123544663033647 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.mojos; /* * 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 org.apache.maven.project.MavenProject; /** * Like the assembly:attached goal, assemble an application bundle * or distribution using an assembly descriptor from the command line. * This goal will force Maven to build all included POMs up to the package phase BEFORE * the assembly is processed. This goal * differs from assembly:assembly in that it ignores the <formats/> * section of the assembly descriptor, and forces the assembly to be created as * a directory in the project's build-output directory (usually ./target). *
* * This goal is also functionally equivalent to using the assembly:assembly * goal in conjunction with the dir assembly format. *
* * NOTE: This goal should ONLY be run from the command line, and if building a multimodule project * it should be used from the root POM. Use the assembly:directory-single goal for binding * your assembly to the lifecycle. * * @author John Casey * @version $Id: DirectoryMojo.java 728546 2008-12-21 22:56:51Z bentmann $ * @goal directory * @execute phase="package" * @aggregator */ public class DirectoryMojo extends AbstractDirectoryMojo { /** * Get the executed project from the forked lifecycle. * * @parameter expression="${executedProject}" */ private MavenProject executedProject; public MavenProject getProject() { return executedProject; } } ././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/mojos/UnpackMojo.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/mojos/UnpackMojo.java0000644000175000017500000001001011123544663033575 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.mojos; /* * 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.HashSet; import java.util.Iterator; import java.util.Set; import org.apache.maven.artifact.Artifact; import org.apache.maven.plugin.AbstractMojo; import org.apache.maven.plugin.MojoExecutionException; import org.apache.maven.plugin.MojoFailureException; import org.apache.maven.plugin.assembly.archive.ArchiveExpansionException; import org.apache.maven.plugin.assembly.utils.AssemblyFileUtils; import org.apache.maven.project.MavenProject; import org.codehaus.plexus.archiver.manager.ArchiverManager; import org.codehaus.plexus.archiver.manager.NoSuchArchiverException; /** * Unpack project dependencies. Currently supports dependencies of type jar and zip. * * @version $Id: UnpackMojo.java 728546 2008-12-21 22:56:51Z bentmann $ * @goal unpack * @requiresDependencyResolution test * @deprecated Use org.apache.maven.plugins:maven-dependency-plugin goal: unpack or unpack-dependencies instead. */ public class UnpackMojo extends AbstractMojo { /** * @parameter default-value="${project}" * @required * @readonly */ private MavenProject project; /** * @component */ private ArchiverManager archiverManager; /** * Directory to unpack JARs into if needed * * @parameter expression="${project.build.directory}/assembly/work" * @required */ protected File workDirectory; /** * Unpacks the archive file. * * @throws MojoExecutionException */ public void execute() throws MojoExecutionException, MojoFailureException { Set dependencies = new HashSet(); if ( project.getArtifact() != null && project.getArtifact().getFile() != null ) { dependencies.add( project.getArtifact() ); } Set projectArtifacts = project.getArtifacts(); if ( projectArtifacts != null ) { dependencies.addAll( projectArtifacts ); } for ( Iterator j = dependencies.iterator(); j.hasNext(); ) { Artifact artifact = (Artifact) j.next(); String name = artifact.getFile().getName(); File tempLocation = new File( workDirectory, name.substring( 0, name.lastIndexOf( '.' ) ) ); boolean process = false; if ( !tempLocation.exists() ) { tempLocation.mkdirs(); process = true; } else if ( artifact.getFile().lastModified() > tempLocation.lastModified() ) { process = true; } if ( process ) { File file = artifact.getFile(); try { AssemblyFileUtils.unpack( file, tempLocation, archiverManager ); } catch ( NoSuchArchiverException e ) { this.getLog().info( "Skip unpacking dependency file with unknown extension: " + file.getPath() ); } catch ( ArchiveExpansionException e ) { throw new MojoExecutionException( "Error unpacking dependency file: " + file, e ); } } } } }././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/mojos/AbstractDirectoryMojo.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/mojos/AbstractDirecto0000644000175000017500000000714510741522710033675 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.mojos; /* * 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 org.apache.maven.plugin.MojoExecutionException; import org.apache.maven.plugin.MojoFailureException; import org.apache.maven.plugin.assembly.InvalidAssemblerConfigurationException; import org.apache.maven.plugin.assembly.archive.ArchiveCreationException; import org.apache.maven.plugin.assembly.archive.AssemblyArchiver; import org.apache.maven.plugin.assembly.format.AssemblyFormattingException; import org.apache.maven.plugin.assembly.io.AssemblyReadException; import org.apache.maven.plugin.assembly.io.AssemblyReader; import org.apache.maven.plugin.assembly.model.Assembly; import java.util.Iterator; import java.util.List; /** * @version $Id: AbstractDirectoryMojo.java 610981 2008-01-10 23:10:00Z vsiveton $ */ public abstract class AbstractDirectoryMojo extends AbstractAssemblyMojo { public void execute() throws MojoExecutionException, MojoFailureException { AssemblyReader reader = getAssemblyReader(); List assemblies; try { assemblies = reader.readAssemblies( this ); } catch ( AssemblyReadException e ) { throw new MojoExecutionException( "Error reading assembly descriptors: " + e.getMessage(), e ); } catch ( InvalidAssemblerConfigurationException e ) { throw new MojoFailureException( reader, e.getMessage(), "Mojo configuration is invalid: " + e.getMessage() ); } for ( Iterator i = assemblies.iterator(); i.hasNext(); ) { Assembly assembly = ( Assembly ) i.next(); createDirectory( assembly ); } } private void createDirectory( Assembly assembly ) throws MojoExecutionException, MojoFailureException { AssemblyArchiver archiver = getAssemblyArchiver(); String fullName = getFinalName(); if ( appendAssemblyId ) { fullName = fullName + "-" + assembly.getId(); } else if ( getClassifier() != null ) { fullName = fullName + "-" + getClassifier(); } try { archiver.createArchive( assembly, fullName, "dir", this ); } catch ( ArchiveCreationException e ) { throw new MojoExecutionException( "Error creating assembly: " + e.getMessage(), e ); } catch ( AssemblyFormattingException e ) { throw new MojoExecutionException( "Error creating assembly: " + e.getMessage(), e ); } catch ( InvalidAssemblerConfigurationException e ) { throw new MojoFailureException( assembly, "Assembly is incorrectly configured: " + assembly.getId(), "Assembly: " + assembly.getId() + " is not configured correctly: " + e.getMessage() ); } } } ././@LongLink0000000000000000000000000000015600000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/mojos/DirectoryInlineMojo.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/mojos/DirectoryInline0000644000175000017500000000476011122022477033722 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.mojos; /* * 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 org.apache.maven.project.MavenProject; /** * Like the assembly:attached goal, assemble an application bundle * or distribution from an assembly descriptor, * WITHOUT first forcing Maven to build all POMs to the package * phase (as is required by the assembly:assembly goal). This goal * differs from assembly:attached in that it ignores the <formats/> * section of the assembly descriptor, and forces the assembly to be created as * a directory in the project's build-output directory (usually ./target). *
* * This goal is also functionally equivalent to using the assembly:attached * goal in conjunction with the dir assembly format. *
* * NOTE: This goal should ONLY be run from the command line, and if building a multimodule project * it should be used from the root POM. Use the assembly:directory-single goal for binding * your assembly to the lifecycle. * * @author John Casey * @author Gilles Scokart * @version $Id: DirectoryInlineMojo.java 727187 2008-12-16 22:01:35Z jdcasey $ * * @goal directory-inline * @aggregator * @deprecated Use goal: 'directory' (from the command line) or 'directory-single' (from a lifecycle binding) instead. */ public class DirectoryInlineMojo extends AbstractDirectoryMojo { /** * @parameter default-value="${project}" * @required * @readonly */ private MavenProject project; public MavenProject getProject() { return project; } } ././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/mojos/AbstractAssemblyMojo.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/mojos/AbstractAssembl0000644000175000017500000005224011243306471033670 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.mojos; /* * 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 org.apache.maven.archiver.MavenArchiveConfiguration; import org.apache.maven.artifact.repository.ArtifactRepository; import org.apache.maven.execution.MavenSession; import org.apache.maven.plugin.AbstractMojo; import org.apache.maven.plugin.MojoExecutionException; import org.apache.maven.plugin.MojoFailureException; import org.apache.maven.plugin.assembly.AssemblerConfigurationSource; import org.apache.maven.plugin.assembly.InvalidAssemblerConfigurationException; import org.apache.maven.plugin.assembly.archive.ArchiveCreationException; import org.apache.maven.plugin.assembly.archive.AssemblyArchiver; import org.apache.maven.plugin.assembly.format.AssemblyFormattingException; import org.apache.maven.plugin.assembly.io.AssemblyReadException; import org.apache.maven.plugin.assembly.io.AssemblyReader; import org.apache.maven.plugin.assembly.model.Assembly; import org.apache.maven.plugin.assembly.utils.AssemblyFormatUtils; import org.apache.maven.plugin.logging.Log; import org.apache.maven.project.MavenProject; import org.apache.maven.project.MavenProjectHelper; import org.apache.maven.shared.filtering.MavenFileFilter; import org.codehaus.plexus.configuration.PlexusConfiguration; import java.io.File; import java.util.Iterator; import java.util.List; /** * @author Brett Porter * @author Vincent Siveton * @version $Id: AbstractAssemblyMojo.java 806277 2009-08-20 17:51:53Z epunzalan $ */ public abstract class AbstractAssemblyMojo extends AbstractMojo implements AssemblerConfigurationSource { /** * Flag allowing one or more executions of the assembly plugin to be configured * as skipped for a particular build. This makes the assembly plugin more controllable * from profiles. * * @parameter expression="${skipAssembly}" default-value="false" */ private boolean skipAssembly; /** * If this flag is set, everything up to the call to Archiver.createArchive() will be executed. * * @parameter expression="${assembly.dryRun}" default-value="false" */ private boolean dryRun; /** * If this flag is set, the ".dir" suffix will be suppressed in the output * directory name when using assembly/format == 'dir' and other formats * that begin with 'dir'. *
* NOTE: Since 2.2-beta-3, the default-value for this is true, NOT * false as it used to be. * * @parameter default-value="true" */ private boolean ignoreDirFormatExtensions; /** * Local Maven repository where artifacts are cached during the build process. * * @parameter default-value="${localRepository}" * @required * @readonly */ private ArtifactRepository localRepository; /** * @parameter default-value="${project.remoteArtifactRepositories}" * @required * @readonly */ private List remoteRepositories; /** * Contains the full list of projects in the reactor. * * @parameter default-value="${reactorProjects}" * @required * @readonly */ private List reactorProjects; /** * The output directory of the assembled distribution file. * * @parameter default-value="${project.build.directory}" * @required */ private File outputDirectory; /** * The filename of the assembled distribution file. * * @parameter default-value="${project.build.finalName}" * @required */ private String finalName; /** * Directory to unpack JARs into if needed * * @parameter default-value="${project.build.directory}/assembly/work" * @required */ private File workDirectory; /** * This is the artifact classifier to be used for the resultant assembly artifact. Normally, you would use the * assembly-id instead of specifying this here. * * @parameter expression="${classifier}" * @deprecated Please use the Assembly's id for classifier instead */ private String classifier; /** * A list of descriptor files to generate from. * * @parameter */ private String[] descriptors; /** * A list of built-in descriptor references to generate from. You can select from bin, * jar-with-dependencies, or src. * * @parameter */ private String[] descriptorRefs; /** * Directory to scan for descriptor files in. * * @parameter */ private File descriptorSourceDirectory; /** * This is the base directory from which archive files are created. * This base directory pre-pended to any <directory> * specifications in the assembly descriptor. This is an optional * parameter. * * @parameter */ private File archiveBaseDirectory; /** * Predefined Assembly Descriptor Id's. You can select bin, jar-with-dependencies, or src. * * @parameter expression="${descriptorId}" * @deprecated Please use descriptorRefs instead */ protected String descriptorId; /** * Assembly XML Descriptor file. This must be the path to your customized descriptor file. * * @parameter expression="${descriptor}" * @deprecated Please use descriptors instead */ protected String descriptor; /** * Sets the TarArchiver behavior on file paths with more than 100 characters length. * Valid values are: "warn" (default), "fail", "truncate", "gnu", or "omit". * * @parameter expression="${tarLongFileMode}" default-value="warn" */ private String tarLongFileMode; /** * Base directory of the project. * * @parameter default-value="${basedir}" * @required * @readonly */ private File basedir; /** * Maven ProjectHelper. * * @component */ private MavenProjectHelper projectHelper; /** * Maven shared filtering utility. * * @component */ private MavenFileFilter mavenFileFilter; /** * The Maven Session Object * * @parameter expression="${session}" * @required * @readonly */ private MavenSession mavenSession; /** * Temporary directory that contain the files to be assembled. * * @parameter default-value="${project.build.directory}/archive-tmp" * @required * @readonly */ private File tempRoot; /** * Directory for site generated. * * @parameter default-value="${project.reporting.outputDirectory}" * @readonly */ private File siteDirectory; /** * Set to true to include the site generated by site:site goal. * * @parameter expression="${includeSite}" default-value="false" * @deprecated Please set this variable in the assembly descriptor instead */ private boolean includeSite; /** * Set to false to exclude the assembly id from the assembly final name. * * @parameter expression="${appendAssemblyId}" default-value="true" */ protected boolean appendAssemblyId; /** * Set to true in order to not fail when a descriptor is missing. * @parameter expression="${ignoreMissingDescriptor}" default-value="false" */ protected boolean ignoreMissingDescriptor; /** * This is a set of instructions to the archive builder, especially for building .jar files. It enables you to * specify a Manifest file for the jar, in addition to other options. * * @parameter */ private MavenArchiveConfiguration archive; /** * @parameter */ protected List filters; /** * Controls whether the assembly plugin tries to attach the resulting * assembly to the project. * * @parameter expression="${attach}" default-value="true" * @since 2.2-beta-1 */ private boolean attach; /** * @component */ private AssemblyArchiver assemblyArchiver; /** * @component */ private AssemblyReader assemblyReader; /** * Allows additional configuration options that are specific to a particular * type of archive format. This is intended to capture an XML configuration * that will be used to reflectively setup the options on the archiver instance. *
* For instance, to direct an assembly with the "ear" format to use a particular * deployment descriptor, you should specify the following for the archiverConfig value * in your plugin configuration: *
*
     * <appxml>${project.basedir}/somepath/app.xml</appxml>
     * 
* * @parameter * @since 2.2-beta-3 */ private PlexusConfiguration archiverConfig; /** * This will cause the assembly to run only at the top of a given module tree. That is, run in the project * contained in the same folder where the mvn execution was launched. * @parameter expression="${runOnlyAtExecutionRoot}" default-value="false" * @since 2.2-beta-4 */ private boolean runOnlyAtExecutionRoot; /** * Create the binary distribution. * * @throws org.apache.maven.plugin.MojoExecutionException * */ public void execute() throws MojoExecutionException, MojoFailureException { if ( skipAssembly ) { getLog().info( "Assemblies have been skipped per configuration of the skipAssembly parameter." ); return; } //run only at the execution root. if (runOnlyAtExecutionRoot && !isThisTheExecutionRoot()) { getLog().info( "Skipping the assembly in this project because it's not the Execution Root" ); return; } List assemblies; try { assemblies = assemblyReader.readAssemblies( this ); } catch ( AssemblyReadException e ) { throw new MojoExecutionException( "Error reading assemblies: " + e.getMessage(), e ); } catch ( InvalidAssemblerConfigurationException e ) { throw new MojoFailureException( assemblyReader, e.getMessage(), "Mojo configuration is invalid: " + e.getMessage() ); } // TODO: include dependencies marked for distribution under certain formats // TODO: how, might we plug this into an installer, such as NSIS? boolean warnedAboutMainProjectArtifact = false; for ( Iterator assemblyIterator = assemblies.iterator(); assemblyIterator.hasNext(); ) { Assembly assembly = (Assembly) assemblyIterator.next(); try { String fullName = AssemblyFormatUtils.getDistributionName( assembly, this ); for ( Iterator formatIterator = assembly.getFormats().iterator(); formatIterator.hasNext(); ) { String format = (String) formatIterator.next(); File destFile = assemblyArchiver.createArchive( assembly, fullName, format, this ); MavenProject project = getProject(); String classifier = getClassifier(); String type = project.getArtifact().getType(); if ( attach && destFile.isFile() ) { if ( isAssemblyIdAppended() ) { projectHelper.attachArtifact( project, format, assembly.getId(), destFile ); } else if ( classifier != null ) { projectHelper.attachArtifact( project, format, classifier, destFile ); } else if ( !"pom".equals( type ) && format.equals( type ) ) { if ( !warnedAboutMainProjectArtifact ) { StringBuffer message = new StringBuffer(); message.append( "Configuration options: 'appendAssemblyId' is set to false, and 'classifier' is missing." ); message.append( "\nInstead of attaching the assembly file: " ).append( destFile ).append( ", it will become the file for main project artifact." ); message.append( "\nNOTE: If multiple descriptors or descriptor-formats are provided for this project, the value of this file will be non-deterministic!" ); getLog().warn( message ); warnedAboutMainProjectArtifact = true; } File existingFile = project.getArtifact().getFile(); if ( ( existingFile != null ) && existingFile.exists() ) { getLog().warn( "Replacing pre-existing project main-artifact file: " + existingFile + "\nwith assembly file: " + destFile ); } project.getArtifact().setFile( destFile ); } else { projectHelper.attachArtifact( project, format, null, destFile ); } } else { getLog().warn( "Assembly file: " + destFile + " is not a regular file (it may be a directory). It cannot be attached to the project build for installation or deployment." ); } } } catch ( ArchiveCreationException e ) { throw new MojoExecutionException( "Failed to create assembly: " + e.getMessage(), e ); } catch ( AssemblyFormattingException e ) { throw new MojoExecutionException( "Failed to create assembly: " + e.getMessage(), e ); } catch ( InvalidAssemblerConfigurationException e ) { throw new MojoFailureException( assembly, "Assembly is incorrectly configured: " + assembly.getId(), "Assembly: " + assembly.getId() + " is not configured correctly: " + e.getMessage() ); } } } /** * Returns true if the current project is located at the Execution Root Directory (where mvn was launched) * @return */ protected boolean isThisTheExecutionRoot() { Log log = this.getLog(); log.debug("Root Folder:" + mavenSession.getExecutionRootDirectory()); log.debug("Current Folder:"+ basedir ); boolean result = mavenSession.getExecutionRootDirectory().equalsIgnoreCase(basedir.toString()); if (result) { log.debug( "This is the execution root." ); } else { log.debug( "This is NOT the execution root." ); } return result; } protected AssemblyArchiver getAssemblyArchiver() { return assemblyArchiver; } protected AssemblyReader getAssemblyReader() { return assemblyReader; } public File getBasedir() { return basedir; } public String getDescriptor() { return descriptor; } public String getDescriptorId() { return descriptorId; } public String[] getDescriptorReferences() { return descriptorRefs; } public File getDescriptorSourceDirectory() { return descriptorSourceDirectory; } public String[] getDescriptors() { return descriptors; } public abstract MavenProject getProject(); public File getSiteDirectory() { return siteDirectory; } public boolean isSiteIncluded() { return includeSite; } public String getFinalName() { return finalName; } public boolean isAssemblyIdAppended() { return appendAssemblyId; } public String getTarLongFileMode() { return tarLongFileMode; } public File getOutputDirectory() { return outputDirectory; } public MavenArchiveConfiguration getJarArchiveConfiguration() { return archive; } public File getWorkingDirectory() { return workDirectory; } public ArtifactRepository getLocalRepository() { return localRepository; } public File getTemporaryRootDirectory() { return tempRoot; } public File getArchiveBaseDirectory() { return archiveBaseDirectory; } public List getFilters() { if ( filters == null ) { filters = getProject().getBuild().getFilters(); } return filters; } public List getReactorProjects() { return reactorProjects; } public String getClassifier() { // TODO Auto-generated method stub return null; } protected MavenProjectHelper getProjectHelper() { return projectHelper; } public void setAppendAssemblyId( boolean appendAssemblyId ) { this.appendAssemblyId = appendAssemblyId; } public void setArchive( MavenArchiveConfiguration archive ) { this.archive = archive; } public void setArchiveBaseDirectory( File archiveBaseDirectory ) { this.archiveBaseDirectory = archiveBaseDirectory; } public void setAssemblyArchiver( AssemblyArchiver assemblyArchiver ) { this.assemblyArchiver = assemblyArchiver; } public void setAssemblyReader( AssemblyReader assemblyReader ) { this.assemblyReader = assemblyReader; } public void setBasedir( File basedir ) { this.basedir = basedir; } public void setClassifier( String classifier ) { this.classifier = classifier; } public void setDescriptor( String descriptor ) { this.descriptor = descriptor; } public void setDescriptorId( String descriptorId ) { this.descriptorId = descriptorId; } public void setDescriptorRefs( String[] descriptorRefs ) { this.descriptorRefs = descriptorRefs; } public void setDescriptors( String[] descriptors ) { this.descriptors = descriptors; } public void setDescriptorSourceDirectory( File descriptorSourceDirectory ) { this.descriptorSourceDirectory = descriptorSourceDirectory; } public void setFilters( List filters ) { this.filters = filters; } public void setFinalName( String finalName ) { this.finalName = finalName; } public void setIncludeSite( boolean includeSite ) { this.includeSite = includeSite; } public void setLocalRepository( ArtifactRepository localRepository ) { this.localRepository = localRepository; } public void setOutputDirectory( File outputDirectory ) { this.outputDirectory = outputDirectory; } public void setProjectHelper( MavenProjectHelper projectHelper ) { this.projectHelper = projectHelper; } public void setReactorProjects( List reactorProjects ) { this.reactorProjects = reactorProjects; } public void setSiteDirectory( File siteDirectory ) { this.siteDirectory = siteDirectory; } public void setTarLongFileMode( String tarLongFileMode ) { this.tarLongFileMode = tarLongFileMode; } public void setTempRoot( File tempRoot ) { this.tempRoot = tempRoot; } public void setWorkDirectory( File workDirectory ) { this.workDirectory = workDirectory; } public List getRemoteRepositories() { return remoteRepositories; } public boolean isDryRun() { return dryRun; } public boolean isIgnoreDirFormatExtensions() { return ignoreDirFormatExtensions; } public boolean isIgnoreMissingDescriptor() { return ignoreMissingDescriptor; } public void setIgnoreMissingDescriptor(boolean ignoreMissingDescriptor) { this.ignoreMissingDescriptor = ignoreMissingDescriptor; } public MavenSession getMavenSession() { return this.mavenSession; } public String getArchiverConfig() { return archiverConfig == null ? null : archiverConfig.toString(); } public MavenFileFilter getMavenFileFilter() { return mavenFileFilter; } } ././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/mojos/AssemblyMojo.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/mojos/AssemblyMojo.ja0000644000175000017500000000402011122022477033601 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.mojos; /* * 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 org.apache.maven.project.MavenProject; /** * Assemble an application bundle or distribution using an assembly descriptor from the command line. * This goal will force Maven to build all included POMs up to the package phase BEFORE * the assembly is processed. *
* * NOTE: This goal should ONLY be run from the command line, and if building a multimodule project * it should be used from the root POM. Use the assembly:single goal for binding * your assembly to the lifecycle. *
* * @author John Casey * @author Brett Porter * @author Vincent Siveton * @version $Id: AssemblyMojo.java 727187 2008-12-16 22:01:35Z jdcasey $ * * @goal assembly * @execute phase="package" * @aggregator */ public class AssemblyMojo extends AbstractAssemblyMojo { /** * Get the executed project from the forked lifecycle. * * @parameter expression="${executedProject}" */ private MavenProject executedProject; public MavenProject getProject() { return executedProject; } } ././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/mojos/SingleAssemblyMojo.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/mojos/SingleAssemblyM0000644000175000017500000000332411122022477033650 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.mojos; /* * 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 org.apache.maven.project.MavenProject; /** * Assemble an application bundle or distribution from an assembly descriptor. * This goal is suitable either for binding to the lifecycle or calling directly * from the command line (provided all required files are available before the * build starts, or are produced by another goal specified before this one * on the command line). * * @author John Casey * @author Brett Porter * @version $Id: SingleAssemblyMojo.java 727187 2008-12-16 22:01:35Z jdcasey $ * @goal single */ public class SingleAssemblyMojo extends AbstractAssemblyMojo { /** * @parameter default-value="${project}" * @required * @readonly */ private MavenProject project; public MavenProject getProject() { return project; } } ././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/mojos/AttachedAssemblyMojo.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/mojos/AttachedAssembl0000644000175000017500000000375211123544663033652 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.mojos; /* * 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 org.apache.maven.project.MavenProject; /** * Assemble an application bundle or distribution from an assembly descriptor, * WITHOUT first forcing Maven to build all POMs to the package * phase (as is required by the assembly:assembly goal). *
* * NOTE: This goal should ONLY be run from the command line, and if building a multimodule project * it should be used from the root POM. Use the assembly:single goal for binding * your assembly to the lifecycle. * * @author John Casey * @author Jerome Lacoste * @version $Id: AttachedAssemblyMojo.java 728546 2008-12-21 22:56:51Z bentmann $ * * @goal attached * @aggregator * @deprecated Use goal: 'assembly' (from the command line) or 'single' (from a lifecycle binding) instead. */ public class AttachedAssemblyMojo extends AbstractAssemblyMojo { /** * @parameter default-value="${project}" * @required * @readonly */ private MavenProject project; public MavenProject getProject() { return project; } } maven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/interpolation/0000755000175000017500000000000011361635313032431 5ustar twernertwerner././@LongLink0000000000000000000000000000017600000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/interpolation/AssemblyExpressionEvaluator.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/interpolation/Assembl0000644000175000017500000000365411123544663033755 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.interpolation; import java.io.File; import org.apache.maven.plugin.assembly.AssemblerConfigurationSource; import org.apache.maven.plugin.assembly.utils.InterpolationConstants; import org.codehaus.plexus.component.configurator.expression.ExpressionEvaluationException; import org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator; import org.codehaus.plexus.interpolation.InterpolationException; import org.codehaus.plexus.interpolation.Interpolator; import org.codehaus.plexus.interpolation.PrefixAwareRecursionInterceptor; public class AssemblyExpressionEvaluator implements ExpressionEvaluator { private final AssemblerConfigurationSource configSource; private Interpolator interpolator; private PrefixAwareRecursionInterceptor interceptor; public AssemblyExpressionEvaluator( AssemblerConfigurationSource configSource ) { this.configSource = configSource; interpolator = AssemblyInterpolator.buildInterpolator( configSource.getProject(), configSource ); interceptor = new PrefixAwareRecursionInterceptor( InterpolationConstants.PROJECT_PREFIXES, true ); } public File alignToBaseDirectory( File f ) { String basePath = configSource.getBasedir().getAbsolutePath(); String path = f.getPath(); if ( !f.isAbsolute() && !path.startsWith( basePath ) ) { return new File( configSource.getBasedir(), path ); } else { return f; } } public Object evaluate( String expression ) throws ExpressionEvaluationException { try { return interpolator.interpolate( expression, interceptor ); } catch ( InterpolationException e ) { throw new ExpressionEvaluationException( "Interpolation failed for archiver expression: " + expression, e ); } } } ././@LongLink0000000000000000000000000000020100000000000011556 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/interpolation/AssemblyInterpolationException.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/interpolation/Assembl0000644000175000017500000000402010741522710033733 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.interpolation; /* * 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. */ /** * @version $Id: AssemblyInterpolationException.java 610981 2008-01-10 23:10:00Z vsiveton $ */ public class AssemblyInterpolationException extends Exception { private String expression; private String originalMessage; public AssemblyInterpolationException( String message ) { super( message ); } public AssemblyInterpolationException( String message, Throwable cause ) { super( message, cause ); } public AssemblyInterpolationException( String expression, String message, Throwable cause ) { super( "The Assembly expression: " + expression + " could not be evaluated. Reason: " + message, cause ); this.expression = expression; this.originalMessage = message; } public AssemblyInterpolationException( String expression, String message ) { super( "The Assembly expression: " + expression + " could not be evaluated. Reason: " + message ); this.expression = expression; this.originalMessage = message; } public String getExpression() { return expression; } public String getOriginalMessage() { return originalMessage; } } ././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/interpolation/AssemblyInterpolator.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/interpolation/Assembl0000644000175000017500000002040411212274043033734 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.interpolation; /* * 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 org.apache.maven.execution.MavenSession; import org.apache.maven.plugin.assembly.AssemblerConfigurationSource; import org.apache.maven.plugin.assembly.model.Assembly; import org.apache.maven.plugin.assembly.utils.AssemblyFileUtils; import org.apache.maven.plugin.assembly.utils.CommandLineUtils; import org.apache.maven.plugin.assembly.utils.InterpolationConstants; import org.apache.maven.project.MavenProject; import org.codehaus.plexus.interpolation.InterpolationException; import org.codehaus.plexus.interpolation.InterpolationPostProcessor; import org.codehaus.plexus.interpolation.Interpolator; import org.codehaus.plexus.interpolation.PrefixAwareRecursionInterceptor; import org.codehaus.plexus.interpolation.PrefixedObjectValueSource; import org.codehaus.plexus.interpolation.PrefixedPropertiesValueSource; import org.codehaus.plexus.interpolation.PropertiesBasedValueSource; import org.codehaus.plexus.interpolation.RecursionInterceptor; import org.codehaus.plexus.interpolation.StringSearchInterpolator; import org.codehaus.plexus.interpolation.object.FieldBasedObjectInterpolator; import org.codehaus.plexus.interpolation.object.ObjectInterpolationWarning; import org.codehaus.plexus.logging.AbstractLogEnabled; import org.codehaus.plexus.logging.Logger; import org.codehaus.plexus.logging.console.ConsoleLogger; import java.io.File; import java.io.IOException; import java.util.Collections; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Properties; import java.util.Set; /** * @version $Id: AssemblyInterpolator.java 782119 2009-06-05 19:55:15Z jdcasey $ */ public class AssemblyInterpolator extends AbstractLogEnabled { private static final Set INTERPOLATION_BLACKLIST; private static final Properties ENVIRONMENT_VARIABLES; static { Set blacklist = new HashSet(); blacklist.add( "outputFileNameMapping" ); blacklist.add( "outputDirectoryMapping" ); blacklist.add( "outputDirectory" ); INTERPOLATION_BLACKLIST = blacklist; Properties environmentVariables; try { environmentVariables = CommandLineUtils.getSystemEnvVars( false ); } catch ( IOException e ) { environmentVariables = new Properties(); } ENVIRONMENT_VARIABLES = environmentVariables; } public AssemblyInterpolator() throws IOException { } public Assembly interpolate( Assembly assembly, MavenProject project, AssemblerConfigurationSource configSource ) throws AssemblyInterpolationException { Set blacklistFields = new HashSet( FieldBasedObjectInterpolator.DEFAULT_BLACKLISTED_FIELD_NAMES ); blacklistFields.addAll( INTERPOLATION_BLACKLIST ); Set blacklistPkgs = FieldBasedObjectInterpolator.DEFAULT_BLACKLISTED_PACKAGE_PREFIXES; FieldBasedObjectInterpolator objectInterpolator = new FieldBasedObjectInterpolator( blacklistFields, blacklistPkgs ); Interpolator interpolator = buildInterpolator( project, configSource ); // TODO: Will this adequately detect cycles between prefixed property references and prefixed project // references?? RecursionInterceptor interceptor = new PrefixAwareRecursionInterceptor( InterpolationConstants.PROJECT_PREFIXES, true ); try { objectInterpolator.interpolate( assembly, interpolator, interceptor ); } catch ( InterpolationException e ) { throw new AssemblyInterpolationException( "Failed to interpolate assembly with ID: " + assembly.getId() + ". Reason: " + e.getMessage(), e ); } finally { interpolator.clearAnswers(); } if ( objectInterpolator.hasWarnings() && getLogger().isDebugEnabled() ) { StringBuffer sb = new StringBuffer(); sb.append( "One or more minor errors occurred while interpolating the assembly with ID: " + assembly.getId() + ":\n" ); List warnings = objectInterpolator.getWarnings(); for ( Iterator it = warnings.iterator(); it.hasNext(); ) { ObjectInterpolationWarning warning = (ObjectInterpolationWarning) it.next(); sb.append( '\n' ).append( warning ); } sb.append( "\n\nThese values were SKIPPED, but the assembly process will continue.\n" ); getLogger().debug( sb.toString() ); } return assembly; } public static Interpolator buildInterpolator( final MavenProject project, AssemblerConfigurationSource configSource ) { StringSearchInterpolator interpolator = new StringSearchInterpolator(); interpolator.setCacheAnswers( true ); MavenSession session = configSource.getMavenSession(); if ( session != null ) { Properties userProperties = null; try { userProperties = session.getExecutionProperties(); } catch ( NoSuchMethodError nsmer ) { // OK, so user is using Maven <= 2.0.8. No big deal. } if ( userProperties != null ) { // 4 interpolator.addValueSource( new PropertiesBasedValueSource( userProperties ) ); } } interpolator.addValueSource( new PrefixedPropertiesValueSource( InterpolationConstants.PROJECT_PROPERTIES_PREFIXES, project.getProperties(), true ) ); interpolator.addValueSource( new PrefixedObjectValueSource( InterpolationConstants.PROJECT_PREFIXES, project, true ) ); Properties commandLineProperties = System.getProperties(); try { if ( session != null ) { commandLineProperties = session.getExecutionProperties(); } } catch ( NoSuchMethodError nsmer ) { // OK, so user is using Maven <= 2.0.8. No big deal. } // 7 interpolator.addValueSource( new PropertiesBasedValueSource( commandLineProperties ) ); interpolator.addValueSource( new PrefixedPropertiesValueSource( Collections.singletonList( "env." ), ENVIRONMENT_VARIABLES, true ) ); interpolator.addPostProcessor( new PathTranslatingPostProcessor( project.getBasedir() ) ); return interpolator; } protected Logger getLogger() { Logger logger = super.getLogger(); if ( logger == null ) { logger = new ConsoleLogger( Logger.LEVEL_INFO, "interpolator-internal" ); enableLogging( logger ); } return logger; } private static final class PathTranslatingPostProcessor implements InterpolationPostProcessor { private final File basedir; public PathTranslatingPostProcessor( File basedir ) { this.basedir = basedir; } public Object execute( String expression, Object value ) { String path = String.valueOf( value ); return AssemblyFileUtils.makePathRelativeTo( path, basedir ); } } } maven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/filter/0000755000175000017500000000000011361635312031026 5ustar twernertwerner././@LongLink0000000000000000000000000000017300000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/filter/ComponentsXmlArchiverFileFilter.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/filter/ComponentsXmlA0000644000175000017500000001757611220755272033702 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.filter; /* * 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 org.codehaus.plexus.archiver.Archiver; import org.codehaus.plexus.archiver.ArchiverException; import org.codehaus.plexus.archiver.ResourceIterator; import org.codehaus.plexus.archiver.UnArchiver; import org.codehaus.plexus.components.io.fileselectors.FileInfo; import org.codehaus.plexus.util.IOUtil; import org.codehaus.plexus.util.xml.Xpp3Dom; import org.codehaus.plexus.util.xml.Xpp3DomBuilder; import org.codehaus.plexus.util.xml.Xpp3DomWriter; import org.codehaus.plexus.util.xml.pull.XmlPullParserException; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.io.Reader; import java.io.Writer; import java.util.Collections; import java.util.Iterator; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; /** * Components XML file filter. * * @author Brett Porter * @version $Id: ComponentsXmlArchiverFileFilter.java 788498 2009-06-25 20:14:50Z bentmann $ */ public class ComponentsXmlArchiverFileFilter implements ContainerDescriptorHandler { // [jdcasey] Switched visibility to protected to allow testing. Also, because this class isn't final, it should allow // some minimal access to the components accumulated for extending classes. protected Map components; private boolean excludeOverride = false; public static final String COMPONENTS_XML_PATH = "META-INF/plexus/components.xml"; protected void addComponentsXml( Reader componentsReader ) throws XmlPullParserException, IOException { Xpp3Dom newDom = Xpp3DomBuilder.build( componentsReader ); if ( newDom != null ) { newDom = newDom.getChild( "components" ); } if ( newDom != null ) { Xpp3Dom[] children = newDom.getChildren(); for ( int i = 0; i < children.length; i++ ) { Xpp3Dom component = children[i]; if ( components == null ) { components = new LinkedHashMap(); } String role = component.getChild( "role" ).getValue(); Xpp3Dom child = component.getChild( "role-hint" ); String roleHint = child != null ? child.getValue() : ""; String key = role + roleHint; if ( !components.containsKey( key ) ) { System.out.println( "Adding " + key ); components.put( key, component ); } else { System.out.println( "Component: " + key + " is already defined. Skipping." ); } } } } // public void addComponentsXml( File componentsXml ) // throws IOException, XmlPullParserException // { // FileReader fileReader = null; // try // { // fileReader = new FileReader( componentsXml ); // // addComponentsXml( fileReader ); // } // finally // { // IOUtil.close( fileReader ); // } // } private void addToArchive( Archiver archiver ) throws IOException, ArchiverException { if ( components != null ) { File f = File.createTempFile( "maven-assembly-plugin", "tmp" ); f.deleteOnExit(); // TODO use WriterFactory.newXmlWriter() when plexus-utils is upgraded to 1.4.5+ Writer fileWriter = new OutputStreamWriter( new FileOutputStream( f ), "UTF-8" ); try { Xpp3Dom dom = new Xpp3Dom( "component-set" ); Xpp3Dom componentDom = new Xpp3Dom( "components" ); dom.addChild( componentDom ); for ( Iterator i = components.values().iterator(); i.hasNext(); ) { Xpp3Dom component = (Xpp3Dom) i.next(); componentDom.addChild( component ); } Xpp3DomWriter.write( fileWriter, dom ); } finally { IOUtil.close( fileWriter ); } excludeOverride = true; archiver.addFile( f, COMPONENTS_XML_PATH ); excludeOverride = false; } } public void finalizeArchiveCreation( Archiver archiver ) throws ArchiverException { // this will prompt the isSelected() call, below, for all resources added to the archive. // FIXME: This needs to be corrected in the AbstractArchiver, where // runArchiveFinalizers() is called before regular resources are added... // which is done because the manifest needs to be added first, and the // manifest-creation component is a finalizer in the assembly plugin... for ( ResourceIterator it = archiver.getResources(); it.hasNext(); ) { it.next(); } try { addToArchive( archiver ); } catch ( IOException e ) { throw new ArchiverException( "Error finalizing component-set for archive. Reason: " + e.getMessage(), e ); } } public List getVirtualFiles() { if ( ( components != null ) && !components.isEmpty() ) { return Collections.singletonList( COMPONENTS_XML_PATH ); } return null; } public boolean isSelected( FileInfo fileInfo ) throws IOException { if ( fileInfo.isFile() ) { if ( excludeOverride ) { return true; } String entry = fileInfo.getName().replace( '\\', '/' ); if ( entry.startsWith( "/" ) ) { entry = entry.substring( 1 ); } if ( ComponentsXmlArchiverFileFilter.COMPONENTS_XML_PATH.equals( entry ) ) { InputStream stream = null; InputStreamReader reader = null; try { stream = fileInfo.getContents(); // TODO use ReaderFactory.newXmlReader() when plexus-utils is upgraded to 1.4.5+ reader = new InputStreamReader( stream, "UTF-8" ); addComponentsXml( reader ); } catch ( XmlPullParserException e ) { IOException error = new IOException( "Error finalizing component-set for archive. Reason: " + e.getMessage() ); error.initCause( e ); throw error; } finally { IOUtil.close( stream ); IOUtil.close( reader ); } return false; } else { return true; } } else { return true; } } public void finalizeArchiveExtraction( UnArchiver unarchiver ) throws ArchiverException { } } ././@LongLink0000000000000000000000000000016600000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/filter/ContainerDescriptorHandler.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/filter/ContainerDescr0000644000175000017500000000222310741522710033651 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.filter; /* * 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 org.codehaus.plexus.archiver.ArchiveFinalizer; import org.codehaus.plexus.components.io.fileselectors.FileSelector; /** * @version $Id: ContainerDescriptorHandler.java 610981 2008-01-10 23:10:00Z vsiveton $ */ public interface ContainerDescriptorHandler extends ArchiveFinalizer, FileSelector { } ././@LongLink0000000000000000000000000000017600000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/filter/SimpleAggregatingDescriptorHandler.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/filter/SimpleAggregat0000644000175000017500000001470111212274043033642 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.filter; /* * 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 org.apache.maven.plugin.assembly.utils.AssemblyFileUtils; import org.codehaus.plexus.archiver.Archiver; import org.codehaus.plexus.archiver.ArchiverException; import org.codehaus.plexus.archiver.UnArchiver; import org.codehaus.plexus.components.io.fileselectors.FileInfo; import org.codehaus.plexus.logging.LogEnabled; import org.codehaus.plexus.logging.Logger; import org.codehaus.plexus.logging.console.ConsoleLogger; import org.codehaus.plexus.util.IOUtil; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.io.InputStreamReader; import java.io.Reader; import java.io.StringWriter; import java.io.Writer; import java.util.ArrayList; import java.util.Collections; import java.util.Date; import java.util.Iterator; import java.util.List; /** * @version $Id: SimpleAggregatingDescriptorHandler.java 782119 2009-06-05 19:55:15Z jdcasey $ */ public class SimpleAggregatingDescriptorHandler implements ContainerDescriptorHandler, LogEnabled { // component configuration. private String filePattern; private String outputPath; private String commentChars = "#"; // calculated, temporary values. private boolean overrideFilterAction; private StringWriter aggregateWriter = new StringWriter(); private List filenames = new ArrayList(); // injected by the container. private Logger logger; public void finalizeArchiveCreation( Archiver archiver ) throws ArchiverException { checkConfig(); if ( outputPath.endsWith( "/" ) ) { throw new ArchiverException( "Cannot write aggregated properties to a directory. You must specify a file name in the outputPath configuration for this handler. (handler: " + getClass().getName() ); } if ( outputPath.startsWith( "/" ) ) { outputPath = outputPath.substring( 1 ); } File temp = writePropertiesFile(); overrideFilterAction = true; archiver.addFile( temp, outputPath ); overrideFilterAction = false; } private File writePropertiesFile() throws ArchiverException { File f; Writer writer = null; try { f = File.createTempFile( "maven-assembly-plugin", "tmp" ); f.deleteOnExit(); // FIXME if it is a properties file, encoding should be ISO-8859-1 writer = new FileWriter( f ); // platform encoding writer.write( commentChars + " Aggregated on " + new Date() + " from: " ); for ( Iterator it = filenames.iterator(); it.hasNext(); ) { String filename = (String) it.next(); writer.write( "\n" + commentChars + " " + filename ); } writer.write( "\n\n" ); writer.write( aggregateWriter.toString() ); } catch ( IOException e ) { throw new ArchiverException( "Error adding aggregated properties to finalize archive creation. Reason: " + e.getMessage(), e ); } finally { IOUtil.close( writer ); } return f; } public void finalizeArchiveExtraction( UnArchiver unarchiver ) throws ArchiverException { } public List getVirtualFiles() { checkConfig(); return Collections.singletonList( outputPath ); } public boolean isSelected( FileInfo fileInfo ) throws IOException { checkConfig(); if ( overrideFilterAction ) { System.out.println( "Filtering overridden. Returning true." ); return true; } String name = fileInfo.getName(); name = AssemblyFileUtils.normalizePath( name ); name = name.replace( File.separatorChar, '/' ); if ( fileInfo.isFile() && name.matches( filePattern ) ) { readProperties( fileInfo ); filenames.add( name ); return false; } return true; } private void checkConfig() { if ( filePattern == null || outputPath == null ) { throw new IllegalStateException( "You must configure filePattern and outputPath in your containerDescriptorHandler declaration." ); } } private void readProperties( FileInfo fileInfo ) throws IOException { StringWriter writer = new StringWriter(); Reader reader = null; try { // FIXME if it is a properties file, encoding should be ISO-8859-1 reader = new InputStreamReader( fileInfo.getContents() ); // platform encoding IOUtil.copy( reader, writer ); } finally { IOUtil.close( reader ); } String content = writer.toString(); aggregateWriter.write( "\n" ); aggregateWriter.write( content ); } protected final Logger getLogger() { if ( logger == null ) { logger = new ConsoleLogger( Logger.LEVEL_INFO, "" ); } return logger; } public void enableLogging( Logger logger ) { this.logger = logger; } public String getFilePattern() { return filePattern; } public void setFilePattern( String filePattern ) { this.filePattern = filePattern; } public String getOutputPath() { return outputPath; } public void setOutputPath( String outputPath ) { this.outputPath = outputPath; } } ././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/AssemblerConfigurationSource.javamaven-assembly-plugin-2.2~beta5/src/main/java/org/apache/maven/plugin/assembly/AssemblerConfiguratio0000644000175000017500000000441211243306471033754 0ustar twernertwernerpackage org.apache.maven.plugin.assembly; /* * 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 org.apache.maven.archiver.MavenArchiveConfiguration; import org.apache.maven.artifact.repository.ArtifactRepository; import org.apache.maven.execution.MavenSession; import org.apache.maven.project.MavenProject; import org.apache.maven.shared.filtering.MavenFileFilter; import java.io.File; import java.util.List; /** * @version $Id: AssemblerConfigurationSource.java 806277 2009-08-20 17:51:53Z epunzalan $ */ public interface AssemblerConfigurationSource { String getDescriptor(); String getDescriptorId(); String[] getDescriptors(); String[] getDescriptorReferences(); File getDescriptorSourceDirectory(); File getBasedir(); MavenProject getProject(); boolean isSiteIncluded(); File getSiteDirectory(); String getFinalName(); boolean isAssemblyIdAppended(); String getClassifier(); String getTarLongFileMode(); File getOutputDirectory(); File getWorkingDirectory(); MavenArchiveConfiguration getJarArchiveConfiguration(); ArtifactRepository getLocalRepository(); File getTemporaryRootDirectory(); File getArchiveBaseDirectory(); List getFilters(); List getReactorProjects(); List getRemoteRepositories(); boolean isDryRun(); boolean isIgnoreDirFormatExtensions(); boolean isIgnoreMissingDescriptor(); MavenSession getMavenSession(); String getArchiverConfig(); MavenFileFilter getMavenFileFilter(); } maven-assembly-plugin-2.2~beta5/src/main/assembly/0000755000175000017500000000000011361635311022203 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/main/resources/0000755000175000017500000000000011361635314022401 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/main/resources/assemblies/0000755000175000017500000000000011361635314024530 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/main/resources/assemblies/project.xml0000644000175000017500000000305611212274043026715 0ustar twernertwerner project tar.gz tar.bz2 zip ${project.basedir} / true **/*.log **/${project.build.directory}/** maven-assembly-plugin-2.2~beta5/src/main/resources/assemblies/src.xml0000644000175000017500000000340611212274043026035 0ustar twernertwerner src tar.gz tar.bz2 zip ${project.basedir} README* LICENSE* NOTICE* pom.xml true ${project.basedir}/src true maven-assembly-plugin-2.2~beta5/src/main/resources/assemblies/jar-with-dependencies.xml0000644000175000017500000000325111213477741031430 0ustar twernertwerner jar-with-dependencies jar false / false true runtime ${project.build.outputDirectory} / maven-assembly-plugin-2.2~beta5/src/main/resources/assemblies/bin.xml0000644000175000017500000000351411212274043026016 0ustar twernertwerner bin tar.gz tar.bz2 zip ${project.basedir} / README* LICENSE* NOTICE* ${project.build.directory} / *.jar ${project.build.directory}/site docs maven-assembly-plugin-2.2~beta5/src/main/resources/META-INF/0000755000175000017500000000000011361635314023541 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/main/resources/META-INF/plexus/0000755000175000017500000000000011361635314025061 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/main/resources/META-INF/plexus/components.xml0000644000175000017500000001172511212274043027767 0ustar twernertwerner org.codehaus.plexus.archiver.UnArchiver sar org.codehaus.plexus.archiver.zip.ZipUnArchiver per-lookup org.codehaus.plexus.components.io.resources.PlexusIoResourceCollection sar org.codehaus.plexus.components.io.resources.PlexusIoZipFileResourceCollection per-lookup org.apache.maven.plugin.assembly.filter.ContainerDescriptorHandler plexus org.apache.maven.plugin.assembly.filter.ComponentsXmlArchiverFileFilter per-lookup org.apache.maven.plugin.assembly.filter.ContainerDescriptorHandler file-aggregator org.apache.maven.plugin.assembly.filter.SimpleAggregatingDescriptorHandler per-lookup org.apache.maven.artifact.handler.ArtifactHandler assembly-component org.apache.maven.artifact.handler.DefaultArtifactHandler assembly-component assembly-component xml xml false true org.apache.maven.lifecycle.mapping.LifecycleMapping assembly-component org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping default org.apache.maven.plugins:maven-assembly-plugin:attach-component-descriptor org.apache.maven.plugins:maven-install-plugin:install org.apache.maven.plugins:maven-deploy-plugin:deploy org.apache.maven.artifact.handler.ArtifactHandler assembly-descriptor org.apache.maven.artifact.handler.DefaultArtifactHandler assembly-descriptor assembly-descriptor xml xml false true org.apache.maven.lifecycle.mapping.LifecycleMapping assembly-descriptor org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping default org.apache.maven.plugins:maven-assembly-plugin:attach-assembly-descriptor org.apache.maven.plugins:maven-install-plugin:install org.apache.maven.plugins:maven-deploy-plugin:deploy maven-assembly-plugin-2.2~beta5/src/main/mdo/0000755000175000017500000000000011361635311021143 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/main/mdo/component.mdo0000644000175000017500000005474411212274043023660 0ustar twernertwerner component Component When creating several assemblies for a project with a custom assembly descriptor, it can't be helped that you will be duplicating some parts of a defined assembly. These duplicates can be extracted and placed in a separate file called a descriptor component.

Descriptor components contain FileSets, Files, and DependencySets meant to be shared by assembly descriptors by referencing them using <componentDescriptors>. It allows multiple assemblies to share a set of user defined collections.

]]>
package org.apache.maven.plugin.assembly.model Component Describes the component layout and packaging. 1.0.0+ fileSets 1.0.0+ FileSet * files 1.0.0+ FileItem * dependencySets 1.0.0+ DependencySet * repositories 1.1.0+ Repository * containerDescriptorHandlers 1.1.0+ ContainerDescriptorHandlerConfig * SetBase 1.0.0+ useStrictFiltering 1.1.0+ boolean false When specified as true, any include/exclude patterns which aren't used to filter an actual artifact during assembly creation will cause the build to fail with an error. This is meant to highlight obsolete inclusions or exclusions, or else signal that the assembly descriptor is incorrectly configured. useDefaultExcludes 1.1.0+ boolean true Whether standard exclusion patterns, such as those matching CVS and Subversion metadata files, should be used when calculating the files affected by this set. For backward compatibility, the default value is true. outputDirectory 1.0.0+ String Sets the output directory relative to the root of the root directory of the assembly. For example, "log" will put the specified files in the log directory. includes 1.0.0+ String * excludes 1.0.0+ String * fileMode 1.0.0+ String (more on unix-style permissions) ]]> directoryMode 1.0.0+ String (more on unix-style permissions) ]]> FileSet 1.0.0+ SetBase A fileSet allows the inclusion of groups of files into the assembly. directory 1.0.0+ String Sets the absolute or relative location from the module's directory. For example, "src/main/bin" would select this subdirectory of the project in which this dependency is defined. true lineEnding 1.0.0+ String
  • "keep" - Preserve all line endings
  • "unix" - Use Unix-style line endings
  • "lf" - Use a single line-feed line endings
  • "dos" - Use DOS-style line endings
  • "crlf" - Use Carraige-return, line-feed line endings
  • ]]>
    filtered 1.1.0+ Whether to filter symbols in the files as they are copied, using properties from the build configuration. false boolean
    FileItem 1.0.0+ A file allows individual file inclusion with the option to change the destination filename not supported by fileSets. source 1.0.0+ String true Sets the absolute or relative path from the module's directory of the file to be included in the assembly. outputDirectory 1.0.0+ String false Sets the output directory relative to the root of the root directory of the assembly. For example, "log" will put the specified files in the log directory. destName 1.0.0+ String Sets the destination filename in the outputDirectory. Default is the same name as the source's file. fileMode 1.0.0+ String (more on unix-style permissions) ]]> lineEnding 1.0.0+ String
  • "keep" - Preserve all line endings
  • "unix" - Use Unix-style line endings
  • "lf" - Use a single line-feed line endings
  • "dos" - Use DOS-style line endings
  • "crlf" - Use Carraige-return, line-feed line endings
  • ]]>
    filtered 1.0.0+ boolean Sets whether to determine if the file is filtered.
    DependencySet 1.0.0+ SetBase A dependencySet allows inclusion and exclusion of project dependencies in the assembly. outputFileNameMapping 1.0.0+ String ${artifact.artifactId}-${artifact.version}${dashClassifier?}.${artifact.extension} Sets the mapping pattern for all NON-UNPACKED dependencies included in this assembly. Default is ${artifact.artifactId}-${artifact.version}${dashClassifier?}.${artifact.extension}. If the artifact doesn't have a classifier, that part of the pattern will be left off. (Since 2.2-beta-2; 2.2-beta-1 uses ${artifactId}-${version}${dashClassifier?}.${extension}) NOTE: If the dependencySet specifies unpack == true, outputFileNameMapping WILL NOT BE USED; in these cases, use outputDirectory. unpack boolean false If set to true, this property will unpack all dependencies into the specified output directory. When set to false dependencies will be includes as archives (jars). Default value is false. unpackOptions 1.1.0+ Allows the specification of includes and excludes, along with filtering options, for items unpacked from a dependency artifact. UnpackOptions scope 1.0.0+ String runtime true Sets the dependency scope for this dependencySet. Default scope value is "runtime". useProjectArtifact 1.1.0+ boolean true useProjectAttachments 1.1.0+ boolean false useTransitiveDependencies 1.1.0+ boolean true Determines whether transitive dependencies will be included in the processing of the current dependency set. If true, includes/excludes/useTransitiveFiltering will apply to transitive dependency artifacts in addition to the main project dependency artifacts. If false, useTransitiveFiltering is meaningless, and includes/excludes only affect the immediate dependencies of the project. By default, this value is true. (Since 2.2) useTransitiveFiltering 1.1.0+ boolean false Determines whether the include/exclude patterns in this dependency set will be applied to the transitive path of a given artifact. If true, and the current artifact is a transitive dependency brought in by another artifact which matches an inclusion or exclusion pattern, then the current artifact has the same inclusion/exclusion logic applied to it as well. By default, this value is false, in order to preserve backward compatibility with version 2.1. This means that includes/excludes only apply directly to the current artifact, and not to the transitive set of artifacts which brought it in. (Since 2.2) Repository 1.1.0+ SetBase Defines a Maven repository to be included in the assembly. includeMetadata 1.1.0+ boolean false If set to true, this property will trigger the creation of repository metadata which will allow the repository to be used as a functional remote repository. groupVersionAlignments 1.1.0+ Align a group to a version or an individual artifact. GroupVersionAlignment * scope 1.1.0+ String runtime true Specifies the scope for artifacts included in this repository. Default scope value is "runtime". GroupVersionAlignment 1.1.0+ Defines a Maven repository to be included in the assembly. id 1.1.0+ String The groupId for which you want to align the versions. version 1.1.0+ String The version you want to align this group to. excludes 1.1.0+ Artifact Ids of the artifacts you want excluded from version alignment. String * UnpackOptions 1.1.0+ Specifies options for including/excluding/filtering items extracted from an archive. includes 1.1.0+ Set of patterns for matching items to be included from an archive as it is unpacked. String * excludes 1.1.0+ Set of patterns for matching items to be excluded from an archive as it is unpacked. String * filtered 1.1.0+ Whether to filter symbols in the files as they are unpacked from the archive, using properties from the build configuration. false boolean ContainerDescriptorHandlerConfig 1.1.0+ Configures a filter for files headed into the assembly archive, to enable aggregation of various types of descriptor fragments, such as components.xml, web.xml, etc. handlerName 1.1.0+ The handler's plexus role-hint, for lookup from the container. String true configuration 1.1.1 Configuration options for the handler. DOM
    maven-assembly-plugin-2.2~beta5/src/main/mdo/descriptor.mdo0000644000175000017500000011212311212274043024016 0ustar twernertwerner assembly Assembly Maven Assembly Plugin relies on the provided assembly descriptors to dictate its execution. Although there are already prefabricated descriptors available for use, they can only suffice some of the common assembly requirements.

    So in order for you to customize the way the Assembly Plugin creates your assemblies, you need to know how to use the Assembly Descriptor.

    This descriptor specifies the type of assembly archive to create, the contents of the assembly, and the ways in which dependencies or its modules are bundled with an assembly.

    ]]>
    package org.apache.maven.plugin.assembly.model Assembly 1.0.0+ id 1.0.0+ true String Sets the id of this assembly. This is a symbolic name for a particular assembly of files from this project. Also, aside from being used to distinctly name the assembled package by attaching its value to the generated archive, the id is used as your artifact's classifier when deploying. formats 1.0.0+ true String *
  • "zip" - Creates a ZIP file format
  • "gz" - Creates a GZIP format
  • "tar" - Creates a TAR format
  • "tar.gz" - Creates a gzip'd TAR format
  • "tar.bz2" - Creates a bzip'd TAR format
  • ]]>
    includeBaseDirectory boolean true Includes a base directory in the final archive. For example, if you are creating an assembly named "your-app", setting includeBaseDirectory to true will create an archive that includes this base directory. If this option is set to false the archive created will unzip its content to the current directory. Default value is true. baseDirectory 1.1.0+ String Sets the base directory of the resulting assembly archive. If this is not set and includeBaseDirectory == true, ${project.build.finalName} will be used instead. (Since 2.2) includeSiteDirectory boolean false Includes a site directory in the final archive. The site directory location of a project is determined by the siteDirectory parameter of the Assembly Plugin. Default value is false. containerDescriptorHandlers 1.1.0+ ContainerDescriptorHandlerConfig * moduleSets 1.0.0+ ModuleSet * fileSets 1.0.0+ FileSet * files 1.0.0+ FileItem * dependencySets 1.0.0+ DependencySet * repositories 1.0.0+ Repository * componentDescriptors 1.0.0+ String * descriptor components for more information. A componentDescriptor is specified by providing one or more of <componentDescriptor> subelements. ]]>
    SetBase 1.0.0+ useStrictFiltering 1.1.0+ boolean false When specified as true, any include/exclude patterns which aren't used to filter an actual artifact during assembly creation will cause the build to fail with an error. This is meant to highlight obsolete inclusions or exclusions, or else signal that the assembly descriptor is incorrectly configured. (Since 2.2) useDefaultExcludes 1.1.0+ boolean true Whether standard exclusion patterns, such as those matching CVS and Subversion metadata files, should be used when calculating the files affected by this set. For backward compatibility, the default value is true. (Since 2.2) outputDirectory 1.0.0+ String Sets the output directory relative to the root of the root directory of the assembly. For example, "log" will put the specified files in the log directory. includes 1.0.0+ String * excludes 1.0.0+ String * fileMode 1.0.0+ String (more on unix-style permissions) ]]> directoryMode 1.0.0+ String (more on unix-style permissions) ]]> FileSet 1.0.0+ SetBase A fileSet allows the inclusion of groups of files into the assembly. directory 1.0.0+ String Sets the absolute or relative location from the module's directory. For example, "src/main/bin" would select this subdirectory of the project in which this dependency is defined. true lineEnding 1.0.0+ String
  • "keep" - Preserve all line endings
  • "unix" - Use Unix-style line endings
  • "lf" - Use a single line-feed line endings
  • "dos" - Use DOS-style line endings
  • "crlf" - Use Carraige-return, line-feed line endings
  • ]]>
    filtered 1.1.0+ Whether to filter symbols in the files as they are copied, using properties from the build configuration. (Since 2.2) false boolean
    FileItem 1.0.0+ A file allows individual file inclusion with the option to change the destination filename not supported by fileSets. source 1.0.0+ String true Sets the absolute or relative path from the module's directory of the file to be included in the assembly. outputDirectory 1.0.0+ String false Sets the output directory relative to the root of the root directory of the assembly. For example, "log" will put the specified files in the log directory. destName 1.0.0+ String Sets the destination filename in the outputDirectory. Default is the same name as the source's file. fileMode 1.0.0+ String (more on unix-style permissions) ]]> lineEnding 1.0.0+ String
  • "keep" - Preserve all line endings
  • "unix" - Use Unix-style line endings
  • "lf" - Use a single line-feed line endings
  • "dos" - Use DOS-style line endings
  • "crlf" - Use Carraige-return, line-feed line endings
  • ]]>
    filtered 1.0.0+ boolean Sets whether to determine if the file is filtered.
    DependencySet 1.0.0+ SetBase A dependencySet allows inclusion and exclusion of project dependencies in the assembly. outputFileNameMapping 1.0.0+ String ${artifact.artifactId}-${artifact.version}${dashClassifier?}.${artifact.extension} Sets the mapping pattern for all dependencies included in this assembly. Default is ${artifact.artifactId}-${artifact.version}${dashClassifier?}.${artifact.extension}. (Since 2.2-beta-2; 2.2-beta-1 uses ${artifactId}-${version}${dashClassifier?}.${extension}) unpack 1.0.0+ boolean false If set to true, this property will unpack all dependencies into the specified output directory. When set to false dependencies will be includes as archives (jars). Can only unpack jar, zip, tar.gz, and tar.bz archives. Default value is false. unpackOptions 1.1.0+ Allows the specification of includes and excludes, along with filtering options, for items unpacked from a dependency artifact. (Since 2.2) UnpackOptions scope 1.0.0+ String runtime true Sets the dependency scope for this dependencySet. Default scope value is "runtime". useProjectArtifact 1.1.0+ boolean true useProjectAttachments 1.1.0+ boolean false useTransitiveDependencies 1.1.0+ boolean true Determines whether transitive dependencies will be included in the processing of the current dependency set. If true, includes/excludes/useTransitiveFiltering will apply to transitive dependency artifacts in addition to the main project dependency artifacts. If false, useTransitiveFiltering is meaningless, and includes/excludes only affect the immediate dependencies of the project. By default, this value is true. (Since 2.2) useTransitiveFiltering 1.1.0+ boolean false Determines whether the include/exclude patterns in this dependency set will be applied to the transitive path of a given artifact. If true, and the current artifact is a transitive dependency brought in by another artifact which matches an inclusion or exclusion pattern, then the current artifact has the same inclusion/exclusion logic applied to it as well. By default, this value is false, in order to preserve backward compatibility with version 2.1. This means that includes/excludes only apply directly to the current artifact, and not to the transitive set of artifacts which brought it in. (Since 2.2) ModuleSet NOTE: When using <moduleSets> from the command-line, it is required to pass first the package phase by doing: "mvn package assembly:assembly". This bug/issue is scheduled to be addressed by Maven 2.1. ]]> 1.0.0+ includeSubModules 1.1.0+ boolean true If set to false, the plugin will exclude sub-modules from processing in this ModuleSet. Otherwise, it will process all sub-modules, each subject to include/exclude rules. Default value is true. (Since 2.2) includes 1.0.0+ String * excludes 1.0.0+ String * sources 1.0.0+ When this is present, the plugin will include the source files of the included modules from this set in the resulting assembly. ModuleSources binaries 1.0.0+ When this is present, the plugin will include the binaries of the included modules from this set in the resulting assembly. ModuleBinaries ModuleSources 1.0.0+ SetBase Contains configuration options for including the source files of a project module in an assembly. fileSets 1.1.0+ FileSet * includeModuleDirectory 1.1.0+ boolean true excludeSubModuleDirectories 1.1.0+ boolean true outputDirectoryMapping 1.1.0+ String ${module.artifactId} Sets the mapping pattern for all module base-directories included in this assembly. NOTE: This field is only used if includeModuleDirectory == true. Default is the module's ${artifactId} in 2.2-beta-1, and ${module.artifactId} in subsequent versions. (Since 2.2) ModuleBinaries 1.0.0+ SetBase Contains configuration options for including the binary files of a project module in an assembly. attachmentClassifier 1.1.0+ String When specified, the attachmentClassifier will cause the assembler to look at artifacts attached to the module instead of the main project artifact. If it can find an attached artifact matching the specified classifier, it will use it; otherwise, it will throw an exception. (Since 2.2) includeDependencies 1.0.0+ boolean true If set to true, the plugin will include the direct and transitive dependencies of of the project modules included here. Otherwise, it will only include the module packages only. Default value is true. dependencySets 1.1.0+ DependencySet * unpack 1.0.0+ boolean true If set to true, this property will unpack all module packages into the specified output directory. When set to false module packages will be included as archives (jars). Default value is true. unpackOptions 1.1.0+ Allows the specification of includes and excludes, along with filtering options, for items unpacked from a module artifact. (Since 2.2) UnpackOptions outputFileNameMapping 1.0.0+ String ${module.artifactId}-${module.version}${dashClassifier?}.${module.extension} Sets the mapping pattern for all NON-UNPACKED dependencies included in this assembly. Default is ${module.artifactId}-${module.version}${dashClassifier?}.${module.extension}. (Since 2.2-beta-2; 2.2-beta-1 uses ${artifactId}-${version}${dashClassifier?}.${extension}) NOTE: If the dependencySet specifies unpack == true, outputFileNameMapping WILL NOT BE USED; in these cases, use outputDirectory. Repository 1.0.0+ SetBase NOTE: Currently, only artifacts from the central repository are allowed. ]]> includeMetadata 1.0.0+ boolean false If set to true, this property will trigger the creation of repository metadata which will allow the repository to be used as a functional remote repository. Default value is false. groupVersionAlignments 1.0.0+ GroupVersionAlignment * scope 1.1.0+ String runtime true Specifies the scope for artifacts included in this repository. Default scope value is "runtime". (Since 2.2) GroupVersionAlignment 1.0.0+ Allows a group of artifacts to be aligned to a specified version. id 1.0.0+ String The groupId of the artifacts for which you want to align the versions. version 1.0.0+ String The version you want to align this group to. excludes 1.0.0+ String * UnpackOptions 1.1.0+ Specifies options for including/excluding/filtering items extracted from an archive. (Since 2.2) includes 1.1.0+ Set of patterns for matching items to be included from an archive as it is unpacked. (Since 2.2) String * excludes 1.1.0+ Set of patterns for matching items to be excluded from an archive as it is unpacked. (Since 2.2) String * filtered 1.1.0+ Whether to filter symbols in the files as they are unpacked from the archive, using properties from the build configuration. (Since 2.2) false boolean ContainerDescriptorHandlerConfig 1.1.0+ Configures a filter for files headed into the assembly archive, to enable aggregation of various types of descriptor fragments, such as components.xml, web.xml, etc. handlerName 1.1.0+ The handler's plexus role-hint, for lookup from the container. String true configuration 1.1.1 Configuration options for the handler. DOM
    maven-assembly-plugin-2.2~beta5/src/it/0000755000175000017500000000000011361635317020062 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/remote-repository/0000755000175000017500000000000011361635317023572 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/it-project-parent/0000755000175000017500000000000011361635317023431 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/it-project-parent/pom.xml0000644000175000017500000000350111052376133024740 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent pom 1 testing true integration.test.repo @test.remote.repo.url@ integration.test.repo @test.remote.repo.url@ integration.test.repo @test.remote.repo.url@ maven-assembly-plugin ${testVersion} true live maven-assembly-plugin-2.2~beta5/src/it/projects/0000755000175000017500000000000011361635326021713 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/0000755000175000017500000000000011361635320024245 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/0000755000175000017500000000000011361635320033776 5ustar twernertwerner././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/p0000644000175000017500000000207311052376133034163 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 org.test parent pom 1.0 Parent child1 child2 child3 org.apache.maven.plugins maven-assembly-plugin false src/assemble/bin.xml ././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/child3/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/child3/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/c0000644000175000017500000000103410426700142034135 0ustar twernertwerner parent org.test 1.0 4.0.0 org.test child3 Child 3 1.0 http://maven.apache.org junit junit 3.8.1 test ././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/child3/src/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/child3/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000017100000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/child3/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/child3/src/test/java/org/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000020200000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/child3/src/test/java/org/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000021600000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/child3/src/test/java/org/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/c0000644000175000017500000000117411123544663034153 0ustar twernertwernerpackage org.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 ); } } ././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/child3/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000017100000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/child3/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/child3/src/main/java/org/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000020200000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/child3/src/main/java/org/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000021200000000000011560 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/child3/src/main/java/org/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/c0000644000175000017500000000025311123544663034150 0ustar twernertwernerpackage org.test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/child1/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/child1/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/c0000644000175000017500000000103410426700142034135 0ustar twernertwerner parent org.test 1.0 4.0.0 org.test child1 Child 1 1.0 http://maven.apache.org junit junit 3.8.1 test ././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/child1/src/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/child1/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000017100000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/child1/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/child1/src/test/java/org/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000020200000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/child1/src/test/java/org/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000021600000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/child1/src/test/java/org/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/c0000644000175000017500000000117411123544663034153 0ustar twernertwernerpackage org.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 ); } } ././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/child1/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000017100000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/child1/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/child1/src/main/java/org/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000020200000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/child1/src/main/java/org/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000021200000000000011560 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/child1/src/main/java/org/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/c0000644000175000017500000000025311123544663034150 0ustar twernertwernerpackage org.test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/child2/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/child2/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/c0000644000175000017500000000103410426700142034135 0ustar twernertwerner parent org.test 1.0 4.0.0 org.test child2 Child 2 1.0 http://maven.apache.org junit junit 3.8.1 test ././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/child2/src/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/child2/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000017100000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/child2/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/child2/src/test/java/org/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000020200000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/child2/src/test/java/org/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000021600000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/child2/src/test/java/org/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/c0000644000175000017500000000117411123544663034153 0ustar twernertwernerpackage org.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 ); } } ././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/child2/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000017100000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/child2/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/child2/src/main/java/org/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000020200000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/child2/src/main/java/org/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000021200000000000011560 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/child2/src/main/java/org/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/c0000644000175000017500000000025311123544663034150 0ustar twernertwernerpackage org.test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/goals.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/g0000644000175000017500000000013511052376133034147 0ustar twernertwernerclean package org.apache.maven.plugins:maven-assembly-plugin:${testVersion}:directory-inline ././@LongLink0000000000000000000000000000015600000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/verify.bshmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/v0000644000175000017500000000051011066772063034172 0ustar twernertwernerimport java.io.*; boolean result = true; result = result && new File( basedir, "target/parent-1.0-bin/lib/child1.jar" ).exists(); result = result && new File( basedir, "target/parent-1.0-bin/lib/child3.jar" ).exists(); result = result && !new File( basedir, "target/parent-1.0-bin/lib/child2.jar" ).exists(); return result; ././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/src/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/s0000755000175000017500000000000011361635320034161 5ustar twernertwerner././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/src/assemble/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/s0000755000175000017500000000000011361635320034161 5ustar twernertwerner././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/src/assemble/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceNotIncludedBinaryIncluded/s0000644000175000017500000000154511162606221034165 0ustar twernertwerner bin dir false org.test:child1 org.test:child3 ${artifact.artifactId}.${artifact.extension} lib true false maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/0000755000175000017500000000000011361635320032642 5ustar twernertwerner././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/pom.xm0000644000175000017500000000175411176645220034016 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test two-levels-includeBaseDir-withSrc 1.0-SNAPSHOT pom child-level1-project1 child-level1-project2 maven-assembly-plugin src/assemble/src.xml ././@LongLink0000000000000000000000000000016500000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-level1-project2/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-0000755000175000017500000000000011361635320033723 5ustar twernertwerner././@LongLink0000000000000000000000000000021300000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-level1-project2/child-level2-project1/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-0000755000175000017500000000000011361635320033723 5ustar twernertwerner././@LongLink0000000000000000000000000000022200000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-level1-project2/child-level2-project1/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-0000644000175000017500000000101110476152070033720 0ustar twernertwerner child-level1-project2 test 1.0-SNAPSHOT 4.0.0 test child-level2-project1 1.0-SNAPSHOT junit junit 3.8.1 test ././@LongLink0000000000000000000000000000021700000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-level1-project2/child-level2-project1/src/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-0000755000175000017500000000000011361635320033723 5ustar twernertwerner././@LongLink0000000000000000000000000000022400000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-level1-project2/child-level2-project1/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-0000755000175000017500000000000011361635320033723 5ustar twernertwerner././@LongLink0000000000000000000000000000023100000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-level1-project2/child-level2-project1/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-0000755000175000017500000000000011361635320033723 5ustar twernertwerner././@LongLink0000000000000000000000000000023600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-level1-project2/child-level2-project1/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-0000755000175000017500000000000011361635320033723 5ustar twernertwerner././@LongLink0000000000000000000000000000025200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-level1-project2/child-level2-project1/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-0000644000175000017500000000117011123544663033731 0ustar twernertwernerpackage 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 ); } } ././@LongLink0000000000000000000000000000022400000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-level1-project2/child-level2-project1/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-0000755000175000017500000000000011361635320033723 5ustar twernertwerner././@LongLink0000000000000000000000000000023100000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-level1-project2/child-level2-project1/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-0000755000175000017500000000000011361635320033723 5ustar twernertwerner././@LongLink0000000000000000000000000000023600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-level1-project2/child-level2-project1/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-0000755000175000017500000000000011361635320033723 5ustar twernertwerner././@LongLink0000000000000000000000000000024600000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-level1-project2/child-level2-project1/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-0000644000175000017500000000024711123544663033735 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000017400000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-level1-project2/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-0000644000175000017500000000070711176645220033735 0ustar twernertwerner test two-levels-includeBaseDir-withSrc 1.0-SNAPSHOT 4.0.0 test child-level1-project2 1.0-SNAPSHOT pom child-level2-project1 ././@LongLink0000000000000000000000000000016500000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-level1-project1/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-0000755000175000017500000000000011361635320033723 5ustar twernertwerner././@LongLink0000000000000000000000000000017400000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-level1-project1/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-0000644000175000017500000000102511176645220033727 0ustar twernertwerner test two-levels-includeBaseDir-withSrc 1.0-SNAPSHOT 4.0.0 test child-level1-project1 1.0-SNAPSHOT junit junit 3.8.1 test ././@LongLink0000000000000000000000000000017100000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-level1-project1/src/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-0000755000175000017500000000000011361635320033723 5ustar twernertwerner././@LongLink0000000000000000000000000000017600000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-level1-project1/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-0000755000175000017500000000000011361635320033723 5ustar twernertwerner././@LongLink0000000000000000000000000000020300000000000011560 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-level1-project1/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-0000755000175000017500000000000011361635320033723 5ustar twernertwerner././@LongLink0000000000000000000000000000021000000000000011556 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-level1-project1/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-0000755000175000017500000000000011361635320033723 5ustar twernertwerner././@LongLink0000000000000000000000000000022400000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-level1-project1/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-0000644000175000017500000000117011123544663033731 0ustar twernertwernerpackage 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 ); } } ././@LongLink0000000000000000000000000000017600000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-level1-project1/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-0000755000175000017500000000000011361635320033723 5ustar twernertwerner././@LongLink0000000000000000000000000000020300000000000011560 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-level1-project1/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-0000755000175000017500000000000011361635320033723 5ustar twernertwerner././@LongLink0000000000000000000000000000021000000000000011556 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-level1-project1/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-0000755000175000017500000000000011361635320033723 5ustar twernertwerner././@LongLink0000000000000000000000000000022000000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-level1-project1/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/child-0000644000175000017500000000024711123544663033735 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/goals.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/goals.0000644000175000017500000000012511052376133033747 0ustar twernertwernerclean org.apache.maven.plugins:maven-assembly-plugin:${testVersion}:directory-inline ././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/verify.bshmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/verify0000644000175000017500000000102711176645220034075 0ustar twernertwernerimport java.io.*; import java.net.*; import java.util.jar.*; boolean result = true; String finalName = "two-levels-includeBaseDir-withSrc-1.0-SNAPSHOT"; String rootDir = "target/" + finalName + "-src/" + finalName + "/modules/"; result = result && new File( basedir, rootDir + "child-level1-project1/pom.xml" ).exists(); result = result && new File( basedir, rootDir + "child-level1-project2/pom.xml" ).exists(); result = result && new File( basedir, rootDir + "child-level2-project1/pom.xml" ).exists(); return result; maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/src/0000755000175000017500000000000011361635320033431 5ustar twernertwerner././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/src/assemble/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/src/as0000755000175000017500000000000011361635320033755 5ustar twernertwerner././@LongLink0000000000000000000000000000016300000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/src/assemble/src.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withSrc/src/as0000644000175000017500000000175011162606221033757 0ustar twernertwerner src dir true true true true modules/${module.artifactId} **/target/** **/.svn/** maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/0000755000175000017500000000000011361635320030521 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/pom.xml0000644000175000017500000000174011052376133032041 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test two-level-multimodule 1.0-SNAPSHOT pom child-level1-project1 child-level1-project2 maven-assembly-plugin src/assemble/bin.xml ././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-project2/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-proje0000755000175000017500000000000011361635320034030 5ustar twernertwerner././@LongLink0000000000000000000000000000017700000000000011572 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-project2/child-level2-project1/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-proje0000755000175000017500000000000011361635320034030 5ustar twernertwerner././@LongLink0000000000000000000000000000020600000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-project2/child-level2-project1/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-proje0000644000175000017500000000101110466740531034031 0ustar twernertwerner child-level1-project2 test 1.0-SNAPSHOT 4.0.0 test child-level2-project1 1.0-SNAPSHOT junit junit 3.8.1 test ././@LongLink0000000000000000000000000000020300000000000011560 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-project2/child-level2-project1/src/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-proje0000755000175000017500000000000011361635320034030 5ustar twernertwerner././@LongLink0000000000000000000000000000021000000000000011556 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-project2/child-level2-project1/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-proje0000755000175000017500000000000011361635320034030 5ustar twernertwerner././@LongLink0000000000000000000000000000021500000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-project2/child-level2-project1/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-proje0000755000175000017500000000000011361635320034030 5ustar twernertwerner././@LongLink0000000000000000000000000000022200000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-project2/child-level2-project1/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-proje0000755000175000017500000000000011361635320034030 5ustar twernertwerner././@LongLink0000000000000000000000000000023600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-project2/child-level2-project1/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-proje0000644000175000017500000000117011123544663034036 0ustar twernertwernerpackage 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 ); } } ././@LongLink0000000000000000000000000000021000000000000011556 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-project2/child-level2-project1/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-proje0000755000175000017500000000000011361635320034030 5ustar twernertwerner././@LongLink0000000000000000000000000000021500000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-project2/child-level2-project1/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-proje0000755000175000017500000000000011361635320034030 5ustar twernertwerner././@LongLink0000000000000000000000000000022200000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-project2/child-level2-project1/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-proje0000755000175000017500000000000011361635320034030 5ustar twernertwerner././@LongLink0000000000000000000000000000023200000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-project2/child-level2-project1/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-proje0000644000175000017500000000024711123544663034042 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-project2/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-proje0000644000175000017500000000067310466740531034046 0ustar twernertwerner test two-level-multimodule 1.0-SNAPSHOT 4.0.0 test child-level1-project2 1.0-SNAPSHOT pom child-level2-project1 ././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-project1/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-proje0000755000175000017500000000000011361635320034030 5ustar twernertwerner././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-project1/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-proje0000644000175000017500000000101110466740531034031 0ustar twernertwerner test two-level-multimodule 1.0-SNAPSHOT 4.0.0 test child-level1-project1 1.0-SNAPSHOT junit junit 3.8.1 test ././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-project1/src/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-proje0000755000175000017500000000000011361635320034030 5ustar twernertwerner././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-project1/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-proje0000755000175000017500000000000011361635320034030 5ustar twernertwerner././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-project1/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-proje0000755000175000017500000000000011361635320034030 5ustar twernertwerner././@LongLink0000000000000000000000000000017400000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-project1/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-proje0000755000175000017500000000000011361635320034030 5ustar twernertwerner././@LongLink0000000000000000000000000000021000000000000011556 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-project1/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-proje0000644000175000017500000000117011123544663034036 0ustar twernertwernerpackage 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 ); } } ././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-project1/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-proje0000755000175000017500000000000011361635320034030 5ustar twernertwerner././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-project1/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-proje0000755000175000017500000000000011361635320034030 5ustar twernertwerner././@LongLink0000000000000000000000000000017400000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-project1/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-proje0000755000175000017500000000000011361635320034030 5ustar twernertwerner././@LongLink0000000000000000000000000000020400000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-project1/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/child-level1-proje0000644000175000017500000000024711123544663034042 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/goals.txt0000644000175000017500000000012011052376133032361 0ustar twernertwernerpackage org.apache.maven.plugins:maven-assembly-plugin:${testVersion}:directory maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/verify.bsh0000644000175000017500000000073411066772063032537 0ustar twernertwernerimport java.io.*; import java.net.*; import java.util.jar.*; boolean result = true; try { result = new File( basedir, "target/two-level-multimodule-1.0-SNAPSHOT-bin/modules/child-level1-project1-1.0-SNAPSHOT.jar" ).exists(); result = result && new File( basedir, "target/two-level-multimodule-1.0-SNAPSHOT-bin/modules/child-level2-project1-1.0-SNAPSHOT.jar" ).exists(); } catch( IOException e ) { e.printStackTrace(); result = false; } return result; maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/src/0000755000175000017500000000000011361635320031310 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/src/assemble/0000755000175000017500000000000011361635320033103 5ustar twernertwerner././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/src/assemble/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule/src/assemble/bin.x0000644000175000017500000000112411162606221034037 0ustar twernertwerner bin dir false modules false ././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModules/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModu0000755000175000017500000000000011361635320034207 5ustar twernertwerner././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModules/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModu0000644000175000017500000000174011052376133034214 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test two-level-multimodule 1.0-SNAPSHOT pom child-level1-project1 child-level1-project2 maven-assembly-plugin src/assemble/bin.xml ././@LongLink0000000000000000000000000000017700000000000011572 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModules/child-level1-project2/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModu0000755000175000017500000000000011361635320034207 5ustar twernertwerner././@LongLink0000000000000000000000000000022500000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModules/child-level1-project2/child-level2-project1/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModu0000755000175000017500000000000011361635320034207 5ustar twernertwerner././@LongLink0000000000000000000000000000023400000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModules/child-level1-project2/child-level2-project1/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModu0000644000175000017500000000101110475332775034217 0ustar twernertwerner child-level1-project2 test 1.0-SNAPSHOT 4.0.0 test child-level2-project1 1.0-SNAPSHOT junit junit 3.8.1 test ././@LongLink0000000000000000000000000000023100000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModules/child-level1-project2/child-level2-project1/src/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModu0000755000175000017500000000000011361635320034207 5ustar twernertwerner././@LongLink0000000000000000000000000000023600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModules/child-level1-project2/child-level2-project1/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModu0000755000175000017500000000000011361635320034207 5ustar twernertwerner././@LongLink0000000000000000000000000000024300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModules/child-level1-project2/child-level2-project1/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModu0000755000175000017500000000000011361635320034207 5ustar twernertwerner././@LongLink0000000000000000000000000000025000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModules/child-level1-project2/child-level2-project1/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModu0000755000175000017500000000000011361635320034207 5ustar twernertwerner././@LongLink0000000000000000000000000000026400000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModules/child-level1-project2/child-level2-project1/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModu0000644000175000017500000000117011123544663034215 0ustar twernertwernerpackage 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 ); } } ././@LongLink0000000000000000000000000000023600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModules/child-level1-project2/child-level2-project1/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModu0000755000175000017500000000000011361635320034207 5ustar twernertwerner././@LongLink0000000000000000000000000000024300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModules/child-level1-project2/child-level2-project1/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModu0000755000175000017500000000000011361635320034207 5ustar twernertwerner././@LongLink0000000000000000000000000000025000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModules/child-level1-project2/child-level2-project1/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModu0000755000175000017500000000000011361635320034207 5ustar twernertwerner././@LongLink0000000000000000000000000000026000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModules/child-level1-project2/child-level2-project1/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModu0000644000175000017500000000024711123544663034221 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000020600000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModules/child-level1-project2/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModu0000644000175000017500000000067310475332775034234 0ustar twernertwerner test two-level-multimodule 1.0-SNAPSHOT 4.0.0 test child-level1-project2 1.0-SNAPSHOT pom child-level2-project1 ././@LongLink0000000000000000000000000000017700000000000011572 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModules/child-level1-project1/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModu0000755000175000017500000000000011361635320034207 5ustar twernertwerner././@LongLink0000000000000000000000000000020600000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModules/child-level1-project1/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModu0000644000175000017500000000101110475332775034217 0ustar twernertwerner test two-level-multimodule 1.0-SNAPSHOT 4.0.0 test child-level1-project1 1.0-SNAPSHOT junit junit 3.8.1 test ././@LongLink0000000000000000000000000000020300000000000011560 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModules/child-level1-project1/src/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModu0000755000175000017500000000000011361635320034207 5ustar twernertwerner././@LongLink0000000000000000000000000000021000000000000011556 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModules/child-level1-project1/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModu0000755000175000017500000000000011361635320034207 5ustar twernertwerner././@LongLink0000000000000000000000000000021500000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModules/child-level1-project1/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModu0000755000175000017500000000000011361635320034207 5ustar twernertwerner././@LongLink0000000000000000000000000000022200000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModules/child-level1-project1/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModu0000755000175000017500000000000011361635320034207 5ustar twernertwerner././@LongLink0000000000000000000000000000023600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModules/child-level1-project1/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModu0000644000175000017500000000117011123544663034215 0ustar twernertwernerpackage 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 ); } } ././@LongLink0000000000000000000000000000021000000000000011556 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModules/child-level1-project1/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModu0000755000175000017500000000000011361635320034207 5ustar twernertwerner././@LongLink0000000000000000000000000000021500000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModules/child-level1-project1/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModu0000755000175000017500000000000011361635320034207 5ustar twernertwerner././@LongLink0000000000000000000000000000022200000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModules/child-level1-project1/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModu0000755000175000017500000000000011361635320034207 5ustar twernertwerner././@LongLink0000000000000000000000000000023200000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModules/child-level1-project1/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModu0000644000175000017500000000024711123544663034221 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModules/goals.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModu0000644000175000017500000000012011052376133034203 0ustar twernertwernerpackage org.apache.maven.plugins:maven-assembly-plugin:${testVersion}:directory ././@LongLink0000000000000000000000000000016300000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModules/verify.bshmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModu0000644000175000017500000000073611066772063034227 0ustar twernertwernerimport java.io.*; import java.net.*; import java.util.jar.*; boolean result = true; try { result = new File( basedir, "target/two-level-multimodule-1.0-SNAPSHOT-bin/modules/child-level1-project1-1.0-SNAPSHOT.jar" ).exists(); result = result && !new File( basedir, "target/two-level-multimodule-1.0-SNAPSHOT-bin/modules/child-level2-project1-1.0-SNAPSHOT.jar" ).exists(); } catch( IOException e ) { e.printStackTrace(); result = false; } return result; ././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModules/src/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModu0000755000175000017500000000000011361635320034207 5ustar twernertwerner././@LongLink0000000000000000000000000000016600000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModules/src/assemble/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModu0000755000175000017500000000000011361635320034207 5ustar twernertwerner././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModules/src/assemble/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-level-multimodule-dontIncludeSubModu0000644000175000017500000000120711162606221034206 0ustar twernertwerner bin dir false false modules false maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/0000755000175000017500000000000011361635320032623 5ustar twernertwerner././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/pom.xm0000644000175000017500000000175411176645220033777 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test two-levels-includeBaseDir-withBin 1.0-SNAPSHOT pom child-level1-project1 child-level1-project2 maven-assembly-plugin src/assemble/bin.xml ././@LongLink0000000000000000000000000000016500000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-level1-project2/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-0000755000175000017500000000000011361635320033704 5ustar twernertwerner././@LongLink0000000000000000000000000000021300000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-level1-project2/child-level2-project1/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-0000755000175000017500000000000011361635320033704 5ustar twernertwerner././@LongLink0000000000000000000000000000022200000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-level1-project2/child-level2-project1/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-0000644000175000017500000000101110476152070033701 0ustar twernertwerner child-level1-project2 test 1.0-SNAPSHOT 4.0.0 test child-level2-project1 1.0-SNAPSHOT junit junit 3.8.1 test ././@LongLink0000000000000000000000000000021700000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-level1-project2/child-level2-project1/src/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-0000755000175000017500000000000011361635320033704 5ustar twernertwerner././@LongLink0000000000000000000000000000022400000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-level1-project2/child-level2-project1/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-0000755000175000017500000000000011361635320033704 5ustar twernertwerner././@LongLink0000000000000000000000000000023100000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-level1-project2/child-level2-project1/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-0000755000175000017500000000000011361635320033704 5ustar twernertwerner././@LongLink0000000000000000000000000000023600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-level1-project2/child-level2-project1/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-0000755000175000017500000000000011361635320033704 5ustar twernertwerner././@LongLink0000000000000000000000000000025200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-level1-project2/child-level2-project1/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-0000644000175000017500000000117011123544663033712 0ustar twernertwernerpackage 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 ); } } ././@LongLink0000000000000000000000000000022400000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-level1-project2/child-level2-project1/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-0000755000175000017500000000000011361635320033704 5ustar twernertwerner././@LongLink0000000000000000000000000000023100000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-level1-project2/child-level2-project1/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-0000755000175000017500000000000011361635320033704 5ustar twernertwerner././@LongLink0000000000000000000000000000023600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-level1-project2/child-level2-project1/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-0000755000175000017500000000000011361635320033704 5ustar twernertwerner././@LongLink0000000000000000000000000000024600000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-level1-project2/child-level2-project1/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-0000644000175000017500000000024711123544663033716 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000017400000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-level1-project2/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-0000644000175000017500000000070711176645220033716 0ustar twernertwerner test two-levels-includeBaseDir-withBin 1.0-SNAPSHOT 4.0.0 test child-level1-project2 1.0-SNAPSHOT pom child-level2-project1 ././@LongLink0000000000000000000000000000016500000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-level1-project1/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-0000755000175000017500000000000011361635320033704 5ustar twernertwerner././@LongLink0000000000000000000000000000017400000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-level1-project1/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-0000644000175000017500000000102511176645220033710 0ustar twernertwerner test two-levels-includeBaseDir-withBin 1.0-SNAPSHOT 4.0.0 test child-level1-project1 1.0-SNAPSHOT junit junit 3.8.1 test ././@LongLink0000000000000000000000000000017100000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-level1-project1/src/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-0000755000175000017500000000000011361635320033704 5ustar twernertwerner././@LongLink0000000000000000000000000000017600000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-level1-project1/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-0000755000175000017500000000000011361635320033704 5ustar twernertwerner././@LongLink0000000000000000000000000000020300000000000011560 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-level1-project1/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-0000755000175000017500000000000011361635320033704 5ustar twernertwerner././@LongLink0000000000000000000000000000021000000000000011556 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-level1-project1/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-0000755000175000017500000000000011361635320033704 5ustar twernertwerner././@LongLink0000000000000000000000000000022400000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-level1-project1/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-0000644000175000017500000000117011123544663033712 0ustar twernertwernerpackage 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 ); } } ././@LongLink0000000000000000000000000000017600000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-level1-project1/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-0000755000175000017500000000000011361635320033704 5ustar twernertwerner././@LongLink0000000000000000000000000000020300000000000011560 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-level1-project1/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-0000755000175000017500000000000011361635320033704 5ustar twernertwerner././@LongLink0000000000000000000000000000021000000000000011556 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-level1-project1/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-0000755000175000017500000000000011361635320033704 5ustar twernertwerner././@LongLink0000000000000000000000000000022000000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-level1-project1/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/child-0000644000175000017500000000024711123544663033716 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/goals.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/goals.0000644000175000017500000000013511052376133033731 0ustar twernertwernerclean package org.apache.maven.plugins:maven-assembly-plugin:${testVersion}:directory-inline ././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/verify.bshmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/verify0000644000175000017500000000063611176645220034063 0ustar twernertwernerimport java.io.*; boolean result = true; String finalName = "two-levels-includeBaseDir-withBin-1.0-SNAPSHOT"; String rootDir = "target/" + finalName + "-bin/" + finalName + "/modules/"; result = result && new File( basedir, rootDir + "child-level1-project1-1.0-SNAPSHOT.jar" ).exists(); result = result && new File( basedir, rootDir + "child-level2-project1-1.0-SNAPSHOT.jar" ).exists(); return result; maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/src/0000755000175000017500000000000011361635320033412 5ustar twernertwerner././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/src/assemble/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/src/as0000755000175000017500000000000011361635320033736 5ustar twernertwerner././@LongLink0000000000000000000000000000016300000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/src/assemble/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/two-levels-includeBaseDir-withBin/src/as0000644000175000017500000000112311162606221033732 0ustar twernertwerner bin dir true modules false ././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactIdExprOutDir/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactI0000755000175000017500000000000011361635320034144 5ustar twernertwerner././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactIdExprOutDir/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactI0000644000175000017500000000174511052376133034156 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test two-level-multimodule 1.0-SNAPSHOT pom child-level1-project1 child-level1-project2 maven-assembly-plugin src/main/assembly/src.xml ././@LongLink0000000000000000000000000000020700000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactIdExprOutDir/child-level1-project2/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactI0000755000175000017500000000000011361635320034144 5ustar twernertwerner././@LongLink0000000000000000000000000000023500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactIdExprOutDir/child-level1-project2/child-level2-project1/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactI0000755000175000017500000000000011361635320034144 5ustar twernertwerner././@LongLink0000000000000000000000000000024400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactIdExprOutDir/child-level1-project2/child-level2-project1/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactI0000644000175000017500000000101110475410371034141 0ustar twernertwerner child-level1-project2 test 1.0-SNAPSHOT 4.0.0 test child-level2-project1 1.0-SNAPSHOT junit junit 3.8.1 test ././@LongLink0000000000000000000000000000024100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactIdExprOutDir/child-level1-project2/child-level2-project1/src/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactI0000755000175000017500000000000011361635320034144 5ustar twernertwerner././@LongLink0000000000000000000000000000024600000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactIdExprOutDir/child-level1-project2/child-level2-project1/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactI0000755000175000017500000000000011361635320034144 5ustar twernertwerner././@LongLink0000000000000000000000000000025300000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactIdExprOutDir/child-level1-project2/child-level2-project1/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactI0000755000175000017500000000000011361635320034144 5ustar twernertwerner././@LongLink0000000000000000000000000000026000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactIdExprOutDir/child-level1-project2/child-level2-project1/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactI0000755000175000017500000000000011361635320034144 5ustar twernertwerner././@LongLink0000000000000000000000000000027500000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactIdExprOutDir/child-level1-project2/child-level2-project1/src/test/java/test/App2Test.javamaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactI0000644000175000017500000000117511123544663034157 0ustar twernertwernerpackage test; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; /** * Unit test for simple App2. */ public class App2Test extends TestCase { /** * Create the test case * * @param testName name of the test case */ public App2Test( String testName ) { super( testName ); } /** * @return the suite of tests being tested */ public static Test suite() { return new TestSuite( App2Test.class ); } /** * Rigourous Test :-) */ public void testApp2() { assertTrue( true ); } } ././@LongLink0000000000000000000000000000024600000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactIdExprOutDir/child-level1-project2/child-level2-project1/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactI0000755000175000017500000000000011361635320034144 5ustar twernertwerner././@LongLink0000000000000000000000000000025300000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactIdExprOutDir/child-level1-project2/child-level2-project1/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactI0000755000175000017500000000000011361635320034144 5ustar twernertwerner././@LongLink0000000000000000000000000000026000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactIdExprOutDir/child-level1-project2/child-level2-project1/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactI0000755000175000017500000000000011361635320034144 5ustar twernertwerner././@LongLink0000000000000000000000000000027100000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactIdExprOutDir/child-level1-project2/child-level2-project1/src/main/java/test/App2.javamaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactI0000644000175000017500000000025011123544663034150 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App2 { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000021600000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactIdExprOutDir/child-level1-project2/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactI0000644000175000017500000000067310475410371034156 0ustar twernertwerner test two-level-multimodule 1.0-SNAPSHOT 4.0.0 test child-level1-project2 1.0-SNAPSHOT pom child-level2-project1 ././@LongLink0000000000000000000000000000020700000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactIdExprOutDir/child-level1-project1/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactI0000755000175000017500000000000011361635320034144 5ustar twernertwerner././@LongLink0000000000000000000000000000021600000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactIdExprOutDir/child-level1-project1/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactI0000644000175000017500000000101110475410371034141 0ustar twernertwerner test two-level-multimodule 1.0-SNAPSHOT 4.0.0 test child-level1-project1 1.0-SNAPSHOT junit junit 3.8.1 test ././@LongLink0000000000000000000000000000021300000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactIdExprOutDir/child-level1-project1/src/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactI0000755000175000017500000000000011361635320034144 5ustar twernertwerner././@LongLink0000000000000000000000000000022000000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactIdExprOutDir/child-level1-project1/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactI0000755000175000017500000000000011361635320034144 5ustar twernertwerner././@LongLink0000000000000000000000000000022500000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactIdExprOutDir/child-level1-project1/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactI0000755000175000017500000000000011361635320034144 5ustar twernertwerner././@LongLink0000000000000000000000000000023200000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactIdExprOutDir/child-level1-project1/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactI0000755000175000017500000000000011361635320034144 5ustar twernertwerner././@LongLink0000000000000000000000000000024600000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactIdExprOutDir/child-level1-project1/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactI0000644000175000017500000000117011123544663034152 0ustar twernertwernerpackage 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 ); } } ././@LongLink0000000000000000000000000000022000000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactIdExprOutDir/child-level1-project1/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactI0000755000175000017500000000000011361635320034144 5ustar twernertwerner././@LongLink0000000000000000000000000000022500000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactIdExprOutDir/child-level1-project1/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactI0000755000175000017500000000000011361635320034144 5ustar twernertwerner././@LongLink0000000000000000000000000000023200000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactIdExprOutDir/child-level1-project1/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactI0000755000175000017500000000000011361635320034144 5ustar twernertwerner././@LongLink0000000000000000000000000000024200000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactIdExprOutDir/child-level1-project1/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactI0000644000175000017500000000024711123544663034156 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000017200000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactIdExprOutDir/goals.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactI0000644000175000017500000000012511052376133034145 0ustar twernertwernerclean org.apache.maven.plugins:maven-assembly-plugin:${testVersion}:directory-inline ././@LongLink0000000000000000000000000000017300000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactIdExprOutDir/verify.bshmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactI0000644000175000017500000000100711066772063034154 0ustar twernertwernerimport java.io.*; import java.net.*; import java.util.jar.*; boolean result = true; result = result && new File( basedir, "target/two-level-multimodule-1.0-SNAPSHOT-src/child-level1-project1/pom.xml" ).exists(); result = result && new File( basedir, "target/two-level-multimodule-1.0-SNAPSHOT-src/child-level1-project2/pom.xml" ).exists(); result = result && new File( basedir, "target/two-level-multimodule-1.0-SNAPSHOT-src/child-level1-project2/child-level2-project1/pom.xml" ).exists(); return result; ././@LongLink0000000000000000000000000000016500000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactIdExprOutDir/src/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactI0000755000175000017500000000000011361635320034144 5ustar twernertwerner././@LongLink0000000000000000000000000000017200000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactIdExprOutDir/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactI0000755000175000017500000000000011361635320034144 5ustar twernertwerner././@LongLink0000000000000000000000000000020300000000000011560 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactIdExprOutDir/src/main/assembly/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactI0000755000175000017500000000000011361635320034144 5ustar twernertwerner././@LongLink0000000000000000000000000000021200000000000011560 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactIdExprOutDir/src/main/assembly/src.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-dontIncludeSubModules-artifactI0000644000175000017500000000151611162606221034146 0ustar twernertwerner src dir false false false **/.svn **/target ././@LongLink0000000000000000000000000000016300000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubModuleSourceDirs/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubMod0000755000175000017500000000000011361635320034154 5ustar twernertwerner././@LongLink0000000000000000000000000000017200000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubModuleSourceDirs/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubMod0000644000175000017500000000174511052376133034166 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test two-level-multimodule 1.0-SNAPSHOT pom child-level1-project1 child-level1-project2 maven-assembly-plugin src/main/assembly/src.xml ././@LongLink0000000000000000000000000000021100000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubModuleSourceDirs/child-level1-project2/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubMod0000755000175000017500000000000011361635320034154 5ustar twernertwerner././@LongLink0000000000000000000000000000023700000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubModuleSourceDirs/child-level1-project2/child-level2-project1/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubMod0000755000175000017500000000000011361635320034154 5ustar twernertwerner././@LongLink0000000000000000000000000000024600000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubModuleSourceDirs/child-level1-project2/child-level2-project1/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubMod0000644000175000017500000000101110475417706034162 0ustar twernertwerner child-level1-project2 test 1.0-SNAPSHOT 4.0.0 test child-level2-project1 1.0-SNAPSHOT junit junit 3.8.1 test ././@LongLink0000000000000000000000000000024300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubModuleSourceDirs/child-level1-project2/child-level2-project1/src/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubMod0000755000175000017500000000000011361635320034154 5ustar twernertwerner././@LongLink0000000000000000000000000000025000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubModuleSourceDirs/child-level1-project2/child-level2-project1/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubMod0000755000175000017500000000000011361635320034154 5ustar twernertwerner././@LongLink0000000000000000000000000000025500000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubModuleSourceDirs/child-level1-project2/child-level2-project1/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubMod0000755000175000017500000000000011361635320034154 5ustar twernertwerner././@LongLink0000000000000000000000000000026200000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubModuleSourceDirs/child-level1-project2/child-level2-project1/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubMod0000755000175000017500000000000011361635320034154 5ustar twernertwerner././@LongLink0000000000000000000000000000027700000000000011573 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubModuleSourceDirs/child-level1-project2/child-level2-project1/src/test/java/test/App2Test.javamaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubMod0000644000175000017500000000117511123544663034167 0ustar twernertwernerpackage test; import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; /** * Unit test for simple App2. */ public class App2Test extends TestCase { /** * Create the test case * * @param testName name of the test case */ public App2Test( String testName ) { super( testName ); } /** * @return the suite of tests being tested */ public static Test suite() { return new TestSuite( App2Test.class ); } /** * Rigourous Test :-) */ public void testApp2() { assertTrue( true ); } } ././@LongLink0000000000000000000000000000025000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubModuleSourceDirs/child-level1-project2/child-level2-project1/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubMod0000755000175000017500000000000011361635320034154 5ustar twernertwerner././@LongLink0000000000000000000000000000025500000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubModuleSourceDirs/child-level1-project2/child-level2-project1/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubMod0000755000175000017500000000000011361635320034154 5ustar twernertwerner././@LongLink0000000000000000000000000000026200000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubModuleSourceDirs/child-level1-project2/child-level2-project1/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubMod0000755000175000017500000000000011361635320034154 5ustar twernertwerner././@LongLink0000000000000000000000000000027300000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubModuleSourceDirs/child-level1-project2/child-level2-project1/src/main/java/test/App2.javamaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubMod0000644000175000017500000000025011123544663034160 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App2 { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000022000000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubModuleSourceDirs/child-level1-project2/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubMod0000644000175000017500000000067310475417706034177 0ustar twernertwerner test two-level-multimodule 1.0-SNAPSHOT 4.0.0 test child-level1-project2 1.0-SNAPSHOT pom child-level2-project1 ././@LongLink0000000000000000000000000000021100000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubModuleSourceDirs/child-level1-project1/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubMod0000755000175000017500000000000011361635320034154 5ustar twernertwerner././@LongLink0000000000000000000000000000022000000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubModuleSourceDirs/child-level1-project1/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubMod0000644000175000017500000000101110475417706034162 0ustar twernertwerner test two-level-multimodule 1.0-SNAPSHOT 4.0.0 test child-level1-project1 1.0-SNAPSHOT junit junit 3.8.1 test ././@LongLink0000000000000000000000000000021500000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubModuleSourceDirs/child-level1-project1/src/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubMod0000755000175000017500000000000011361635320034154 5ustar twernertwerner././@LongLink0000000000000000000000000000022200000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubModuleSourceDirs/child-level1-project1/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubMod0000755000175000017500000000000011361635320034154 5ustar twernertwerner././@LongLink0000000000000000000000000000022700000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubModuleSourceDirs/child-level1-project1/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubMod0000755000175000017500000000000011361635320034154 5ustar twernertwerner././@LongLink0000000000000000000000000000023400000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubModuleSourceDirs/child-level1-project1/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubMod0000755000175000017500000000000011361635320034154 5ustar twernertwerner././@LongLink0000000000000000000000000000025000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubModuleSourceDirs/child-level1-project1/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubMod0000644000175000017500000000117011123544663034162 0ustar twernertwernerpackage 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 ); } } ././@LongLink0000000000000000000000000000022200000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubModuleSourceDirs/child-level1-project1/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubMod0000755000175000017500000000000011361635320034154 5ustar twernertwerner././@LongLink0000000000000000000000000000022700000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubModuleSourceDirs/child-level1-project1/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubMod0000755000175000017500000000000011361635320034154 5ustar twernertwerner././@LongLink0000000000000000000000000000023400000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubModuleSourceDirs/child-level1-project1/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubMod0000755000175000017500000000000011361635320034154 5ustar twernertwerner././@LongLink0000000000000000000000000000024400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubModuleSourceDirs/child-level1-project1/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubMod0000644000175000017500000000024711123544663034166 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000017400000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubModuleSourceDirs/goals.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubMod0000644000175000017500000000012511052376133034155 0ustar twernertwernerclean org.apache.maven.plugins:maven-assembly-plugin:${testVersion}:directory-inline ././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubModuleSourceDirs/verify.bshmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubMod0000644000175000017500000000203011066772063034161 0ustar twernertwernerimport java.io.*; import java.net.*; import java.util.jar.*; boolean result = true; result = result && new File( basedir, "target/two-level-multimodule-1.0-SNAPSHOT-src/child-level1-project1/pom.xml" ).exists(); result = result && new File( basedir, "target/two-level-multimodule-1.0-SNAPSHOT-src/child-level1-project2/pom.xml" ).exists(); result = result && new File( basedir, "target/two-level-multimodule-1.0-SNAPSHOT-src/child-level2-project1/pom.xml" ).exists(); result = result && !new File( basedir, "target/two-level-multimodule-1.0-SNAPSHOT-src/child-level1-project2/child-level2-project1/pom.xml" ).exists(); result = result && !new File( basedir, "target/two-level-multimodule-1.0-SNAPSHOT-src/child-level1-project1/target" ).exists(); result = result && !new File( basedir, "target/two-level-multimodule-1.0-SNAPSHOT-src/child-level1-project2/target" ).exists(); result = result && !new File( basedir, "target/two-level-multimodule-1.0-SNAPSHOT-src/child-level2-project1/target" ).exists(); return result; ././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubModuleSourceDirs/src/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubMod0000755000175000017500000000000011361635320034154 5ustar twernertwerner././@LongLink0000000000000000000000000000017400000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubModuleSourceDirs/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubMod0000755000175000017500000000000011361635320034154 5ustar twernertwerner././@LongLink0000000000000000000000000000020500000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubModuleSourceDirs/src/main/assembly/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubMod0000755000175000017500000000000011361635320034154 5ustar twernertwerner././@LongLink0000000000000000000000000000021400000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubModuleSourceDirs/src/main/assembly/src.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/twoLevel-includeSubModules-excludeSubMod0000644000175000017500000000132211162606221034151 0ustar twernertwerner src dir false **/.svn target/** maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/0000755000175000017500000000000011361635320026561 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/pom.xml0000644000175000017500000000177711055102317030105 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 org.test massembly-298 pom 1 Parent child1 child2 org.apache.maven.plugins maven-assembly-plugin src/assemble/bin.xml maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/child1/0000755000175000017500000000000011361635320027725 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/child1/pom.xml0000644000175000017500000000104111055102317031231 0ustar twernertwerner massembly-298 org.test 1 4.0.0 org.test child1 Child 1 1.0 http://maven.apache.org junit junit 3.8.1 test maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/child1/src/0000755000175000017500000000000011361635320030514 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/child1/src/test/0000755000175000017500000000000011361635320031473 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/child1/src/test/java/0000755000175000017500000000000011361635320032414 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/child1/src/test/java/org/0000755000175000017500000000000011361635320033203 5ustar twernertwerner././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/child1/src/test/java/org/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/child1/src/test/java/org/t0000755000175000017500000000000011361635320033367 5ustar twernertwerner././@LongLink0000000000000000000000000000016500000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/child1/src/test/java/org/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/child1/src/test/java/org/t0000644000175000017500000000117411123544663033401 0ustar twernertwernerpackage org.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 ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/child1/src/main/0000755000175000017500000000000011361635320031440 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/child1/src/main/java/0000755000175000017500000000000011361635320032361 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/child1/src/main/java/org/0000755000175000017500000000000011361635320033150 5ustar twernertwerner././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/child1/src/main/java/org/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/child1/src/main/java/org/t0000755000175000017500000000000011361635320033334 5ustar twernertwerner././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/child1/src/main/java/org/test/child1/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/child1/src/main/java/org/t0000755000175000017500000000000011361635320033334 5ustar twernertwerner././@LongLink0000000000000000000000000000017100000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/child1/src/main/java/org/test/child1/App2.javamaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/child1/src/main/java/org/t0000644000175000017500000000026311123544663033344 0ustar twernertwernerpackage org.test.child1; /** * Hello world! * */ public class App2 { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/child1/src/main/java/org/test/child1/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/child1/src/main/java/org/t0000644000175000017500000000026211123544663033343 0ustar twernertwernerpackage org.test.child1; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/child2/0000755000175000017500000000000011361635320027726 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/child2/pom.xml0000644000175000017500000000104111055102317031232 0ustar twernertwerner massembly-298 org.test 1 4.0.0 org.test child2 Child 2 1.0 http://maven.apache.org junit junit 3.8.1 test maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/child2/src/0000755000175000017500000000000011361635320030515 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/child2/src/test/0000755000175000017500000000000011361635320031474 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/child2/src/test/java/0000755000175000017500000000000011361635320032415 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/child2/src/test/java/org/0000755000175000017500000000000011361635320033204 5ustar twernertwerner././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/child2/src/test/java/org/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/child2/src/test/java/org/t0000755000175000017500000000000011361635320033370 5ustar twernertwerner././@LongLink0000000000000000000000000000016500000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/child2/src/test/java/org/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/child2/src/test/java/org/t0000644000175000017500000000117411123544663033402 0ustar twernertwernerpackage org.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 ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/child2/src/main/0000755000175000017500000000000011361635320031441 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/child2/src/main/java/0000755000175000017500000000000011361635320032362 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/child2/src/main/java/org/0000755000175000017500000000000011361635320033151 5ustar twernertwerner././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/child2/src/main/java/org/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/child2/src/main/java/org/t0000755000175000017500000000000011361635320033335 5ustar twernertwerner././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/child2/src/main/java/org/test/child2/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/child2/src/main/java/org/t0000755000175000017500000000000011361635320033335 5ustar twernertwerner././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/child2/src/main/java/org/test/child2/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/child2/src/main/java/org/t0000644000175000017500000000026211123544663033344 0ustar twernertwernerpackage org.test.child2; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/child2/src/main/java/org/test/other/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/child2/src/main/java/org/t0000755000175000017500000000000011361635320033335 5ustar twernertwerner././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/child2/src/main/java/org/test/other/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/child2/src/main/java/org/t0000644000175000017500000000026111123544663033343 0ustar twernertwernerpackage org.test.other; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/goals.txt0000644000175000017500000000011711055102317030421 0ustar twernertwernerinstall org.apache.maven.plugins:maven-assembly-plugin:${testVersion}:assembly maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/verify.bsh0000644000175000017500000000171611055102317030563 0ustar twernertwernerimport java.io.*; import java.util.zip.*; ZipFile zf = new ZipFile( new File( basedir, "target/massembly-298-1-bin.zip" ) ); ZipEntry child1InclEntry = zf.getEntry( "child1/org/test/child1/App2.class" ); if ( child1InclEntry == null ) { System.out.println( "Included file from child1 not found." ); return false; } ZipEntry child1ExclEntry = zf.getEntry( "child1/org/test/child1/App.class" ); if ( child1ExclEntry != null ) { System.out.println( "Non-included file from child1 should not be present, but was found." ); return false; } ZipEntry child2InclEntry = zf.getEntry( "child2/org/test/child2/App.class" ); if ( child2InclEntry == null ) { System.out.println( "Included file from child2 not found." ); return false; } ZipEntry child2ExclEntry = zf.getEntry( "child2/org/test/other/App.class" ); if ( child2ExclEntry != null ) { System.out.println( "Non-included file from child2 should not be present, but was found." ); return false; } return true; maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/src/0000755000175000017500000000000011361635320027350 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/src/assemble/0000755000175000017500000000000011361635320031143 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/massembly-298/src/assemble/bin.xml0000644000175000017500000000246111162606221032435 0ustar twernertwerner bin zip false org.test:child1 ${artifact.artifactId} false true org/test/child1/App2* org.test:child2 ${artifact.artifactId} false true org/test/other/* maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/0000755000175000017500000000000011361635320033776 5ustar twernertwerner././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/p0000644000175000017500000000245011052376133034162 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 org.test parent pom 1.0 Parent child1 child2 child3 org.apache.maven.plugins maven-assembly-plugin false src/assemble/src.xml package package directory-inline ././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/child3/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/child3/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/c0000644000175000017500000000103410426544530034144 0ustar twernertwerner parent org.test 1.0 4.0.0 org.test child3 Child 3 1.0 http://maven.apache.org junit junit 3.8.1 test ././@LongLink0000000000000000000000000000016300000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/child3/pom.xml~maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/c0000644000175000017500000000106010426544530034143 0ustar twernertwerner parent org.test 1.0 4.0.0 org.test child3 Maven Quick Start Archetype 1.0 http://maven.apache.org junit junit 3.8.1 test ././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/child3/src/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/child3/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000017100000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/child3/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/child3/src/test/java/org/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000020200000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/child3/src/test/java/org/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000021600000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/child3/src/test/java/org/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/c0000644000175000017500000000117411123544663034153 0ustar twernertwernerpackage org.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 ); } } ././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/child3/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000017100000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/child3/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/child3/src/main/java/org/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000020200000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/child3/src/main/java/org/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000021200000000000011560 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/child3/src/main/java/org/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/c0000644000175000017500000000025311123544663034150 0ustar twernertwernerpackage org.test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/child1/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/child1/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/c0000644000175000017500000000103410426544530034144 0ustar twernertwerner parent org.test 1.0 4.0.0 org.test child1 Child 1 1.0 http://maven.apache.org junit junit 3.8.1 test ././@LongLink0000000000000000000000000000016300000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/child1/pom.xml~maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/c0000644000175000017500000000106010426544530034143 0ustar twernertwerner parent org.test 1.0 4.0.0 org.test child1 Maven Quick Start Archetype 1.0 http://maven.apache.org junit junit 3.8.1 test ././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/child1/src/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/child1/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000017100000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/child1/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/child1/src/test/java/org/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000020200000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/child1/src/test/java/org/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000021600000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/child1/src/test/java/org/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/c0000644000175000017500000000117411123544663034153 0ustar twernertwernerpackage org.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 ); } } ././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/child1/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000017100000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/child1/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/child1/src/main/java/org/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000020200000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/child1/src/main/java/org/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000021200000000000011560 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/child1/src/main/java/org/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/c0000644000175000017500000000025311123544663034150 0ustar twernertwernerpackage org.test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/child2/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/child2/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/c0000644000175000017500000000103410426544530034144 0ustar twernertwerner parent org.test 1.0 4.0.0 org.test child2 Child 2 1.0 http://maven.apache.org junit junit 3.8.1 test ././@LongLink0000000000000000000000000000016300000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/child2/pom.xml~maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/c0000644000175000017500000000106010426544530034143 0ustar twernertwerner parent org.test 1.0 4.0.0 org.test child2 Maven Quick Start Archetype 1.0 http://maven.apache.org junit junit 3.8.1 test ././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/child2/src/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/child2/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000017100000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/child2/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/child2/src/test/java/org/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000020200000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/child2/src/test/java/org/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000021600000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/child2/src/test/java/org/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/c0000644000175000017500000000117411123544663034153 0ustar twernertwernerpackage org.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 ); } } ././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/child2/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000017100000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/child2/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/child2/src/main/java/org/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000020200000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/child2/src/main/java/org/test/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/c0000755000175000017500000000000011361635320034141 5ustar twernertwerner././@LongLink0000000000000000000000000000021200000000000011560 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/child2/src/main/java/org/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/c0000644000175000017500000000025311123544663034150 0ustar twernertwernerpackage org.test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/goals.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/g0000644000175000017500000000001010466734016034145 0ustar twernertwernerpackage ././@LongLink0000000000000000000000000000015600000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/verify.bshmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/v0000644000175000017500000000037711066772063034205 0ustar twernertwernerimport java.io.*; boolean result = true; result = result && new File( basedir, "target/parent-1.0-src/sources/child1/pom.xml" ).exists(); result = result && !new File( basedir, "target/parent-1.0-src/sources/child2/pom.xml" ).exists(); return result; ././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/src/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/s0000755000175000017500000000000011361635320034161 5ustar twernertwerner././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/src/assemble/maven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/s0000755000175000017500000000000011361635320034161 5ustar twernertwerner././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/src/assemble/src.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/multimodule/module-sourceIncludedBinaryNotIncluded/s0000644000175000017500000000146311162606221034164 0ustar twernertwerner src dir false org.test:child1 org.test:child3 sources/${artifact.artifactId} target/** **/*~ maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/0000755000175000017500000000000011361635321024012 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-one-project-hierarchy/0000755000175000017500000000000011361635321033207 5ustar twernertwerner././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-one-project-hierarchy/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-one-project-hierarchy/pom0000644000175000017500000000321111052376133033722 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test single-in-one-project-hierarchy jar 1.0-SNAPSHOT junit junit 3.8.1 test maven-assembly-plugin src/assemble/bin.xml first-assembly package first single second-assembly package second single ././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-one-project-hierarchy/goals.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-one-project-hierarchy/goa0000644000175000017500000000001610473050062033671 0ustar twernertwernerclean package ././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-one-project-hierarchy/verify.bshmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-one-project-hierarchy/ver0000644000175000017500000000034511066772063033737 0ustar twernertwernerimport java.io.File; boolean result = true; result = result && new File( basedir, "target/first-bin/lib/junit.jar" ).exists(); result = result && new File( basedir, "target/second-bin/lib/junit.jar" ).exists(); return result; ././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-one-project-hierarchy/src/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-one-project-hierarchy/src0000755000175000017500000000000011361635321033717 5ustar twernertwerner././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-one-project-hierarchy/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-one-project-hierarchy/src0000755000175000017500000000000011361635321033717 5ustar twernertwerner././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-one-project-hierarchy/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-one-project-hierarchy/src0000755000175000017500000000000011361635321033717 5ustar twernertwerner././@LongLink0000000000000000000000000000016500000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-one-project-hierarchy/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-one-project-hierarchy/src0000755000175000017500000000000011361635321033717 5ustar twernertwerner././@LongLink0000000000000000000000000000020100000000000011556 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-one-project-hierarchy/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-one-project-hierarchy/src0000644000175000017500000000117011123544663033724 0ustar twernertwernerpackage 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 ); } } ././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-one-project-hierarchy/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-one-project-hierarchy/src0000755000175000017500000000000011361635321033717 5ustar twernertwerner././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-one-project-hierarchy/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-one-project-hierarchy/src0000755000175000017500000000000011361635321033717 5ustar twernertwerner././@LongLink0000000000000000000000000000016500000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-one-project-hierarchy/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-one-project-hierarchy/src0000755000175000017500000000000011361635321033717 5ustar twernertwerner././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-one-project-hierarchy/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-one-project-hierarchy/src0000644000175000017500000000024711123544663033730 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-one-project-hierarchy/src/assemble/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-one-project-hierarchy/src0000755000175000017500000000000011361635321033717 5ustar twernertwerner././@LongLink0000000000000000000000000000016600000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-one-project-hierarchy/src/assemble/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-one-project-hierarchy/src0000644000175000017500000000126411162606221033720 0ustar twernertwerner bin dir false test lib ${artifact.artifactId}.${artifact.extension} false maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/0000755000175000017500000000000011361635321033322 5ustar twernertwerner././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/pom0000644000175000017500000000121010662710466034041 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test single-twice-in-multimodule-hierarchy 1.0-SNAPSHOT pom child1 child2 ././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/child1/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/chi0000755000175000017500000000000011361635321034006 5ustar twernertwerner././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/child1/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/chi0000644000175000017500000000225211212274043034004 0ustar twernertwerner 4.0.0 test single-twice-in-multimodule-hierarchy 1.0-SNAPSHOT child1 jar junit junit 3.8.1 test maven-assembly-plugin src/assemble/bin.xml single-assembly package single ././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/child1/src/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/chi0000755000175000017500000000000011361635321034006 5ustar twernertwerner././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/child1/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/chi0000755000175000017500000000000011361635321034006 5ustar twernertwerner././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/child1/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/chi0000755000175000017500000000000011361635321034006 5ustar twernertwerner././@LongLink0000000000000000000000000000017400000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/child1/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/chi0000755000175000017500000000000011361635321034006 5ustar twernertwerner././@LongLink0000000000000000000000000000021000000000000011556 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/child1/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/chi0000644000175000017500000000117011123544663034013 0ustar twernertwernerpackage 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 ); } } ././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/child1/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/chi0000755000175000017500000000000011361635321034006 5ustar twernertwerner././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/child1/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/chi0000755000175000017500000000000011361635321034006 5ustar twernertwerner././@LongLink0000000000000000000000000000017400000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/child1/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/chi0000755000175000017500000000000011361635321034006 5ustar twernertwerner././@LongLink0000000000000000000000000000020400000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/child1/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/chi0000644000175000017500000000024711123544663034017 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000016600000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/child1/src/assemble/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/chi0000755000175000017500000000000011361635321034006 5ustar twernertwerner././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/child1/src/assemble/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/chi0000644000175000017500000000126411162606221034007 0ustar twernertwerner bin dir false test lib ${artifact.artifactId}.${artifact.extension} false ././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/child2/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/chi0000755000175000017500000000000011361635321034006 5ustar twernertwerner././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/child2/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/chi0000644000175000017500000000225111212274043034003 0ustar twernertwerner 4.0.0 test single-twice-in-multimodule-hierarchy 1.0-SNAPSHOT child2 jar junit junit 3.8.1 test maven-assembly-plugin src/assemble/bin.xml single-assembly package single ././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/child2/src/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/chi0000755000175000017500000000000011361635321034006 5ustar twernertwerner././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/child2/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/chi0000755000175000017500000000000011361635321034006 5ustar twernertwerner././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/child2/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/chi0000755000175000017500000000000011361635321034006 5ustar twernertwerner././@LongLink0000000000000000000000000000017400000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/child2/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/chi0000755000175000017500000000000011361635321034006 5ustar twernertwerner././@LongLink0000000000000000000000000000021000000000000011556 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/child2/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/chi0000644000175000017500000000117011123544663034013 0ustar twernertwernerpackage 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 ); } } ././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/child2/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/chi0000755000175000017500000000000011361635321034006 5ustar twernertwerner././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/child2/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/chi0000755000175000017500000000000011361635321034006 5ustar twernertwerner././@LongLink0000000000000000000000000000017400000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/child2/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/chi0000755000175000017500000000000011361635321034006 5ustar twernertwerner././@LongLink0000000000000000000000000000020400000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/child2/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/chi0000644000175000017500000000024711123544663034017 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000016600000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/child2/src/assemble/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/chi0000755000175000017500000000000011361635321034006 5ustar twernertwerner././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/child2/src/assemble/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/chi0000644000175000017500000000126411162606221034007 0ustar twernertwerner bin dir false test lib ${artifact.artifactId}.${artifact.extension} false ././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/goals.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/goa0000644000175000017500000000001610473050062034004 0ustar twernertwernerclean package ././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/verify.bshmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-twice-in-multimodule-hierarchy/ver0000644000175000017500000000041611066772063034051 0ustar twernertwernerimport java.io.File; boolean result = true; result = result && new File( basedir, "child1/target/child1-1.0-SNAPSHOT-bin/lib/junit.jar" ).exists(); result = result && new File( basedir, "child2/target/child2-1.0-SNAPSHOT-bin/lib/junit.jar" ).exists(); return result; maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-in-one-project-hierarchy/0000755000175000017500000000000011361635321032076 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-in-one-project-hierarchy/pom.xml0000644000175000017500000000240111052376133033410 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test single-in-one-project-hierarchy jar 1.0-SNAPSHOT junit junit 3.8.1 test maven-assembly-plugin src/assemble/bin.xml single-assembly package single ././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-in-one-project-hierarchy/goals.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-in-one-project-hierarchy/goals.txt0000644000175000017500000000001610473050062033735 0ustar twernertwernerclean package ././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-in-one-project-hierarchy/verify.bshmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-in-one-project-hierarchy/verify.bs0000644000175000017500000000020411066772063033733 0ustar twernertwernerimport java.io.File; return new File( basedir, "target/single-in-one-project-hierarchy-1.0-SNAPSHOT-bin/lib/junit.jar" ).exists(); maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-in-one-project-hierarchy/src/0000755000175000017500000000000011361635321032665 5ustar twernertwerner././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-in-one-project-hierarchy/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-in-one-project-hierarchy/src/test/0000755000175000017500000000000011361635321033644 5ustar twernertwerner././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-in-one-project-hierarchy/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-in-one-project-hierarchy/src/test/0000755000175000017500000000000011361635321033644 5ustar twernertwerner././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-in-one-project-hierarchy/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-in-one-project-hierarchy/src/test/0000755000175000017500000000000011361635321033644 5ustar twernertwerner././@LongLink0000000000000000000000000000017300000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-in-one-project-hierarchy/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-in-one-project-hierarchy/src/test/0000644000175000017500000000117011123544663033651 0ustar twernertwernerpackage 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 ); } } ././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-in-one-project-hierarchy/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-in-one-project-hierarchy/src/main/0000755000175000017500000000000011361635321033611 5ustar twernertwerner././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-in-one-project-hierarchy/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-in-one-project-hierarchy/src/main/0000755000175000017500000000000011361635321033611 5ustar twernertwerner././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-in-one-project-hierarchy/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-in-one-project-hierarchy/src/main/0000755000175000017500000000000011361635321033611 5ustar twernertwerner././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-in-one-project-hierarchy/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-in-one-project-hierarchy/src/main/0000644000175000017500000000024711123544663033622 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-in-one-project-hierarchy/src/assemble/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-in-one-project-hierarchy/src/assem0000755000175000017500000000000011361635321033716 5ustar twernertwerner././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-in-one-project-hierarchy/src/assemble/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-tests/single-in-one-project-hierarchy/src/assem0000644000175000017500000000126411162606221033717 0ustar twernertwerner bin dir false test lib ${artifact.artifactId}.${artifact.extension} false maven-assembly-plugin-2.2~beta5/src/it/projects/bugs/0000755000175000017500000000000011361635320022645 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-190/0000755000175000017500000000000011361635317025156 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-190/child-1/0000755000175000017500000000000011361635317026377 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-190/child-1/pom.xml0000644000175000017500000000126311066526676027727 0ustar twernertwerner 4.0.0 project org.apache.maven.plugin.assembly.test 1 child-1 jar commons-codec commons-codec 1.3 maven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-190/child-1/src/0000755000175000017500000000000011361635317027166 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-190/child-1/src/main/0000755000175000017500000000000011361635317030112 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-190/child-1/src/main/resources/0000755000175000017500000000000011361635317032124 5ustar twernertwerner././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-190/child-1/src/main/resources/test.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-190/child-1/src/main/resources/test.t0000644000175000017500000000000511066526676033274 0ustar twernertwernerTest maven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-190/pom.xml0000644000175000017500000000164611066526676026513 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 project pom maven-assembly-plugin false src/main/assembly/bin.xml child-1 child-2 maven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-190/goals.txt0000644000175000017500000000003711066526676027035 0ustar twernertwernerclean package assembly:assemblymaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-190/verify.bsh0000644000175000017500000000114311066772063027161 0ustar twernertwernerimport java.io.*; File child1Codec = new File( basedir, "target/project-1-bin/child-1/commons-codec-1.3.jar" ); File child2Codec = new File( basedir, "target/project-1-bin/child-2/commons-codec-1.3.jar" ); if ( !child1Codec.exists() ) { System.out.println( "commons-codec dependency in child-1 module is either missing or is the wrong version. File missing: " + child1Codec ); } if ( !child2Codec.exists() ) { System.out.println( "commons-codec dependency in child-2 module is either missing or is the wrong version. File missing: " + child2Codec ); } return child1Codec.exists() && child2Codec.exists(); maven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-190/src/0000755000175000017500000000000011361635317025745 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-190/src/main/0000755000175000017500000000000011361635317026671 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-190/src/main/assembly/0000755000175000017500000000000011361635317030510 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-190/src/main/assembly/bin.xml0000644000175000017500000000154311162606221031774 0ustar twernertwerner bin dir false ${module.artifactId} true commons-codec* false maven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-190/child-2/0000755000175000017500000000000011361635317026400 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-190/child-2/pom.xml0000644000175000017500000000154211066526676027730 0ustar twernertwerner 4.0.0 project org.apache.maven.plugin.assembly.test 1 child-2 jar commons-codec commons-codec 1.2 maven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-190/child-2/src/0000755000175000017500000000000011361635317027167 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-190/child-2/src/main/0000755000175000017500000000000011361635317030113 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-190/child-2/src/main/resources/0000755000175000017500000000000011361635317032125 5ustar twernertwerner././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-190/child-2/src/main/resources/test.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-190/child-2/src/main/resources/test.t0000644000175000017500000000000511066526676033275 0ustar twernertwernerTest maven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-375/0000755000175000017500000000000011361635320025155 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-375/pom.xml0000644000175000017500000000203611122225103026460 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 massembly-375 jar maven-assembly-plugin src/main/assembly/test.xml single-assembly package single maven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-375/goals.txt0000644000175000017500000000001611122225103027005 0ustar twernertwernerclean package maven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-375/verify.bsh0000644000175000017500000000153511122225103027150 0ustar twernertwernerimport java.io.*; import java.util.jar.*; try { File f = new File( basedir, "target/massembly-375-1-test.jar" ); System.out.println( "Examining assembly file: " + f ); System.out.flush(); if ( !f.isFile() ) { System.out.println( "Target file: " + f + " doesn't exist!" ); System.out.flush(); return false; } JarFile jf = new JarFile( f ); JarEntry je = jf.getEntry( "/test.txt" ); if ( je != null ) { System.out.println( "Entry: /test.txt should NOT exist." ); System.out.flush(); return false; } je = jf.getEntry( "test.txt" ); if ( je == null ) { System.out.println( "Entry: test.txt SHOULD exist." ); System.out.flush(); return false; } System.out.println( "VERIFICATION PASSED." ); System.out.flush(); return true; } catch ( Throwable t ) { t.printStackTrace( System.out ); System.out.flush(); return false; } maven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-375/src/0000755000175000017500000000000011361635320025744 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-375/src/main/0000755000175000017500000000000011361635320026670 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-375/src/main/assembly/0000755000175000017500000000000011361635320030507 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-375/src/main/assembly/test.txt0000644000175000017500000000001211122225103032205 0ustar twernertwernerTest File maven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-375/src/main/assembly/test.xml0000644000175000017500000000054711122225103032203 0ustar twernertwerner test jar false src/main/assembly / test.txt maven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/0000755000175000017500000000000011361635320025155 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-assembly/0000755000175000017500000000000011361635320031302 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-assembly/pom.xml0000644000175000017500000000261611120014246032613 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test massembly-285 1 massembly-285-assembly jar ${pom.groupId} ${pom.parent.artifactId}-mod1 1 ${pom.groupId} ${pom.parent.artifactId}-mod2 1 maven-assembly-plugin src/main/assembly/bin.xml single-assembly package single maven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-assembly/goals.txt0000644000175000017500000000016111055077206033151 0ustar twernertwerner# Specify the goals to be run here, one per line. Lines beginning with a hash '#' will be ignored. clean package ././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-assembly/verify.bshmaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-assembly/verify.bsh0000644000175000017500000000047611055077206033316 0ustar twernertwernerimport java.io.File; /* This is where you verify the results of the assembly build. You may need to check the existence of a file, or even peek within a jar file to determine whether the assembly did the right thing. */ return new File( basedir, "target/${artifactId}-${version}-bin.dir/lib/junit.jar" ).exists(); ././@LongLink0000000000000000000000000000015600000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-assembly/${local.repo.path}/maven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-assembly/${local.re0000755000175000017500000000000011361635320033161 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-assembly/src/0000755000175000017500000000000011361635320032071 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-assembly/src/main/0000755000175000017500000000000011361635320033015 5ustar twernertwerner././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-assembly/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-assembly/src/main/j0000755000175000017500000000000011361635320033167 5ustar twernertwerner././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-assembly/src/main/java/tests/maven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-assembly/src/main/j0000755000175000017500000000000011361635320033167 5ustar twernertwerner././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-assembly/src/main/java/tests/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-assembly/src/main/j0000644000175000017500000000025011123544663033173 0ustar twernertwernerpackage tests; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-assembly/src/main/assembly/maven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-assembly/src/main/a0000755000175000017500000000000011361635320033156 5ustar twernertwerner././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-assembly/src/main/assembly/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-assembly/src/main/a0000644000175000017500000000120311162606221033151 0ustar twernertwerner bin jar zip false / false true maven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/pom.xml0000644000175000017500000000201311120014246026455 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 massembly-285 pom massembly-285-mod1 massembly-285-mod2 massembly-285-assembly maven-assembly-plugin skip maven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-mod2/0000755000175000017500000000000011361635320030324 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-mod2/pom.xml0000644000175000017500000000075111055077206031647 0ustar twernertwerner massembly-285 org.apache.maven.plugin.assembly.test 1 4.0.0 massembly-285-mod2 junit junit 3.8.1 test maven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-mod2/src/0000755000175000017500000000000011361635320031113 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-mod2/src/test/0000755000175000017500000000000011361635320032072 5ustar twernertwerner././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-mod2/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-mod2/src/test/java/0000755000175000017500000000000011361635320033013 5ustar twernertwerner././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-mod2/src/test/java/tests/maven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-mod2/src/test/java/0000755000175000017500000000000011361635320033013 5ustar twernertwerner././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-mod2/src/test/java/tests/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-mod2/src/test/java/0000644000175000017500000000117111123544663033022 0ustar twernertwernerpackage tests; 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 ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-mod2/src/main/0000755000175000017500000000000011361635320032037 5ustar twernertwerner././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-mod2/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-mod2/src/main/java/0000755000175000017500000000000011361635320032760 5ustar twernertwerner././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-mod2/src/main/java/tests/maven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-mod2/src/main/java/0000755000175000017500000000000011361635320032760 5ustar twernertwerner././@LongLink0000000000000000000000000000016300000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-mod2/src/main/java/tests/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-mod2/src/main/java/0000644000175000017500000000025011123544663032764 0ustar twernertwernerpackage tests; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/goals.txt0000644000175000017500000000001011055077206027015 0ustar twernertwernerinstall maven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/verify.bsh0000644000175000017500000000205111120014246027144 0ustar twernertwernerimport java.io.*; import java.util.*; import java.util.jar.*; import java.util.zip.*; File f = new File( basedir, "massembly-285-assembly/target/massembly-285-assembly-1-bin.jar" ); JarFile jf = new JarFile( f ); String testPath = "tests/App.class"; int jarCount = 0; Enumeration e = jf.entries(); while( e.hasMoreElements() ) { if ( testPath.equals( String.valueOf( e.nextElement() ) ) ) { jarCount++; } } if ( jarCount != 1 ) { System.out.println( "ERROR! Test path: " + testPath + " was found " + jarCount + " times (should have been 1).\nArchive: " + f ); } f = new File( basedir, "massembly-285-assembly/target/massembly-285-assembly-1-bin.zip" ); ZipFile zf = new ZipFile( f ); String testPath = "tests/App.class"; int zipCount = 0; e = zf.entries(); while( e.hasMoreElements() ) { if ( testPath.equals( String.valueOf( e.nextElement() ) ) ) { zipCount++; } } if ( zipCount != 1 ) { System.out.println( "ERROR! Test path: " + testPath + " was found " + zipCount + " times (should have been 1).\nArchive: " + f ); } return jarCount == 1;maven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-mod1/0000755000175000017500000000000011361635320030323 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-mod1/pom.xml0000644000175000017500000000075111055077206031646 0ustar twernertwerner massembly-285 org.apache.maven.plugin.assembly.test 1 4.0.0 massembly-285-mod1 junit junit 3.8.1 test maven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-mod1/src/0000755000175000017500000000000011361635320031112 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-mod1/src/test/0000755000175000017500000000000011361635320032071 5ustar twernertwerner././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-mod1/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-mod1/src/test/java/0000755000175000017500000000000011361635320033012 5ustar twernertwerner././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-mod1/src/test/java/tests/maven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-mod1/src/test/java/0000755000175000017500000000000011361635320033012 5ustar twernertwerner././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-mod1/src/test/java/tests/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-mod1/src/test/java/0000644000175000017500000000117111123544663033021 0ustar twernertwernerpackage tests; 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 ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-mod1/src/main/0000755000175000017500000000000011361635320032036 5ustar twernertwerner././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-mod1/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-mod1/src/main/java/0000755000175000017500000000000011361635320032757 5ustar twernertwerner././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-mod1/src/main/java/tests/maven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-mod1/src/main/java/0000755000175000017500000000000011361635320032757 5ustar twernertwerner././@LongLink0000000000000000000000000000016300000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-mod1/src/main/java/tests/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-285/massembly-285-mod1/src/main/java/0000644000175000017500000000025011123544663032763 0ustar twernertwernerpackage tests; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-306/0000755000175000017500000000000011361635317025155 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-306/pom.xml0000644000175000017500000000326011222747342026471 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 massembly-306 jar massembly-306 junit junit 3.8.1 compile log4j log4j [1.2.13] provided org.apache.maven.plugins maven-assembly-plugin make-assembly package single jar-with-dependencies maven-assembly-plugin-2.2~beta5/src/it/projects/bugs/massembly-306/goals.txt0000644000175000017500000000001511065007024027004 0ustar twernertwernerclean packagemaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/0000755000175000017500000000000011361635325025004 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-235/0000755000175000017500000000000011361635325027307 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-235/pom.xml0000644000175000017500000000304710771721652030633 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 Test for Assembly Bug test massembly235-test jar xmlwriter xmlwriter 2.2 junit junit 3.8.1 test xmlenc xmlenc 0.52 maven-assembly-plugin src/main/assembly/release.xml assembly package single maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-235/goals.txt0000644000175000017500000000000710664571033031152 0ustar twernertwernerpackagemaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-235/verify.bsh0000644000175000017500000000061611066772063031317 0ustar twernertwernerimport java.io.*; File dir = new File( basedir, "target/massembly235-test-1-release" ); File goodJar = new File( dir, "xmlenc-0.52.jar" ); File badJar = new File( dir, "xmlenc-0.39.jar" ); System.out.println( "Good version of xmlenc exists? " + goodJar.exists() ); System.out.println( "Bad version of xmlenc doesn't exist? " + (!badJar.exists()) ); return goodJar.exists() && !badJar.exists(); maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-235/src/0000755000175000017500000000000011361635325030076 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-235/src/test/0000755000175000017500000000000011361635325031055 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-235/src/test/java/0000755000175000017500000000000011361635325031776 5ustar twernertwerner././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-235/src/test/java/HelloWorldTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-235/src/test/java/HelloWor0000644000175000017500000000027711123544663033462 0ustar twernertwernerimport junit.framework.TestCase; public class HelloWorldTest extends TestCase { public static final void testSayHello() { assertEquals("Hello World!", HelloWorld.sayHello("World")); } }maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-235/src/test/resources/0000755000175000017500000000000011361635325033067 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-235/src/main/0000755000175000017500000000000011361635325031022 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-235/src/main/java/0000755000175000017500000000000011361635325031743 5ustar twernertwerner././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-235/src/main/java/HelloWorld.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-235/src/main/java/HelloWor0000644000175000017500000000015511123544663033422 0ustar twernertwernerpublic class HelloWorld { public static String sayHello(String name) { return "Hello " + name + "!"; } }maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-235/src/main/assembly/0000755000175000017500000000000011361635325032641 5ustar twernertwerner././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-235/src/main/assembly/release.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-235/src/main/assembly/rele0000644000175000017500000000130211162606221033477 0ustar twernertwerner release dir false target *.jar / maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-235/src/main/resources/0000755000175000017500000000000011361635325033034 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dep-with-transitive-filter/0000755000175000017500000000000011361635324032175 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dep-with-transitive-filter/pom.xml0000644000175000017500000000312511064524676033522 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 project project junit junit 3.8.1 test org.apache.maven.wagon wagon-webdav-jackrabbit 1.0-beta-4 org.apache.maven.reporting maven-reporting-impl 2.0.4.1 maven-assembly-plugin assemly package single src/main/assembly/bin.xml ././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dep-with-transitive-filter/goals.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dep-with-transitive-filter/goals.txt0000644000175000017500000000001511064524676034046 0ustar twernertwernerclean package././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dep-with-transitive-filter/verify.bshmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dep-with-transitive-filter/verify.bs0000644000175000017500000000122711066772063034035 0ustar twernertwernerimport java.io.*; File wagonJackrabbitJar = new File( basedir, "target/project-1-bin/maven-libs/wagon-webdav-jackrabbit-1.0-beta-4.jar" ); File xercesMinimalJar = new File( basedir, "target/project-1-bin/maven-libs/xercesMinimal-1.9.6.2.jar" ); if ( !wagonJackrabbitJar.exists() ) { System.out.println( "Wagon provider jar is missing (should be included via include wildcard pattern)." ); } if ( !xercesMinimalJar.exists() ) { System.out.println( "Xerces minimal jar (from nekohtml, brought in by wagon jackrabbit provider) is missing (should be included via include wildcard pattern)." ); } return wagonJackrabbitJar.exists() && xercesMinimalJar.exists(); maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dep-with-transitive-filter/src/0000755000175000017500000000000011361635324032764 5ustar twernertwerner././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dep-with-transitive-filter/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dep-with-transitive-filter/src/test/0000755000175000017500000000000011361635324033743 5ustar twernertwerner././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dep-with-transitive-filter/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dep-with-transitive-filter/src/test/0000755000175000017500000000000011361635324033743 5ustar twernertwerner././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dep-with-transitive-filter/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dep-with-transitive-filter/src/test/0000755000175000017500000000000011361635324033743 5ustar twernertwerner././@LongLink0000000000000000000000000000017300000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dep-with-transitive-filter/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dep-with-transitive-filter/src/test/0000644000175000017500000000117011123544663033745 0ustar twernertwernerpackage 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 ); } } ././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dep-with-transitive-filter/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dep-with-transitive-filter/src/main/0000755000175000017500000000000011361635324033710 5ustar twernertwerner././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dep-with-transitive-filter/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dep-with-transitive-filter/src/main/0000755000175000017500000000000011361635324033710 5ustar twernertwerner././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dep-with-transitive-filter/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dep-with-transitive-filter/src/main/0000755000175000017500000000000011361635324033710 5ustar twernertwerner././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dep-with-transitive-filter/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dep-with-transitive-filter/src/main/0000644000175000017500000000024711123544663033716 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000015600000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dep-with-transitive-filter/src/main/assembly/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dep-with-transitive-filter/src/main/0000755000175000017500000000000011361635324033710 5ustar twernertwerner././@LongLink0000000000000000000000000000016500000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dep-with-transitive-filter/src/main/assembly/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dep-with-transitive-filter/src/main/0000644000175000017500000000146011162606221033704 0ustar twernertwerner bin dir false maven-libs false true true org.apache.maven.wagon* maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/0000755000175000017500000000000011361635324033732 5ustar twernertwerner././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/p0000644000175000017500000000125210672136154034115 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test dependencySet-unpackedSubsetsTwice pom 1.0-SNAPSHOT child1 child2 ././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/child1/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/c0000755000175000017500000000000011361635324034075 5ustar twernertwerner././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/child1/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/c0000644000175000017500000000071310672136154034101 0ustar twernertwerner dependencySet-unpackedSubsetsTwice test 1.0-SNAPSHOT 4.0.0 child1 junit junit 3.8.1 test ././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/child1/src/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/c0000755000175000017500000000000011361635324034075 5ustar twernertwerner././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/child1/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/c0000755000175000017500000000000011361635324034075 5ustar twernertwerner././@LongLink0000000000000000000000000000017100000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/child1/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/c0000755000175000017500000000000011361635324034075 5ustar twernertwerner././@LongLink0000000000000000000000000000017600000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/child1/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/c0000755000175000017500000000000011361635324034075 5ustar twernertwerner././@LongLink0000000000000000000000000000021200000000000011560 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/child1/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/c0000644000175000017500000000117011123544663034077 0ustar twernertwernerpackage 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 ); } } ././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/child1/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/c0000755000175000017500000000000011361635324034075 5ustar twernertwerner././@LongLink0000000000000000000000000000017100000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/child1/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/c0000755000175000017500000000000011361635324034075 5ustar twernertwerner././@LongLink0000000000000000000000000000017600000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/child1/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/c0000755000175000017500000000000011361635324034075 5ustar twernertwerner././@LongLink0000000000000000000000000000020700000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/child1/src/main/java/test/App2.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/c0000644000175000017500000000025011123544663034075 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App2 { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000020600000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/child1/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/c0000644000175000017500000000024711123544663034103 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/child2/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/c0000755000175000017500000000000011361635324034075 5ustar twernertwerner././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/child2/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/c0000644000175000017500000000221011052376133034067 0ustar twernertwerner dependencySet-unpackedSubsetsTwice test 1.0-SNAPSHOT 4.0.0 child2 test child1 1.0-SNAPSHOT junit junit 3.8.1 test maven-assembly-plugin attach-binary-assembly package src/assemble/bin.xml single ././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/child2/src/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/c0000755000175000017500000000000011361635324034075 5ustar twernertwerner././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/child2/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/c0000755000175000017500000000000011361635324034075 5ustar twernertwerner././@LongLink0000000000000000000000000000017100000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/child2/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/c0000755000175000017500000000000011361635324034075 5ustar twernertwerner././@LongLink0000000000000000000000000000017600000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/child2/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/c0000755000175000017500000000000011361635324034075 5ustar twernertwerner././@LongLink0000000000000000000000000000021200000000000011560 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/child2/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/c0000644000175000017500000000117011123544663034077 0ustar twernertwernerpackage 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 ); } } ././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/child2/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/c0000755000175000017500000000000011361635324034075 5ustar twernertwerner././@LongLink0000000000000000000000000000017100000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/child2/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/c0000755000175000017500000000000011361635324034075 5ustar twernertwerner././@LongLink0000000000000000000000000000017600000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/child2/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/c0000755000175000017500000000000011361635324034075 5ustar twernertwerner././@LongLink0000000000000000000000000000020600000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/child2/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/c0000644000175000017500000000024711123544663034103 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/child2/src/assemble/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/c0000755000175000017500000000000011361635324034075 5ustar twernertwerner././@LongLink0000000000000000000000000000017700000000000011572 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/child2/src/assemble/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/c0000644000175000017500000000231411162606221034070 0ustar twernertwerner bin jar false test:child1 false true /classes1 **/App.class test:child1 false true /classes2 **/App2.class ././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/goals.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/g0000644000175000017500000000000710672136154034101 0ustar twernertwernerpackage././@LongLink0000000000000000000000000000015600000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/verify.bshmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedSubsetsTwice/v0000644000175000017500000000335110771721652034130 0ustar twernertwernerimport java.io.*; import java.net.*; import java.util.jar.*; boolean result = true; try { System.out.println( "Creating JarFile java.io.File." ); File jarFile = new File( basedir, "child2/target/child2-1.0-SNAPSHOT-bin.jar" ); System.out.println( "Checking for existence and file-ishness of: " + jarFile ); if ( !jarFile.exists() || jarFile.isDirectory() ) { System.err.println( "jar file is missing or a directory." ); return false; } System.out.println( "Creating JarFile instance." ); JarFile jf = new JarFile( jarFile ); System.out.println( "Looking for 'classes1/test/App.class' jar entry." ); if ( jf.getEntry( "classes1/test/App.class" ) == null ) { System.err.println( "classes1/test/App.class entry is missing." ); result = false; } System.out.println( "Looking for absence of 'classes1/test/App2.class' jar entry." ); if ( jf.getEntry( "classes1/test/App2.class" ) != null ) { System.err.println( "classes1/test/App2.class should not be present." ); result = false; } System.out.println( "Looking for 'classes2/test/App2.class' jar entry." ); if ( jf.getEntry( "classes2/test/App2.class" ) == null ) { System.err.println( "classes2/test/App2.class entry is missing." ); result = false; } System.out.println( "Looking for absence of 'classes2/test/App.class' jar entry." ); if ( jf.getEntry( "classes2/test/App.class" ) != null ) { System.err.println( "classes2/test/App.class should not be present." ); result = false; } } catch( IOException e ) { e.printStackTrace(); result = false; } return result; maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/0000755000175000017500000000000011361635325031662 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/pom.xml0000644000175000017500000000124110662710466033200 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test dependencySet-matchScope pom 1.0-SNAPSHOT child1 child2 maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child1/0000755000175000017500000000000011361635325033026 5ustar twernertwerner././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child1/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child1/pom.0000644000175000017500000000111510504337661033620 0ustar twernertwerner dependencySet-matchScope test 1.0-SNAPSHOT 4.0.0 test child1 Maven Quick Start Archetype 1.0-SNAPSHOT http://maven.apache.org junit junit 3.8.1 test ././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child1/src/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child1/src/0000755000175000017500000000000011361635325033615 5ustar twernertwerner././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child1/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child1/src/0000755000175000017500000000000011361635325033615 5ustar twernertwerner././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child1/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child1/src/0000755000175000017500000000000011361635325033615 5ustar twernertwerner././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child1/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child1/src/0000755000175000017500000000000011361635325033615 5ustar twernertwerner././@LongLink0000000000000000000000000000020000000000000011555 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child1/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child1/src/0000644000175000017500000000117011123544663033616 0ustar twernertwernerpackage 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 ); } } ././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child1/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child1/src/0000755000175000017500000000000011361635325033615 5ustar twernertwerner././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child1/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child1/src/0000755000175000017500000000000011361635325033615 5ustar twernertwerner././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child1/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child1/src/0000755000175000017500000000000011361635325033615 5ustar twernertwerner././@LongLink0000000000000000000000000000017400000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child1/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child1/src/0000644000175000017500000000024711123544663033622 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child2/0000755000175000017500000000000011361635325033027 5ustar twernertwerner././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child2/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child2/pom.0000644000175000017500000000227211052376133033622 0ustar twernertwerner dependencySet-matchScope test 1.0-SNAPSHOT 4.0.0 test child2 1.0-SNAPSHOT test child1 1.0-SNAPSHOT junit junit 3.8.1 test maven-assembly-plugin attach-binary-assembly package src/assemble/bin.xml single ././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child2/src/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child2/src/0000755000175000017500000000000011361635325033616 5ustar twernertwerner././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child2/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child2/src/0000755000175000017500000000000011361635325033616 5ustar twernertwerner././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child2/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child2/src/0000755000175000017500000000000011361635325033616 5ustar twernertwerner././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child2/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child2/src/0000755000175000017500000000000011361635325033616 5ustar twernertwerner././@LongLink0000000000000000000000000000020000000000000011555 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child2/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child2/src/0000644000175000017500000000117011123544663033617 0ustar twernertwernerpackage 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 ); } } ././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child2/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child2/src/0000755000175000017500000000000011361635325033616 5ustar twernertwerner././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child2/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child2/src/0000755000175000017500000000000011361635325033616 5ustar twernertwerner././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child2/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child2/src/0000755000175000017500000000000011361635325033616 5ustar twernertwerner././@LongLink0000000000000000000000000000017400000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child2/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child2/src/0000644000175000017500000000024711123544663033623 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000015600000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child2/src/assemble/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child2/src/0000755000175000017500000000000011361635325033616 5ustar twernertwerner././@LongLink0000000000000000000000000000016500000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child2/src/assemble/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/child2/src/0000644000175000017500000000126711162606221033616 0ustar twernertwerner bin jar false false lib ${artifact.artifactId}.${artifact.extension} runtime ././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/README-jira.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/README-jira0000644000175000017500000000001610504337661033462 0ustar twernertwernerMASSEMBLY-132 maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/goals.txt0000644000175000017500000000000710504337661033525 0ustar twernertwernerpackagemaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-matchScope/verify.bsh0000644000175000017500000000221010771721652033662 0ustar twernertwernerimport java.io.*; import java.net.*; import java.util.jar.*; boolean result = true; try { System.out.println( "Creating JarFile java.io.File." ); File jarFile = new File( basedir, "child2/target/child2-1.0-SNAPSHOT-bin.jar" ); System.out.println( "Checking for existence and file-ishness of: " + jarFile ); if ( !jarFile.exists() || jarFile.isDirectory() ) { System.err.println( "jar file is missing or a directory." ); return false; } System.out.println( "Creating JarFile instance." ); JarFile jf = new JarFile( jarFile ); System.out.println( "Looking for 'lib/child1.jar' jar entry." ); if ( jf.getEntry( "lib/child1.jar" ) == null ) { System.err.println( "child1 entry is missing." ); result = false; } System.out.println( "Looking for absence of 'lib/junit.jar' jar entry." ); if ( jf.getEntry( "lib/junit.jar" ) != null ) { System.err.println( "junit jar should not be present." ); result = false; } } catch( IOException e ) { e.printStackTrace(); result = false; } return result; maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/including-sar-dependency/0000755000175000017500000000000011361635325031657 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/including-sar-dependency/pom.xml0000644000175000017500000000207411052376133033173 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test including-sar-dependency jar 1.0-SNAPSHOT org.codehaus.plexus plexus-appserver-service-xmlrpc 2.0-alpha-3 sar maven-assembly-plugin src/assemble/bin.xml maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/including-sar-dependency/goals.txt0000644000175000017500000000011611052376133033517 0ustar twernertwernerclean org.apache.maven.plugins:maven-assembly-plugin:${testVersion}:directory maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/including-sar-dependency/verify.bsh0000644000175000017500000000100311066772063033656 0ustar twernertwernerimport java.io.*; boolean result = true; // verify that transitive deps of the POM dep were included. result = result && new File( basedir, "target/including-sar-dependency-1.0-SNAPSHOT-bin/lib/xmlrpc" ).exists(); result = result && new File( basedir, "target/including-sar-dependency-1.0-SNAPSHOT-bin/lib/plexus-xmlrpc" ).exists(); result = result && new File( basedir, "target/including-sar-dependency-1.0-SNAPSHOT-bin/lib/plexus-appserver-service-xmlrpc/lib/commons-codec-1.3.jar" ).exists(); return result; maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/including-sar-dependency/src/0000755000175000017500000000000011361635325032446 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/including-sar-dependency/src/main/0000755000175000017500000000000011361635325033372 5ustar twernertwerner././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/including-sar-dependency/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/including-sar-dependency/src/main/ja0000755000175000017500000000000011361635325033705 5ustar twernertwerner././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/including-sar-dependency/src/main/java/com/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/including-sar-dependency/src/main/ja0000755000175000017500000000000011361635325033705 5ustar twernertwerner././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/including-sar-dependency/src/main/java/com/nf/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/including-sar-dependency/src/main/ja0000755000175000017500000000000011361635325033705 5ustar twernertwerner././@LongLink0000000000000000000000000000016300000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/including-sar-dependency/src/main/java/com/nf/ass/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/including-sar-dependency/src/main/ja0000755000175000017500000000000011361635325033705 5ustar twernertwerner././@LongLink0000000000000000000000000000017300000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/including-sar-dependency/src/main/java/com/nf/ass/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/including-sar-dependency/src/main/ja0000644000175000017500000000025511123544663033711 0ustar twernertwernerpackage com.nf.ass; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/including-sar-dependency/src/assemble/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/including-sar-dependency/src/assembl0000755000175000017500000000000011361635325034015 5ustar twernertwerner././@LongLink0000000000000000000000000000015600000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/including-sar-dependency/src/assemble/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/including-sar-dependency/src/assembl0000644000175000017500000000111611162606221034006 0ustar twernertwerner bin dir false lib/${artifact.artifactId} true maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/0000755000175000017500000000000011361635323031364 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/pom.xml0000644000175000017500000000123610662710466032710 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test dependencySet-unpacked pom 1.0-SNAPSHOT child1 child2 maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/child1/0000755000175000017500000000000011361635323032530 5ustar twernertwerner././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/child1/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/child1/pom.xm0000644000175000017500000000111210466204331033660 0ustar twernertwerner dependencySet-unpacked test 1.0-SNAPSHOT 4.0.0 test child1 Maven Quick Start Archetype 1.0-SNAPSHOT http://maven.apache.org junit junit 3.8.1 test maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/child1/src/0000755000175000017500000000000011361635323033317 5ustar twernertwerner././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/child1/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/child1/src/te0000755000175000017500000000000011361635323033650 5ustar twernertwerner././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/child1/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/child1/src/te0000755000175000017500000000000011361635323033650 5ustar twernertwerner././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/child1/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/child1/src/te0000755000175000017500000000000011361635323033650 5ustar twernertwerner././@LongLink0000000000000000000000000000017600000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/child1/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/child1/src/te0000644000175000017500000000117011123544663033653 0ustar twernertwernerpackage 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 ); } } ././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/child1/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/child1/src/ma0000755000175000017500000000000011361635323033635 5ustar twernertwerner././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/child1/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/child1/src/ma0000755000175000017500000000000011361635323033635 5ustar twernertwerner././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/child1/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/child1/src/ma0000755000175000017500000000000011361635323033635 5ustar twernertwerner././@LongLink0000000000000000000000000000017200000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/child1/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/child1/src/ma0000644000175000017500000000024711123544663033644 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/child2/0000755000175000017500000000000011361635323032531 5ustar twernertwerner././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/child2/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/child2/pom.xm0000644000175000017500000000227011052376133033671 0ustar twernertwerner dependencySet-unpacked test 1.0-SNAPSHOT 4.0.0 test child2 1.0-SNAPSHOT test child1 1.0-SNAPSHOT junit junit 3.8.1 test maven-assembly-plugin attach-binary-assembly package src/assemble/bin.xml single maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/child2/src/0000755000175000017500000000000011361635323033320 5ustar twernertwerner././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/child2/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/child2/src/te0000755000175000017500000000000011361635323033651 5ustar twernertwerner././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/child2/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/child2/src/te0000755000175000017500000000000011361635323033651 5ustar twernertwerner././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/child2/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/child2/src/te0000755000175000017500000000000011361635323033651 5ustar twernertwerner././@LongLink0000000000000000000000000000017600000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/child2/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/child2/src/te0000644000175000017500000000117011123544663033654 0ustar twernertwernerpackage 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 ); } } ././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/child2/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/child2/src/ma0000755000175000017500000000000011361635323033636 5ustar twernertwerner././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/child2/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/child2/src/ma0000755000175000017500000000000011361635323033636 5ustar twernertwerner././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/child2/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/child2/src/ma0000755000175000017500000000000011361635323033636 5ustar twernertwerner././@LongLink0000000000000000000000000000017200000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/child2/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/child2/src/ma0000644000175000017500000000024711123544663033645 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/child2/src/assemble/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/child2/src/as0000755000175000017500000000000011361635323033644 5ustar twernertwerner././@LongLink0000000000000000000000000000016300000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/child2/src/assemble/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/child2/src/as0000644000175000017500000000137011162606221033641 0ustar twernertwerner bin jar false test:child1 true /${artifact.artifactId} test junit:junit maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/goals.txt0000644000175000017500000000000710466204331033223 0ustar twernertwernerpackagemaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpacked/verify.bsh0000644000175000017500000000215310771721652033374 0ustar twernertwernerimport java.io.*; import java.net.*; import java.util.jar.*; boolean result = true; try { System.out.println( "Creating JarFile java.io.File." ); File jarFile = new File( basedir, "child2/target/child2-1.0-SNAPSHOT-bin.jar" ); System.out.println( "Checking for existence and file-ishness of: " + jarFile ); if ( !jarFile.exists() || jarFile.isDirectory() ) { System.err.println( "jar file is missing or a directory." ); return false; } System.out.println( "Creating JarFile instance." ); JarFile jf = new JarFile( jarFile ); System.out.println( "Looking for 'child1/' jar entry." ); if ( jf.getEntry( "child1/" ) == null ) { System.err.println( "child1 entry is missing." ); result = false; } System.out.println( "Looking for absence of 'junit/' jar entry." ); if ( jf.getEntry( "junit" ) != null ) { System.err.println( "junit jar should not be present." ); result = false; } } catch( IOException e ) { e.printStackTrace(); result = false; } return result; maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-232/0000755000175000017500000000000011361635325027304 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-232/pom.xml0000644000175000017500000000136310664571033030624 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 massembly-232 maven-assembly-plugin assembly.xml package single maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-232/goals.txt0000644000175000017500000000000710664571033031147 0ustar twernertwernerpackagemaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-232/verify.bsh0000644000175000017500000000030511066772063031307 0ustar twernertwernerimport java.io.*; File file = new File( basedir, "target/massembly-232-1-dist/massembly-232-1/etc/hello.txt" ); System.out.println( "Test file exists? " + file.exists() ); return file.exists(); maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-232/assembly.xml0000644000175000017500000000110711162606221031634 0ustar twernertwerner dist dir false src/main/etc massembly-232-${version}/etc maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-232/src/0000755000175000017500000000000011361635325030073 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-232/src/main/0000755000175000017500000000000011361635325031017 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-232/src/main/etc/0000755000175000017500000000000011361635325031572 5ustar twernertwerner././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-232/src/main/etc/hello.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-232/src/main/etc/hello.txt0000644000175000017500000000000310664571033033427 0ustar twernertwernerhi maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/0000755000175000017500000000000011361635324032732 5ustar twernertwerner././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/module-b/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/modul0000755000175000017500000000000011361635323033772 5ustar twernertwerner././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/module-b/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/modul0000644000175000017500000000126610473140532033775 0ustar twernertwerner test using-moduleSet-implied-depSet 1.0-SNAPSHOT 4.0.0 test module-b Assembly Spike Module B 1.0-SNAPSHOT junit junit 3.8.1 test velocity velocity 1.4 ././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/module-b/src/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/modul0000755000175000017500000000000011361635323033772 5ustar twernertwerner././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/module-b/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/modul0000755000175000017500000000000011361635323033772 5ustar twernertwerner././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/module-b/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/modul0000755000175000017500000000000011361635323033772 5ustar twernertwerner././@LongLink0000000000000000000000000000017300000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/module-b/src/test/java/com/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/modul0000755000175000017500000000000011361635323033772 5ustar twernertwerner././@LongLink0000000000000000000000000000017600000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/module-b/src/test/java/com/nf/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/modul0000755000175000017500000000000011361635323033772 5ustar twernertwerner././@LongLink0000000000000000000000000000020200000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/module-b/src/test/java/com/nf/ass/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/modul0000755000175000017500000000000011361635323033772 5ustar twernertwerner././@LongLink0000000000000000000000000000021600000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/module-b/src/test/java/com/nf/ass/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/modul0000644000175000017500000000117611123544663034003 0ustar twernertwernerpackage com.nf.ass; 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 ); } } ././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/module-b/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/modul0000755000175000017500000000000011361635323033772 5ustar twernertwerner././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/module-b/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/modul0000755000175000017500000000000011361635323033772 5ustar twernertwerner././@LongLink0000000000000000000000000000017300000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/module-b/src/main/java/com/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/modul0000755000175000017500000000000011361635323033772 5ustar twernertwerner././@LongLink0000000000000000000000000000017600000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/module-b/src/main/java/com/nf/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/modul0000755000175000017500000000000011361635323033772 5ustar twernertwerner././@LongLink0000000000000000000000000000020200000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/module-b/src/main/java/com/nf/ass/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/modul0000755000175000017500000000000011361635323033772 5ustar twernertwerner././@LongLink0000000000000000000000000000021200000000000011560 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/module-b/src/main/java/com/nf/ass/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/modul0000644000175000017500000000025511123544663034000 0ustar twernertwernerpackage com.nf.ass; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/pom.x0000644000175000017500000000313111052376133033711 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test using-moduleSet-implied-depSet pom 1.0-SNAPSHOT module-a module-b commons-logging commons-logging 1.0.4 org.apache.maven.plugins maven-surefire-plugin 2.2 maven-assembly-plugin src/main/assemblies/bin.xml apache.snapshots http://people.apache.org/maven-snapshot-repository/ ././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/module-a/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/modul0000755000175000017500000000000011361635323033772 5ustar twernertwerner././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/module-a/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/modul0000644000175000017500000000125610473140532033774 0ustar twernertwerner test using-moduleSet-implied-depSet 1.0-SNAPSHOT 4.0.0 test module-a Assembly Spike Module A 1.0-SNAPSHOT junit junit 3.8.1 test jdom jdom 1.0 ././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/module-a/src/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/modul0000755000175000017500000000000011361635323033772 5ustar twernertwerner././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/module-a/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/modul0000755000175000017500000000000011361635323033772 5ustar twernertwerner././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/module-a/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/modul0000755000175000017500000000000011361635323033772 5ustar twernertwerner././@LongLink0000000000000000000000000000017300000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/module-a/src/test/java/com/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/modul0000755000175000017500000000000011361635323033772 5ustar twernertwerner././@LongLink0000000000000000000000000000017600000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/module-a/src/test/java/com/nf/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/modul0000755000175000017500000000000011361635323033772 5ustar twernertwerner././@LongLink0000000000000000000000000000020200000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/module-a/src/test/java/com/nf/ass/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/modul0000755000175000017500000000000011361635323033772 5ustar twernertwerner././@LongLink0000000000000000000000000000021600000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/module-a/src/test/java/com/nf/ass/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/modul0000644000175000017500000000117611123544663034003 0ustar twernertwernerpackage com.nf.ass; 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 ); } } ././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/module-a/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/modul0000755000175000017500000000000011361635323033772 5ustar twernertwerner././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/module-a/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/modul0000755000175000017500000000000011361635323033772 5ustar twernertwerner././@LongLink0000000000000000000000000000017300000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/module-a/src/main/java/com/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/modul0000755000175000017500000000000011361635323033772 5ustar twernertwerner././@LongLink0000000000000000000000000000017600000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/module-a/src/main/java/com/nf/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/modul0000755000175000017500000000000011361635323033772 5ustar twernertwerner././@LongLink0000000000000000000000000000020200000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/module-a/src/main/java/com/nf/ass/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/modul0000755000175000017500000000000011361635323033772 5ustar twernertwerner././@LongLink0000000000000000000000000000021200000000000011560 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/module-a/src/main/java/com/nf/ass/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/modul0000644000175000017500000000025511123544663034000 0ustar twernertwernerpackage com.nf.ass; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/goals.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/goals0000644000175000017500000000013511052376133033756 0ustar twernertwernerclean package org.apache.maven.plugins:maven-assembly-plugin:${testVersion}:directory-inline ././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/verify.bshmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/verif0000644000175000017500000000107111066772063033773 0ustar twernertwernerimport java.io.*; boolean result = true; result = result && new File( basedir, "target/using-moduleSet-implied-depSet-1.0-SNAPSHOT-bin/modules/jdom.jar" ).exists(); result = result && new File( basedir, "target/using-moduleSet-implied-depSet-1.0-SNAPSHOT-bin/modules/velocity.jar" ).exists(); result = result && new File( basedir, "target/using-moduleSet-implied-depSet-1.0-SNAPSHOT-bin/modules/module-a.jar" ).exists(); result = result && new File( basedir, "target/using-moduleSet-implied-depSet-1.0-SNAPSHOT-bin/modules/module-b.jar" ).exists(); return result; maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/src/0000755000175000017500000000000011361635323033520 5ustar twernertwerner././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/src/m0000755000175000017500000000000011361635323033675 5ustar twernertwerner././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/src/main/assemblies/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/src/m0000755000175000017500000000000011361635323033675 5ustar twernertwerner././@LongLink0000000000000000000000000000017300000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/src/main/assemblies/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/using-moduleSet-implied-depSet/src/m0000644000175000017500000000137211162606221033674 0ustar twernertwerner bin dir false modules ${artifact.artifactId}.${artifact.extension} false true maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/0000755000175000017500000000000011361635325032047 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/pom.xml0000644000175000017500000000124210662710466033366 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test dependencySet-notUnpacked pom 1.0-SNAPSHOT child1 child2 maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child1/0000755000175000017500000000000011361635325033213 5ustar twernertwerner././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child1/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child1/pom0000644000175000017500000000111610466472051033730 0ustar twernertwerner dependencySet-notUnpacked test 1.0-SNAPSHOT 4.0.0 test child1 Maven Quick Start Archetype 1.0-SNAPSHOT http://maven.apache.org junit junit 3.8.1 test ././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child1/src/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child1/src0000755000175000017500000000000011361635325033723 5ustar twernertwerner././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child1/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child1/src0000755000175000017500000000000011361635325033723 5ustar twernertwerner././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child1/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child1/src0000755000175000017500000000000011361635325033723 5ustar twernertwerner././@LongLink0000000000000000000000000000016500000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child1/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child1/src0000755000175000017500000000000011361635325033723 5ustar twernertwerner././@LongLink0000000000000000000000000000020100000000000011556 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child1/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child1/src0000644000175000017500000000117011123544663033724 0ustar twernertwernerpackage 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 ); } } ././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child1/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child1/src0000755000175000017500000000000011361635325033723 5ustar twernertwerner././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child1/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child1/src0000755000175000017500000000000011361635325033723 5ustar twernertwerner././@LongLink0000000000000000000000000000016500000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child1/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child1/src0000755000175000017500000000000011361635325033723 5ustar twernertwerner././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child1/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child1/src0000644000175000017500000000024711123544663033730 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child2/0000755000175000017500000000000011361635325033214 5ustar twernertwerner././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child2/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child2/pom0000644000175000017500000000227311052376133033732 0ustar twernertwerner dependencySet-notUnpacked test 1.0-SNAPSHOT 4.0.0 test child2 1.0-SNAPSHOT test child1 1.0-SNAPSHOT junit junit 3.8.1 test maven-assembly-plugin attach-binary-assembly package src/assemble/bin.xml single ././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child2/src/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child2/src0000755000175000017500000000000011361635325033724 5ustar twernertwerner././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child2/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child2/src0000755000175000017500000000000011361635325033724 5ustar twernertwerner././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child2/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child2/src0000755000175000017500000000000011361635325033724 5ustar twernertwerner././@LongLink0000000000000000000000000000016500000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child2/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child2/src0000755000175000017500000000000011361635325033724 5ustar twernertwerner././@LongLink0000000000000000000000000000020100000000000011556 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child2/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child2/src0000644000175000017500000000117011123544663033725 0ustar twernertwernerpackage 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 ); } } ././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child2/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child2/src0000755000175000017500000000000011361635325033724 5ustar twernertwerner././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child2/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child2/src0000755000175000017500000000000011361635325033724 5ustar twernertwerner././@LongLink0000000000000000000000000000016500000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child2/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child2/src0000755000175000017500000000000011361635325033724 5ustar twernertwerner././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child2/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child2/src0000644000175000017500000000024711123544663033731 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child2/src/assemble/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child2/src0000755000175000017500000000000011361635325033724 5ustar twernertwerner././@LongLink0000000000000000000000000000016600000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child2/src/assemble/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/child2/src0000644000175000017500000000151011162606221033713 0ustar twernertwerner bin jar false test:child1 false lib ${artifact.artifactId}.${artifact.extension} test junit:junit maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/goals.txt0000644000175000017500000000000710466206462033713 0ustar twernertwernerpackage././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/verify.bshmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-notUnpacked/verify.bsh0000644000175000017500000000221010771721652034047 0ustar twernertwernerimport java.io.*; import java.net.*; import java.util.jar.*; boolean result = true; try { System.out.println( "Creating JarFile java.io.File." ); File jarFile = new File( basedir, "child2/target/child2-1.0-SNAPSHOT-bin.jar" ); System.out.println( "Checking for existence and file-ishness of: " + jarFile ); if ( !jarFile.exists() || jarFile.isDirectory() ) { System.err.println( "jar file is missing or a directory." ); return false; } System.out.println( "Creating JarFile instance." ); JarFile jf = new JarFile( jarFile ); System.out.println( "Looking for 'lib/child1.jar' jar entry." ); if ( jf.getEntry( "lib/child1.jar" ) == null ) { System.err.println( "child1 entry is missing." ); result = false; } System.out.println( "Looking for absence of 'lib/junit.jar' jar entry." ); if ( jf.getEntry( "lib/junit.jar" ) != null ) { System.err.println( "junit jar should not be present." ); result = false; } } catch( IOException e ) { e.printStackTrace(); result = false; } return result; maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/0000755000175000017500000000000011361635323033563 5ustar twernertwerner././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/po0000644000175000017500000000072710662710466034137 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test dependencySet-withExecutedProject 1.0-SNAPSHOT pom child1 child2 ././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/child1/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/ch0000755000175000017500000000000011361635323034076 5ustar twernertwerner././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/child1/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/ch0000644000175000017500000000112610466472051034102 0ustar twernertwerner dependencySet-withExecutedProject test 1.0-SNAPSHOT 4.0.0 test child1 Maven Quick Start Archetype 1.0-SNAPSHOT http://maven.apache.org junit junit 3.8.1 test ././@LongLink0000000000000000000000000000015600000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/child1/src/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/ch0000755000175000017500000000000011361635323034076 5ustar twernertwerner././@LongLink0000000000000000000000000000016300000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/child1/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/ch0000755000175000017500000000000011361635323034076 5ustar twernertwerner././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/child1/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/ch0000755000175000017500000000000011361635323034076 5ustar twernertwerner././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/child1/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/ch0000755000175000017500000000000011361635323034076 5ustar twernertwerner././@LongLink0000000000000000000000000000021100000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/child1/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/ch0000644000175000017500000000117011123544663034101 0ustar twernertwernerpackage 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 ); } } ././@LongLink0000000000000000000000000000016300000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/child1/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/ch0000755000175000017500000000000011361635323034076 5ustar twernertwerner././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/child1/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/ch0000755000175000017500000000000011361635323034076 5ustar twernertwerner././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/child1/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/ch0000755000175000017500000000000011361635323034076 5ustar twernertwerner././@LongLink0000000000000000000000000000020500000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/child1/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/ch0000644000175000017500000000024711123544663034105 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/child2/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/ch0000755000175000017500000000000011361635323034076 5ustar twernertwerner././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/child2/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/ch0000644000175000017500000000207611052376133034103 0ustar twernertwerner dependencySet-withExecutedProject test 1.0-SNAPSHOT 4.0.0 test child2 1.0-SNAPSHOT test child1 1.0-SNAPSHOT runtime maven-assembly-plugin attach-binary-assembly package src/assemble/bin.xml single ././@LongLink0000000000000000000000000000015600000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/child2/src/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/ch0000755000175000017500000000000011361635323034076 5ustar twernertwerner././@LongLink0000000000000000000000000000016300000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/child2/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/ch0000755000175000017500000000000011361635323034076 5ustar twernertwerner././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/child2/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/ch0000755000175000017500000000000011361635323034076 5ustar twernertwerner././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/child2/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/ch0000755000175000017500000000000011361635323034076 5ustar twernertwerner././@LongLink0000000000000000000000000000020500000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/child2/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/ch0000644000175000017500000000024711123544663034105 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/child2/src/assemble/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/ch0000755000175000017500000000000011361635323034076 5ustar twernertwerner././@LongLink0000000000000000000000000000017600000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/child2/src/assemble/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/ch0000644000175000017500000000126711162606221034100 0ustar twernertwerner bin dir false false lib ${artifact.artifactId}.${artifact.extension} runtime ././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/goals.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/go0000644000175000017500000000001010511053467034101 0ustar twernertwernerinstall ././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/verify.bshmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/ve0000644000175000017500000000043411066772063034126 0ustar twernertwernerimport java.io.*; import java.net.*; import java.util.jar.*; boolean result = true; try { result = new File( basedir, "child2/target/child2-1.0-SNAPSHOT-bin/lib/child1.jar" ).exists(); } catch( IOException e ) { e.printStackTrace(); result = false; } return result; ././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/src/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/sr0000755000175000017500000000000011361635323034130 5ustar twernertwerner././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/sr0000755000175000017500000000000011361635323034130 5ustar twernertwerner././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/sr0000755000175000017500000000000011361635323034130 5ustar twernertwerner././@LongLink0000000000000000000000000000016600000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/sr0000755000175000017500000000000011361635323034130 5ustar twernertwerner././@LongLink0000000000000000000000000000017600000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/sr0000644000175000017500000000024711123544663034137 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/src/assemble/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/sr0000755000175000017500000000000011361635323034130 5ustar twernertwerner././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/src/assemble/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-withExecutedProject/sr0000644000175000017500000000126711162606221034132 0ustar twernertwerner bin jar false false lib ${artifact.artifactId}.${artifact.extension} runtime maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-201/0000755000175000017500000000000011361635324027277 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-201/pom.xml0000644000175000017500000000312611066531032030607 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 massembly-201 jar org.apache.maven maven-model 2.0.9 org.apache.maven maven-model 2.0.9 sources org.apache.maven maven-model 2.0.9 javadoc maven-assembly-plugin src/main/assembly/bin.xml single-assembly package single maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-201/goals.txt0000644000175000017500000000001611066531032031133 0ustar twernertwernerclean package maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-201/verify.bsh0000644000175000017500000000124311066772063031305 0ustar twernertwernerimport java.io.*; File main = new File( basedir, "target/massembly-201-1-bin/maven-model-2.0.9.jar" ); File sources = new File( basedir, "target/massembly-201-1-bin/maven-model-2.0.9-sources.jar" ); File javadocs = new File( basedir, "target/massembly-201-1-bin/maven-model-2.0.9-javadoc.jar" ); if ( !main.exists() ) { System.out.println( "Main (unclassified) dependency jar is missing: " + main ); } if ( !sources.exists() ) { System.out.println( "Sources dependency jar is missing: " + sources ); } if ( !javadocs.exists() ) { System.out.println( "JavaDocs dependency jar is missing: " + javadocs ); } return main.exists() && sources.exists() && javadocs.exists();maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-201/src/0000755000175000017500000000000011361635324030066 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-201/src/main/0000755000175000017500000000000011361635324031012 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-201/src/main/java/0000755000175000017500000000000011361635324031733 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-201/src/main/java/test/0000755000175000017500000000000011361635324032712 5ustar twernertwerner././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-201/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-201/src/main/java/test/App0000644000175000017500000000024711123544663033361 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-201/src/main/assembly/0000755000175000017500000000000011361635324032631 5ustar twernertwerner././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-201/src/main/assembly/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-201/src/main/assembly/bin.0000644000175000017500000000136211162606221033375 0ustar twernertwerner bin dir false org.apache.maven:maven-model:jar org.apache.maven:maven-model:jar:sources org.apache.maven:maven-model:jar:javadoc false ././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-projectArtifactNotIncluded/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-projectArtifactNotIncl0000755000175000017500000000000011361635325034130 5ustar twernertwerner././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-projectArtifactNotIncluded/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-projectArtifactNotIncl0000644000175000017500000000212111052376133034122 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test dependencySet-projectArtifactNotIncluded 1.0-SNAPSHOT war Foo bar commons-logging commons-logging 1.0.4 compile javax.servlet servlet-api 2.3 provided maven-assembly-plugin src/assembly/bin.xml ././@LongLink0000000000000000000000000000016300000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-projectArtifactNotIncluded/goals.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-projectArtifactNotIncl0000644000175000017500000000011011052376133034116 0ustar twernertwernerorg.apache.maven.plugins:maven-assembly-plugin:${testVersion}:directory ././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-projectArtifactNotIncluded/verify.bshmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-projectArtifactNotIncl0000644000175000017500000000103211066772063034131 0ustar twernertwernerimport java.io.*; if ( basedir == void ) { basedir = new File( "." ); } File depFile = new File( basedir, "target/dependencySet-projectArtifactNotIncluded-1.0-SNAPSHOT-bin/lib/commons-logging-1.0.4.jar" ); File projectArtifactFile = new File( basedir, "target/dependencySet-projectArtifactNotIncluded-1.0-SNAPSHOT-bin/lib/dependencySet-projectArtifactNotIncluded-1.0-SNAPSHOT.war" ); System.out.println( "result: " + ( depFile.exists() && !projectArtifactFile.exists() ) ); return depFile.exists() && !projectArtifactFile.exists(); ././@LongLink0000000000000000000000000000015600000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-projectArtifactNotIncluded/src/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-projectArtifactNotIncl0000755000175000017500000000000011361635325034130 5ustar twernertwerner././@LongLink0000000000000000000000000000016300000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-projectArtifactNotIncluded/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-projectArtifactNotIncl0000755000175000017500000000000011361635325034130 5ustar twernertwerner././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-projectArtifactNotIncluded/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-projectArtifactNotIncl0000755000175000017500000000000011361635325034130 5ustar twernertwerner././@LongLink0000000000000000000000000000017400000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-projectArtifactNotIncluded/src/main/java/foo/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-projectArtifactNotIncl0000755000175000017500000000000011361635325034130 5ustar twernertwerner././@LongLink0000000000000000000000000000020400000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-projectArtifactNotIncluded/src/main/java/foo/Foo.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-projectArtifactNotIncl0000644000175000017500000000016611123544663034135 0ustar twernertwernerpackage foo; public class Foo { public static void main(String[] args) { System.out.println("Hello, World!"); } }././@LongLink0000000000000000000000000000017200000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-projectArtifactNotIncluded/src/main/webapp/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-projectArtifactNotIncl0000755000175000017500000000000011361635325034130 5ustar twernertwerner././@LongLink0000000000000000000000000000020200000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-projectArtifactNotIncluded/src/main/webapp/WEB-INF/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-projectArtifactNotIncl0000755000175000017500000000000011361635325034130 5ustar twernertwerner././@LongLink0000000000000000000000000000021100000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-projectArtifactNotIncluded/src/main/webapp/WEB-INF/web.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-projectArtifactNotIncl0000644000175000017500000000103110467131720034121 0ustar twernertwerner Foo bar foobar foo.Foo 1 foobar /app/* ././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-projectArtifactNotIncluded/src/assembly/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-projectArtifactNotIncl0000755000175000017500000000000011361635325034130 5ustar twernertwerner././@LongLink0000000000000000000000000000017600000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-projectArtifactNotIncluded/src/assembly/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-projectArtifactNotIncl0000644000175000017500000000121211162606221034116 0ustar twernertwerner bin dir false lib false compile false maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-provided/0000755000175000017500000000000011361635325030241 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-provided/pom.xml0000644000175000017500000000123110662710466031556 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test include-provided pom 1.0-SNAPSHOT child1 child2 maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-provided/child1/0000755000175000017500000000000011361635324031404 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-provided/child1/pom.xml0000644000175000017500000000110510504341532032707 0ustar twernertwerner include-provided test 1.0-SNAPSHOT 4.0.0 test child1 Maven Quick Start Archetype 1.0-SNAPSHOT http://maven.apache.org junit junit 3.8.1 test maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-provided/child1/src/0000755000175000017500000000000011361635324032173 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-provided/child1/src/test/0000755000175000017500000000000011361635324033152 5ustar twernertwerner././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-provided/child1/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-provided/child1/src/test/jav0000755000175000017500000000000011361635324033653 5ustar twernertwerner././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-provided/child1/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-provided/child1/src/test/jav0000755000175000017500000000000011361635324033653 5ustar twernertwerner././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-provided/child1/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-provided/child1/src/test/jav0000644000175000017500000000117011123544663033655 0ustar twernertwernerpackage 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 ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-provided/child1/src/main/0000755000175000017500000000000011361635324033117 5ustar twernertwerner././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-provided/child1/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-provided/child1/src/main/jav0000755000175000017500000000000011361635324033620 5ustar twernertwerner././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-provided/child1/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-provided/child1/src/main/jav0000755000175000017500000000000011361635324033620 5ustar twernertwerner././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-provided/child1/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-provided/child1/src/main/jav0000644000175000017500000000024711123544663033626 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-provided/child2/0000755000175000017500000000000011361635325031406 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-provided/child2/pom.xml0000644000175000017500000000232011052376133032714 0ustar twernertwerner include-provided test 1.0-SNAPSHOT 4.0.0 test child2 1.0-SNAPSHOT test child1 1.0-SNAPSHOT provided junit junit 3.8.1 test maven-assembly-plugin attach-binary-assembly package src/assemble/bin.xml single maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-provided/child2/src/0000755000175000017500000000000011361635325032175 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-provided/child2/src/test/0000755000175000017500000000000011361635324033153 5ustar twernertwerner././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-provided/child2/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-provided/child2/src/test/jav0000755000175000017500000000000011361635324033654 5ustar twernertwerner././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-provided/child2/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-provided/child2/src/test/jav0000755000175000017500000000000011361635324033654 5ustar twernertwerner././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-provided/child2/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-provided/child2/src/test/jav0000644000175000017500000000117011123544663033656 0ustar twernertwernerpackage 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 ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-provided/child2/src/main/0000755000175000017500000000000011361635325033121 5ustar twernertwerner././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-provided/child2/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-provided/child2/src/main/jav0000755000175000017500000000000011361635325033622 5ustar twernertwerner././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-provided/child2/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-provided/child2/src/main/jav0000755000175000017500000000000011361635325033622 5ustar twernertwerner././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-provided/child2/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-provided/child2/src/main/jav0000644000175000017500000000024711123544663033627 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-provided/child2/src/assemble/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-provided/child2/src/assemble0000755000175000017500000000000011361635325033711 5ustar twernertwerner././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-provided/child2/src/assemble/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-provided/child2/src/assemble0000644000175000017500000000127011162606221033703 0ustar twernertwerner bin jar false false lib ${artifact.artifactId}.${artifact.extension} provided maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-provided/README-jira.txt0000644000175000017500000000001610504341532032647 0ustar twernertwernerMASSEMBLY-111 maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-provided/goals.txt0000644000175000017500000000000710504341532032074 0ustar twernertwernerpackagemaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-provided/verify.bsh0000644000175000017500000000221010771721652032241 0ustar twernertwernerimport java.io.*; import java.net.*; import java.util.jar.*; boolean result = true; try { System.out.println( "Creating JarFile java.io.File." ); File jarFile = new File( basedir, "child2/target/child2-1.0-SNAPSHOT-bin.jar" ); System.out.println( "Checking for existence and file-ishness of: " + jarFile ); if ( !jarFile.exists() || jarFile.isDirectory() ) { System.err.println( "jar file is missing or a directory." ); return false; } System.out.println( "Creating JarFile instance." ); JarFile jf = new JarFile( jarFile ); System.out.println( "Looking for 'lib/child1.jar' jar entry." ); if ( jf.getEntry( "lib/child1.jar" ) == null ) { System.err.println( "child1 entry is missing." ); result = false; } System.out.println( "Looking for absence of 'lib/junit.jar' jar entry." ); if ( jf.getEntry( "lib/junit.jar" ) != null ) { System.err.println( "junit jar should not be present." ); result = false; } } catch( IOException e ) { e.printStackTrace(); result = false; } return result; maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/0000755000175000017500000000000011361635324027236 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-b/0000755000175000017500000000000011361635324030742 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-b/pom.xml0000644000175000017500000000124410473140532032253 0ustar twernertwerner test massembly-99 1.0-SNAPSHOT 4.0.0 test module-b Assembly Spike Module B 1.0-SNAPSHOT junit junit 3.8.1 test velocity velocity 1.4 maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-b/src/0000755000175000017500000000000011361635324031531 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-b/src/test/0000755000175000017500000000000011361635324032510 5ustar twernertwerner././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-b/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-b/src/test/java/0000755000175000017500000000000011361635324033431 5ustar twernertwerner././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-b/src/test/java/com/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-b/src/test/java/0000755000175000017500000000000011361635324033431 5ustar twernertwerner././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-b/src/test/java/com/nf/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-b/src/test/java/0000755000175000017500000000000011361635324033431 5ustar twernertwerner././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-b/src/test/java/com/nf/ass/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-b/src/test/java/0000755000175000017500000000000011361635324033431 5ustar twernertwerner././@LongLink0000000000000000000000000000017400000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-b/src/test/java/com/nf/ass/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-b/src/test/java/0000644000175000017500000000117611123544663033441 0ustar twernertwernerpackage com.nf.ass; 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 ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-b/src/main/0000755000175000017500000000000011361635324032455 5ustar twernertwerner././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-b/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-b/src/main/java/0000755000175000017500000000000011361635324033376 5ustar twernertwerner././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-b/src/main/java/com/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-b/src/main/java/0000755000175000017500000000000011361635324033376 5ustar twernertwerner././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-b/src/main/java/com/nf/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-b/src/main/java/0000755000175000017500000000000011361635324033376 5ustar twernertwerner././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-b/src/main/java/com/nf/ass/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-b/src/main/java/0000755000175000017500000000000011361635324033376 5ustar twernertwerner././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-b/src/main/java/com/nf/ass/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-b/src/main/java/0000644000175000017500000000025511123544663033403 0ustar twernertwernerpackage com.nf.ass; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/pom.xml0000644000175000017500000000314511052376133030553 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test massembly-99 pom 1.0-SNAPSHOT Assembly Spike module-a module-b commons-logging commons-logging 1.0.4 org.apache.maven.plugins maven-surefire-plugin 2.2 maven-assembly-plugin src/main/assemblies/bin.xml apache.snapshots http://people.apache.org/maven-snapshot-repository/ maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-a/0000755000175000017500000000000011361635324030741 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-a/pom.xml0000644000175000017500000000123410473140532032251 0ustar twernertwerner test massembly-99 1.0-SNAPSHOT 4.0.0 test module-a Assembly Spike Module A 1.0-SNAPSHOT junit junit 3.8.1 test jdom jdom 1.0 maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-a/src/0000755000175000017500000000000011361635324031530 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-a/src/test/0000755000175000017500000000000011361635324032507 5ustar twernertwerner././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-a/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-a/src/test/java/0000755000175000017500000000000011361635324033430 5ustar twernertwerner././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-a/src/test/java/com/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-a/src/test/java/0000755000175000017500000000000011361635324033430 5ustar twernertwerner././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-a/src/test/java/com/nf/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-a/src/test/java/0000755000175000017500000000000011361635324033430 5ustar twernertwerner././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-a/src/test/java/com/nf/ass/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-a/src/test/java/0000755000175000017500000000000011361635324033430 5ustar twernertwerner././@LongLink0000000000000000000000000000017400000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-a/src/test/java/com/nf/ass/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-a/src/test/java/0000644000175000017500000000117611123544663033440 0ustar twernertwernerpackage com.nf.ass; 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 ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-a/src/main/0000755000175000017500000000000011361635324032454 5ustar twernertwerner././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-a/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-a/src/main/java/0000755000175000017500000000000011361635324033375 5ustar twernertwerner././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-a/src/main/java/com/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-a/src/main/java/0000755000175000017500000000000011361635324033375 5ustar twernertwerner././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-a/src/main/java/com/nf/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-a/src/main/java/0000755000175000017500000000000011361635324033375 5ustar twernertwerner././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-a/src/main/java/com/nf/ass/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-a/src/main/java/0000755000175000017500000000000011361635324033375 5ustar twernertwerner././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-a/src/main/java/com/nf/ass/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/module-a/src/main/java/0000644000175000017500000000025511123544663033402 0ustar twernertwernerpackage com.nf.ass; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/goals.txt0000644000175000017500000000013511052376133031100 0ustar twernertwernerclean package org.apache.maven.plugins:maven-assembly-plugin:${testVersion}:directory-inline maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/verify.bsh0000644000175000017500000000075111066772063031247 0ustar twernertwernerimport java.io.*; boolean result = true; result = result && new File( basedir, "target/massembly-99-1.0-SNAPSHOT-bin/lib/jdom.jar" ).exists(); result = result && new File( basedir, "target/massembly-99-1.0-SNAPSHOT-bin/lib/velocity.jar" ).exists(); result = result && new File( basedir, "target/massembly-99-1.0-SNAPSHOT-bin/modules/module-a.jar" ).exists(); result = result && new File( basedir, "target/massembly-99-1.0-SNAPSHOT-bin/modules/module-b.jar" ).exists(); return result; maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/src/0000755000175000017500000000000011361635324030025 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/src/main/0000755000175000017500000000000011361635324030751 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/src/main/assemblies/0000755000175000017500000000000011361635324033100 5ustar twernertwerner././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/src/main/assemblies/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-99/src/main/assemblies/bin0000644000175000017500000000201011162606221033555 0ustar twernertwerner bin dir false modules ${module.artifactId}.${module.extension} false lib ${artifact.artifactId}.${artifact.extension} false runtime maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/0000755000175000017500000000000011361635324032436 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/pom.xml0000644000175000017500000000124410665342764033765 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test dependencySet-nonTransitive pom 1.0-SNAPSHOT child1 child2 maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/child1/0000755000175000017500000000000011361635324033602 5ustar twernertwerner././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/child1/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/child1/p0000644000175000017500000000065310665342764034001 0ustar twernertwerner dependencySet-nonTransitive test 1.0-SNAPSHOT 4.0.0 child1 junit junit 3.8.1 ././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/child1/src/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/child1/s0000755000175000017500000000000011361635324033765 5ustar twernertwerner././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/child1/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/child1/s0000755000175000017500000000000011361635324033765 5ustar twernertwerner././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/child1/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/child1/s0000755000175000017500000000000011361635324033765 5ustar twernertwerner././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/child1/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/child1/s0000755000175000017500000000000011361635324033765 5ustar twernertwerner././@LongLink0000000000000000000000000000020300000000000011560 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/child1/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/child1/s0000644000175000017500000000117011123544663033767 0ustar twernertwernerpackage 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 ); } } ././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/child1/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/child1/s0000755000175000017500000000000011361635324033765 5ustar twernertwerner././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/child1/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/child1/s0000755000175000017500000000000011361635324033765 5ustar twernertwerner././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/child1/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/child1/s0000755000175000017500000000000011361635324033765 5ustar twernertwerner././@LongLink0000000000000000000000000000017700000000000011572 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/child1/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/child1/s0000644000175000017500000000024711123544663033773 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/child2/0000755000175000017500000000000011361635324033603 5ustar twernertwerner././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/child2/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/child2/p0000644000175000017500000000203310665342764033774 0ustar twernertwerner dependencySet-nonTransitive test 1.0-SNAPSHOT 4.0.0 test child2 1.0-SNAPSHOT test child1 1.0-SNAPSHOT maven-assembly-plugin attach-binary-assembly package src/assemble/bin.xml single ././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/child2/src/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/child2/s0000755000175000017500000000000011361635324033766 5ustar twernertwerner././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/child2/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/child2/s0000755000175000017500000000000011361635324033766 5ustar twernertwerner././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/child2/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/child2/s0000755000175000017500000000000011361635324033766 5ustar twernertwerner././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/child2/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/child2/s0000755000175000017500000000000011361635324033766 5ustar twernertwerner././@LongLink0000000000000000000000000000017700000000000011572 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/child2/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/child2/s0000644000175000017500000000024711123544663033774 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/child2/src/assemble/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/child2/s0000755000175000017500000000000011361635324033766 5ustar twernertwerner././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/child2/src/assemble/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/child2/s0000644000175000017500000000133511162606221033763 0ustar twernertwerner bin jar false false lib false ${artifact.artifactId}.${artifact.extension} ././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/README-jira.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/README-j0000644000175000017500000000001610665342764033553 0ustar twernertwernerMASSEMBLY-132 ././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/goals.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/goals.tx0000644000175000017500000000000710665342764034126 0ustar twernertwernerpackage././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/verify.bshmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-nonTransitive/verify.b0000644000175000017500000000221010771721652034104 0ustar twernertwernerimport java.io.*; import java.net.*; import java.util.jar.*; boolean result = true; try { System.out.println( "Creating JarFile java.io.File." ); File jarFile = new File( basedir, "child2/target/child2-1.0-SNAPSHOT-bin.jar" ); System.out.println( "Checking for existence and file-ishness of: " + jarFile ); if ( !jarFile.exists() || jarFile.isDirectory() ) { System.err.println( "jar file is missing or a directory." ); return false; } System.out.println( "Creating JarFile instance." ); JarFile jf = new JarFile( jarFile ); System.out.println( "Looking for 'lib/child1.jar' jar entry." ); if ( jf.getEntry( "lib/child1.jar" ) == null ) { System.err.println( "child1 entry is missing." ); result = false; } System.out.println( "Looking for absence of 'lib/junit.jar' jar entry." ); if ( jf.getEntry( "lib/junit.jar" ) != null ) { System.err.println( "junit jar should not be present." ); result = false; } } catch( IOException e ) { e.printStackTrace(); result = false; } return result; maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-345/0000755000175000017500000000000011361635325027311 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-345/pom.xml0000644000175000017500000000201211064050500030603 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 massembly-345 maven-assembly-plugin src/main/resources/application.xml src/assemble/bin.xml package single maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-345/goals.txt0000644000175000017500000000001611064050500031136 0ustar twernertwernerclean package maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-345/verify.bsh0000644000175000017500000000021611064050500031274 0ustar twernertwernerimport java.io.*; // verify that the ear is created result = new File( basedir, "target/massembly-345-1-bin.ear" ).exists(); return result; maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-345/src/0000755000175000017500000000000011361635325030100 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-345/src/main/0000755000175000017500000000000011361635325031024 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-345/src/main/resources/0000755000175000017500000000000011361635325033036 5ustar twernertwerner././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-345/src/main/resources/application.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-345/src/main/resources/app0000644000175000017500000000000411064050500033515 0ustar twernertwernerTestmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-345/src/assemble/0000755000175000017500000000000011361635325031673 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/massembly-345/src/assemble/bin.xml0000644000175000017500000000101011162606221033145 0ustar twernertwerner bin ear false src/main/ maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/including-pom-dependency/0000755000175000017500000000000011361635323031663 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/including-pom-dependency/pom.xml0000644000175000017500000000220411052376133033174 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test including-pom-dependency jar 1.0-SNAPSHOT Maven Quick Start Archetype http://maven.apache.org org.codehaus.plexus plexus-container-default 1.0-alpha-9 pom maven-assembly-plugin src/assemble/bin.xml maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/including-pom-dependency/goals.txt0000644000175000017500000000011611052376133033525 0ustar twernertwernerclean org.apache.maven.plugins:maven-assembly-plugin:${testVersion}:directory maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/including-pom-dependency/verify.bsh0000644000175000017500000000154411066772063033676 0ustar twernertwernerimport java.io.*; boolean result = true; // verify that transitive deps of the POM dep were included. result = result && new File( basedir, "target/including-pom-dependency-1.0-SNAPSHOT-bin/lib/plexus-utils" ).exists(); result = result && new File( basedir, "target/including-pom-dependency-1.0-SNAPSHOT-bin/lib/classworlds" ).exists(); result = result && new File( basedir, "target/including-pom-dependency-1.0-SNAPSHOT-bin/lib/junit" ).exists(); // verify that the POM dep was included without extracting. result = result && new File( basedir, "target/including-pom-dependency-1.0-SNAPSHOT-bin/lib/plexus-container-default.pom" ).exists(); // verify that the jar associated with the POM dep wasn't included either. result = result && !new File( basedir, "target/including-pom-dependency-1.0-SNAPSHOT-bin/lib/plexus-container-default" ).exists(); return result; maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/including-pom-dependency/src/0000755000175000017500000000000011361635323032452 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/including-pom-dependency/src/main/0000755000175000017500000000000011361635323033376 5ustar twernertwerner././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/including-pom-dependency/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/including-pom-dependency/src/main/ja0000755000175000017500000000000011361635323033711 5ustar twernertwerner././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/including-pom-dependency/src/main/java/com/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/including-pom-dependency/src/main/ja0000755000175000017500000000000011361635323033711 5ustar twernertwerner././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/including-pom-dependency/src/main/java/com/nf/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/including-pom-dependency/src/main/ja0000755000175000017500000000000011361635323033711 5ustar twernertwerner././@LongLink0000000000000000000000000000016300000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/including-pom-dependency/src/main/java/com/nf/ass/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/including-pom-dependency/src/main/ja0000755000175000017500000000000011361635323033711 5ustar twernertwerner././@LongLink0000000000000000000000000000017300000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/including-pom-dependency/src/main/java/com/nf/ass/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/including-pom-dependency/src/main/ja0000644000175000017500000000025511123544663033717 0ustar twernertwernerpackage com.nf.ass; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/including-pom-dependency/src/assemble/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/including-pom-dependency/src/assembl0000755000175000017500000000000011361635323034021 5ustar twernertwerner././@LongLink0000000000000000000000000000015600000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/including-pom-dependency/src/assemble/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/including-pom-dependency/src/assembl0000644000175000017500000000165211162606221034021 0ustar twernertwerner bin dir false lib/${artifact.artifactId} true *:pom lib ${artifact.artifactId}.${artifact.extension} true *:pom maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-artifact/0000755000175000017500000000000011361635323031664 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-artifact/pom.xml0000644000175000017500000000245011052376133033200 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test include-project-artifact 1.0-SNAPSHOT junit junit 3.8.1 test maven-assembly-plugin attach-binary-assembly package src/main/assembly/bin.xml single ././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-artifact/README-jira.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-artifact/README-jira0000644000175000017500000000001610637074514033470 0ustar twernertwernerMASSEMBLY-111 maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-artifact/goals.txt0000644000175000017500000000000710637074514033533 0ustar twernertwernerpackagemaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-artifact/verify.bsh0000644000175000017500000000215311066772063033674 0ustar twernertwernerimport java.io.*; import java.net.*; import java.util.jar.*; boolean result = true; try { File dir = new File( basedir, "target/include-project-artifact-1.0-SNAPSHOT-bin" ); System.out.println( "Checking for existence and file-ishness of: " + dir ); if ( !dir.exists() || !dir.isDirectory() ) { System.err.println( "assembled directory is missing or not a directory." ); return false; } File projectArtifact = new File( dir, "lib/include-project-artifact-1.0-SNAPSHOT.jar" ); System.out.println( "Looking for 'lib/include-project-artifact-1.0-SNAPSHOT.jar file in assembly." ); if ( !projectArtifact.exists() ) { System.err.println( "project-artifact entry is missing." ); return false; } System.out.println( "Looking for absence of 'lib/junit.jar' jar entry." ); if ( new File( dir, "lib/junit-3.8.1.jar" ).exists() ) { System.err.println( "junit jar should not be present." ); return false; } } catch( IOException e ) { e.printStackTrace(); result = false; } return result; maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-artifact/src/0000755000175000017500000000000011361635323032453 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-artifact/src/test/0000755000175000017500000000000011361635323033432 5ustar twernertwerner././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-artifact/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-artifact/src/test/ja0000755000175000017500000000000011361635323033745 5ustar twernertwerner././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-artifact/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-artifact/src/test/ja0000755000175000017500000000000011361635323033745 5ustar twernertwerner././@LongLink0000000000000000000000000000017100000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-artifact/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-artifact/src/test/ja0000644000175000017500000000117011123544663033750 0ustar twernertwernerpackage 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 ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-artifact/src/main/0000755000175000017500000000000011361635323033377 5ustar twernertwerner././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-artifact/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-artifact/src/main/ja0000755000175000017500000000000011361635323033712 5ustar twernertwerner././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-artifact/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-artifact/src/main/ja0000755000175000017500000000000011361635323033712 5ustar twernertwerner././@LongLink0000000000000000000000000000016500000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-artifact/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-artifact/src/main/ja0000644000175000017500000000024711123544663033721 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-artifact/src/main/assembly/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-artifact/src/main/as0000755000175000017500000000000011361635323033723 5ustar twernertwerner././@LongLink0000000000000000000000000000016300000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-artifact/src/main/assembly/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-artifact/src/main/as0000644000175000017500000000112511162606221033716 0ustar twernertwerner bin dir false false lib compile maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/multiple-wildcard-includes/0000755000175000017500000000000011361635323032230 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/multiple-wildcard-includes/pom.xml0000644000175000017500000000351611064524676033562 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 massembly-241 massembly-241 junit junit 3.8.1 test org.apache.maven.wagon wagon-provider-api 1.0-beta-4 org.apache.maven.wagon wagon-webdav-jackrabbit 1.0-beta-4 org.apache.maven.reporting maven-reporting-impl 2.0.4.1 commons-vfs commons-vfs 1.0 maven-assembly-plugin assemly package single src/main/assembly/bin.xml ././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/multiple-wildcard-includes/goals.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/multiple-wildcard-includes/goals.txt0000644000175000017500000000001511064247331034070 0ustar twernertwernerclean package././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/multiple-wildcard-includes/verify.bshmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/multiple-wildcard-includes/verify.bs0000644000175000017500000000116011066772063034065 0ustar twernertwernerimport java.io.*; File wagonProviderJar = new File( basedir, "target/massembly-241-1-bin/maven-libs/wagon-provider-api-1.0-beta-4.jar" ); File reportingImplJar = new File( basedir, "target/massembly-241-1-bin/maven-libs/maven-reporting-impl-2.0.4.1.jar" ); if ( !wagonProviderJar.exists() ) { System.out.println( "Wagon provider jar is missing (should be included via include wildcard pattern)." ); } if ( !reportingImplJar.exists() ) { System.out.println( "Reporting implementation jar is missing (should be included via include wildcard pattern)." ); } return wagonProviderJar.exists() && reportingImplJar.exists(); maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/multiple-wildcard-includes/src/0000755000175000017500000000000011361635323033017 5ustar twernertwerner././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/multiple-wildcard-includes/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/multiple-wildcard-includes/src/test/0000755000175000017500000000000011361635323033776 5ustar twernertwerner././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/multiple-wildcard-includes/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/multiple-wildcard-includes/src/test/0000755000175000017500000000000011361635323033776 5ustar twernertwerner././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/multiple-wildcard-includes/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/multiple-wildcard-includes/src/test/0000755000175000017500000000000011361635323033776 5ustar twernertwerner././@LongLink0000000000000000000000000000017300000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/multiple-wildcard-includes/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/multiple-wildcard-includes/src/test/0000644000175000017500000000117011123544663034001 0ustar twernertwernerpackage 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 ); } } ././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/multiple-wildcard-includes/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/multiple-wildcard-includes/src/main/0000755000175000017500000000000011361635323033743 5ustar twernertwerner././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/multiple-wildcard-includes/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/multiple-wildcard-includes/src/main/0000755000175000017500000000000011361635323033743 5ustar twernertwerner././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/multiple-wildcard-includes/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/multiple-wildcard-includes/src/main/0000755000175000017500000000000011361635323033743 5ustar twernertwerner././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/multiple-wildcard-includes/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/multiple-wildcard-includes/src/main/0000644000175000017500000000024711123544663033752 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000015600000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/multiple-wildcard-includes/src/main/assembly/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/multiple-wildcard-includes/src/main/0000755000175000017500000000000011361635323033743 5ustar twernertwerner././@LongLink0000000000000000000000000000016500000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/multiple-wildcard-includes/src/main/assembly/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/multiple-wildcard-includes/src/main/0000644000175000017500000000126411162606221033742 0ustar twernertwerner bin dir false maven-libs org.apache.maven.wagon* org.apache.maven.reporting* ././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaInf/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaI0000755000175000017500000000000011361635324034071 5ustar twernertwerner././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaInf/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaI0000644000175000017500000000125710662710466034104 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test dependencySet-unpackedExcludingMetaInf pom 1.0-SNAPSHOT child1 child2 ././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaInf/child1/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaI0000755000175000017500000000000011361635324034071 5ustar twernertwerner././@LongLink0000000000000000000000000000016600000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaInf/child1/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaI0000644000175000017500000000113310602534301034057 0ustar twernertwerner dependencySet-unpackedExcludingMetaInf test 1.0-SNAPSHOT 4.0.0 test child1 Maven Quick Start Archetype 1.0-SNAPSHOT http://maven.apache.org junit junit 3.8.1 test ././@LongLink0000000000000000000000000000016300000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaInf/child1/src/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaI0000755000175000017500000000000011361635324034071 5ustar twernertwerner././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaInf/child1/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaI0000755000175000017500000000000011361635324034071 5ustar twernertwerner././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaInf/child1/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaI0000755000175000017500000000000011361635324034071 5ustar twernertwerner././@LongLink0000000000000000000000000000020200000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaInf/child1/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaI0000755000175000017500000000000011361635324034071 5ustar twernertwerner././@LongLink0000000000000000000000000000021600000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaInf/child1/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaI0000644000175000017500000000117011123544663034073 0ustar twernertwernerpackage 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 ); } } ././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaInf/child1/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaI0000755000175000017500000000000011361635324034071 5ustar twernertwerner././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaInf/child1/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaI0000755000175000017500000000000011361635324034071 5ustar twernertwerner././@LongLink0000000000000000000000000000020200000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaInf/child1/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaI0000755000175000017500000000000011361635324034071 5ustar twernertwerner././@LongLink0000000000000000000000000000021200000000000011560 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaInf/child1/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaI0000644000175000017500000000024711123544663034077 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaInf/child2/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaI0000755000175000017500000000000011361635324034071 5ustar twernertwerner././@LongLink0000000000000000000000000000016600000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaInf/child2/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaI0000644000175000017500000000231011052376133034064 0ustar twernertwerner dependencySet-unpackedExcludingMetaInf test 1.0-SNAPSHOT 4.0.0 test child2 1.0-SNAPSHOT test child1 1.0-SNAPSHOT junit junit 3.8.1 test maven-assembly-plugin attach-binary-assembly package src/assemble/bin.xml single ././@LongLink0000000000000000000000000000016300000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaInf/child2/src/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaI0000755000175000017500000000000011361635324034071 5ustar twernertwerner././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaInf/child2/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaI0000755000175000017500000000000011361635324034071 5ustar twernertwerner././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaInf/child2/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaI0000755000175000017500000000000011361635324034071 5ustar twernertwerner././@LongLink0000000000000000000000000000020200000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaInf/child2/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaI0000755000175000017500000000000011361635324034071 5ustar twernertwerner././@LongLink0000000000000000000000000000021600000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaInf/child2/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaI0000644000175000017500000000117011123544663034073 0ustar twernertwernerpackage 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 ); } } ././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaInf/child2/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaI0000755000175000017500000000000011361635324034071 5ustar twernertwerner././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaInf/child2/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaI0000755000175000017500000000000011361635324034071 5ustar twernertwerner././@LongLink0000000000000000000000000000020200000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaInf/child2/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaI0000755000175000017500000000000011361635324034071 5ustar twernertwerner././@LongLink0000000000000000000000000000021200000000000011560 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaInf/child2/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaI0000644000175000017500000000024711123544663034077 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000017400000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaInf/child2/src/assemble/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaI0000755000175000017500000000000011361635324034071 5ustar twernertwerner././@LongLink0000000000000000000000000000020300000000000011560 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaInf/child2/src/assemble/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaI0000644000175000017500000000156611162606221034074 0ustar twernertwerner bin jar false test:child1 true META-INF/** /${artifact.artifactId} test junit:junit ././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaInf/goals.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaI0000644000175000017500000000000710602534301034056 0ustar twernertwernerpackage././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaInf/verify.bshmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/dependencySet-unpackedExcludingMetaI0000644000175000017500000000256010771721652034102 0ustar twernertwernerimport java.io.*; import java.net.*; import java.util.jar.*; boolean result = true; try { System.out.println( "Creating JarFile java.io.File." ); File jarFile = new File( basedir, "child2/target/child2-1.0-SNAPSHOT-bin.jar" ); System.out.println( "Checking for existence and file-ishness of: " + jarFile ); if ( !jarFile.exists() || jarFile.isDirectory() ) { System.err.println( "jar file is missing or a directory." ); return false; } System.out.println( "Creating JarFile instance." ); JarFile jf = new JarFile( jarFile ); System.out.println( "Looking for 'child1/' jar entry." ); if ( jf.getEntry( "child1/" ) == null ) { System.err.println( "child1 entry is missing." ); result = false; } System.out.println( "Looking for 'child1/META-INF' jar entry (should not exist)." ); if ( jf.getEntry( "child1/META-INF" ) != null ) { System.err.println( "child1/META-INF entry should not be present." ); result = false; } System.out.println( "Looking for absence of 'junit/' jar entry." ); if ( jf.getEntry( "junit" ) != null ) { System.err.println( "junit jar should not be present." ); result = false; } } catch( IOException e ) { e.printStackTrace(); result = false; } return result; maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-attachments/0000755000175000017500000000000011361635325032404 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-attachments/pom.xml0000644000175000017500000000324711052376133033723 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test include-project-attachments 1.0-SNAPSHOT junit junit 3.8.1 test maven-assembly-plugin attach-source-assembly compile src/main/assembly/src.xml single attach-binary-assembly package src/main/assembly/bin.xml single ././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-attachments/README-jira.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-attachments/README-j0000644000175000017500000000001610637074514033512 0ustar twernertwernerMASSEMBLY-111 ././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-attachments/goals.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-attachments/goals.tx0000644000175000017500000000000710637074514034065 0ustar twernertwernerpackage././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-attachments/verify.bshmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-attachments/verify.b0000644000175000017500000000273611066772063034066 0ustar twernertwernerimport java.io.*; import java.net.*; import java.util.jar.*; boolean result = true; try { File dir = new File( basedir, "target/include-project-attachments-1.0-SNAPSHOT-bin" ); System.out.println( "Checking for existence and file-ishness of: " + dir ); if ( !dir.exists() || !dir.isDirectory() ) { System.err.println( "assembled directory is missing or not a directory." ); return false; } File projectArtifact = new File( dir, "lib/include-project-attachments-1.0-SNAPSHOT.jar" ); System.out.println( "Looking for 'lib/include-project-attachments-1.0-SNAPSHOT.jar file in assembly." ); if ( !projectArtifact.exists() ) { System.err.println( "project-attachments entry is missing." ); return false; } File attachment = new File( dir, "lib/include-project-attachments-1.0-SNAPSHOT-src.zip" ); System.out.println( "Looking for 'lib/include-project-attachments-1.0-SNAPSHOT-src.zip file in assembly." ); if ( !attachment.exists() ) { System.err.println( "project attachment entry is missing." ); return false; } System.out.println( "Looking for absence of 'lib/junit.jar' jar entry." ); if ( new File( dir, "lib/junit-3.8.1.jar" ).exists() ) { System.err.println( "junit jar should not be present." ); return false; } } catch( IOException e ) { e.printStackTrace(); result = false; } return result; maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-attachments/src/0000755000175000017500000000000011361635325033173 5ustar twernertwerner././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-attachments/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-attachments/src/test0000755000175000017500000000000011361635325034073 5ustar twernertwerner././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-attachments/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-attachments/src/test0000755000175000017500000000000011361635325034073 5ustar twernertwerner././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-attachments/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-attachments/src/test0000755000175000017500000000000011361635325034073 5ustar twernertwerner././@LongLink0000000000000000000000000000017400000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-attachments/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-attachments/src/test0000644000175000017500000000117011123544663034074 0ustar twernertwernerpackage 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 ); } } ././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-attachments/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-attachments/src/main0000755000175000017500000000000011361635325034040 5ustar twernertwerner././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-attachments/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-attachments/src/main0000755000175000017500000000000011361635325034040 5ustar twernertwerner././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-attachments/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-attachments/src/main0000755000175000017500000000000011361635325034040 5ustar twernertwerner././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-attachments/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-attachments/src/main0000644000175000017500000000024711123544663034045 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-attachments/src/main/assembly/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-attachments/src/main0000755000175000017500000000000011361635325034040 5ustar twernertwerner././@LongLink0000000000000000000000000000016600000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-attachments/src/main/assembly/src.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-attachments/src/main0000644000175000017500000000115511162606221034034 0ustar twernertwerner src zip false ${basedir} / target ././@LongLink0000000000000000000000000000016600000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-attachments/src/main/assembly/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/include-project-attachments/src/main0000644000175000017500000000130311162606221034027 0ustar twernertwerner bin dir false false lib compile true true maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/outputFileNameMappingWithUnpack/0000755000175000017500000000000011361635325033257 5ustar twernertwerner././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/outputFileNameMappingWithUnpack/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/outputFileNameMappingWithUnpack/pom.0000644000175000017500000000210011064011006034024 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 project junit junit 4.4 maven-assembly-plugin src/main/assembly/bin.xml package single ././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/outputFileNameMappingWithUnpack/goals.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/outputFileNameMappingWithUnpack/goal0000644000175000017500000000001511064011006034100 0ustar twernertwernerclean package././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/outputFileNameMappingWithUnpack/verify.bshmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/outputFileNameMappingWithUnpack/veri0000644000175000017500000000106611066772063034155 0ustar twernertwernerimport java.io.*; // verify that the ear is created File dirWithMapping = new File( basedir, "target/project-1-bin/some_directory/junit.jar/" ); if ( dirWithMapping.exists() ) { System.out.println( " should NOT be used when unpack == true." ); return false; } File dir = new File( basedir, "target/project-1-bin/some_directory/junit/framework/TestCase.class" ); if ( !dir.exists() ) { System.out.println( "Expected unpacked class does not exist in the appropriate outputDirectory within the assembly." ); return false; } return true; ././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/outputFileNameMappingWithUnpack/src/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/outputFileNameMappingWithUnpack/src/0000755000175000017500000000000011361635325034046 5ustar twernertwerner././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/outputFileNameMappingWithUnpack/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/outputFileNameMappingWithUnpack/src/0000755000175000017500000000000011361635325034046 5ustar twernertwerner././@LongLink0000000000000000000000000000016300000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/outputFileNameMappingWithUnpack/src/main/assembly/maven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/outputFileNameMappingWithUnpack/src/0000755000175000017500000000000011361635325034046 5ustar twernertwerner././@LongLink0000000000000000000000000000017200000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/outputFileNameMappingWithUnpack/src/main/assembly/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/dependency-sets/outputFileNameMappingWithUnpack/src/0000644000175000017500000000124411162606221034041 0ustar twernertwerner bin dir false some_directory ${artifact.artifactId}.${artifact.extension} true maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/0000755000175000017500000000000011361635327024611 5ustar twernertwerner././@LongLink0000000000000000000000000000015600000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBaseVersion/maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBas0000755000175000017500000000000011361635327034064 5ustar twernertwerner././@LongLink0000000000000000000000000000016500000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBaseVersion/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBas0000644000175000017500000000236611162601715034066 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test outputFileNameMapping-withArtifactBaseVersion jar 1.0-SNAPSHOT test-snapshots file://${basedir}/repository false org.codehaus.plexus plexus-utils 1.3 maven-assembly-plugin src/assemble/bin.xml ././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBaseVersion/goals.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBas0000644000175000017500000000011011052376133034050 0ustar twernertwernerorg.apache.maven.plugins:maven-assembly-plugin:${testVersion}:directory ././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBaseVersion/verify.bshmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBas0000644000175000017500000000050611162601715034060 0ustar twernertwernerimport java.io.*; import java.net.*; import java.util.jar.*; boolean result = true; try { result = new File( basedir, "target/outputFileNameMapping-withArtifactBaseVersion-1.0-SNAPSHOT-bin/lib/plexus-utils-1.3.jar" ).exists(); } catch( IOException e ) { e.printStackTrace(); result = false; } return result; ././@LongLink0000000000000000000000000000017100000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBaseVersion/repository/maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBas0000755000175000017500000000000011361635326034063 5ustar twernertwerner././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBaseVersion/repository/org/maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBas0000755000175000017500000000000011361635326034063 5ustar twernertwerner././@LongLink0000000000000000000000000000020600000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBaseVersion/repository/org/codehaus/maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBas0000755000175000017500000000000011361635326034063 5ustar twernertwerner././@LongLink0000000000000000000000000000021500000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBaseVersion/repository/org/codehaus/plexus/maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBas0000755000175000017500000000000011361635326034063 5ustar twernertwerner././@LongLink0000000000000000000000000000023200000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBaseVersion/repository/org/codehaus/plexus/plexus-utils/maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBas0000755000175000017500000000000011361635327034064 5ustar twernertwerner././@LongLink0000000000000000000000000000026100000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBaseVersion/repository/org/codehaus/plexus/plexus-utils/maven-metadata.xml.sha1maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBas0000644000175000017500000000005010467121116034051 0ustar twernertwernerd38f4bcd1f71a4a67d3dab0632905266cea942ab././@LongLink0000000000000000000000000000026000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBaseVersion/repository/org/codehaus/plexus/plexus-utils/maven-metadata.xml.md5maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBas0000644000175000017500000000004010467121116034050 0ustar twernertwernerb6789e2ec12187a1b036652cf2f81511././@LongLink0000000000000000000000000000024700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBaseVersion/repository/org/codehaus/plexus/plexus-utils/1.3-SNAPSHOT/maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBas0000755000175000017500000000000011361635327034064 5ustar twernertwerner././@LongLink0000000000000000000000000000027600000000000011572 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBaseVersion/repository/org/codehaus/plexus/plexus-utils/1.3-SNAPSHOT/maven-metadata.xml.sha1maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBas0000644000175000017500000000005010467121116034051 0ustar twernertwerner2175f9cd18cb2e36a20818279a148eba5ad6ccfd././@LongLink0000000000000000000000000000027500000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBaseVersion/repository/org/codehaus/plexus/plexus-utils/1.3-SNAPSHOT/maven-metadata.xml.md5maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBas0000644000175000017500000000004010467121116034050 0ustar twernertwerner41c86c6138662f89b8f9020699fdf5b9././@LongLink0000000000000000000000000000031500000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBaseVersion/repository/org/codehaus/plexus/plexus-utils/1.3-SNAPSHOT/plexus-utils-1.3-20060811.151624-1.pommaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBas0000644000175000017500000000154410551610064034061 0ustar twernertwerner org.codehaus.plexus 4.0.0 plexus-utils Plexus Common Utilities 1.3-20060811.151624-1 maven-surefire-plugin true org/codehaus/plexus/util/FileBasedTestCase.java **/Test*.java local-for-tests file:///tmp/repository deployed ././@LongLink0000000000000000000000000000027100000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBaseVersion/repository/org/codehaus/plexus/plexus-utils/1.3-SNAPSHOT/maven-metadata.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBas0000644000175000017500000000055310467121116034061 0ustar twernertwerner org.codehaus.plexus plexus-utils 1.3-SNAPSHOT 20060811.151624 1 20060811151624 ././@LongLink0000000000000000000000000000025400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBaseVersion/repository/org/codehaus/plexus/plexus-utils/maven-metadata.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBas0000644000175000017500000000050110467121116034052 0ustar twernertwerner org.codehaus.plexus plexus-utils 1.3-SNAPSHOT 1.3-SNAPSHOT 20060811151624 ././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBaseVersion/src/maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBas0000755000175000017500000000000011361635327034064 5ustar twernertwerner././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBaseVersion/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBas0000755000175000017500000000000011361635327034064 5ustar twernertwerner././@LongLink0000000000000000000000000000017400000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBaseVersion/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBas0000755000175000017500000000000011361635327034064 5ustar twernertwerner././@LongLink0000000000000000000000000000020100000000000011556 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBaseVersion/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBas0000755000175000017500000000000011361635327034064 5ustar twernertwerner././@LongLink0000000000000000000000000000021100000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBaseVersion/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBas0000644000175000017500000000024711123544663034067 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000017300000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBaseVersion/src/assemble/maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBas0000755000175000017500000000000011361635327034064 5ustar twernertwerner././@LongLink0000000000000000000000000000020200000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBaseVersion/src/assemble/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-withArtifactBas0000644000175000017500000000126211162606221034055 0ustar twernertwerner bin dir false false lib ${artifact.artifactId}-${artifact.baseVersion}.${artifact.extension} maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/file-copyIntoTopDir/0000755000175000017500000000000011361635326030453 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/file-copyIntoTopDir/pom.xml0000644000175000017500000000161311052376133031764 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 org.test parent 1.0 Parent org.apache.maven.plugins maven-assembly-plugin src/assemble/bin.xml maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/file-copyIntoTopDir/goals.txt0000644000175000017500000000011011052376133032304 0ustar twernertwernerorg.apache.maven.plugins:maven-assembly-plugin:${testVersion}:directory maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/file-copyIntoTopDir/verify.bsh0000644000175000017500000000041611066772063032460 0ustar twernertwernerimport java.io.*; import java.net.*; import java.util.jar.*; boolean result = true; try { result = new File( basedir, "target/parent-1.0-bug-example/TODO.txt" ).exists(); } catch( IOException e ) { e.printStackTrace(); result = false; } return result; maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/file-copyIntoTopDir/TODO.txt0000644000175000017500000000000510577310515031752 0ustar twernertwernerTest maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/file-copyIntoTopDir/src/0000755000175000017500000000000011361635326031242 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/file-copyIntoTopDir/src/assemble/0000755000175000017500000000000011361635326033035 5ustar twernertwerner././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/file-copyIntoTopDir/src/assemble/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/file-copyIntoTopDir/src/assemble/bin.0000644000175000017500000000103611162606221033575 0ustar twernertwerner bug-example dir false TODO.txt / maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/massembly-351-projectPrefixInterp/0000755000175000017500000000000011361635327033117 5ustar twernertwerner././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/massembly-351-projectPrefixInterp/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/massembly-351-projectPrefixInterp/pom0000644000175000017500000000146011062564531033632 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 project pom maven-assembly-plugin src/main/assembly/myassembly.xml ././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/massembly-351-projectPrefixInterp/goals.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/massembly-351-projectPrefixInterp/goa0000644000175000017500000000011511062564531033601 0ustar twernertwernerclean org.apache.maven.plugins:maven-assembly-plugin:${testVersion}:attached ././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/massembly-351-projectPrefixInterp/verify.bshmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/massembly-351-projectPrefixInterp/ver0000644000175000017500000000126011066772063033636 0ustar twernertwernerimport java.io.*; File f = new File( basedir, "target/project-1-myassembly/files/project1.file" ); File f2 = new File( basedir, "target/project-1-myassembly/files/project2.file" ); File f3 = new File( basedir, "target/project-1-myassembly/files/project3.file" ); boolean fOK = f.exists() && f.isFile(); if ( !fOK ) { System.out.println( "File: " + f + " doesn't exist, or isn't a file." ); } boolean f2OK = f2.exists() && f2.isFile(); if ( !f2OK ) { System.out.println( "File: " + f2 + " doesn't exist, or isn't a file." ); } boolean f3OK = f3.exists() && f3.isFile(); if ( !f3OK ) { System.out.println( "File: " + f3 + " doesn't exist, or isn't a file." ); } return fOK && f2OK; ././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/massembly-351-projectPrefixInterp/src/maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/massembly-351-projectPrefixInterp/src0000755000175000017500000000000011361635327033627 5ustar twernertwerner././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/massembly-351-projectPrefixInterp/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/massembly-351-projectPrefixInterp/src0000755000175000017500000000000011361635327033627 5ustar twernertwerner././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/massembly-351-projectPrefixInterp/src/main/files/maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/massembly-351-projectPrefixInterp/src0000755000175000017500000000000011361635327033627 5ustar twernertwerner././@LongLink0000000000000000000000000000017600000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/massembly-351-projectPrefixInterp/src/main/files/project2.filemaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/massembly-351-projectPrefixInterp/src0000755000175000017500000000000011062564531033616 0ustar twernertwerner././@LongLink0000000000000000000000000000017600000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/massembly-351-projectPrefixInterp/src/main/files/project1.filemaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/massembly-351-projectPrefixInterp/src0000755000175000017500000000000011062564531033616 0ustar twernertwerner././@LongLink0000000000000000000000000000017600000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/massembly-351-projectPrefixInterp/src/main/files/project3.filemaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/massembly-351-projectPrefixInterp/src0000755000175000017500000000000011062564531033616 0ustar twernertwerner././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/massembly-351-projectPrefixInterp/src/main/assembly/maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/massembly-351-projectPrefixInterp/src0000755000175000017500000000000011361635327033627 5ustar twernertwerner././@LongLink0000000000000000000000000000020200000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/massembly-351-projectPrefixInterp/src/main/assembly/myassembly.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/massembly-351-projectPrefixInterp/src0000644000175000017500000000232711162606221033623 0ustar twernertwerner myassembly dir false src/main/files /files ${artifactId}1.file src/main/files /files ${pom.artifactId}2.file src/main/files /files ${project.artifactId}3.file maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/ExecutionRoot/0000755000175000017500000000000011361635327027420 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/ExecutionRoot/pom.xml0000644000175000017500000000241511212274043030724 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 org.test parent 1.0 pom Parent child org.apache.maven.plugins maven-assembly-plugin true src/assemble/src.xml single validate maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/ExecutionRoot/invoker.properties0000644000175000017500000000022711212274043033201 0ustar twernertwernerinvoker.goals=clean validate #invoker.mavenOpts=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/ExecutionRoot/child/0000755000175000017500000000000011361635327030503 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/ExecutionRoot/child/pom.xml0000644000175000017500000000102111212274043031777 0ustar twernertwerner 4.0.0 org.test parent 1.0 Child org.test child 1.0 maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/ExecutionRoot/goals.txt0000644000175000017500000000011411212274043031247 0ustar twernertwernerclean org.apache.maven.plugins:maven-assembly-plugin:${testVersion}:single maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/ExecutionRoot/verify.bsh0000644000175000017500000000050411212274043031406 0ustar twernertwernerimport java.io.*; import java.net.*; import java.util.jar.*; boolean result = true; try { result = new File( basedir, "target/parent-1.0-src.zip" ).exists() && !new File( basedir, "child/target/child-1.0-src.zip" ).exists(); } catch( IOException e ) { e.printStackTrace(); result = false; } return result; maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/ExecutionRoot/src/0000755000175000017500000000000011361635327030207 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/ExecutionRoot/src/assemble/0000755000175000017500000000000011361635327032002 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/ExecutionRoot/src/assemble/src.xml0000644000175000017500000000061311212274043033300 0ustar twernertwerner src zip true ${project.basedir} / **/*.log target/** maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/massembly-256-pomPropertiesInterp/0000755000175000017500000000000011361635327033147 5ustar twernertwerner././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/massembly-256-pomPropertiesInterp/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/massembly-256-pomPropertiesInterp/pom0000644000175000017500000000176010771710445033670 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 massembly-256-pomPropertiesInterp pom maven-assembly-plugin src/main/assembly/myassembly.xml file/path file2/path file3/path ././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/massembly-256-pomPropertiesInterp/goals.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/massembly-256-pomPropertiesInterp/goa0000644000175000017500000000011511052376133033627 0ustar twernertwernerclean org.apache.maven.plugins:maven-assembly-plugin:${testVersion}:attached ././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/massembly-256-pomPropertiesInterp/verify.bshmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/massembly-256-pomPropertiesInterp/ver0000644000175000017500000000140011066772063033662 0ustar twernertwernerimport java.io.*; File f = new File( basedir, "target/massembly-256-pomPropertiesInterp-1-myassembly/file/path/some.file" ); File f2 = new File( basedir, "target/massembly-256-pomPropertiesInterp-1-myassembly/file2/path/some.file" ); File f3 = new File( basedir, "target/massembly-256-pomPropertiesInterp-1-myassembly/file3/path/some.file" ); boolean fOK = f.exists() && f.isFile(); if ( !fOK ) { System.out.println( "File: " + f + " doesn't exist, or isn't a file." ); } boolean f2OK = f2.exists() && f2.isFile(); if ( !f2OK ) { System.out.println( "File: " + f2 + " doesn't exist, or isn't a file." ); } boolean f3OK = f3.exists() && f3.isFile(); if ( !f3OK ) { System.out.println( "File: " + f3 + " doesn't exist, or isn't a file." ); } return fOK && f2OK; ././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/massembly-256-pomPropertiesInterp/src/maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/massembly-256-pomPropertiesInterp/src0000755000175000017500000000000011361635327033657 5ustar twernertwerner././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/massembly-256-pomPropertiesInterp/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/massembly-256-pomPropertiesInterp/src0000755000175000017500000000000011361635327033657 5ustar twernertwerner././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/massembly-256-pomPropertiesInterp/src/main/files/maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/massembly-256-pomPropertiesInterp/src0000755000175000017500000000000011361635327033657 5ustar twernertwerner././@LongLink0000000000000000000000000000017200000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/massembly-256-pomPropertiesInterp/src/main/files/some.filemaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/massembly-256-pomPropertiesInterp/src0000755000175000017500000000000010760652550033651 0ustar twernertwerner././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/massembly-256-pomPropertiesInterp/src/main/assembly/maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/massembly-256-pomPropertiesInterp/src0000755000175000017500000000000011361635327033657 5ustar twernertwerner././@LongLink0000000000000000000000000000020200000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/massembly-256-pomPropertiesInterp/src/main/assembly/myassembly.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/massembly-256-pomPropertiesInterp/src0000644000175000017500000000173611162606221033656 0ustar twernertwerner myassembly dir false src/main/files ${fileLocation} src/main/files ${pom.properties.fileLocation2} src/main/files ${project.properties.fileLocation3} maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/descriptorDirectoryScan/0000755000175000017500000000000011361635327031461 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/descriptorDirectoryScan/pom.xml0000644000175000017500000000205411052376133032771 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 org.test parent 1.0 Parent commons-logging commons-logging 1.0.4 org.apache.maven.plugins maven-assembly-plugin src/assemble maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/descriptorDirectoryScan/goals.txt0000644000175000017500000000011611052376133033317 0ustar twernertwernerclean org.apache.maven.plugins:maven-assembly-plugin:${testVersion}:directory maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/descriptorDirectoryScan/src/0000755000175000017500000000000011361635327032250 5ustar twernertwerner././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/descriptorDirectoryScan/src/assemble/maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/descriptorDirectoryScan/src/assemble/0000755000175000017500000000000011361635327034043 5ustar twernertwerner././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/descriptorDirectoryScan/src/assemble/readme.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/descriptorDirectoryScan/src/assemble/0000644000175000017500000000007710756362471034055 0ustar twernertwernerThis file is junk and should not be picked up as a descriptor. ././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/descriptorDirectoryScan/src/assemble/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/descriptorDirectoryScan/src/assemble/0000644000175000017500000000126211162606221034034 0ustar twernertwerner bindir false dir commons-logging:commons-logging ${artifact.artifactId}.${artifact.extension} maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/relative-project-paths/0000755000175000017500000000000011361635327031205 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/relative-project-paths/pom.xml0000644000175000017500000000206411212274043032511 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 org.test relative-project-paths 1.0 pom maven-assembly-plugin src/assemble/src.xml single validate ././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/relative-project-paths/invoker.propertiesmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/relative-project-paths/invoker.proper0000644000175000017500000000022511212274043034077 0ustar twernertwernerinvoker.goals=clean validate #invoker.mavenOpts=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/relative-project-paths/goals.txt0000644000175000017500000000001711212274043033036 0ustar twernertwernerclean validate maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/relative-project-paths/verify.bsh0000644000175000017500000000100711212274043033172 0ustar twernertwernerimport java.io.*; import java.net.*; import java.util.jar.*; boolean result = true; try { File f = new File( basedir, "target/relative-project-paths-1.0-src.jar" ); if ( !f.exists() ) { System.out.println( "jar is missing" ); return false; } JarFile jf = new JarFile( f ); JarEntry je = jf.getEntry( "pom.xml" ); if ( je == null ) { System.out.println( "pom.xml entry in jar is missing" ); return false; } } catch( IOException e ) { e.printStackTrace(); result = false; } return result; maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/relative-project-paths/src/0000755000175000017500000000000011361635327031774 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/relative-project-paths/src/assemble/0000755000175000017500000000000011361635327033567 5ustar twernertwerner././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/relative-project-paths/src/assemble/src.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/relative-project-paths/src/assemble/s0000644000175000017500000000054111212274043033741 0ustar twernertwerner src jar false ${project.basedir} **/*.log target/** maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/file-sameName/0000755000175000017500000000000011361635326027253 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/file-sameName/pom.xml0000644000175000017500000000172511052376133030570 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 org.test parent 1.0 Parent a.properties org.apache.maven.plugins maven-assembly-plugin src/assemble/bin.xml maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/file-sameName/a.properties0000644000175000017500000000001510602555654031607 0ustar twernertwernertestProp=boo maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/file-sameName/goals.txt0000644000175000017500000000010711052376133031112 0ustar twernertwernerorg.apache.maven.plugins:maven-assembly-plugin:${testVersion}:assembly maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/file-sameName/verify.bsh0000644000175000017500000000124211066772063031256 0ustar twernertwernerimport java.io.*; import java.net.*; import java.util.jar.*; boolean result = true; try { File a = new File( basedir, "target/parent-1.0-massembly-148-example/a/file.txt"); File b = new File( basedir, "target/parent-1.0-massembly-148-example/b/file.txt"); if(result) { BufferedReader r = new BufferedReader(new FileReader(a)); String s = r.readLine(); result = s.equals("file A"); } if(result) { BufferedReader r = new BufferedReader(new FileReader(b)); String s = r.readLine(); result = s.equals("file B"); } } catch( IOException e ) { e.printStackTrace(); result = false; } return result; maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/file-sameName/src/0000755000175000017500000000000011361635326030042 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/file-sameName/src/assemble/0000755000175000017500000000000011361635326031635 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/file-sameName/src/assemble/bin.xml0000644000175000017500000000144011162606221033115 0ustar twernertwerner massembly-148-example dir zip false src/config/a/file.txt a true src/config/b/file.txt b file.txt true maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/file-sameName/src/config/0000755000175000017500000000000011361635326031307 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/file-sameName/src/config/a/0000755000175000017500000000000011361635326031527 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/file-sameName/src/config/a/file.txt0000644000175000017500000000002310602555654033204 0ustar twernertwernerfile A ${testProp} maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/file-sameName/src/config/b/0000755000175000017500000000000011361635326031530 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/file-sameName/src/config/b/file.txt0000644000175000017500000000002410602555654033206 0ustar twernertwernerfile B ${testProp} maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/classpath-descriptor/0000755000175000017500000000000011361635327030747 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/classpath-descriptor/pom.xml0000644000175000017500000000157211306533772032271 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 org.test test 1.0 Test org.apache.maven.plugins maven-assembly-plugin src.xml maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/classpath-descriptor/goals.txt0000644000175000017500000000011511306533772032612 0ustar twernertwernerclean org.apache.maven.plugins:maven-assembly-plugin:${testVersion}:assembly maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-simple/0000755000175000017500000000000011361635326032354 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-simple/pom.xml0000644000175000017500000000211111052376133033657 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 org.test parent 1.0 Parent commons-logging commons-logging 1.0.4 org.apache.maven.plugins maven-assembly-plugin src/assemble/bin.xml ././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-simple/goals.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-simple/goals.tx0000644000175000017500000000011611052376133034027 0ustar twernertwernerclean org.apache.maven.plugins:maven-assembly-plugin:${testVersion}:directory maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-simple/src/0000755000175000017500000000000011361635326033143 5ustar twernertwerner././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-simple/src/assemble/maven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-simple/src/asse0000755000175000017500000000000011361635326034017 5ustar twernertwerner././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-simple/src/assemble/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/basic-features/outputFileNameMapping-simple/src/asse0000644000175000017500000000126211162606221034011 0ustar twernertwerner bindir false dir commons-logging:commons-logging ${artifact.artifactId}.${artifact.extension} maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/0000755000175000017500000000000011361635323025521 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/ignoreDirFormatExtensions/0000755000175000017500000000000011361635323032674 5ustar twernertwerner././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/ignoreDirFormatExtensions/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/ignoreDirFormatExtensions/pom.xml0000644000175000017500000000270311066773312034216 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 ignoreDirFormatExtensions jar maven-assembly-plugin src package single src/main/assembly/src.xml src2 package single src/main/assembly/src2.xml false ././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/ignoreDirFormatExtensions/goals.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/ignoreDirFormatExtensions/goals.t0000644000175000017500000000001611066773312034166 0ustar twernertwernerclean package ././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/ignoreDirFormatExtensions/verify.bshmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/ignoreDirFormatExtensions/verify.0000644000175000017500000000076211066773312034211 0ustar twernertwernerimport java.io.*; File src = new File( basedir, "target/ignoreDirFormatExtensions-1-src/pom.xml" ); File src2 = new File( basedir, "target/ignoreDirFormatExtensions-1-src2.dir/pom.xml" ); { File f = src; if ( !f.exists() ) { System.out.println( "Project assembly directory is missing. Check-file was: " + f ); } } { File f = src2; if ( !f.exists() ) { System.out.println( "Project assembly directory is missing. Check-file was: " + f ); } } return src.exists() && src2.exists();maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/ignoreDirFormatExtensions/src/0000755000175000017500000000000011361635323033463 5ustar twernertwerner././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/ignoreDirFormatExtensions/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/ignoreDirFormatExtensions/src/mai0000755000175000017500000000000011361635323034152 5ustar twernertwerner././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/ignoreDirFormatExtensions/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/ignoreDirFormatExtensions/src/mai0000755000175000017500000000000011361635323034152 5ustar twernertwerner././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/ignoreDirFormatExtensions/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/ignoreDirFormatExtensions/src/mai0000755000175000017500000000000011361635323034152 5ustar twernertwerner././@LongLink0000000000000000000000000000017100000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/ignoreDirFormatExtensions/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/ignoreDirFormatExtensions/src/mai0000644000175000017500000000024711123544663034161 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/ignoreDirFormatExtensions/src/main/assembly/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/ignoreDirFormatExtensions/src/mai0000755000175000017500000000000011361635323034152 5ustar twernertwerner././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/ignoreDirFormatExtensions/src/main/assembly/src.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/ignoreDirFormatExtensions/src/mai0000644000175000017500000000125711162606221034153 0ustar twernertwerner src dir false ${project.basedir} / true **/target/** ././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/ignoreDirFormatExtensions/src/main/assembly/src2.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/ignoreDirFormatExtensions/src/mai0000644000175000017500000000126011162606221034145 0ustar twernertwerner src2 dir false ${project.basedir} / true **/target/** maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/massembly-301/0000755000175000017500000000000011361635323030016 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/massembly-301/pom.xml0000644000175000017500000000216111066761302031332 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 org.test massembly-301 jar 1 maven-assembly-plugin assembly package single src/main/assembly/src.xml false maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/massembly-301/test.properties0000644000175000017500000000011711066761302033111 0ustar twernertwerneraltDeploymentRepository=test::default::file://${project.build.directory}/deploymaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/massembly-301/goals.txt0000644000175000017500000000001411066761302031656 0ustar twernertwernerclean deploymaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/massembly-301/verify.bsh0000644000175000017500000000146611066761302032026 0ustar twernertwernerimport java.io.*; String base = "target/deploy/org/test/massembly-301/1/massembly-301-1"; File jar = new File( basedir, base + ".jar" ); File zip = new File( basedir, base + ".zip" ); File tgz = new File( basedir, base + ".tar.gz" ); { File f = jar; String type = "main jar"; if ( !f.exists() ) { System.out.println( "Project " + type + " is missing in deployment repository. File was: " + f ); } } { File f = zip; String type = "sources zip"; if ( !f.exists() ) { System.out.println( "Project " + type + " is missing in deployment repository. File was: " + f ); } } { File f = tgz; String type = "sources tar.gz"; if ( !f.exists() ) { System.out.println( "Project " + type + " is missing in deployment repository. File was: " + f ); } } return jar.exists() && zip.exists() && tgz.exists();maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/massembly-301/src/0000755000175000017500000000000011361635323030605 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/massembly-301/src/main/0000755000175000017500000000000011361635323031531 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/massembly-301/src/main/java/0000755000175000017500000000000011361635323032452 5ustar twernertwerner././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/massembly-301/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/massembly-301/src/main/java/test/0000755000175000017500000000000011361635323033431 5ustar twernertwerner././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/massembly-301/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/massembly-301/src/main/java/test/0000644000175000017500000000024711123544663033440 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/massembly-301/src/main/assembly/0000755000175000017500000000000011361635323033350 5ustar twernertwerner././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/massembly-301/src/main/assembly/src.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/massembly-301/src/main/assembly/s0000644000175000017500000000131411212274043033525 0ustar twernertwerner src zip tar.gz ${project.basedir} / true build.log ${project.build.directory}/** maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/skipAssemblyCLIPropertySet/0000755000175000017500000000000011361635323032740 5ustar twernertwerner././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/skipAssemblyCLIPropertySet/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/skipAssemblyCLIPropertySet/pom.xm0000644000175000017500000000216111062566616034107 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test skipAssemblyCLIPropertySet pom 1 maven-assembly-plugin assembly package single src/main/assembly/bin.xml false ././@LongLink0000000000000000000000000000015600000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/skipAssemblyCLIPropertySet/test.propertiesmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/skipAssemblyCLIPropertySet/test.p0000644000175000017500000000002111062566616034077 0ustar twernertwernerskipAssembly=true././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/skipAssemblyCLIPropertySet/goals.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/skipAssemblyCLIPropertySet/goals.0000644000175000017500000000000711062566616034051 0ustar twernertwernerpackage././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/skipAssemblyCLIPropertySet/verify.bshmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/skipAssemblyCLIPropertySet/verify0000644000175000017500000000026511062566616034200 0ustar twernertwernerimport java.io.*; import java.util.jar.*; import java.util.*; import java.net.*; File file = new File( basedir, "target/skipAssemblyCLIPropertySet-1.zip" ); return !file.exists();maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/skipAssemblyCLIPropertySet/src/0000755000175000017500000000000011361635323033527 5ustar twernertwerner././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/skipAssemblyCLIPropertySet/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/skipAssemblyCLIPropertySet/src/ma0000755000175000017500000000000011361635323034045 5ustar twernertwerner././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/skipAssemblyCLIPropertySet/src/main/assembly/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/skipAssemblyCLIPropertySet/src/ma0000755000175000017500000000000011361635323034045 5ustar twernertwerner././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/skipAssemblyCLIPropertySet/src/main/assembly/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/skipAssemblyCLIPropertySet/src/ma0000644000175000017500000000073111162606221034042 0ustar twernertwerner bin zip true maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/massembly-291/0000755000175000017500000000000011361635323030026 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/massembly-291/pom.xml0000644000175000017500000000216111066764025031347 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 org.test massembly-291 pom 1 maven-assembly-plugin assembly package single src/main/assembly/src.xml false maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/massembly-291/test.properties0000644000175000017500000000012011066764025033120 0ustar twernertwerneraltDeploymentRepository=test::default::file://${project.build.directory}/deploy maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/massembly-291/goals.txt0000644000175000017500000000001411066764025031673 0ustar twernertwernerclean deploymaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/massembly-291/verify.bsh0000644000175000017500000000146111066764025032036 0ustar twernertwernerimport java.io.*; String base = "target/deploy/org/test/massembly-291/1/massembly-291-1"; File pom = new File( basedir, base + ".pom" ); File zip = new File( basedir, base + ".zip" ); File tgz = new File( basedir, base + ".tar.gz" ); { File f = pom; String type = "POM"; if ( !f.exists() ) { System.out.println( "Project " + type + " is missing in deployment repository. File was: " + f ); } } { File f = zip; String type = "sources zip"; if ( !f.exists() ) { System.out.println( "Project " + type + " is missing in deployment repository. File was: " + f ); } } { File f = tgz; String type = "sources tar.gz"; if ( !f.exists() ) { System.out.println( "Project " + type + " is missing in deployment repository. File was: " + f ); } } return pom.exists() && zip.exists() && tgz.exists();maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/massembly-291/src/0000755000175000017500000000000011361635323030615 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/massembly-291/src/main/0000755000175000017500000000000011361635323031541 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/massembly-291/src/main/assembly/0000755000175000017500000000000011361635323033360 5ustar twernertwerner././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/massembly-291/src/main/assembly/src.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/massembly-291/src/main/assembly/s0000644000175000017500000000131411212274043033535 0ustar twernertwerner src zip tar.gz ${project.basedir} / true build.log ${project.build.directory}/** ././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/no-appendAssemblyId-no-classifier/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/no-appendAssemblyId-no-classifier0000755000175000017500000000000011361635323034034 5ustar twernertwerner././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/no-appendAssemblyId-no-classifier/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/no-appendAssemblyId-no-classifier0000644000175000017500000000303611052376133034036 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test no-appendAssemblyId-no-classifier jar 1 org.apache.maven.plugins maven-assembly-plugin ${testVersion} maven-plugin junit junit 3.8.1 test maven-assembly-plugin assembly package single jar-with-dependencies false ././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/no-appendAssemblyId-no-classifier/goals.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/no-appendAssemblyId-no-classifier0000644000175000017500000000000710661075352034035 0ustar twernertwernerpackage././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/no-appendAssemblyId-no-classifier/verify.bshmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/no-appendAssemblyId-no-classifier0000644000175000017500000000062410771721652034045 0ustar twernertwernerimport java.io.*; import java.util.jar.*; import java.util.*; import java.net.*; File file = new File( basedir, "target/no-appendAssemblyId-no-classifier-1.jar" ); System.out.println( "file: " + file + " exists? " + file.exists() ); JarFile jarFile = new JarFile( file ); JarEntry entry = jarFile.getEntry( "org/apache/maven/plugin/assembly/mojos/AbstractAssemblyMojo.class" ); return entry != null;././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/no-appendAssemblyId-no-classifier/src/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/no-appendAssemblyId-no-classifier0000755000175000017500000000000011361635323034034 5ustar twernertwerner././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/no-appendAssemblyId-no-classifier/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/no-appendAssemblyId-no-classifier0000755000175000017500000000000011361635323034034 5ustar twernertwerner././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/no-appendAssemblyId-no-classifier/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/no-appendAssemblyId-no-classifier0000755000175000017500000000000011361635323034034 5ustar twernertwerner././@LongLink0000000000000000000000000000017100000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/no-appendAssemblyId-no-classifier/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/no-appendAssemblyId-no-classifier0000755000175000017500000000000011361635323034034 5ustar twernertwerner././@LongLink0000000000000000000000000000020500000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/no-appendAssemblyId-no-classifier/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/no-appendAssemblyId-no-classifier0000644000175000017500000000117011123544663034037 0ustar twernertwernerpackage 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 ); } } ././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/no-appendAssemblyId-no-classifier/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/no-appendAssemblyId-no-classifier0000755000175000017500000000000011361635323034034 5ustar twernertwerner././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/no-appendAssemblyId-no-classifier/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/no-appendAssemblyId-no-classifier0000755000175000017500000000000011361635323034034 5ustar twernertwerner././@LongLink0000000000000000000000000000017100000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/no-appendAssemblyId-no-classifier/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/no-appendAssemblyId-no-classifier0000755000175000017500000000000011361635323034034 5ustar twernertwerner././@LongLink0000000000000000000000000000020100000000000011556 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/no-appendAssemblyId-no-classifier/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/no-appendAssemblyId-no-classifier0000644000175000017500000000024711123544663034043 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-customEntry/0000755000175000017500000000000011361635323032632 5ustar twernertwerner././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-customEntry/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-customEntry/pom.xml0000644000175000017500000000302311052376133034143 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test manifest-with-customEntry jar 1 junit junit 3.8.1 test maven-assembly-plugin assembly package single jar-with-dependencies test.App development ././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-customEntry/goals.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-customEntry/goals.t0000644000175000017500000000000710577517547034140 0ustar twernertwernerpackage././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-customEntry/verify.bshmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-customEntry/verify.0000644000175000017500000000101110771721652034135 0ustar twernertwernerimport 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 ); maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-customEntry/src/0000755000175000017500000000000011361635323033421 5ustar twernertwerner././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-customEntry/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-customEntry/src/tes0000755000175000017500000000000011361635323034135 5ustar twernertwerner././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-customEntry/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-customEntry/src/tes0000755000175000017500000000000011361635323034135 5ustar twernertwerner././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-customEntry/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-customEntry/src/tes0000755000175000017500000000000011361635323034135 5ustar twernertwerner././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-customEntry/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-customEntry/src/tes0000644000175000017500000000117011123544663034140 0ustar twernertwernerpackage 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 ); } } ././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-customEntry/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-customEntry/src/mai0000755000175000017500000000000011361635323034110 5ustar twernertwerner././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-customEntry/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-customEntry/src/mai0000755000175000017500000000000011361635323034110 5ustar twernertwerner././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-customEntry/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-customEntry/src/mai0000755000175000017500000000000011361635323034110 5ustar twernertwerner././@LongLink0000000000000000000000000000017100000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-customEntry/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-customEntry/src/mai0000644000175000017500000000024711123544663034117 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-mainClass/0000755000175000017500000000000011361635323032210 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-mainClass/pom.xml0000644000175000017500000000276111052376133033531 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test manifest-with-mainClass jar 1 Maven Quick Start Archetype http://maven.apache.org junit junit 3.8.1 test maven-assembly-plugin assembly package single jar-with-dependencies test.App ././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-mainClass/goals.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-mainClass/goals.txt0000644000175000017500000000000710551626045034054 0ustar twernertwernerpackage././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-mainClass/verify.bshmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-mainClass/verify.bs0000644000175000017500000000102610771721652034046 0ustar twernertwernerimport java.io.*; import java.util.jar.*; import java.util.*; import java.net.*; File file = new File( basedir, "target/manifest-with-mainClass-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 mainClass = (String) attrs.get( Attributes.Name.MAIN_CLASS ); System.out.println( "Got Main-Class: " + mainClass ); return "test.App".equals( mainClass ); maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-mainClass/src/0000755000175000017500000000000011361635323032777 5ustar twernertwerner././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-mainClass/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-mainClass/src/test/0000755000175000017500000000000011361635323033756 5ustar twernertwerner././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-mainClass/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-mainClass/src/test/0000755000175000017500000000000011361635323033756 5ustar twernertwerner././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-mainClass/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-mainClass/src/test/0000755000175000017500000000000011361635323033756 5ustar twernertwerner././@LongLink0000000000000000000000000000017300000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-mainClass/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-mainClass/src/test/0000644000175000017500000000117011123544663033761 0ustar twernertwernerpackage 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 ); } } ././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-mainClass/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-mainClass/src/main/0000755000175000017500000000000011361635323033723 5ustar twernertwerner././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-mainClass/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-mainClass/src/main/0000755000175000017500000000000011361635323033723 5ustar twernertwerner././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-mainClass/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-mainClass/src/main/0000755000175000017500000000000011361635323033723 5ustar twernertwerner././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-mainClass/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/mojo-configuration/manifest-with-mainClass/src/main/0000644000175000017500000000024711123544663033732 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/file-modes/0000755000175000017500000000000011361635321023732 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-modes/file-set-fileMode/0000755000175000017500000000000011361635321027164 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-modes/file-set-fileMode/pom.xml0000644000175000017500000000213111052376133030476 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test file-set-fileMode jar 1.0-SNAPSHOT Maven Quick Start Archetype http://maven.apache.org junit junit 3.8.1 test maven-assembly-plugin src/assemble/src.xml maven-assembly-plugin-2.2~beta5/src/it/projects/file-modes/file-set-fileMode/goals.txt0000644000175000017500000000011011052376133031022 0ustar twernertwernerorg.apache.maven.plugins:maven-assembly-plugin:${testVersion}:directory maven-assembly-plugin-2.2~beta5/src/it/projects/file-modes/file-set-fileMode/verify.bsh0000644000175000017500000000064410771721652031201 0ustar twernertwernerimport java.io.*; boolean result = true; FileWriter writer = null; try { File file = new File( basedir, "target/file-mode-set-1.0-SNAPSHOT-src.dir/src/main/java/test/App.java" ); writer = new FileWriter( file ); writer.write( "This is a test." ); System.out.println( "File: " + file + " should not be writable." ); result = false; } catch( IOException e ) { result = true; } return result; maven-assembly-plugin-2.2~beta5/src/it/projects/file-modes/file-set-fileMode/src/0000755000175000017500000000000011361635321027753 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-modes/file-set-fileMode/src/test/0000755000175000017500000000000011361635321030732 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-modes/file-set-fileMode/src/test/java/0000755000175000017500000000000011361635321031653 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-modes/file-set-fileMode/src/test/java/test/0000755000175000017500000000000011361635321032632 5ustar twernertwerner././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-modes/file-set-fileMode/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/file-modes/file-set-fileMode/src/test/java/test/AppT0000644000175000017500000000117011123544663033424 0ustar twernertwernerpackage 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 ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/file-modes/file-set-fileMode/src/main/0000755000175000017500000000000011361635321030677 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-modes/file-set-fileMode/src/main/java/0000755000175000017500000000000011361635321031620 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-modes/file-set-fileMode/src/main/java/test/0000755000175000017500000000000011361635321032577 5ustar twernertwerner././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-modes/file-set-fileMode/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/file-modes/file-set-fileMode/src/main/java/test/App.0000644000175000017500000000024711123544663033327 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/file-modes/file-set-fileMode/src/assemble/0000755000175000017500000000000011361635321031546 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-modes/file-set-fileMode/src/assemble/src.xml0000644000175000017500000000104411162606221033052 0ustar twernertwerner src tar.gz false src/main/java 0400 maven-assembly-plugin-2.2~beta5/src/it/projects/file-modes/fileItem-fileMode/0000755000175000017500000000000011361635321027212 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-modes/fileItem-fileMode/pom.xml0000644000175000017500000000213111052376133030524 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test fileItem-fileMode jar 1.0-SNAPSHOT Maven Quick Start Archetype http://maven.apache.org junit junit 3.8.1 test maven-assembly-plugin src/assemble/src.xml maven-assembly-plugin-2.2~beta5/src/it/projects/file-modes/fileItem-fileMode/goals.txt0000644000175000017500000000011011052376133031050 0ustar twernertwernerorg.apache.maven.plugins:maven-assembly-plugin:${testVersion}:directory maven-assembly-plugin-2.2~beta5/src/it/projects/file-modes/fileItem-fileMode/verify.bsh0000644000175000017500000000115311046653052031215 0ustar twernertwernerimport java.io.*; import java.util.*; boolean result = true; FileWriter writer = null; try { File file = new File( basedir, "target/fileItem-fileMode-1.0-SNAPSHOT-src.dir/App.java" ); writer = new FileWriter( file ); writer.write( "This is a test." ); if ( System.getProperty( "os.name" ).toLowerCase( Locale.ENGLISH ).indexOf( "windows" ) >= 0 ) { System.out.println( "Detected Windows - skipping" ); return true; } System.out.println( "File: " + file + " should not be writable." ); result = false; } catch( IOException e ) { result = true; } return result; maven-assembly-plugin-2.2~beta5/src/it/projects/file-modes/fileItem-fileMode/src/0000755000175000017500000000000011361635321030001 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-modes/fileItem-fileMode/src/test/0000755000175000017500000000000011361635321030760 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-modes/fileItem-fileMode/src/test/java/0000755000175000017500000000000011361635321031701 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-modes/fileItem-fileMode/src/test/java/test/0000755000175000017500000000000011361635321032660 5ustar twernertwerner././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-modes/fileItem-fileMode/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/file-modes/fileItem-fileMode/src/test/java/test/AppT0000644000175000017500000000117011123544663033452 0ustar twernertwernerpackage 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 ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/file-modes/fileItem-fileMode/src/main/0000755000175000017500000000000011361635321030725 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-modes/fileItem-fileMode/src/main/java/0000755000175000017500000000000011361635321031646 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-modes/fileItem-fileMode/src/main/java/test/0000755000175000017500000000000011361635321032625 5ustar twernertwerner././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-modes/fileItem-fileMode/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/file-modes/fileItem-fileMode/src/main/java/test/App.0000644000175000017500000000024711123544663033355 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/file-modes/fileItem-fileMode/src/assemble/0000755000175000017500000000000011361635321031574 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-modes/fileItem-fileMode/src/assemble/src.xml0000644000175000017500000000104011162606221033074 0ustar twernertwerner src tar.gz false src/main/java/test/App.java 0400 maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/0000755000175000017500000000000011361635326023606 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/include-parent-dir/0000755000175000017500000000000011361635325027273 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/include-parent-dir/pom.xml0000644000175000017500000000161510662710466030616 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test include-parent-dir pom 1.0-SNAPSHOT Maven Quick Start Archetype http://maven.apache.org junit junit 3.8.1 test child maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/include-parent-dir/child/0000755000175000017500000000000011361635325030356 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/include-parent-dir/child/pom.xml0000644000175000017500000000215011052376133031665 0ustar twernertwerner include-parent-dir test 1.0-SNAPSHOT 4.0.0 test child Maven Quick Start Archetype 1.0-SNAPSHOT http://maven.apache.org junit junit 3.8.1 test maven-assembly-plugin src/assemble/parent.xml build-parent-assembly package directory-single maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/include-parent-dir/child/src/0000755000175000017500000000000011361635325031145 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/include-parent-dir/child/src/test/0000755000175000017500000000000011361635325032124 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/include-parent-dir/child/src/test/java/0000755000175000017500000000000011361635325033045 5ustar twernertwerner././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/include-parent-dir/child/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/include-parent-dir/child/src/test/java/tes0000755000175000017500000000000011361635325033561 5ustar twernertwerner././@LongLink0000000000000000000000000000016300000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/include-parent-dir/child/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/include-parent-dir/child/src/test/java/tes0000644000175000017500000000117011123544663033562 0ustar twernertwernerpackage 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 ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/include-parent-dir/child/src/main/0000755000175000017500000000000011361635325032071 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/include-parent-dir/child/src/main/java/0000755000175000017500000000000011361635325033012 5ustar twernertwerner././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/include-parent-dir/child/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/include-parent-dir/child/src/main/java/tes0000755000175000017500000000000011361635325033526 5ustar twernertwerner././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/include-parent-dir/child/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/include-parent-dir/child/src/main/java/tes0000644000175000017500000000024711123544663033533 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/include-parent-dir/child/src/assemble/0000755000175000017500000000000011361635325032740 5ustar twernertwerner././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/include-parent-dir/child/src/assemble/parent.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/include-parent-dir/child/src/assemble/pare0000644000175000017500000000124211162606221033601 0ustar twernertwerner parent dir false .. true **/target/** maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/include-parent-dir/goals.txt0000644000175000017500000000001010520434261031120 0ustar twernertwernerpackage maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/include-parent-dir/verify.bsh0000644000175000017500000000016011066772063031275 0ustar twernertwernerimport java.io.*; return new File( basedir, "child/target/child-1.0-SNAPSHOT-parent/child/pom.xml" ).exists(); maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-win-lineEndings/0000755000175000017500000000000011361635325031175 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-win-lineEndings/pom.xml0000644000175000017500000000111611062273722032506 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 filtered-multimodule-parent pom child maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-win-lineEndings/child/0000755000175000017500000000000011361635325032260 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-win-lineEndings/child/pom.xml0000644000175000017500000000202511062273722033571 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 child jar maven-assembly-plugin src/main/assembly/src.xml single-assembly package single maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-win-lineEndings/child/src/0000755000175000017500000000000011361635325033047 5ustar twernertwerner././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-win-lineEndings/child/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-win-lineEndings/child/src/main0000755000175000017500000000000011361635325033714 5ustar twernertwerner././@LongLink0000000000000000000000000000017100000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-win-lineEndings/child/src/main/assembly-resources/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-win-lineEndings/child/src/main0000755000175000017500000000000011361635325033714 5ustar twernertwerner././@LongLink0000000000000000000000000000020100000000000011556 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-win-lineEndings/child/src/main/assembly-resources/test.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-win-lineEndings/child/src/main0000644000175000017500000000005011062273722033706 0ustar twernertwerner${project.version} ${project.artifactId}././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-win-lineEndings/child/src/main/assembly/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-win-lineEndings/child/src/main0000755000175000017500000000000011361635325033714 5ustar twernertwerner././@LongLink0000000000000000000000000000016600000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-win-lineEndings/child/src/main/assembly/src.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-win-lineEndings/child/src/main0000644000175000017500000000117611162606221033713 0ustar twernertwerner src dir false / src/main/assembly-resources true crlf maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-win-lineEndings/goals.txt0000644000175000017500000000001611062273722033035 0ustar twernertwernerclean package maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-win-lineEndings/verify.bsh0000644000175000017500000000111611066772063033201 0ustar twernertwernerimport java.io.*; File f = new File( basedir, "child/target/child-1-src/test.txt" ); if ( !f.exists() ) { System.out.println( "Filtered file from file-set: " + f + " is missing." ); return false; } StringBuffer sb = new StringBuffer(); FileReader reader = new FileReader( f ); char[] cbuf = new char[16]; int read = -1; while( ( read = reader.read( cbuf ) ) > -1 ) { sb.append( cbuf, 0, read ); } reader.close(); System.out.println( "Contents of test.txt: '" + sb.toString() + "' should contain the windows newline: '\\r\\n'." ); return sb.toString().indexOf( "1\r\nchild" ) > -1;maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-win-lineEndings/src/0000755000175000017500000000000011361635325031764 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-win-lineEndings/src/main/0000755000175000017500000000000011361635325032710 5ustar twernertwerner././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-win-lineEndings/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-win-lineEndings/src/main/java/0000755000175000017500000000000011361635325033631 5ustar twernertwerner././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-win-lineEndings/src/main/java/org/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-win-lineEndings/src/main/java/0000755000175000017500000000000011361635325033631 5ustar twernertwerner././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-win-lineEndings/src/main/java/org/apache/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-win-lineEndings/src/main/java/0000755000175000017500000000000011361635325033631 5ustar twernertwerner././@LongLink0000000000000000000000000000016600000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-win-lineEndings/src/main/java/org/apache/maven/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-win-lineEndings/src/main/java/0000755000175000017500000000000011361635325033631 5ustar twernertwerner././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-win-lineEndings/src/main/java/org/apache/maven/plugin/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-win-lineEndings/src/main/java/0000755000175000017500000000000011361635325033631 5ustar twernertwerner././@LongLink0000000000000000000000000000020600000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-win-lineEndings/src/main/java/org/apache/maven/plugin/assembly/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-win-lineEndings/src/main/java/0000755000175000017500000000000011361635325033631 5ustar twernertwerner././@LongLink0000000000000000000000000000021300000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-win-lineEndings/src/main/java/org/apache/maven/plugin/assembly/test/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-win-lineEndings/src/main/java/0000755000175000017500000000000011361635325033631 5ustar twernertwerner././@LongLink0000000000000000000000000000022300000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-win-lineEndings/src/main/java/org/apache/maven/plugin/assembly/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-win-lineEndings/src/main/java/0000644000175000017500000000031011123544663033625 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-win-lineEndings/src/main/assembly/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-win-lineEndings/src/main/assem0000755000175000017500000000000011361635325033741 5ustar twernertwerner././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-win-lineEndings/src/main/assembly/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-win-lineEndings/src/main/assem0000644000175000017500000000126711162606221033741 0ustar twernertwerner bin dir false ${test} lib ${artifact.artifactId}.${artifact.extension} false maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excludes-using-regex/0000755000175000017500000000000011361635325027654 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excludes-using-regex/pom.xml0000644000175000017500000000234211212274043031161 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 org.test parent 1.0 pom Parent child org.apache.maven.plugins maven-assembly-plugin true src/assemble/src.xml single package maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excludes-using-regex/child/0000755000175000017500000000000011361635325030737 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excludes-using-regex/child/pom.xml0000644000175000017500000000100411212274043032236 0ustar twernertwerner 4.0.0 org.test parent 1.0 Child org.test child 1.0 maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excludes-using-regex/child/target/0000755000175000017500000000000011361635325032225 5ustar twernertwerner././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excludes-using-regex/child/target/omit.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excludes-using-regex/child/target/omit.txt0000644000175000017500000000000511212274043033720 0ustar twernertwernertest ././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excludes-using-regex/child/target/classes/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excludes-using-regex/child/target/classes/0000755000175000017500000000000011361635325033662 5ustar twernertwerner././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excludes-using-regex/child/target/classes/src/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excludes-using-regex/child/target/classes/0000755000175000017500000000000011361635325033662 5ustar twernertwerner././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excludes-using-regex/child/target/classes/src/omit.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excludes-using-regex/child/target/classes/0000644000175000017500000000000511267425550033661 0ustar twernertwernertest maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excludes-using-regex/child/src/0000755000175000017500000000000011361635325031526 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excludes-using-regex/child/src/main/0000755000175000017500000000000011361635325032452 5ustar twernertwerner././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excludes-using-regex/child/src/main/resources/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excludes-using-regex/child/src/main/resour0000755000175000017500000000000011361635325033712 5ustar twernertwerner././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excludes-using-regex/child/src/main/resources/target/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excludes-using-regex/child/src/main/resour0000755000175000017500000000000011361635325033712 5ustar twernertwerner././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excludes-using-regex/child/src/main/resources/target/file.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excludes-using-regex/child/src/main/resour0000644000175000017500000000000511212274043033676 0ustar twernertwernerTest maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excludes-using-regex/target/0000755000175000017500000000000011361635325031142 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excludes-using-regex/target/omit.txt0000644000175000017500000000000511212274043032635 0ustar twernertwernertest maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excludes-using-regex/target/classes/0000755000175000017500000000000011361635325032577 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excludes-using-regex/target/classes/src/0000755000175000017500000000000011361635325033366 5ustar twernertwerner././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excludes-using-regex/target/classes/src/omit.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excludes-using-regex/target/classes/src/om0000644000175000017500000000000511267425550033721 0ustar twernertwernertest maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excludes-using-regex/goals.txt0000644000175000017500000000001611212274043031506 0ustar twernertwernerclean package maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excludes-using-regex/verify.bsh0000644000175000017500000000305111267425550031657 0ustar twernertwernerimport java.io.*; import java.net.*; import java.util.jar.*; boolean result = true; try { File f = new File( basedir, "target/parent-1.0-src.jar" ); if ( !f.exists() ) { System.out.println( "jar is missing" ); return false; } JarFile jf = new JarFile( f ); JarEntry je = jf.getEntry( "parent-1.0/src/main/java/org/test/target/file.properties" ); if ( je == null ) { System.out.println( "sources for org.test.target package in parent project are missing from jar" ); return false; } je = jf.getEntry( "parent-1.0/child/src/main/resources/target/file.txt" ); if ( je == null ) { System.out.println( "target/file.txt in child resources is missing from the jar." ); return false; } je = jf.getEntry( "parent-1.0/target/omit.txt" ); if ( je != null ) { System.out.println( "target/omit.txt in parent project was included the jar." ); return false; } je = jf.getEntry( "parent-1.0/child/target/omit.txt" ); if ( je != null ) { System.out.println( "target/omit.txt in child project was included the jar." ); return false; } je = jf.getEntry( "parent-1.0/target/classes/src/omit.txt" ); if ( je != null ) { System.out.println( "target/classes/src/omit.txt in parent project was included the jar." ); return false; } je = jf.getEntry( "parent-1.0/child/target/classes/src/omit.txt" ); if ( je != null ) { System.out.println( "target/classes/src/omit.txt in child project was included the jar." ); return false; } } catch( IOException e ) { e.printStackTrace(); result = false; } return result; maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excludes-using-regex/src/0000755000175000017500000000000011361635325030443 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excludes-using-regex/src/main/0000755000175000017500000000000011361635325031367 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excludes-using-regex/src/main/java/0000755000175000017500000000000011361635325032310 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excludes-using-regex/src/main/java/org/0000755000175000017500000000000011361635325033077 5ustar twernertwerner././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excludes-using-regex/src/main/java/org/test/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excludes-using-regex/src/main/java/org/tes0000755000175000017500000000000011361635325033613 5ustar twernertwerner././@LongLink0000000000000000000000000000015600000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excludes-using-regex/src/main/java/org/test/target/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excludes-using-regex/src/main/java/org/tes0000755000175000017500000000000011361635325033613 5ustar twernertwerner././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excludes-using-regex/src/main/java/org/test/target/file.propertiesmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excludes-using-regex/src/main/java/org/tes0000644000175000017500000000000511212274043033577 0ustar twernertwernerTest maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excludes-using-regex/src/assemble/0000755000175000017500000000000011361635325032236 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excludes-using-regex/src/assemble/src.xml0000644000175000017500000000066011267425550033553 0ustar twernertwerner src jar true ${project.basedir} / **/*.log %regex[(?!((?!target/)[^/]+/)*src/).*target.*] maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/include-base-directory/0000755000175000017500000000000011361635326030143 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/include-base-directory/pom.xml0000644000175000017500000000152011052376133031451 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test include-base-directory jar 1.0-SNAPSHOT maven-assembly-plugin src/main/assembly/src.xml maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/include-base-directory/goals.txt0000644000175000017500000000012511052376133032002 0ustar twernertwernerclean org.apache.maven.plugins:maven-assembly-plugin:${testVersion}:directory-inline maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/include-base-directory/verify.bsh0000644000175000017500000000040411066772063032145 0ustar twernertwernerimport java.io.*; boolean result = true; String assemblyDir = "target/include-base-directory-1.0-SNAPSHOT-src/include-base-directory-1.0-SNAPSHOT/src/main/assembly/"; result = result && new File( basedir, assemblyDir + "src.xml" ).exists(); return result; maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/include-base-directory/src/0000755000175000017500000000000011361635326030732 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/include-base-directory/src/test/0000755000175000017500000000000011361635326031711 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/include-base-directory/src/test/java/0000755000175000017500000000000011361635326032632 5ustar twernertwerner././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/include-base-directory/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/include-base-directory/src/test/java/test/0000755000175000017500000000000011361635326033611 5ustar twernertwerner././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/include-base-directory/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/include-base-directory/src/test/java/test/0000644000175000017500000000117011123544663033611 0ustar twernertwernerpackage 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 ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/include-base-directory/src/main/0000755000175000017500000000000011361635326031656 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/include-base-directory/src/main/java/0000755000175000017500000000000011361635326032577 5ustar twernertwerner././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/include-base-directory/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/include-base-directory/src/main/java/test/0000755000175000017500000000000011361635326033556 5ustar twernertwerner././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/include-base-directory/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/include-base-directory/src/main/java/test/0000644000175000017500000000024711123544663033562 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/include-base-directory/src/main/assembly/0000755000175000017500000000000011361635326033475 5ustar twernertwerner././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/include-base-directory/src/main/assembly/src.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/include-base-directory/src/main/assembly/s0000644000175000017500000000107711162606221033656 0ustar twernertwerner src dir true src **/.svn/** maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excluding-svn-dirs/0000755000175000017500000000000011361635325027332 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excluding-svn-dirs/pom.xml0000644000175000017500000000151411052376133030644 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test excluding-svn-dirs jar 1.0-SNAPSHOT maven-assembly-plugin src/main/assembly/src.xml maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excluding-svn-dirs/goals.txt0000644000175000017500000000012511052376133031172 0ustar twernertwernerclean org.apache.maven.plugins:maven-assembly-plugin:${testVersion}:directory-inline maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excluding-svn-dirs/verify.bsh0000644000175000017500000000044411066772063031341 0ustar twernertwernerimport java.io.*; boolean result = true; String assemblyDir = "target/excluding-svn-dirs-1.0-SNAPSHOT-src/src/main/assembly/"; result = result && new File( basedir, assemblyDir + "src.xml" ).exists(); result = result && !new File( basedir, assemblyDir + ".svn" ).exists(); return result; maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excluding-svn-dirs/src/0000755000175000017500000000000011361635325030121 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excluding-svn-dirs/src/test/0000755000175000017500000000000011361635325031100 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excluding-svn-dirs/src/test/java/0000755000175000017500000000000011361635325032021 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excluding-svn-dirs/src/test/java/test/0000755000175000017500000000000011361635325033000 5ustar twernertwerner././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excluding-svn-dirs/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excluding-svn-dirs/src/test/java/test/AppT0000644000175000017500000000117011123544663033566 0ustar twernertwernerpackage 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 ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excluding-svn-dirs/src/main/0000755000175000017500000000000011361635325031045 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excluding-svn-dirs/src/main/java/0000755000175000017500000000000011361635325031766 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excluding-svn-dirs/src/main/java/test/0000755000175000017500000000000011361635325032745 5ustar twernertwerner././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excluding-svn-dirs/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excluding-svn-dirs/src/main/java/test/App.0000644000175000017500000000024711123544663033471 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excluding-svn-dirs/src/main/assembly/0000755000175000017500000000000011361635325032664 5ustar twernertwerner././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excluding-svn-dirs/src/main/assembly/src.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/excluding-svn-dirs/src/main/assembly/src.x0000644000175000017500000000110011162606221033624 0ustar twernertwerner src dir false src **/.svn/** maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/use-default-excludes/0000755000175000017500000000000011361635326027636 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/use-default-excludes/pom.xml0000644000175000017500000000151611052376133031151 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test use-default-excludes jar 1.0-SNAPSHOT maven-assembly-plugin src/main/assembly/src.xml maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/use-default-excludes/goals.txt0000644000175000017500000000012511052376133031475 0ustar twernertwernerclean org.apache.maven.plugins:maven-assembly-plugin:${testVersion}:directory-inline maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/use-default-excludes/verify.bsh0000644000175000017500000000044611066772063031646 0ustar twernertwernerimport java.io.*; boolean result = true; String assemblyDir = "target/use-default-excludes-1.0-SNAPSHOT-src/src/main/assembly/"; result = result && new File( basedir, assemblyDir + "src.xml" ).exists(); result = result && !new File( basedir, assemblyDir + ".svn" ).exists(); return result; maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/use-default-excludes/src/0000755000175000017500000000000011361635326030425 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/use-default-excludes/src/test/0000755000175000017500000000000011361635326031404 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/use-default-excludes/src/test/java/0000755000175000017500000000000011361635326032325 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/use-default-excludes/src/test/java/test/0000755000175000017500000000000011361635326033304 5ustar twernertwerner././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/use-default-excludes/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/use-default-excludes/src/test/java/test/Ap0000644000175000017500000000117011123544663033565 0ustar twernertwernerpackage 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 ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/use-default-excludes/src/main/0000755000175000017500000000000011361635326031351 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/use-default-excludes/src/main/java/0000755000175000017500000000000011361635326032272 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/use-default-excludes/src/main/java/test/0000755000175000017500000000000011361635326033251 5ustar twernertwerner././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/use-default-excludes/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/use-default-excludes/src/main/java/test/Ap0000644000175000017500000000024711123544663033536 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/use-default-excludes/src/main/assembly/0000755000175000017500000000000011361635326033170 5ustar twernertwerner././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/use-default-excludes/src/main/assembly/src.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/use-default-excludes/src/main/assembly/src0000644000175000017500000000105311162606221033670 0ustar twernertwerner src dir false true src maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-multimodule/0000755000175000017500000000000011361635326027742 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-multimodule/pom.xml0000644000175000017500000000111611062272056031251 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 filtered-multimodule-parent pom child maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-multimodule/child/0000755000175000017500000000000011361635326031025 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-multimodule/child/pom.xml0000644000175000017500000000202511062272056032334 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 child jar maven-assembly-plugin src/main/assembly/src.xml single-assembly package single maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-multimodule/child/src/0000755000175000017500000000000011361635326031614 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-multimodule/child/src/main/0000755000175000017500000000000011361635326032540 5ustar twernertwerner././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-multimodule/child/src/main/assembly-resources/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-multimodule/child/src/main/assemb0000755000175000017500000000000011361635326033733 5ustar twernertwerner././@LongLink0000000000000000000000000000017200000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-multimodule/child/src/main/assembly-resources/test.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-multimodule/child/src/main/assemb0000644000175000017500000000002211062272056033722 0ustar twernertwerner${project.version}././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-multimodule/child/src/main/assembly/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-multimodule/child/src/main/assemb0000755000175000017500000000000011361635326033733 5ustar twernertwerner././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-multimodule/child/src/main/assembly/src.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-multimodule/child/src/main/assemb0000644000175000017500000000113211162606221033721 0ustar twernertwerner src dir false / src/main/assembly-resources true maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-multimodule/goals.txt0000644000175000017500000000001611062272056031600 0ustar twernertwernerclean package maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-multimodule/verify.bsh0000644000175000017500000000072711066772063031754 0ustar twernertwernerimport java.io.*; File f = new File( basedir, "child/target/child-1-src/test.txt" ); if ( !f.exists() ) { System.out.println( "Filtered file from file-set: " + f + " is missing." ); return false; } String line = null; BufferedReader reader = new BufferedReader( new FileReader( f ) ); line = reader.readLine(); reader.close(); System.out.println( "First line of test.txt: '" + line + "' should equal the project version: '1'." ); return "1".equals( line.trim() );maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-multimodule/src/0000755000175000017500000000000011361635326030531 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-multimodule/src/main/0000755000175000017500000000000011361635326031455 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-multimodule/src/main/java/0000755000175000017500000000000011361635326032376 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-multimodule/src/main/java/org/0000755000175000017500000000000011361635326033165 5ustar twernertwerner././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-multimodule/src/main/java/org/apache/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-multimodule/src/main/java/org/apa0000755000175000017500000000000011361635326033647 5ustar twernertwerner././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-multimodule/src/main/java/org/apache/maven/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-multimodule/src/main/java/org/apa0000755000175000017500000000000011361635326033647 5ustar twernertwerner././@LongLink0000000000000000000000000000016600000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-multimodule/src/main/java/org/apache/maven/plugin/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-multimodule/src/main/java/org/apa0000755000175000017500000000000011361635326033647 5ustar twernertwerner././@LongLink0000000000000000000000000000017700000000000011572 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-multimodule/src/main/java/org/apache/maven/plugin/assembly/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-multimodule/src/main/java/org/apa0000755000175000017500000000000011361635326033647 5ustar twernertwerner././@LongLink0000000000000000000000000000020400000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-multimodule/src/main/java/org/apache/maven/plugin/assembly/test/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-multimodule/src/main/java/org/apa0000755000175000017500000000000011361635326033647 5ustar twernertwerner././@LongLink0000000000000000000000000000021400000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-multimodule/src/main/java/org/apache/maven/plugin/assembly/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-multimodule/src/main/java/org/apa0000644000175000017500000000031011123544663033642 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-multimodule/src/main/assembly/0000755000175000017500000000000011361635326033274 5ustar twernertwerner././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-multimodule/src/main/assembly/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-multimodule/src/main/assembly/bin0000644000175000017500000000126711162606221033764 0ustar twernertwerner bin dir false ${test} lib ${artifact.artifactId}.${artifact.extension} false maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/default-excludes-unspecified/0000755000175000017500000000000011361635326031340 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/default-excludes-unspecified/pom.xml0000644000175000017500000000152611052376133032654 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test default-excludes-unspecified jar 1.0-SNAPSHOT maven-assembly-plugin src/main/assembly/src.xml maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/default-excludes-unspecified/goals.txt0000644000175000017500000000012511052376133033177 0ustar twernertwernerclean org.apache.maven.plugins:maven-assembly-plugin:${testVersion}:directory-inline maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/default-excludes-unspecified/verify.bsh0000644000175000017500000000045611066772063033351 0ustar twernertwernerimport java.io.*; boolean result = true; String assemblyDir = "target/default-excludes-unspecified-1.0-SNAPSHOT-src/src/main/assembly/"; result = result && new File( basedir, assemblyDir + "src.xml" ).exists(); result = result && !new File( basedir, assemblyDir + ".svn" ).exists(); return result; maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/default-excludes-unspecified/src/0000755000175000017500000000000011361635326032127 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/default-excludes-unspecified/src/test/0000755000175000017500000000000011361635326033106 5ustar twernertwerner././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/default-excludes-unspecified/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/default-excludes-unspecified/src/test/java0000755000175000017500000000000011361635326033750 5ustar twernertwerner././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/default-excludes-unspecified/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/default-excludes-unspecified/src/test/java0000755000175000017500000000000011361635326033750 5ustar twernertwerner././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/default-excludes-unspecified/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/default-excludes-unspecified/src/test/java0000644000175000017500000000117011123544663033750 0ustar twernertwernerpackage 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 ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/default-excludes-unspecified/src/main/0000755000175000017500000000000011361635326033053 5ustar twernertwerner././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/default-excludes-unspecified/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/default-excludes-unspecified/src/main/java0000755000175000017500000000000011361635326033715 5ustar twernertwerner././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/default-excludes-unspecified/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/default-excludes-unspecified/src/main/java0000755000175000017500000000000011361635326033715 5ustar twernertwerner././@LongLink0000000000000000000000000000016300000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/default-excludes-unspecified/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/default-excludes-unspecified/src/main/java0000644000175000017500000000024711123544663033721 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/default-excludes-unspecified/src/main/assembly/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/default-excludes-unspecified/src/main/asse0000755000175000017500000000000011361635326033727 5ustar twernertwerner././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/default-excludes-unspecified/src/main/assembly/src.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/default-excludes-unspecified/src/main/asse0000644000175000017500000000076711162606221033732 0ustar twernertwerner src dir false src maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-unix-lineEndings/0000755000175000017500000000000011361635326031364 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-unix-lineEndings/pom.xml0000644000175000017500000000111611062273722032674 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 filtered-multimodule-parent pom child maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-unix-lineEndings/child/0000755000175000017500000000000011361635326032447 5ustar twernertwerner././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-unix-lineEndings/child/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-unix-lineEndings/child/pom.xml0000644000175000017500000000202511062273722033757 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 child jar maven-assembly-plugin src/main/assembly/src.xml single-assembly package single maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-unix-lineEndings/child/src/0000755000175000017500000000000011361635326033236 5ustar twernertwerner././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-unix-lineEndings/child/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-unix-lineEndings/child/src/mai0000755000175000017500000000000011361635326033725 5ustar twernertwerner././@LongLink0000000000000000000000000000017200000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-unix-lineEndings/child/src/main/assembly-resources/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-unix-lineEndings/child/src/mai0000755000175000017500000000000011361635326033725 5ustar twernertwerner././@LongLink0000000000000000000000000000020200000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-unix-lineEndings/child/src/main/assembly-resources/test.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-unix-lineEndings/child/src/mai0000644000175000017500000000005011062273722033716 0ustar twernertwerner${project.version} ${project.artifactId}././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-unix-lineEndings/child/src/main/assembly/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-unix-lineEndings/child/src/mai0000755000175000017500000000000011361635326033725 5ustar twernertwerner././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-unix-lineEndings/child/src/main/assembly/src.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-unix-lineEndings/child/src/mai0000644000175000017500000000117611162606221033723 0ustar twernertwerner src dir false / src/main/assembly-resources true unix maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-unix-lineEndings/goals.txt0000644000175000017500000000001611062273722033223 0ustar twernertwernerclean package maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-unix-lineEndings/verify.bsh0000644000175000017500000000111111066772063033362 0ustar twernertwernerimport java.io.*; File f = new File( basedir, "child/target/child-1-src/test.txt" ); if ( !f.exists() ) { System.out.println( "Filtered file from file-set: " + f + " is missing." ); return false; } StringBuffer sb = new StringBuffer(); FileReader reader = new FileReader( f ); char[] cbuf = new char[16]; int read = -1; while( ( read = reader.read( cbuf ) ) > -1 ) { sb.append( cbuf, 0, read ); } reader.close(); System.out.println( "Contents of test.txt: '" + sb.toString() + "' should contain the windows newline: '\\n'." ); return sb.toString().indexOf( "1\nchild" ) > -1;maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-unix-lineEndings/src/0000755000175000017500000000000011361635326032153 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-unix-lineEndings/src/main/0000755000175000017500000000000011361635326033077 5ustar twernertwerner././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-unix-lineEndings/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-unix-lineEndings/src/main/java0000755000175000017500000000000011361635326033741 5ustar twernertwerner././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-unix-lineEndings/src/main/java/org/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-unix-lineEndings/src/main/java0000755000175000017500000000000011361635326033741 5ustar twernertwerner././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-unix-lineEndings/src/main/java/org/apache/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-unix-lineEndings/src/main/java0000755000175000017500000000000011361635326033741 5ustar twernertwerner././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-unix-lineEndings/src/main/java/org/apache/maven/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-unix-lineEndings/src/main/java0000755000175000017500000000000011361635326033741 5ustar twernertwerner././@LongLink0000000000000000000000000000017600000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-unix-lineEndings/src/main/java/org/apache/maven/plugin/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-unix-lineEndings/src/main/java0000755000175000017500000000000011361635326033741 5ustar twernertwerner././@LongLink0000000000000000000000000000020700000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-unix-lineEndings/src/main/java/org/apache/maven/plugin/assembly/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-unix-lineEndings/src/main/java0000755000175000017500000000000011361635326033741 5ustar twernertwerner././@LongLink0000000000000000000000000000021400000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-unix-lineEndings/src/main/java/org/apache/maven/plugin/assembly/test/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-unix-lineEndings/src/main/java0000755000175000017500000000000011361635326033741 5ustar twernertwerner././@LongLink0000000000000000000000000000022400000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-unix-lineEndings/src/main/java/org/apache/maven/plugin/assembly/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-unix-lineEndings/src/main/java0000644000175000017500000000031011123544663033734 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-unix-lineEndings/src/main/assembly/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-unix-lineEndings/src/main/asse0000755000175000017500000000000011361635326033753 5ustar twernertwerner././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-unix-lineEndings/src/main/assembly/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/multimodule-unix-lineEndings/src/main/asse0000644000175000017500000000126711162606221033752 0ustar twernertwerner bin dir false ${test} lib ${artifact.artifactId}.${artifact.extension} false maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/dont-use-default-excludes/0000755000175000017500000000000011361635326030600 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/dont-use-default-excludes/pom.xml0000644000175000017500000000152311052376133032111 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test dont-use-default-excludes jar 1.0-SNAPSHOT maven-assembly-plugin src/main/assembly/src.xml maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/dont-use-default-excludes/prebuild.bsh0000644000175000017500000000043210771721652033105 0ustar twernertwernerimport java.io.*; File srcSvnDir = new File( basedir, "src/main/assembly/.svn" ); srcSvnDir.mkdirs(); File srcSvnFile = new File( srcSvnDir, "entries" ); FileWriter writer = new FileWriter( srcSvnFile ); writer.write( "Test, Test" ); writer.flush(); writer.close(); return true;maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/dont-use-default-excludes/goals.txt0000644000175000017500000000012511052376133032437 0ustar twernertwernerclean org.apache.maven.plugins:maven-assembly-plugin:${testVersion}:directory-inline maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/dont-use-default-excludes/verify.bsh0000644000175000017500000000045211066772063032605 0ustar twernertwernerimport java.io.*; boolean result = true; String assemblyDir = "target/dont-use-default-excludes-1.0-SNAPSHOT-src/src/main/assembly/"; result = result && new File( basedir, assemblyDir + "src.xml" ).exists(); result = result && new File( basedir, assemblyDir + ".svn" ).exists(); return result; maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/dont-use-default-excludes/src/0000755000175000017500000000000011361635326031367 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/dont-use-default-excludes/src/test/0000755000175000017500000000000011361635326032346 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/dont-use-default-excludes/src/test/java/0000755000175000017500000000000011361635326033267 5ustar twernertwerner././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/dont-use-default-excludes/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/dont-use-default-excludes/src/test/java/te0000755000175000017500000000000011361635326033620 5ustar twernertwerner././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/dont-use-default-excludes/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/dont-use-default-excludes/src/test/java/te0000644000175000017500000000117011123544663033620 0ustar twernertwernerpackage 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 ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/dont-use-default-excludes/src/main/0000755000175000017500000000000011361635326032313 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/dont-use-default-excludes/src/main/java/0000755000175000017500000000000011361635326033234 5ustar twernertwerner././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/dont-use-default-excludes/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/dont-use-default-excludes/src/main/java/te0000755000175000017500000000000011361635326033565 5ustar twernertwerner././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/dont-use-default-excludes/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/dont-use-default-excludes/src/main/java/te0000644000175000017500000000024711123544663033571 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/dont-use-default-excludes/src/main/assembly/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/dont-use-default-excludes/src/main/assembl0000755000175000017500000000000011361635326033662 5ustar twernertwerner././@LongLink0000000000000000000000000000015600000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/dont-use-default-excludes/src/main/assembly/src.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/dont-use-default-excludes/src/main/assembl0000644000175000017500000000105411162606221033653 0ustar twernertwerner src dir false false src maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/default-directory-unspecified/0000755000175000017500000000000011361635325031527 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/default-directory-unspecified/pom.xml0000644000175000017500000000152711060007706033041 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test default-directory-unspecified jar 1.0-SNAPSHOT maven-assembly-plugin src/main/assembly/src.xml maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/default-directory-unspecified/goals.txt0000644000175000017500000000012411060007706033362 0ustar twernertwernerclean org.apache.maven.plugins:maven-assembly-plugin:${testVersion}:directory-inlinemaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/default-directory-unspecified/verify.bsh0000644000175000017500000000043711066772063033540 0ustar twernertwernerimport java.io.*; boolean result = true; String assemblyDir = "target/default-directory-unspecified-1.0-SNAPSHOT-src/"; result = result && new File( basedir, assemblyDir + "build.log" ).exists(); result = result && !new File( basedir, assemblyDir + ".svn" ).exists(); return result; maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/default-directory-unspecified/src/0000755000175000017500000000000011361635325032316 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/default-directory-unspecified/src/main/0000755000175000017500000000000011361635325033242 5ustar twernertwerner././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/default-directory-unspecified/src/main/assembly/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/default-directory-unspecified/src/main/ass0000755000175000017500000000000011361635325033751 5ustar twernertwerner././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/default-directory-unspecified/src/main/assembly/src.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/default-directory-unspecified/src/main/ass0000644000175000017500000000103011162606221033735 0ustar twernertwerner src dir false *.* maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-module-sources/0000755000175000017500000000000011361635325030347 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-module-sources/pom.xml0000644000175000017500000000212011062272056031653 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 parent pom child maven-assembly-plugin src/main/assembly/src.xml single-assembly package single maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-module-sources/child/0000755000175000017500000000000011361635325031432 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-module-sources/child/pom.xml0000644000175000017500000000100111062272056032733 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 child jar maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-module-sources/child/src/0000755000175000017500000000000011361635325032221 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-module-sources/child/src/main/0000755000175000017500000000000011361635325033145 5ustar twernertwerner././@LongLink0000000000000000000000000000016500000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-module-sources/child/src/main/assembly-resources/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-module-sources/child/src/main/ass0000755000175000017500000000000011361635325033654 5ustar twernertwerner././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-module-sources/child/src/main/assembly-resources/test.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-module-sources/child/src/main/ass0000644000175000017500000000002211062272056033644 0ustar twernertwerner${project.version}maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-module-sources/goals.txt0000644000175000017500000000001611062272056032206 0ustar twernertwernerclean package maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-module-sources/verify.bsh0000644000175000017500000000073011066772063032354 0ustar twernertwernerimport java.io.*; File f = new File( basedir, "target/parent-1-src/child/test.txt" ); if ( !f.exists() ) { System.out.println( "Filtered file from file-set: " + f + " is missing." ); return false; } String line = null; BufferedReader reader = new BufferedReader( new FileReader( f ) ); line = reader.readLine(); reader.close(); System.out.println( "First line of test.txt: '" + line + "' should equal the project version: '1'." ); return "1".equals( line.trim() );maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-module-sources/src/0000755000175000017500000000000011361635325031136 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-module-sources/src/main/0000755000175000017500000000000011361635325032062 5ustar twernertwerner././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-module-sources/src/main/assembly/maven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-module-sources/src/main/assembly/0000755000175000017500000000000011361635325033701 5ustar twernertwerner././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-module-sources/src/main/assembly/src.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/file-sets/filtered-module-sources/src/main/assembly/0000644000175000017500000000151711162606221033677 0ustar twernertwerner src dir false org.apache.maven.plugin.assembly.test:child / src/main/assembly-resources true maven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/0000755000175000017500000000000011361635317024512 5ustar twernertwerner././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries/maven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries0000755000175000017500000000000011361635317034115 5ustar twernertwerner././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries0000644000175000017500000000175610750706125034125 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 org.apache.maven.plugins.assembly.it assembly-assembly-with-module-binaries 1.0 pom child1 child2 maven-assembly-plugin src/assemble/bin.xml ././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries/child1/maven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries0000755000175000017500000000000011361635317034115 5ustar twernertwerner././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries/child1/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries0000644000175000017500000000116210535456506034122 0ustar twernertwerner assembly-assembly-with-module-binaries org.apache.maven.plugins.assembly.it 1.0 4.0.0 test child1 Maven Quick Start Archetype 1.0-SNAPSHOT http://maven.apache.org junit junit 3.8.1 test ././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries/child1/src/maven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries0000755000175000017500000000000011361635317034115 5ustar twernertwerner././@LongLink0000000000000000000000000000016600000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries/child1/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries0000755000175000017500000000000011361635317034115 5ustar twernertwerner././@LongLink0000000000000000000000000000017300000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries/child1/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries0000755000175000017500000000000011361635317034115 5ustar twernertwerner././@LongLink0000000000000000000000000000020000000000000011555 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries/child1/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries0000755000175000017500000000000011361635317034115 5ustar twernertwerner././@LongLink0000000000000000000000000000021400000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries/child1/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries0000644000175000017500000000117011123544663034115 0ustar twernertwernerpackage 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 ); } } ././@LongLink0000000000000000000000000000016600000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries/child1/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries0000755000175000017500000000000011361635317034115 5ustar twernertwerner././@LongLink0000000000000000000000000000017300000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries/child1/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries0000755000175000017500000000000011361635317034115 5ustar twernertwerner././@LongLink0000000000000000000000000000020000000000000011555 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries/child1/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries0000755000175000017500000000000011361635317034115 5ustar twernertwerner././@LongLink0000000000000000000000000000021000000000000011556 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries/child1/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries0000644000175000017500000000024711123544663034121 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries/child2/maven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries0000755000175000017500000000000011361635317034115 5ustar twernertwerner././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries/child2/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries0000644000175000017500000000116210535456506034122 0ustar twernertwerner assembly-assembly-with-module-binaries org.apache.maven.plugins.assembly.it 1.0 4.0.0 test child2 Maven Quick Start Archetype 1.0-SNAPSHOT http://maven.apache.org junit junit 3.8.1 test ././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries/child2/src/maven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries0000755000175000017500000000000011361635317034115 5ustar twernertwerner././@LongLink0000000000000000000000000000016600000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries/child2/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries0000755000175000017500000000000011361635317034115 5ustar twernertwerner././@LongLink0000000000000000000000000000017300000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries/child2/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries0000755000175000017500000000000011361635317034115 5ustar twernertwerner././@LongLink0000000000000000000000000000020000000000000011555 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries/child2/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries0000755000175000017500000000000011361635317034115 5ustar twernertwerner././@LongLink0000000000000000000000000000021400000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries/child2/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries0000644000175000017500000000117011123544663034115 0ustar twernertwernerpackage 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 ); } } ././@LongLink0000000000000000000000000000016600000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries/child2/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries0000755000175000017500000000000011361635317034115 5ustar twernertwerner././@LongLink0000000000000000000000000000017300000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries/child2/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries0000755000175000017500000000000011361635317034115 5ustar twernertwerner././@LongLink0000000000000000000000000000020000000000000011555 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries/child2/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries0000755000175000017500000000000011361635317034115 5ustar twernertwerner././@LongLink0000000000000000000000000000021000000000000011556 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries/child2/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries0000644000175000017500000000024711123544663034121 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000016500000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries/test.propertiesmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries0000644000175000017500000000004010466142765034116 0ustar twernertwernerdescriptor=src/assemble/bin.xml ././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries/goals.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries0000644000175000017500000000011711052376133034111 0ustar twernertwernerinstall org.apache.maven.plugins:maven-assembly-plugin:${testVersion}:assembly ././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries/verify.bshmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries0000644000175000017500000000157410771721652034130 0ustar twernertwernerimport java.io.*; import java.net.*; import java.util.zip.*; boolean result = true; try { File zipFile = new File( basedir, "target/assembly-assembly-with-module-binaries-1.0-bin.zip" ); if ( !zipFile.exists() || zipFile.isDirectory() ) { System.err.println( "zip-file is missing or a directory." ); result = false; } ZipFile zf = new ZipFile( zipFile ); if ( zf.getEntry( "assembly-assembly-with-module-binaries-1.0/modules/child1.jar" ) == null ) { System.err.println( "child1 entry is missing." ); result = false; } if ( zf.getEntry( "assembly-assembly-with-module-binaries-1.0/modules/child2.jar" ) == null ) { System.err.println( "child2 entry is missing." ); result = false; } } catch( IOException e ) { e.printStackTrace(); result = false; } return result; ././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries/src/maven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries0000755000175000017500000000000011361635317034115 5ustar twernertwerner././@LongLink0000000000000000000000000000016300000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries/src/assemble/maven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries0000755000175000017500000000000011361635317034115 5ustar twernertwerner././@LongLink0000000000000000000000000000017200000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries/src/assemble/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-assembly-with-module-binaries0000644000175000017500000000125111162606221034105 0ustar twernertwerner bin zip true modules ${module.artifactId}.${module.extension} false ././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries/maven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries0000755000175000017500000000000011361635317034053 5ustar twernertwerner././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries0000644000175000017500000000175610750706125034063 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 org.apache.maven.plugins.assembly.it assembly-attached-with-module-binaries 1.0 pom child1 child2 maven-assembly-plugin src/assemble/bin.xml ././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries/child1/maven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries0000755000175000017500000000000011361635317034053 5ustar twernertwerner././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries/child1/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries0000644000175000017500000000116210466127235034055 0ustar twernertwerner assembly-attached-with-module-binaries org.apache.maven.plugins.assembly.it 1.0 4.0.0 test child1 Maven Quick Start Archetype 1.0-SNAPSHOT http://maven.apache.org junit junit 3.8.1 test ././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries/child1/src/maven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries0000755000175000017500000000000011361635317034053 5ustar twernertwerner././@LongLink0000000000000000000000000000016600000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries/child1/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries0000755000175000017500000000000011361635317034053 5ustar twernertwerner././@LongLink0000000000000000000000000000017300000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries/child1/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries0000755000175000017500000000000011361635317034053 5ustar twernertwerner././@LongLink0000000000000000000000000000020000000000000011555 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries/child1/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries0000755000175000017500000000000011361635317034053 5ustar twernertwerner././@LongLink0000000000000000000000000000021400000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries/child1/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries0000644000175000017500000000117011123544663034053 0ustar twernertwernerpackage 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 ); } } ././@LongLink0000000000000000000000000000016600000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries/child1/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries0000755000175000017500000000000011361635317034053 5ustar twernertwerner././@LongLink0000000000000000000000000000017300000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries/child1/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries0000755000175000017500000000000011361635317034053 5ustar twernertwerner././@LongLink0000000000000000000000000000020000000000000011555 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries/child1/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries0000755000175000017500000000000011361635317034053 5ustar twernertwerner././@LongLink0000000000000000000000000000021000000000000011556 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries/child1/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries0000644000175000017500000000024711123544663034057 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries/child2/maven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries0000755000175000017500000000000011361635317034053 5ustar twernertwerner././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries/child2/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries0000644000175000017500000000116210466127235034055 0ustar twernertwerner assembly-attached-with-module-binaries org.apache.maven.plugins.assembly.it 1.0 4.0.0 test child2 Maven Quick Start Archetype 1.0-SNAPSHOT http://maven.apache.org junit junit 3.8.1 test ././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries/child2/src/maven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries0000755000175000017500000000000011361635317034053 5ustar twernertwerner././@LongLink0000000000000000000000000000016600000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries/child2/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries0000755000175000017500000000000011361635317034053 5ustar twernertwerner././@LongLink0000000000000000000000000000017300000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries/child2/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries0000755000175000017500000000000011361635317034053 5ustar twernertwerner././@LongLink0000000000000000000000000000020000000000000011555 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries/child2/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries0000755000175000017500000000000011361635317034053 5ustar twernertwerner././@LongLink0000000000000000000000000000021400000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries/child2/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries0000644000175000017500000000117011123544663034053 0ustar twernertwernerpackage 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 ); } } ././@LongLink0000000000000000000000000000016600000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries/child2/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries0000755000175000017500000000000011361635317034053 5ustar twernertwerner././@LongLink0000000000000000000000000000017300000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries/child2/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries0000755000175000017500000000000011361635317034053 5ustar twernertwerner././@LongLink0000000000000000000000000000020000000000000011555 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries/child2/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries0000755000175000017500000000000011361635317034053 5ustar twernertwerner././@LongLink0000000000000000000000000000021000000000000011556 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries/child2/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries0000644000175000017500000000024711123544663034057 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000016500000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries/test.propertiesmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries0000644000175000017500000000004010466127235034047 0ustar twernertwernerdescriptor=src/assemble/bin.xml ././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries/goals.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries0000644000175000017500000000011711052376133034047 0ustar twernertwernerinstall org.apache.maven.plugins:maven-assembly-plugin:${testVersion}:attached ././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries/verify.bshmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries0000644000175000017500000000157410771721652034066 0ustar twernertwernerimport java.io.*; import java.net.*; import java.util.zip.*; boolean result = true; try { File zipFile = new File( basedir, "target/assembly-attached-with-module-binaries-1.0-bin.zip" ); if ( !zipFile.exists() || zipFile.isDirectory() ) { System.err.println( "zip-file is missing or a directory." ); result = false; } ZipFile zf = new ZipFile( zipFile ); if ( zf.getEntry( "assembly-attached-with-module-binaries-1.0/modules/child1.jar" ) == null ) { System.err.println( "child1 entry is missing." ); result = false; } if ( zf.getEntry( "assembly-attached-with-module-binaries-1.0/modules/child2.jar" ) == null ) { System.err.println( "child2 entry is missing." ); result = false; } } catch( IOException e ) { e.printStackTrace(); result = false; } return result; ././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries/src/maven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries0000755000175000017500000000000011361635317034053 5ustar twernertwerner././@LongLink0000000000000000000000000000016300000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries/src/assemble/maven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries0000755000175000017500000000000011361635317034053 5ustar twernertwerner././@LongLink0000000000000000000000000000017200000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries/src/assemble/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/forking-tests/assembly-attached-with-module-binaries0000644000175000017500000000125111162606221034043 0ustar twernertwerner bin zip true modules ${module.artifactId}.${module.extension} false maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/0000755000175000017500000000000011361635321026227 5ustar twernertwerner././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries/maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries0000755000175000017500000000000011361635321034200 5ustar twernertwerner././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries0000644000175000017500000000346711052376133034214 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 org.test custom-handler-withFileEntries pom 1 custom-handler-withFileEntries maven-invoker-plugin ${invokerPluginVersion} true ${localRepositoryPath} true ${testVersion} install handler-build package run handler-def/pom.xml assembly-build package run true assembly/pom.xml ././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries/handler-def/maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries0000755000175000017500000000000011361635321034200 5ustar twernertwerner././@LongLink0000000000000000000000000000017100000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries/handler-def/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries0000644000175000017500000000116611052376133034206 0ustar twernertwerner 4.0.0 org.test 1 handler-def org.apache.maven.plugins maven-assembly-plugin ${testVersion} provided ././@LongLink0000000000000000000000000000016600000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries/handler-def/src/maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries0000755000175000017500000000000011361635321034200 5ustar twernertwerner././@LongLink0000000000000000000000000000017300000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries/handler-def/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries0000755000175000017500000000000011361635321034200 5ustar twernertwerner././@LongLink0000000000000000000000000000020500000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries/handler-def/src/main/resources/maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries0000755000175000017500000000000011361635321034200 5ustar twernertwerner././@LongLink0000000000000000000000000000021600000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries/handler-def/src/main/resources/META-INF/maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries0000755000175000017500000000000011361635321034200 5ustar twernertwerner././@LongLink0000000000000000000000000000022500000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries/handler-def/src/main/resources/META-INF/plexus/maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries0000755000175000017500000000000011361635321034200 5ustar twernertwerner././@LongLink0000000000000000000000000000024300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries/handler-def/src/main/resources/META-INF/plexus/components.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries0000644000175000017500000000077210646770642034223 0ustar twernertwerner org.apache.maven.plugin.assembly.filter.ContainerDescriptorHandler file.txt org.apache.maven.plugin.assembly.filter.SimpleAggregatingDescriptorHandler .*file.txt file.txt # ././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries/assembly/maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries0000755000175000017500000000000011361635321034200 5ustar twernertwerner././@LongLink0000000000000000000000000000016600000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries/assembly/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries0000644000175000017500000000242711066772063034216 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 org.test 1 assembly maven-assembly-plugin org.test handler-def 1 src/assemble/bin.xml assembly package single ././@LongLink0000000000000000000000000000017300000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries/assembly/a.propertiesmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries0000644000175000017500000000001510646770642034211 0ustar twernertwernertestProp=boo ././@LongLink0000000000000000000000000000016300000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries/assembly/src/maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries0000755000175000017500000000000011361635321034200 5ustar twernertwerner././@LongLink0000000000000000000000000000017400000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries/assembly/src/assemble/maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries0000755000175000017500000000000011361635321034200 5ustar twernertwerner././@LongLink0000000000000000000000000000020300000000000011560 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries/assembly/src/assemble/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries0000644000175000017500000000162311162606221034200 0ustar twernertwerner bin dir false src/config/a/file.txt a file.txt src/config/b/file.txt b file.txt file.txt ././@LongLink0000000000000000000000000000017200000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries/assembly/src/config/maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries0000755000175000017500000000000011361635321034200 5ustar twernertwerner././@LongLink0000000000000000000000000000017400000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries/assembly/src/config/a/maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries0000755000175000017500000000000011361635321034200 5ustar twernertwerner././@LongLink0000000000000000000000000000020400000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries/assembly/src/config/a/file.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries0000644000175000017500000000000710646770642034212 0ustar twernertwernerfile A ././@LongLink0000000000000000000000000000017400000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries/assembly/src/config/b/maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries0000755000175000017500000000000011361635321034200 5ustar twernertwerner././@LongLink0000000000000000000000000000020400000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries/assembly/src/config/b/file.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries0000644000175000017500000000001010646770642034204 0ustar twernertwernerfile B ././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries/goals.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries0000644000175000017500000000001010646770642034204 0ustar twernertwernerinstall ././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries/verify.bshmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withFileEntries0000644000175000017500000000245511066772063034217 0ustar twernertwernerimport java.io.*; boolean result = true; try { File a = new File( basedir, "assembly/target/assembly-1-bin/file.txt"); File b = new File( basedir, "assembly/target/assembly-1-bin/b/file.txt"); if(result && !a.exists() ) { System.out.println( "File: " + a + " should have been generated, but was not." ); result = false; } if(result) { BufferedReader r = new BufferedReader(new FileReader(a)); String s = null; boolean foundA = false; boolean foundB = false; while( ( s = r.readLine() ) != null ) { if ( s.equals( "file A" ) ) { foundA = true; } else if ( s.equals( "file B" ) ) { foundB = true; } if ( foundA && foundB ) { result = true; break; } } if ( !result ) { System.out.println( "File: " + a + " should contain lines:\nfile A\nfile B\n\n ...but didn't." ); } } if(result && b.exists() ) { System.out.println( "File: " + b + " should not exist, but does." ); result = false; } } catch( IOException e ) { e.printStackTrace(); result = false; } return result; ././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntries/maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntrie0000755000175000017500000000000011361635321034204 5ustar twernertwerner././@LongLink0000000000000000000000000000015600000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntries/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntrie0000644000175000017500000000347111052376133034213 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 org.test custom-handler-withMixedEntries pom 1 custom-handler-withMixedEntries maven-invoker-plugin ${invokerPluginVersion} true ${localRepositoryPath} ${testVersion} true install handler-build package run handler-def/pom.xml assembly-build package run true assembly/pom.xml ././@LongLink0000000000000000000000000000016300000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntries/handler-def/maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntrie0000755000175000017500000000000011361635320034203 5ustar twernertwerner././@LongLink0000000000000000000000000000017200000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntries/handler-def/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntrie0000644000175000017500000000116611052376133034212 0ustar twernertwerner 4.0.0 org.test 1 handler-def org.apache.maven.plugins maven-assembly-plugin ${testVersion} provided ././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntries/handler-def/src/maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntrie0000755000175000017500000000000011361635320034203 5ustar twernertwerner././@LongLink0000000000000000000000000000017400000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntries/handler-def/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntrie0000755000175000017500000000000011361635320034203 5ustar twernertwerner././@LongLink0000000000000000000000000000020600000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntries/handler-def/src/main/resources/maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntrie0000755000175000017500000000000011361635320034203 5ustar twernertwerner././@LongLink0000000000000000000000000000021700000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntries/handler-def/src/main/resources/META-INF/maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntrie0000755000175000017500000000000011361635320034203 5ustar twernertwerner././@LongLink0000000000000000000000000000022600000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntries/handler-def/src/main/resources/META-INF/plexus/maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntrie0000755000175000017500000000000011361635320034203 5ustar twernertwerner././@LongLink0000000000000000000000000000024400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntries/handler-def/src/main/resources/META-INF/plexus/components.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntrie0000644000175000017500000000077210646770642034227 0ustar twernertwerner org.apache.maven.plugin.assembly.filter.ContainerDescriptorHandler file.txt org.apache.maven.plugin.assembly.filter.SimpleAggregatingDescriptorHandler .*file.txt file.txt # ././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntries/assembly/maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntrie0000755000175000017500000000000011361635320034203 5ustar twernertwerner././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntries/assembly/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntrie0000644000175000017500000000242711066772063034222 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 org.test 1 assembly maven-assembly-plugin org.test handler-def 1 src/assemble/bin.xml assembly package single ././@LongLink0000000000000000000000000000017400000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntries/assembly/a.propertiesmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntrie0000644000175000017500000000001510646770642034215 0ustar twernertwernertestProp=boo ././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntries/assembly/src/maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntrie0000755000175000017500000000000011361635320034203 5ustar twernertwerner././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntries/assembly/src/assemble/maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntrie0000755000175000017500000000000011361635320034203 5ustar twernertwerner././@LongLink0000000000000000000000000000020400000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntries/assembly/src/assemble/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntrie0000644000175000017500000000162011162606221034201 0ustar twernertwerner bin dir false src/config/a/file.txt a file.txt src/config/b b file.txt ././@LongLink0000000000000000000000000000017300000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntries/assembly/src/config/maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntrie0000755000175000017500000000000011361635320034203 5ustar twernertwerner././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntries/assembly/src/config/a/maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntrie0000755000175000017500000000000011361635320034203 5ustar twernertwerner././@LongLink0000000000000000000000000000020500000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntries/assembly/src/config/a/file.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntrie0000644000175000017500000000000710646770642034216 0ustar twernertwernerfile A ././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntries/assembly/src/config/b/maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntrie0000755000175000017500000000000011361635320034203 5ustar twernertwerner././@LongLink0000000000000000000000000000020500000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntries/assembly/src/config/b/file.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntrie0000644000175000017500000000001010646770642034210 0ustar twernertwernerfile B ././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntries/goals.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntrie0000644000175000017500000000001010646770642034210 0ustar twernertwernerinstall ././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntries/verify.bshmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-handler-withMixedEntrie0000644000175000017500000000245511066772063034223 0ustar twernertwernerimport java.io.*; boolean result = true; try { File a = new File( basedir, "assembly/target/assembly-1-bin/file.txt"); File b = new File( basedir, "assembly/target/assembly-1-bin/b/file.txt"); if(result && !a.exists() ) { System.out.println( "File: " + a + " should have been generated, but was not." ); result = false; } if(result) { BufferedReader r = new BufferedReader(new FileReader(a)); String s = null; boolean foundA = false; boolean foundB = false; while( ( s = r.readLine() ) != null ) { if ( s.equals( "file A" ) ) { foundA = true; } else if ( s.equals( "file B" ) ) { foundB = true; } if ( foundA && foundB ) { result = true; break; } } if ( !result ) { System.out.println( "File: " + a + " should contain lines:\nfile A\nfile B\n\n ...but didn't." ); } } if(result && b.exists() ) { System.out.println( "File: " + b + " should not exist, but does." ); result = false; } } catch( IOException e ) { e.printStackTrace(); result = false; } return result; maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/configured-handler/0000755000175000017500000000000011361635321031767 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/configured-handler/pom.xml0000644000175000017500000000210111212274043033271 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 org.test configured-handler 1 maven-assembly-plugin src/assemble/bin.xml assembly validate single maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/configured-handler/goals.txt0000644000175000017500000000001711212274043033626 0ustar twernertwernerclean validate maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/configured-handler/verify.bsh0000644000175000017500000000245711212274043033774 0ustar twernertwernerimport java.io.*; boolean result = true; try { File a = new File( basedir, "target/configured-handler-1-bin/file.txt"); File b = new File( basedir, "target/configured-handler-1-bin/b/file.txt"); if(result && !a.exists() ) { System.out.println( "File: " + a + " should have been generated, but was not." ); result = false; } if(result) { BufferedReader r = new BufferedReader(new FileReader(a)); String s = null; boolean foundA = false; boolean foundB = false; while( ( s = r.readLine() ) != null ) { if ( s.equals( "file A" ) ) { foundA = true; } else if ( s.equals( "file B" ) ) { foundB = true; } if ( foundA && foundB ) { result = true; break; } } if ( !result ) { System.out.println( "File: " + a + " should contain lines:\nfile A\nfile B\n\n ...but didn't." ); } } if(result && b.exists() ) { System.out.println( "File: " + b + " should not exist, but does." ); result = false; } } catch( IOException e ) { e.printStackTrace(); result = false; } return result; maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/configured-handler/src/0000755000175000017500000000000011361635321032556 5ustar twernertwerner././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/configured-handler/src/assemble/maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/configured-handler/src/assembl0000755000175000017500000000000011361635321034125 5ustar twernertwerner././@LongLink0000000000000000000000000000015600000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/configured-handler/src/assemble/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/configured-handler/src/assembl0000644000175000017500000000113711212274043034124 0ustar twernertwerner bin dir false src/config / file-aggregator .*/file.txt file.txt ././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/configured-handler/src/config/maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/configured-handler/src/config/0000755000175000017500000000000011361635321034023 5ustar twernertwerner././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/configured-handler/src/config/a/maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/configured-handler/src/config/0000755000175000017500000000000011361635321034023 5ustar twernertwerner././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/configured-handler/src/config/a/file.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/configured-handler/src/config/0000644000175000017500000000000711212274043034015 0ustar twernertwernerfile A ././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/configured-handler/src/config/b/maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/configured-handler/src/config/0000755000175000017500000000000011361635321034023 5ustar twernertwerner././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/configured-handler/src/config/b/file.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/configured-handler/src/config/0000644000175000017500000000001011212274043034007 0ustar twernertwernerfile B ././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHandler/maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHand0000755000175000017500000000000011361635321034274 5ustar twernertwerner././@LongLink0000000000000000000000000000016000000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHandler/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHand0000644000175000017500000000347511052376133034307 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 org.test custom-containerDescriptorHandler pom 1 custom-containerDescriptorHandler maven-invoker-plugin ${invokerPluginVersion} true ${localRepositoryPath} ${testVersion} true install handler-build package run handler-def/pom.xml assembly-build package run true assembly/pom.xml ././@LongLink0000000000000000000000000000016500000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHandler/handler-def/maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHand0000755000175000017500000000000011361635321034274 5ustar twernertwerner././@LongLink0000000000000000000000000000017400000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHandler/handler-def/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHand0000644000175000017500000000116611052376133034302 0ustar twernertwerner 4.0.0 org.test 1 handler-def org.apache.maven.plugins maven-assembly-plugin ${testVersion} provided ././@LongLink0000000000000000000000000000017100000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHandler/handler-def/src/maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHand0000755000175000017500000000000011361635321034274 5ustar twernertwerner././@LongLink0000000000000000000000000000017600000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHandler/handler-def/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHand0000755000175000017500000000000011361635321034274 5ustar twernertwerner././@LongLink0000000000000000000000000000021000000000000011556 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHandler/handler-def/src/main/resources/maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHand0000755000175000017500000000000011361635321034274 5ustar twernertwerner././@LongLink0000000000000000000000000000022100000000000011560 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHandler/handler-def/src/main/resources/META-INF/maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHand0000755000175000017500000000000011361635321034274 5ustar twernertwerner././@LongLink0000000000000000000000000000023000000000000011560 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHandler/handler-def/src/main/resources/META-INF/plexus/maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHand0000755000175000017500000000000011361635321034274 5ustar twernertwerner././@LongLink0000000000000000000000000000024600000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHandler/handler-def/src/main/resources/META-INF/plexus/components.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHand0000644000175000017500000000077310646753653034323 0ustar twernertwerner org.apache.maven.plugin.assembly.filter.ContainerDescriptorHandler file.txt org.apache.maven.plugin.assembly.filter.SimpleAggregatingDescriptorHandler .*/file.txt file.txt # ././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHandler/assembly/maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHand0000755000175000017500000000000011361635321034274 5ustar twernertwerner././@LongLink0000000000000000000000000000017100000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHandler/assembly/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHand0000644000175000017500000000242711066772063034312 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 org.test assembly 1 maven-assembly-plugin org.test handler-def 1 src/assemble/bin.xml assembly package single ././@LongLink0000000000000000000000000000017600000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHandler/assembly/a.propertiesmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHand0000644000175000017500000000001510646753653034310 0ustar twernertwernertestProp=boo ././@LongLink0000000000000000000000000000016600000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHandler/assembly/src/maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHand0000755000175000017500000000000011361635321034274 5ustar twernertwerner././@LongLink0000000000000000000000000000017700000000000011572 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHandler/assembly/src/assemble/maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHand0000755000175000017500000000000011361635321034274 5ustar twernertwerner././@LongLink0000000000000000000000000000020600000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHandler/assembly/src/assemble/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHand0000644000175000017500000000134311162606221034273 0ustar twernertwerner bin dir false src/config / file.txt ././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHandler/assembly/src/config/maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHand0000755000175000017500000000000011361635321034274 5ustar twernertwerner././@LongLink0000000000000000000000000000017700000000000011572 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHandler/assembly/src/config/a/maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHand0000755000175000017500000000000011361635321034274 5ustar twernertwerner././@LongLink0000000000000000000000000000020700000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHandler/assembly/src/config/a/file.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHand0000644000175000017500000000000710646753653034311 0ustar twernertwernerfile A ././@LongLink0000000000000000000000000000017700000000000011572 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHandler/assembly/src/config/b/maven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHand0000755000175000017500000000000011361635321034274 5ustar twernertwerner././@LongLink0000000000000000000000000000020700000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHandler/assembly/src/config/b/file.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHand0000644000175000017500000000001010646753653034303 0ustar twernertwernerfile B ././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHandler/goals.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHand0000644000175000017500000000001010646753653034303 0ustar twernertwernerinstall ././@LongLink0000000000000000000000000000016300000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHandler/verify.bshmaven-assembly-plugin-2.2~beta5/src/it/projects/container-descriptors/custom-containerDescriptorHand0000644000175000017500000000245511066772063034313 0ustar twernertwernerimport java.io.*; boolean result = true; try { File a = new File( basedir, "assembly/target/assembly-1-bin/file.txt"); File b = new File( basedir, "assembly/target/assembly-1-bin/b/file.txt"); if(result && !a.exists() ) { System.out.println( "File: " + a + " should have been generated, but was not." ); result = false; } if(result) { BufferedReader r = new BufferedReader(new FileReader(a)); String s = null; boolean foundA = false; boolean foundB = false; while( ( s = r.readLine() ) != null ) { if ( s.equals( "file A" ) ) { foundA = true; } else if ( s.equals( "file B" ) ) { foundB = true; } if ( foundA && foundB ) { result = true; break; } } if ( !result ) { System.out.println( "File: " + a + " should contain lines:\nfile A\nfile B\n\n ...but didn't." ); } } if(result && b.exists() ) { System.out.println( "File: " + b + " should not exist, but does." ); result = false; } } catch( IOException e ) { e.printStackTrace(); result = false; } return result; maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/0000755000175000017500000000000011361635325025025 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/0000755000175000017500000000000011361635325026473 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/0000755000175000017500000000000011361635325033505 5ustar twernertwerner././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/po0000644000175000017500000000260611212274043034041 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test multimodule-sources-copied pom 1.0-SNAPSHOT junit junit 3.8.1 test child1 child2 maven-assembly-plugin assembly package single project ././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/child1/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/ch0000755000175000017500000000000011361635325034020 5ustar twernertwerner././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/child1/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/ch0000644000175000017500000000100111212274043034001 0ustar twernertwerner multimodule-sources-copied test 1.0-SNAPSHOT 4.0.0 test child1 1.0-SNAPSHOT junit junit 3.8.1 test ././@LongLink0000000000000000000000000000015600000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/child1/src/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/ch0000755000175000017500000000000011361635325034020 5ustar twernertwerner././@LongLink0000000000000000000000000000016300000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/child1/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/ch0000755000175000017500000000000011361635325034020 5ustar twernertwerner././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/child1/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/ch0000755000175000017500000000000011361635325034020 5ustar twernertwerner././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/child1/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/ch0000755000175000017500000000000011361635325034020 5ustar twernertwerner././@LongLink0000000000000000000000000000021100000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/child1/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/ch0000644000175000017500000000117011212274043034010 0ustar twernertwernerpackage 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 ); } } ././@LongLink0000000000000000000000000000016300000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/child1/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/ch0000755000175000017500000000000011361635325034020 5ustar twernertwerner././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/child1/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/ch0000755000175000017500000000000011361635325034020 5ustar twernertwerner././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/child1/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/ch0000755000175000017500000000000011361635325034020 5ustar twernertwerner././@LongLink0000000000000000000000000000020500000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/child1/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/ch0000644000175000017500000000024711212274043034014 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/child2/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/ch0000755000175000017500000000000011361635325034020 5ustar twernertwerner././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/child2/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/ch0000644000175000017500000000077711212274043034024 0ustar twernertwerner multimodule-sources-copied test 1.0-SNAPSHOT 4.0.0 test child2 1.0-SNAPSHOT junit junit 3.8.1 test ././@LongLink0000000000000000000000000000015600000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/child2/src/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/ch0000755000175000017500000000000011361635325034020 5ustar twernertwerner././@LongLink0000000000000000000000000000016300000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/child2/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/ch0000755000175000017500000000000011361635325034020 5ustar twernertwerner././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/child2/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/ch0000755000175000017500000000000011361635325034020 5ustar twernertwerner././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/child2/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/ch0000755000175000017500000000000011361635325034020 5ustar twernertwerner././@LongLink0000000000000000000000000000021100000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/child2/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/ch0000644000175000017500000000117011212274043034010 0ustar twernertwernerpackage 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 ); } } ././@LongLink0000000000000000000000000000016300000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/child2/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/ch0000755000175000017500000000000011361635325034020 5ustar twernertwerner././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/child2/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/ch0000755000175000017500000000000011361635325034020 5ustar twernertwerner././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/child2/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/ch0000755000175000017500000000000011361635325034020 5ustar twernertwerner././@LongLink0000000000000000000000000000020500000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/child2/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/ch0000644000175000017500000000024711212274043034014 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/goals.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/go0000644000175000017500000000000711212274043034021 0ustar twernertwernerpackage././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/verify.bshmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir-multimodule/ve0000644000175000017500000000631611212274043034037 0ustar twernertwernerimport java.io.*; import java.net.*; import java.util.zip.*; boolean result = true; String basename = "multimodule-sources-copied-1.0-SNAPSHOT"; try { File zipFile = new File( basedir, "target/" + basename + "-project.zip" ); System.out.println( "Checking for existence and file-ishness of: " + zipFile ); if ( !zipFile.exists() || zipFile.isDirectory() ) { System.err.println( "zip file is missing or a directory." ); return false; } System.out.println( "Creating zipFile instance." ); ZipFile zf = new ZipFile( zipFile ); String childPath = basename + "/child1"; System.out.println( "Checking child1 project files..." ); System.out.println( "Looking for project source file." ); ZipEntry je = zf.getEntry( childPath + "/src/main/java/test/App.java" ); if ( je == null ) { System.out.println( childPath + " source file missing." ); result = false; } System.out.println( "Looking for project test-source file." ); je = null; je = zf.getEntry( childPath + "/src/test/java/test/AppTest.java" ); if ( je == null ) { System.out.println( childPath + " test-source file missing." ); result = false; } System.out.println( "Looking for pom.xml file." ); je = null; je = zf.getEntry( childPath + "/pom.xml" ); if ( je == null ) { System.out.println( childPath + " POM missing." ); result = false; } je = null; je = zf.getEntry( childPath + "/target/child1-1.0-SNAPSHOT.jar" ); if ( je != null ) { System.out.println( childPath + " target directory should not be included." ); result = false; } childPath = basename + "/child2"; System.out.println( "Checking child2 project files..." ); System.out.println( "Looking for project source file." ); je = null; je = zf.getEntry( childPath + "/src/main/java/test/App.java" ); if ( je == null ) { System.out.println( childPath + " source file missing." ); result = false; } System.out.println( "Looking for project test-source file." ); je = null; je = zf.getEntry( childPath + "/src/test/java/test/AppTest.java" ); if ( je == null ) { System.out.println( childPath + " test-source file missing." ); result = false; } System.out.println( "Looking for pom.xml file." ); je = null; je = zf.getEntry( childPath + "/pom.xml" ); if ( je == null ) { System.out.println( childPath + " POM missing." ); result = false; } je = null; je = zf.getEntry( childPath + "/target/child2-1.0-SNAPSHOT.jar" ); if ( je != null ) { System.out.println( childPath + " target directory should not be included." ); result = false; } System.out.println( "Looking for main pom.xml file." ); je = null; je = zf.getEntry( basename + "/pom.xml" ); if ( je == null ) { System.out.println( "project POM missing." ); result = false; } } catch( IOException e ) { e.printStackTrace( System.out ); result = false; } return result; maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/0000755000175000017500000000000011361635325033755 5ustar twernertwerner././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/p0000644000175000017500000000271711212274043034135 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test multimodule-sources-copied pom 1.0-SNAPSHOT Maven Quick Start Archetype http://maven.apache.org junit junit 3.8.1 test child1 child2 maven-assembly-plugin assembly package single project ././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/child1/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/c0000755000175000017500000000000011361635325034120 5ustar twernertwerner././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/child1/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/c0000644000175000017500000000111610520472104034107 0ustar twernertwerner multimodule-sources-copied test 1.0-SNAPSHOT 4.0.0 test child1 Maven Quick Start Archetype 1.0-SNAPSHOT http://maven.apache.org junit junit 3.8.1 test ././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/child1/src/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/c0000755000175000017500000000000011361635325034120 5ustar twernertwerner././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/child1/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/c0000755000175000017500000000000011361635325034120 5ustar twernertwerner././@LongLink0000000000000000000000000000017100000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/child1/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/c0000755000175000017500000000000011361635325034120 5ustar twernertwerner././@LongLink0000000000000000000000000000017600000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/child1/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/c0000755000175000017500000000000011361635325034120 5ustar twernertwerner././@LongLink0000000000000000000000000000021200000000000011560 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/child1/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/c0000644000175000017500000000117011123544663034121 0ustar twernertwernerpackage 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 ); } } ././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/child1/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/c0000755000175000017500000000000011361635325034120 5ustar twernertwerner././@LongLink0000000000000000000000000000017100000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/child1/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/c0000755000175000017500000000000011361635325034120 5ustar twernertwerner././@LongLink0000000000000000000000000000017600000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/child1/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/c0000755000175000017500000000000011361635325034120 5ustar twernertwerner././@LongLink0000000000000000000000000000020600000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/child1/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/c0000644000175000017500000000024711123544663034125 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/child2/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/c0000755000175000017500000000000011361635325034120 5ustar twernertwerner././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/child2/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/c0000644000175000017500000000111610520472104034107 0ustar twernertwerner multimodule-sources-copied test 1.0-SNAPSHOT 4.0.0 test child2 Maven Quick Start Archetype 1.0-SNAPSHOT http://maven.apache.org junit junit 3.8.1 test ././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/child2/src/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/c0000755000175000017500000000000011361635325034120 5ustar twernertwerner././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/child2/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/c0000755000175000017500000000000011361635325034120 5ustar twernertwerner././@LongLink0000000000000000000000000000017100000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/child2/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/c0000755000175000017500000000000011361635325034120 5ustar twernertwerner././@LongLink0000000000000000000000000000017600000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/child2/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/c0000755000175000017500000000000011361635325034120 5ustar twernertwerner././@LongLink0000000000000000000000000000021200000000000011560 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/child2/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/c0000644000175000017500000000117011123544663034121 0ustar twernertwernerpackage 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 ); } } ././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/child2/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/c0000755000175000017500000000000011361635325034120 5ustar twernertwerner././@LongLink0000000000000000000000000000017100000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/child2/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/c0000755000175000017500000000000011361635325034120 5ustar twernertwerner././@LongLink0000000000000000000000000000017600000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/child2/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/c0000755000175000017500000000000011361635325034120 5ustar twernertwerner././@LongLink0000000000000000000000000000020600000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/child2/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/c0000644000175000017500000000024711123544663034125 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/goals.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/g0000644000175000017500000000000710520472104034111 0ustar twernertwernerpackage././@LongLink0000000000000000000000000000015600000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/verify.bshmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/multimodule-sources-copied/v0000644000175000017500000000536410771721652034160 0ustar twernertwernerimport java.io.*; import java.net.*; import java.util.zip.*; boolean result = true; String basename = "multimodule-sources-copied-1.0-SNAPSHOT"; try { File zipFile = new File( basedir, "target/" + basename + "-project.zip" ); System.out.println( "Checking for existence and file-ishness of: " + zipFile ); if ( !zipFile.exists() || zipFile.isDirectory() ) { System.err.println( "zip file is missing or a directory." ); return false; } System.out.println( "Creating zipFile instance." ); ZipFile zf = new ZipFile( zipFile ); String childPath = basename + "/child1"; System.out.println( "Checking child1 project files..." ); System.out.println( "Looking for project source file." ); ZipEntry je = zf.getEntry( childPath + "/src/main/java/test/App.java" ); if ( je == null ) { System.out.println( childPath + " source file missing." ); result = false; } System.out.println( "Looking for project test-source file." ); je = null; je = zf.getEntry( childPath + "/src/test/java/test/AppTest.java" ); if ( je == null ) { System.out.println( childPath + " test-source file missing." ); result = false; } System.out.println( "Looking for pom.xml file." ); je = null; je = zf.getEntry( childPath + "/pom.xml" ); if ( je == null ) { System.out.println( childPath + " POM missing." ); result = false; } childPath = basename + "/child2"; System.out.println( "Checking child2 project files..." ); System.out.println( "Looking for project source file." ); je = null; je = zf.getEntry( childPath + "/src/main/java/test/App.java" ); if ( je == null ) { System.out.println( childPath + " source file missing." ); result = false; } System.out.println( "Looking for project test-source file." ); je = null; je = zf.getEntry( childPath + "/src/test/java/test/AppTest.java" ); if ( je == null ) { System.out.println( childPath + " test-source file missing." ); result = false; } System.out.println( "Looking for pom.xml file." ); je = null; je = zf.getEntry( childPath + "/pom.xml" ); if ( je == null ) { System.out.println( childPath + " POM missing." ); result = false; } System.out.println( "Looking for main pom.xml file." ); je = null; je = zf.getEntry( basename + "/pom.xml" ); if ( je == null ) { System.out.println( "project POM missing." ); result = false; } } catch( IOException e ) { e.printStackTrace( System.out ); result = false; } return result; maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/sources-copied/0000755000175000017500000000000011361635325031417 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/sources-copied/pom.xml0000644000175000017500000000251311212274043032724 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test sources-copied jar 1.0-SNAPSHOT Maven Quick Start Archetype http://maven.apache.org junit junit 3.8.1 test maven-assembly-plugin assembly package single project maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/sources-copied/goals.txt0000644000175000017500000000000710520315151033246 0ustar twernertwernerpackagemaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/sources-copied/verify.bsh0000644000175000017500000000271410771721652033430 0ustar twernertwernerimport java.io.*; import java.net.*; import java.util.zip.*; boolean result = true; String basename = "sources-copied-1.0-SNAPSHOT"; try { File zipFile = new File( basedir, "target/" + basename + "-project.zip" ); System.out.println( "Checking for existence and file-ishness of: " + zipFile ); if ( !zipFile.exists() || zipFile.isDirectory() ) { System.err.println( "zip file is missing or a directory." ); return false; } System.out.println( "Creating zipFile instance." ); ZipFile zf = new ZipFile( zipFile ); System.out.println( "Looking for project source file." ); ZipEntry je = zf.getEntry( basename + "/src/main/java/test/App.java" ); if ( je == null ) { System.out.println( "project source file missing." ); result = false; } System.out.println( "Looking for project test-source file." ); je = null; je = zf.getEntry( basename + "/src/test/java/test/AppTest.java" ); if ( je == null ) { System.out.println( "project test-source file missing." ); result = false; } System.out.println( "Looking for pom.xml file." ); je = null; je = zf.getEntry( basename + "/pom.xml" ); if ( je == null ) { System.out.println( "project POM missing." ); result = false; } } catch( IOException e ) { e.printStackTrace( System.out ); result = false; } return result; maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/sources-copied/src/0000755000175000017500000000000011361635325032206 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/sources-copied/src/test/0000755000175000017500000000000011361635325033165 5ustar twernertwerner././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/sources-copied/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/sources-copied/src/test/java0000755000175000017500000000000011361635325034027 5ustar twernertwerner././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/sources-copied/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/sources-copied/src/test/java0000755000175000017500000000000011361635325034027 5ustar twernertwerner././@LongLink0000000000000000000000000000016700000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/sources-copied/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/sources-copied/src/test/java0000644000175000017500000000117011123544663034030 0ustar twernertwernerpackage 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 ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/sources-copied/src/main/0000755000175000017500000000000011361635325033132 5ustar twernertwerner././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/sources-copied/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/sources-copied/src/main/java0000755000175000017500000000000011361635325033774 5ustar twernertwerner././@LongLink0000000000000000000000000000015300000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/sources-copied/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/sources-copied/src/main/java0000755000175000017500000000000011361635325033774 5ustar twernertwerner././@LongLink0000000000000000000000000000016300000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/sources-copied/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/sources-copied/src/main/java0000644000175000017500000000024711123544663034001 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir/0000755000175000017500000000000011361635325031147 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir/pom.xml0000644000175000017500000000237311212274043032460 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test no-target-dir jar 1.0-SNAPSHOT junit junit 3.8.1 test maven-assembly-plugin assembly package single project maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir/goals.txt0000644000175000017500000000000711212274043033001 0ustar twernertwernerpackagemaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir/verify.bsh0000644000175000017500000000167611212274043033152 0ustar twernertwernerimport java.io.*; import java.net.*; import java.util.zip.*; boolean result = true; String basename = "no-target-dir-1.0-SNAPSHOT"; try { File zipFile = new File( basedir, "target/" + basename + "-project.zip" ); System.out.println( "Checking for existence and file-ishness of: " + zipFile ); if ( !zipFile.exists() || zipFile.isDirectory() ) { System.err.println( "zip file is missing or a directory." ); return false; } System.out.println( "Creating zipFile instance." ); ZipFile zf = new ZipFile( zipFile ); System.out.println( "Looking for project classes." ); ZipEntry je = zf.getEntry( basename + "/target/classes/test/App.java" ); if ( je != null ) { System.out.println( "project classes should not be included." ); result = false; } } catch( IOException e ) { e.printStackTrace( System.out ); result = false; } return result; maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir/src/0000755000175000017500000000000011361635325031736 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir/src/test/0000755000175000017500000000000011361635325032715 5ustar twernertwerner././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir/src/test/java/0000755000175000017500000000000011361635325033636 5ustar twernertwerner././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir/src/test/java/0000755000175000017500000000000011361635325033636 5ustar twernertwerner././@LongLink0000000000000000000000000000016600000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir/src/test/java/0000644000175000017500000000117011212274043033626 0ustar twernertwernerpackage 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 ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir/src/main/0000755000175000017500000000000011361635325032662 5ustar twernertwerner././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir/src/main/java/0000755000175000017500000000000011361635325033603 5ustar twernertwerner././@LongLink0000000000000000000000000000015200000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir/src/main/java/0000755000175000017500000000000011361635325033603 5ustar twernertwerner././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/project/no-target-dir/src/main/java/0000644000175000017500000000024711212274043033577 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/bin/0000755000175000017500000000000011361635325025575 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/bin/jars-in-archive-root/0000755000175000017500000000000011361635325031540 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/bin/jars-in-archive-root/pom.xml0000644000175000017500000000251511212274043033047 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test jars-in-archive-root jar 1.0-SNAPSHOT Maven Quick Start Archetype http://maven.apache.org junit junit 3.8.1 test maven-assembly-plugin assembly package single bin maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/bin/jars-in-archive-root/goals.txt0000644000175000017500000000000710551626045033402 0ustar twernertwernerpackagemaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/bin/jars-in-archive-root/verify.bsh0000644000175000017500000000172710771721652033554 0ustar twernertwernerimport java.io.*; import java.net.*; import java.util.zip.*; boolean result = true; String basename = "jars-in-archive-root-1.0-SNAPSHOT"; try { File zipFile = new File( basedir, "target/" + basename + "-bin.zip" ); System.out.println( "Checking for existence and file-ishness of: " + zipFile ); if ( !zipFile.exists() || zipFile.isDirectory() ) { System.err.println( "zip file is missing or a directory." ); return false; } System.out.println( "Creating zipFile instance." ); ZipFile zf = new ZipFile( zipFile ); System.out.println( "Looking for project-artifact jar zip entry." ); ZipEntry je = zf.getEntry( basename + "/" + basename + ".jar" ); if ( je == null ) { System.out.println( "project artifact is missing from archive root dir." ); result = false; } } catch( IOException e ) { e.printStackTrace( System.out ); result = false; } return result; maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/bin/jars-in-archive-root/src/0000755000175000017500000000000011361635325032327 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/bin/jars-in-archive-root/src/test/0000755000175000017500000000000011361635325033306 5ustar twernertwerner././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/bin/jars-in-archive-root/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/bin/jars-in-archive-root/src/test/ja0000755000175000017500000000000011361635325033621 5ustar twernertwerner././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/bin/jars-in-archive-root/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/bin/jars-in-archive-root/src/test/ja0000755000175000017500000000000011361635325033621 5ustar twernertwerner././@LongLink0000000000000000000000000000017100000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/bin/jars-in-archive-root/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/bin/jars-in-archive-root/src/test/ja0000644000175000017500000000117011123544663033622 0ustar twernertwernerpackage 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 ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/bin/jars-in-archive-root/src/main/0000755000175000017500000000000011361635325033253 5ustar twernertwerner././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/bin/jars-in-archive-root/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/bin/jars-in-archive-root/src/main/ja0000755000175000017500000000000011361635325033566 5ustar twernertwerner././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/bin/jars-in-archive-root/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/bin/jars-in-archive-root/src/main/ja0000755000175000017500000000000011361635325033566 5ustar twernertwerner././@LongLink0000000000000000000000000000016500000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/bin/jars-in-archive-root/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/bin/jars-in-archive-root/src/main/ja0000644000175000017500000000024711123544663033573 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/0000755000175000017500000000000011361635325031176 5ustar twernertwerner././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-to-root-dir/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-0000755000175000017500000000000011361635325033717 5ustar twernertwerner././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-to-root-dir/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-0000644000175000017500000000126311212274043033712 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test jar-with-dependencies-unpacked-to-root-dir pom 1.0-SNAPSHOT child1 child2 ././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-to-root-dir/child1/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-0000755000175000017500000000000011361635325033717 5ustar twernertwerner././@LongLink0000000000000000000000000000017700000000000011572 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-to-root-dir/child1/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-0000644000175000017500000000113710511053467033720 0ustar twernertwerner jar-with-dependencies-unpacked-to-root-dir test 1.0-SNAPSHOT 4.0.0 test child1 Maven Quick Start Archetype 1.0-SNAPSHOT http://maven.apache.org junit junit 3.8.1 test ././@LongLink0000000000000000000000000000017400000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-to-root-dir/child1/src/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-0000755000175000017500000000000011361635325033717 5ustar twernertwerner././@LongLink0000000000000000000000000000020100000000000011556 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-to-root-dir/child1/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-0000755000175000017500000000000011361635325033717 5ustar twernertwerner././@LongLink0000000000000000000000000000020600000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-to-root-dir/child1/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-0000755000175000017500000000000011361635325033717 5ustar twernertwerner././@LongLink0000000000000000000000000000021300000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-to-root-dir/child1/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-0000755000175000017500000000000011361635325033717 5ustar twernertwerner././@LongLink0000000000000000000000000000023100000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-to-root-dir/child1/src/main/java/test/AppChild1.javamaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-0000644000175000017500000000025511123544663033723 0ustar twernertwernerpackage test; /** * Hello world! * */ public class AppChild1 { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-to-root-dir/child2/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-0000755000175000017500000000000011361635325033717 5ustar twernertwerner././@LongLink0000000000000000000000000000017700000000000011572 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-to-root-dir/child2/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-0000644000175000017500000000233111052376133033714 0ustar twernertwerner jar-with-dependencies-unpacked-to-root-dir test 1.0-SNAPSHOT 4.0.0 test child2 1.0-SNAPSHOT test child1 1.0-SNAPSHOT junit junit 3.8.1 test maven-assembly-plugin attach-binary-assembly package jar-with-dependencies single ././@LongLink0000000000000000000000000000017400000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-to-root-dir/child2/src/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-0000755000175000017500000000000011361635325033717 5ustar twernertwerner././@LongLink0000000000000000000000000000020100000000000011556 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-to-root-dir/child2/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-0000755000175000017500000000000011361635325033717 5ustar twernertwerner././@LongLink0000000000000000000000000000020600000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-to-root-dir/child2/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-0000755000175000017500000000000011361635325033717 5ustar twernertwerner././@LongLink0000000000000000000000000000021300000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-to-root-dir/child2/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-0000755000175000017500000000000011361635325033717 5ustar twernertwerner././@LongLink0000000000000000000000000000022700000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-to-root-dir/child2/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-0000644000175000017500000000117011123544663033720 0ustar twernertwernerpackage 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 ); } } ././@LongLink0000000000000000000000000000020100000000000011556 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-to-root-dir/child2/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-0000755000175000017500000000000011361635325033717 5ustar twernertwerner././@LongLink0000000000000000000000000000020600000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-to-root-dir/child2/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-0000755000175000017500000000000011361635325033717 5ustar twernertwerner././@LongLink0000000000000000000000000000021300000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-to-root-dir/child2/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-0000755000175000017500000000000011361635325033717 5ustar twernertwerner././@LongLink0000000000000000000000000000022300000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-to-root-dir/child2/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-0000644000175000017500000000024711123544663033724 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000020500000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-to-root-dir/child2/src/assemble/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-0000755000175000017500000000000011361635325033717 5ustar twernertwerner././@LongLink0000000000000000000000000000021400000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-to-root-dir/child2/src/assemble/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-0000644000175000017500000000136711162606221033720 0ustar twernertwerner bin jar false test:child1 true ${artifact.artifactId} test junit:junit ././@LongLink0000000000000000000000000000017200000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-to-root-dir/goals.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-0000644000175000017500000000000710511053467033713 0ustar twernertwernerpackage././@LongLink0000000000000000000000000000017300000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-to-root-dir/verify.bshmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/deps-unpacked-0000644000175000017500000000250210771721652033723 0ustar twernertwernerimport java.io.*; import java.net.*; import java.util.jar.*; boolean result = true; try { System.out.println( "Creating JarFile java.io.File." ); File jarFile = new File( basedir, "child2/target/child2-1.0-SNAPSHOT-jar-with-dependencies.jar" ); System.out.println( "Checking for existence and file-ishness of: " + jarFile ); if ( !jarFile.exists() || jarFile.isDirectory() ) { System.err.println( "jar file is missing or a directory." ); return false; } System.out.println( "Creating JarFile instance." ); JarFile jf = new JarFile( jarFile ); System.out.println( "Looking for 'test/AppChild1.class' jar entry." ); if ( jf.getEntry( "test/AppChild1.class" ) == null ) { System.err.println( "child1 class is missing." ); result = false; } if ( jf.getEntry( "test/App.class" ) == null ) { System.err.println( "child2 class is missing." ); result = false; } System.out.println( "Looking for absence of 'junit/' jar entry." ); if ( jf.getEntry( "junit/framework/TestCase.class" ) != null ) { System.err.println( "junit jar should not be present." ); result = false; } } catch( IOException e ) { e.printStackTrace(); result = false; } return result; ././@LongLink0000000000000000000000000000016400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-descriptors-merged/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-desc0000755000175000017500000000000011361635325034035 5ustar twernertwerner././@LongLink0000000000000000000000000000017300000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-descriptors-merged/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-desc0000644000175000017500000000124511212274043034030 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test component-descriptors-merged pom 1.0-SNAPSHOT child1 child2 ././@LongLink0000000000000000000000000000017300000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-descriptors-merged/child1/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-desc0000755000175000017500000000000011361635325034035 5ustar twernertwerner././@LongLink0000000000000000000000000000020200000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-descriptors-merged/child1/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-desc0000644000175000017500000000112110513346410034022 0ustar twernertwerner component-descriptors-merged test 1.0-SNAPSHOT 4.0.0 test child1 Maven Quick Start Archetype 1.0-SNAPSHOT http://maven.apache.org junit junit 3.8.1 test ././@LongLink0000000000000000000000000000017700000000000011572 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-descriptors-merged/child1/src/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-desc0000755000175000017500000000000011361635325034035 5ustar twernertwerner././@LongLink0000000000000000000000000000020400000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-descriptors-merged/child1/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-desc0000755000175000017500000000000011361635325034035 5ustar twernertwerner././@LongLink0000000000000000000000000000021100000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-descriptors-merged/child1/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-desc0000755000175000017500000000000011361635325034035 5ustar twernertwerner././@LongLink0000000000000000000000000000021600000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-descriptors-merged/child1/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-desc0000755000175000017500000000000011361635325034035 5ustar twernertwerner././@LongLink0000000000000000000000000000023400000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-descriptors-merged/child1/src/main/java/test/AppChild1.javamaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-desc0000644000175000017500000000025511123544663034041 0ustar twernertwernerpackage test; /** * Hello world! * */ public class AppChild1 { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000021600000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-descriptors-merged/child1/src/main/resources/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-desc0000755000175000017500000000000011361635325034035 5ustar twernertwerner././@LongLink0000000000000000000000000000022700000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-descriptors-merged/child1/src/main/resources/META-INF/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-desc0000755000175000017500000000000011361635325034035 5ustar twernertwerner././@LongLink0000000000000000000000000000023600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-descriptors-merged/child1/src/main/resources/META-INF/plexus/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-desc0000755000175000017500000000000011361635325034035 5ustar twernertwerner././@LongLink0000000000000000000000000000025400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-descriptors-merged/child1/src/main/resources/META-INF/plexus/components.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-desc0000644000175000017500000000032110513346410034023 0ustar twernertwerner child one test/AppChild1 ././@LongLink0000000000000000000000000000017300000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-descriptors-merged/child2/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-desc0000755000175000017500000000000011361635325034035 5ustar twernertwerner././@LongLink0000000000000000000000000000020200000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-descriptors-merged/child2/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-desc0000644000175000017500000000231311052376133034032 0ustar twernertwerner component-descriptors-merged test 1.0-SNAPSHOT 4.0.0 test child2 1.0-SNAPSHOT test child1 1.0-SNAPSHOT junit junit 3.8.1 test maven-assembly-plugin attach-binary-assembly package jar-with-dependencies single ././@LongLink0000000000000000000000000000017700000000000011572 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-descriptors-merged/child2/src/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-desc0000755000175000017500000000000011361635325034035 5ustar twernertwerner././@LongLink0000000000000000000000000000020400000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-descriptors-merged/child2/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-desc0000755000175000017500000000000011361635325034035 5ustar twernertwerner././@LongLink0000000000000000000000000000021100000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-descriptors-merged/child2/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-desc0000755000175000017500000000000011361635325034035 5ustar twernertwerner././@LongLink0000000000000000000000000000021600000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-descriptors-merged/child2/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-desc0000755000175000017500000000000011361635325034035 5ustar twernertwerner././@LongLink0000000000000000000000000000023200000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-descriptors-merged/child2/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-desc0000644000175000017500000000117011123544663034036 0ustar twernertwernerpackage 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 ); } } ././@LongLink0000000000000000000000000000020400000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-descriptors-merged/child2/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-desc0000755000175000017500000000000011361635325034035 5ustar twernertwerner././@LongLink0000000000000000000000000000021100000000000011557 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-descriptors-merged/child2/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-desc0000755000175000017500000000000011361635325034035 5ustar twernertwerner././@LongLink0000000000000000000000000000021600000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-descriptors-merged/child2/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-desc0000755000175000017500000000000011361635325034035 5ustar twernertwerner././@LongLink0000000000000000000000000000022600000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-descriptors-merged/child2/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-desc0000644000175000017500000000024711123544663034042 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000021600000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-descriptors-merged/child2/src/main/resources/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-desc0000755000175000017500000000000011361635325034035 5ustar twernertwerner././@LongLink0000000000000000000000000000022700000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-descriptors-merged/child2/src/main/resources/META-INF/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-desc0000755000175000017500000000000011361635325034035 5ustar twernertwerner././@LongLink0000000000000000000000000000023600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-descriptors-merged/child2/src/main/resources/META-INF/plexus/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-desc0000755000175000017500000000000011361635325034035 5ustar twernertwerner././@LongLink0000000000000000000000000000025400000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-descriptors-merged/child2/src/main/resources/META-INF/plexus/components.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-desc0000644000175000017500000000031310513346410034024 0ustar twernertwerner child two test/App ././@LongLink0000000000000000000000000000021000000000000011556 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-descriptors-merged/child2/src/assemble/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-desc0000755000175000017500000000000011361635325034035 5ustar twernertwerner././@LongLink0000000000000000000000000000021700000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-descriptors-merged/child2/src/assemble/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-desc0000644000175000017500000000136711162606221034036 0ustar twernertwerner bin jar false test:child1 true ${artifact.artifactId} test junit:junit ././@LongLink0000000000000000000000000000017500000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-descriptors-merged/goals.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-desc0000644000175000017500000000001610513346410034024 0ustar twernertwernerclean package ././@LongLink0000000000000000000000000000017600000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-descriptors-merged/verify.bshmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/component-desc0000644000175000017500000000270211220755272034036 0ustar twernertwernerimport java.io.*; import java.net.*; import java.util.jar.*; boolean result = true; try { System.out.println( "Creating JarFile java.io.File." ); File jarFile = new File( basedir, "child2/target/child2-1.0-SNAPSHOT-jar-with-dependencies.jar" ); System.out.println( "Checking for existence and file-ishness of: " + jarFile ); if ( !jarFile.exists() || jarFile.isDirectory() ) { System.err.println( "jar file is missing or a directory." ); return false; } System.out.println( "Creating JarFile instance." ); JarFile jf = new JarFile( jarFile ); System.out.println( "Looking for component descriptor jar entry." ); JarEntry je = jf.getEntry( "META-INF/plexus/components.xml" ); if ( je == null ) { System.err.println( "component descriptor is missing." ); result = false; } else { InputStream instream = jf.getInputStream( je ); ByteArrayOutputStream baos = new ByteArrayOutputStream(); byte[] buf = new byte[16]; int read = -1; while( ( read = instream.read( buf ) ) > -1 ) { baos.write( buf, 0, read ); } String test = new String( baos.toByteArray() ); System.out.println( test ); result = test.indexOf( "one" ) > -1 && test.indexOf( "two" ) > -1; } } catch( IOException e ) { e.printStackTrace(); result = false; } return result; ././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/no-target-dir/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/no-target-dir/0000755000175000017500000000000011361635325033652 5ustar twernertwerner././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/no-target-dir/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/no-target-dir/0000644000175000017500000000220611212274043033643 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test jar-with-dependencies-no-target-dir jar 1.0-SNAPSHOT org.apache.maven.plugins maven-assembly-plugin jar-with-dependencies single package ././@LongLink0000000000000000000000000000015600000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/no-target-dir/goals.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/no-target-dir/0000644000175000017500000000000711212274043033640 0ustar twernertwernerpackage././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/no-target-dir/verify.bshmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/no-target-dir/0000644000175000017500000000221211212274043033640 0ustar twernertwernerimport java.io.*; import java.net.*; import java.util.jar.*; boolean result = true; try { System.out.println( "Creating JarFile java.io.File." ); File jarFile = new File( basedir, "target/jar-with-dependencies-no-target-dir-1.0-SNAPSHOT-jar-with-dependencies.jar" ); System.out.println( "Checking for existence and file-ishness of: " + jarFile ); if ( !jarFile.exists() || jarFile.isDirectory() ) { System.err.println( "jar file is missing or a directory." ); return false; } System.out.println( "Creating JarFile instance." ); JarFile jf = new JarFile( jarFile ); if ( jf.getEntry( "test/App.class" ) == null ) { System.err.println( "App class is missing." ); result = false; } System.out.println( "Looking for absence of 'target/classes/test/App.class' jar entry." ); if ( jf.getEntry( "target/classes/test/App.class" ) != null ) { System.err.println( "target directory should not be present." ); result = false; } } catch( IOException e ) { e.printStackTrace(); result = false; } return result; ././@LongLink0000000000000000000000000000015100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/no-target-dir/src/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/no-target-dir/0000755000175000017500000000000011361635325033652 5ustar twernertwerner././@LongLink0000000000000000000000000000015600000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/no-target-dir/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/no-target-dir/0000755000175000017500000000000011361635325033652 5ustar twernertwerner././@LongLink0000000000000000000000000000016300000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/no-target-dir/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/no-target-dir/0000755000175000017500000000000011361635325033652 5ustar twernertwerner././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/no-target-dir/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/no-target-dir/0000755000175000017500000000000011361635325033652 5ustar twernertwerner././@LongLink0000000000000000000000000000020000000000000011555 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/no-target-dir/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/no-target-dir/0000644000175000017500000000024711212274043033646 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/no-target-dir/src/assemble/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/no-target-dir/0000755000175000017500000000000011361635325033652 5ustar twernertwerner././@LongLink0000000000000000000000000000017100000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/no-target-dir/src/assemble/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/jar-with-dependencies/no-target-dir/0000644000175000017500000000074611212274043033652 0ustar twernertwerner bin jar false test:child1 true ${artifact.artifactId} test junit:junit maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/src/0000755000175000017500000000000011361635325025614 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/src/src-dir-copied/0000755000175000017500000000000011361635325030420 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/src/src-dir-copied/pom.xml0000644000175000017500000000237311212274043031731 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test src-dir-copied jar 1.0-SNAPSHOT junit junit 3.8.1 test maven-assembly-plugin assembly package single src maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/src/src-dir-copied/goals.txt0000644000175000017500000000000710520472104032251 0ustar twernertwernerpackagemaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/src/src-dir-copied/verify.bsh0000644000175000017500000000233010771721652032423 0ustar twernertwernerimport java.io.*; import java.net.*; import java.util.zip.*; boolean result = true; String basename = "src-dir-copied-1.0-SNAPSHOT"; try { File zipFile = new File( basedir, "target/" + basename + "-src.zip" ); System.out.println( "Checking for existence and file-ishness of: " + zipFile ); if ( !zipFile.exists() || zipFile.isDirectory() ) { System.err.println( "zip file is missing or a directory." ); return false; } System.out.println( "Creating zipFile instance." ); ZipFile zf = new ZipFile( zipFile ); System.out.println( "Looking for project source file." ); ZipEntry je = zf.getEntry( basename + "/src/main/java/test/App.java" ); if ( je == null ) { System.out.println( "project source file missing." ); result = false; } System.out.println( "Looking for project test-source file." ); je = null; je = zf.getEntry( basename + "/src/test/java/test/AppTest.java" ); if ( je == null ) { System.out.println( "project test-source file missing." ); result = false; } } catch( IOException e ) { e.printStackTrace( System.out ); result = false; } return result; maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/src/src-dir-copied/src/0000755000175000017500000000000011361635325031207 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/src/src-dir-copied/src/test/0000755000175000017500000000000011361635325032166 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/src/src-dir-copied/src/test/java/0000755000175000017500000000000011361635325033107 5ustar twernertwerner././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/src/src-dir-copied/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/src/src-dir-copied/src/test/java/tes0000755000175000017500000000000011361635325033623 5ustar twernertwerner././@LongLink0000000000000000000000000000016300000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/src/src-dir-copied/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/src/src-dir-copied/src/test/java/tes0000644000175000017500000000117011123544663033624 0ustar twernertwernerpackage 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 ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/src/src-dir-copied/src/main/0000755000175000017500000000000011361635325032133 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/src/src-dir-copied/src/main/java/0000755000175000017500000000000011361635325033054 5ustar twernertwerner././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/src/src-dir-copied/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/src/src-dir-copied/src/main/java/tes0000755000175000017500000000000011361635325033570 5ustar twernertwerner././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/src/src-dir-copied/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/src/src-dir-copied/src/main/java/tes0000644000175000017500000000024711123544663033575 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/src/no-target-dir/0000755000175000017500000000000011361635325030270 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/src/no-target-dir/pom.xml0000644000175000017500000000236711212274043031604 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 test no-target-dir jar 1.0-SNAPSHOT junit junit 3.8.1 test maven-assembly-plugin assembly package single src maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/src/no-target-dir/goals.txt0000644000175000017500000000000711212274043032122 0ustar twernertwernerpackagemaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/src/no-target-dir/verify.bsh0000644000175000017500000000167211212274043032267 0ustar twernertwernerimport java.io.*; import java.net.*; import java.util.zip.*; boolean result = true; String basename = "no-target-dir-1.0-SNAPSHOT"; try { File zipFile = new File( basedir, "target/" + basename + "-src.zip" ); System.out.println( "Checking for existence and file-ishness of: " + zipFile ); if ( !zipFile.exists() || zipFile.isDirectory() ) { System.err.println( "zip file is missing or a directory." ); return false; } System.out.println( "Creating zipFile instance." ); ZipFile zf = new ZipFile( zipFile ); System.out.println( "Looking for project classes." ); ZipEntry je = zf.getEntry( basename + "/target/classes/test/App.class" ); if ( je != null ) { System.out.println( "project classes should not be present." ); result = false; } } catch( IOException e ) { e.printStackTrace( System.out ); result = false; } return result; maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/src/no-target-dir/src/0000755000175000017500000000000011361635325031057 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/src/no-target-dir/src/test/0000755000175000017500000000000011361635325032036 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/src/no-target-dir/src/test/java/0000755000175000017500000000000011361635325032757 5ustar twernertwerner././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/src/no-target-dir/src/test/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/src/no-target-dir/src/test/java/test0000755000175000017500000000000011361635325033657 5ustar twernertwerner././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/src/no-target-dir/src/test/java/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/src/no-target-dir/src/test/java/test0000644000175000017500000000117011212274043033647 0ustar twernertwernerpackage 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 ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/src/no-target-dir/src/main/0000755000175000017500000000000011361635325032003 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/src/no-target-dir/src/main/java/0000755000175000017500000000000011361635325032724 5ustar twernertwerner././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/src/no-target-dir/src/main/java/test/maven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/src/no-target-dir/src/main/java/test0000755000175000017500000000000011361635325033624 5ustar twernertwerner././@LongLink0000000000000000000000000000015600000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/src/no-target-dir/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/descriptor-refs/src/no-target-dir/src/main/java/test0000644000175000017500000000024711212274043033620 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/filtering-feature/0000755000175000017500000000000011361635326025327 5ustar twernertwerner././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/filtering-feature/filtersDefinedInAssemblyPluginConfig/maven-assembly-plugin-2.2~beta5/src/it/projects/filtering-feature/filtersDefinedInAssemblyPluginConf0000755000175000017500000000000011361635326034153 5ustar twernertwerner././@LongLink0000000000000000000000000000015700000000000011570 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/filtering-feature/filtersDefinedInAssemblyPluginConfig/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/filtering-feature/filtersDefinedInAssemblyPluginConf0000644000175000017500000000211111052376133034143 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 org.test parent 1.0 Parent org.apache.maven.plugins maven-assembly-plugin src/assemble/bin.xml filter.properties ././@LongLink0000000000000000000000000000017100000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/filtering-feature/filtersDefinedInAssemblyPluginConfig/filter.propertiesmaven-assembly-plugin-2.2~beta5/src/it/projects/filtering-feature/filtersDefinedInAssemblyPluginConf0000644000175000017500000000002410645667352034161 0ustar twernertwernertest.properties=foo ././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/filtering-feature/filtersDefinedInAssemblyPluginConfig/goals.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/filtering-feature/filtersDefinedInAssemblyPluginConf0000644000175000017500000000010711052376133034146 0ustar twernertwernerorg.apache.maven.plugins:maven-assembly-plugin:${testVersion}:assembly ././@LongLink0000000000000000000000000000016200000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/filtering-feature/filtersDefinedInAssemblyPluginConfig/verify.bshmaven-assembly-plugin-2.2~beta5/src/it/projects/filtering-feature/filtersDefinedInAssemblyPluginConf0000644000175000017500000000065111066772063034161 0ustar twernertwernerimport java.io.*; import java.net.*; import java.util.jar.*; boolean result = true; try { File file = new File( basedir, "target/parent-1.0-filtered-assembly/file.txt"); if(result) { BufferedReader r = new BufferedReader(new FileReader(file)); String s = r.readLine(); result = s.equals("foo"); } } catch( IOException e ) { e.printStackTrace(); result = false; } return result; ././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/filtering-feature/filtersDefinedInAssemblyPluginConfig/src/maven-assembly-plugin-2.2~beta5/src/it/projects/filtering-feature/filtersDefinedInAssemblyPluginConf0000755000175000017500000000000011361635326034153 5ustar twernertwerner././@LongLink0000000000000000000000000000016500000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/filtering-feature/filtersDefinedInAssemblyPluginConfig/src/assemble/maven-assembly-plugin-2.2~beta5/src/it/projects/filtering-feature/filtersDefinedInAssemblyPluginConf0000755000175000017500000000000011361635326034153 5ustar twernertwerner././@LongLink0000000000000000000000000000017400000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/filtering-feature/filtersDefinedInAssemblyPluginConfig/src/assemble/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/filtering-feature/filtersDefinedInAssemblyPluginConf0000644000175000017500000000107411162606221034146 0ustar twernertwerner filtered-assembly dir zip false src/config/file.txt true ././@LongLink0000000000000000000000000000016300000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/filtering-feature/filtersDefinedInAssemblyPluginConfig/src/config/maven-assembly-plugin-2.2~beta5/src/it/projects/filtering-feature/filtersDefinedInAssemblyPluginConf0000755000175000017500000000000011361635326034153 5ustar twernertwerner././@LongLink0000000000000000000000000000017300000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/filtering-feature/filtersDefinedInAssemblyPluginConfig/src/config/file.txtmaven-assembly-plugin-2.2~beta5/src/it/projects/filtering-feature/filtersDefinedInAssemblyPluginConf0000644000175000017500000000002310645667352034160 0ustar twernertwerner${test.properties} maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/0000755000175000017500000000000011361635322024436 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/basic-repository/0000755000175000017500000000000011361635322027734 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/basic-repository/pom.xml0000644000175000017500000000253711052376133031257 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 org.apache.maven.plugin.assembly.test repository-assembly jar 1.0-SNAPSHOT Maven Quick Start Archetype http://maven.apache.org junit junit 3.8.1 test maven-assembly-plugin src/assemble/bin.xml assembly assembly package single maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/basic-repository/goals.txt0000644000175000017500000000001610645704055031603 0ustar twernertwernerclean package maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/basic-repository/verify.bsh0000644000175000017500000000022211066772063031740 0ustar twernertwernerimport java.io.*; File junitJar = new File( basedir, "target/assembly-bin/repo/junit/junit/3.8.1/junit-3.8.1.jar" ); return junitJar.exists(); maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/basic-repository/src/0000755000175000017500000000000011361635322030523 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/basic-repository/src/test/0000755000175000017500000000000011361635322031502 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/basic-repository/src/test/java/0000755000175000017500000000000011361635322032423 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/basic-repository/src/test/java/org/0000755000175000017500000000000011361635322033212 5ustar twernertwerner././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/basic-repository/src/test/java/org/apache/maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/basic-repository/src/test/java/org/apac0000755000175000017500000000000011361635322034037 5ustar twernertwerner././@LongLink0000000000000000000000000000015600000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/basic-repository/src/test/java/org/apache/maven/maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/basic-repository/src/test/java/org/apac0000755000175000017500000000000011361635322034037 5ustar twernertwerner././@LongLink0000000000000000000000000000016500000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/basic-repository/src/test/java/org/apache/maven/plugin/maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/basic-repository/src/test/java/org/apac0000755000175000017500000000000011361635322034037 5ustar twernertwerner././@LongLink0000000000000000000000000000017600000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/basic-repository/src/test/java/org/apache/maven/plugin/assembly/maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/basic-repository/src/test/java/org/apac0000755000175000017500000000000011361635322034037 5ustar twernertwerner././@LongLink0000000000000000000000000000020300000000000011560 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/basic-repository/src/test/java/org/apache/maven/plugin/assembly/test/maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/basic-repository/src/test/java/org/apac0000755000175000017500000000000011361635322034037 5ustar twernertwerner././@LongLink0000000000000000000000000000021700000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/basic-repository/src/test/java/org/apache/maven/plugin/assembly/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/basic-repository/src/test/java/org/apac0000644000175000017500000000123111123544663034041 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.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 ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/basic-repository/src/main/0000755000175000017500000000000011361635322031447 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/basic-repository/src/main/java/0000755000175000017500000000000011361635322032370 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/basic-repository/src/main/java/org/0000755000175000017500000000000011361635322033157 5ustar twernertwerner././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/basic-repository/src/main/java/org/apache/maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/basic-repository/src/main/java/org/apac0000755000175000017500000000000011361635322034004 5ustar twernertwerner././@LongLink0000000000000000000000000000015600000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/basic-repository/src/main/java/org/apache/maven/maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/basic-repository/src/main/java/org/apac0000755000175000017500000000000011361635322034004 5ustar twernertwerner././@LongLink0000000000000000000000000000016500000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/basic-repository/src/main/java/org/apache/maven/plugin/maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/basic-repository/src/main/java/org/apac0000755000175000017500000000000011361635322034004 5ustar twernertwerner././@LongLink0000000000000000000000000000017600000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/basic-repository/src/main/java/org/apache/maven/plugin/assembly/maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/basic-repository/src/main/java/org/apac0000755000175000017500000000000011361635322034004 5ustar twernertwerner././@LongLink0000000000000000000000000000020300000000000011560 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/basic-repository/src/main/java/org/apache/maven/plugin/assembly/test/maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/basic-repository/src/main/java/org/apac0000755000175000017500000000000011361635322034004 5ustar twernertwerner././@LongLink0000000000000000000000000000021300000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/basic-repository/src/main/java/org/apache/maven/plugin/assembly/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/basic-repository/src/main/java/org/apac0000644000175000017500000000031011123544663034003 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/basic-repository/src/assemble/0000755000175000017500000000000011361635322032316 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/basic-repository/src/assemble/bin.xml0000644000175000017500000000116611162606221033607 0ustar twernertwerner bin dir false repo test junit:junit maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/massembly-196/0000755000175000017500000000000011361635322026747 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/massembly-196/pom.xml0000644000175000017500000000304611065015032030256 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 massembly-196 jar junit junit 3.8.1 test org.apache.maven.plugins maven-jar-plugin 2.1 org.apache.maven.plugins maven-surefire-plugin 2.3 maven-assembly-plugin src/main/assembly/bin.xml single-assembly package single maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/massembly-196/goals.txt0000644000175000017500000000001611065015032030601 0ustar twernertwernerclean package maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/massembly-196/verify.bsh0000644000175000017500000000135611066772063030764 0ustar twernertwernerimport java.io.File; File jarPlugin = new File( basedir, "target/massembly-196-1-bin/repo/org/apache/maven/plugins/maven-jar-plugin/2.0/maven-jar-plugin-2.0.jar" ); File surefirePlugin = new File( basedir, "target/massembly-196-1-bin/repo/org/apache/maven/plugins/maven-surefire-plugin/2.3/maven-surefire-plugin-2.3.jar" ); if ( !jarPlugin.exists() ) { System.out.println( "Cannot find jar plugin at: " + jarPlugin ); System.out.println( "jar plugin should have been relocated to version 2.0" ); } if ( !surefirePlugin.exists() ) { System.out.println( "Cannot find surefire plugin at: " + surefirePlugin ); System.out.println( "surefire plugin should NOT have been relocated to 2.0" ); } return jarPlugin.exists() && surefirePlugin.exists(); maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/massembly-196/src/0000755000175000017500000000000011361635322027536 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/massembly-196/src/main/0000755000175000017500000000000011361635322030462 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/massembly-196/src/main/java/0000755000175000017500000000000011361635322031403 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/massembly-196/src/main/java/test/0000755000175000017500000000000011361635322032362 5ustar twernertwerner././@LongLink0000000000000000000000000000014700000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/massembly-196/src/main/java/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/massembly-196/src/main/java/test/App.ja0000644000175000017500000000024711123544663033424 0ustar twernertwernerpackage test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/massembly-196/src/main/assembly/0000755000175000017500000000000011361635322032301 5ustar twernertwerner././@LongLink0000000000000000000000000000014500000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/massembly-196/src/main/assembly/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/massembly-196/src/main/assembly/bin.xml0000644000175000017500000000155511162606221033574 0ustar twernertwerner bin dir false true repo org.apache.maven.plugins 2.0 maven-surefire-plugin maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/0000755000175000017500000000000011361635322031663 5ustar twernertwernermaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/pom.xml0000644000175000017500000000120010662710466033177 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test it-project-parent 1 org.apache.maven.plugin.assembly.test repo-with-snapshot-parents pom 1-SNAPSHOT child maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/0000755000175000017500000000000011361635322032746 5ustar twernertwerner././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/remote-repository/maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/remote0000755000175000017500000000000011361635321034161 5ustar twernertwerner././@LongLink0000000000000000000000000000016500000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/remote-repository/org/maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/remote0000755000175000017500000000000011361635321034161 5ustar twernertwerner././@LongLink0000000000000000000000000000017600000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/remote-repository/org/codehaus/maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/remote0000755000175000017500000000000011361635321034161 5ustar twernertwerner././@LongLink0000000000000000000000000000020500000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/remote-repository/org/codehaus/plexus/maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/remote0000755000175000017500000000000011361635321034161 5ustar twernertwerner././@LongLink0000000000000000000000000000021400000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/remote-repository/org/codehaus/plexus/plexus/maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/remote0000755000175000017500000000000011361635321034161 5ustar twernertwerner././@LongLink0000000000000000000000000000022300000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/remote-repository/org/codehaus/plexus/plexus/1.0.11/maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/remote0000755000175000017500000000000011361635321034161 5ustar twernertwerner././@LongLink0000000000000000000000000000024400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/remote-repository/org/codehaus/plexus/plexus/1.0.11/plexus-1.0.11.pommaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/remote0000644000175000017500000002141110645704055034167 0ustar twernertwerner 4.0.0 org.codehaus.plexus plexus pom Plexus 1.0.11 mail
    dev@plexus.codehaus.org
    irc irc.codehaus.org 6667 #plexus
    2001 The Apache Software License, Version 2.0 http://www.apache.org/licenses/LICENSE-2.0.txt repo Plexus User List http://xircles.codehaus.org/manage_email/user%40plexus.codehaus.org http://xircles.codehaus.org/manage_email/user%40plexus.codehaus.org http://archive.plexus.codehaus.org/user Plexus Developer List http://xircles.codehaus.org/manage_email/dev%40plexus.codehaus.org http://xircles.codehaus.org/manage_email/dev%40plexus.codehaus.org http://archive.plexus.codehaus.org/dev Plexus Announce List http://xircles.codehaus.org/manage_email/announce%40plexus.codehaus.org http://xircles.codehaus.org/manage_email/announce%40plexus.codehaus.org http://archive.plexus.codehaus.org/announce Plexus Commit List http://xircles.codehaus.org/manage_email/scm%40plexus.codehaus.org http://xircles.codehaus.org/manage_email/scm%40plexus.codehaus.org http://archive.plexus.codehaus.org/scm JIRA http://jira.codehaus.org/browse/PLX codehaus.org Plexus Central Repository dav:https://dav.codehaus.org/repository/plexus codehaus.org Plexus Central Development Repository dav:https://dav.codehaus.org/snapshots.repository/plexus codehaus.org dav:https://dav.codehaus.org/plexus codehaus.snapshots Codehaus Snapshot Development Repository http://snapshots.repository.codehaus.org false jvanzyl Jason van Zyl jason@maven.org Developer Release Manager kaz Pete Kazmier Developer jtaylor James Taylor james@jamestaylor.org Developer dandiep Dan Diephouse dan@envoisolutions.com Envoi solutions Developer kasper Kasper Nielsen apache@kav.dk Developer bwalding Ben Walding bwalding@codehaus.org Walding Consulting Services Developer mhw Mark Wilkinson mhw@kremvax.net Developer michal Michal Maczka mmaczka@interia.pl Developer evenisse Emmanuel Venisse evenisse@codehaus.org Developer Trygve Laugstol trygvis trygvis@codehaus.org Developer Kenney Westerhof kenney kenney@codehaus.org Developer Carlos Sanchez carlos carlos@codehaus.org Developer Brett Porter brett brett@codehaus.org Developer John Casey jdcasey jdcasey@codehaus.org Developer Andrew Williams handyande andy@handyande.co.uk Developer Rahul Thakur rahul rahul.thakur.xdev@gmail.com Developer Joakim Erdfelt joakime joakim@erdfelt.com Developer Olivier Lamy olamy olamy@codehaus.org Developer junit junit 3.8.1 test scm:svn:http://svn.codehaus.org/plexus/pom/trunk/ scm:svn:https://svn.codehaus.org/plexus/pom/trunk/ http://fisheye.codehaus.org/browse/plexus/pom/trunk/ Codehaus http://www.codehaus.org/ org.apache.maven.plugins maven-compiler-plugin 1.4 1.4 org.apache.maven.wagon wagon-webdav 1.0-beta-2 maven-release-plugin deploy
    ././@LongLink0000000000000000000000000000022200000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/remote-repository/org/codehaus/plexus/plexus-utils/maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/remote0000755000175000017500000000000011361635321034161 5ustar twernertwerner././@LongLink0000000000000000000000000000024100000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/remote-repository/org/codehaus/plexus/plexus-utils/1.4.3-SNAPSHOT/maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/remote0000755000175000017500000000000011361635322034162 5ustar twernertwerner././@LongLink0000000000000000000000000000030000000000000011556 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/remote-repository/org/codehaus/plexus/plexus-utils/1.4.3-SNAPSHOT/plexus-utils-1.4.3-SNAPSHOT.pommaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/remote0000644000175000017500000000433210645704055034172 0ustar twernertwerner plexus org.codehaus.plexus 1.0.11 ../pom/pom.xml 4.0.0 plexus-utils Plexus Common Utilities 1.4.3-SNAPSHOT http://plexus.codehaus.org/plexus-utils maven-compiler-plugin 1.3 1.3 maven-surefire-plugin true org/codehaus/plexus/util/FileBasedTestCase.java **/Test*.java JAVA_HOME ${JAVA_HOME} M2_HOME ${M2_HOME} scm:svn:http://svn.codehaus.org/plexus/plexus-utils/trunk/ scm:svn:https://svn.codehaus.org/plexus/plexus-utils/trunk http://fisheye.codehaus.org/browse/plexus/plexus-utils/trunk/ maven-javadoc-plugin maven-jxr-plugin ././@LongLink0000000000000000000000000000014600000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/pom.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/pom.xm0000644000175000017500000000275011052376133034112 0ustar twernertwerner 4.0.0 org.apache.maven.plugin.assembly.test repo-with-snapshot-parents 1-SNAPSHOT child jar my.remote file://${basedir}/remote-repository org.codehaus.plexus plexus-utils 1.4.3 junit junit 3.8.1 test maven-assembly-plugin src/assemble/bin.xml assembly assembly package single maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/src/0000755000175000017500000000000011361635321033534 5ustar twernertwerner././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/src/test/maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/src/te0000755000175000017500000000000011361635321034065 5ustar twernertwerner././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/src/test/java/maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/src/te0000755000175000017500000000000011361635321034065 5ustar twernertwerner././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/src/test/java/org/maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/src/te0000755000175000017500000000000011361635321034065 5ustar twernertwerner././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/src/test/java/org/apache/maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/src/te0000755000175000017500000000000011361635321034065 5ustar twernertwerner././@LongLink0000000000000000000000000000017600000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/src/test/java/org/apache/maven/maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/src/te0000755000175000017500000000000011361635321034065 5ustar twernertwerner././@LongLink0000000000000000000000000000020500000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/src/test/java/org/apache/maven/plugin/maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/src/te0000755000175000017500000000000011361635321034065 5ustar twernertwerner././@LongLink0000000000000000000000000000021600000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/src/test/java/org/apache/maven/plugin/assembly/maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/src/te0000755000175000017500000000000011361635321034065 5ustar twernertwerner././@LongLink0000000000000000000000000000022300000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/src/test/java/org/apache/maven/plugin/assembly/test/maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/src/te0000755000175000017500000000000011361635321034065 5ustar twernertwerner././@LongLink0000000000000000000000000000023700000000000011567 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/src/test/java/org/apache/maven/plugin/assembly/test/AppTest.javamaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/src/te0000644000175000017500000000123111123544663034070 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.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 ); } } ././@LongLink0000000000000000000000000000015000000000000011561 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/src/main/maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/src/ma0000755000175000017500000000000011361635321034052 5ustar twernertwerner././@LongLink0000000000000000000000000000015500000000000011566 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/src/main/java/maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/src/ma0000755000175000017500000000000011361635321034052 5ustar twernertwerner././@LongLink0000000000000000000000000000016100000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/src/main/java/org/maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/src/ma0000755000175000017500000000000011361635321034052 5ustar twernertwerner././@LongLink0000000000000000000000000000017000000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/src/main/java/org/apache/maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/src/ma0000755000175000017500000000000011361635321034052 5ustar twernertwerner././@LongLink0000000000000000000000000000017600000000000011571 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/src/main/java/org/apache/maven/maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/src/ma0000755000175000017500000000000011361635321034052 5ustar twernertwerner././@LongLink0000000000000000000000000000020500000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/src/main/java/org/apache/maven/plugin/maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/src/ma0000755000175000017500000000000011361635321034052 5ustar twernertwerner././@LongLink0000000000000000000000000000021600000000000011564 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/src/main/java/org/apache/maven/plugin/assembly/maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/src/ma0000755000175000017500000000000011361635321034052 5ustar twernertwerner././@LongLink0000000000000000000000000000022300000000000011562 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/src/main/java/org/apache/maven/plugin/assembly/test/maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/src/ma0000755000175000017500000000000011361635321034052 5ustar twernertwerner././@LongLink0000000000000000000000000000023300000000000011563 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/src/main/java/org/apache/maven/plugin/assembly/test/App.javamaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/src/ma0000644000175000017500000000031011123544663034052 0ustar twernertwernerpackage org.apache.maven.plugin.assembly.test; /** * Hello world! * */ public class App { public static void main( String[] args ) { System.out.println( "Hello World!" ); } } ././@LongLink0000000000000000000000000000015400000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/src/assemble/maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/src/as0000755000175000017500000000000011361635321034060 5ustar twernertwerner././@LongLink0000000000000000000000000000016300000000000011565 Lustar rootrootmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/src/assemble/bin.xmlmaven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/child/src/as0000644000175000017500000000116611162606221034062 0ustar twernertwerner bin dir false repo test junit:junit maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/goals.txt0000644000175000017500000000001010645704055033524 0ustar twernertwernerpackage maven-assembly-plugin-2.2~beta5/src/it/projects/repositories/repo-with-snapshot-parents/verify.bsh0000644000175000017500000000206011066772063033671 0ustar twernertwernerimport java.io.*; File junitJar = new File( basedir, "child/target/assembly-bin/repo/junit/junit/3.8.1/junit-3.8.1.jar" ); boolean junitExists = junitJar.exists(); File plexusUtilsJar = new File( basedir, "child/target/assembly-bin/repo/org/codehaus/plexus/plexus-utils/1.4.3-SNAPSHOT/plexus-utils-1.4.3-SNAPSHOT.jar" ); boolean puJarExists = plexusUtilsJar.exists(); File plexusUtilsPom = new File( basedir, "child/target/assembly-bin/repo/org/codehaus/plexus/plexus-utils/1.4.3-SNAPSHOT/plexus-utils-1.4.3-SNAPSHOT.pom" ); boolean puPomExists = plexusUtilsPom.exists(); File plexusPom = new File( basedir, "child/target/assembly-bin/repo/org/codehaus/plexus/plexus/1.0.11/plexus-1.0.11.pom" ); boolean plexusPomExists = plexusPom.exists(); File parentPom = new File( basedir, "child/target/assembly-bin/repo/org/apache/maven/plugin/assembly/test/repo-with-snapshot-parents/1-SNAPSHOT/repo-with-snapshot-parents-1-SNAPSHOT.pom" ); boolean plexusPomExists = plexusPom.exists(); return junitExists && puJarExists && puPomExists && plexusPomExists && parentPomExists;