├── .github ├── dependabot.yml ├── release-drafter.yml └── workflows │ ├── maven.yml │ └── release-drafter.yml ├── .gitignore ├── LICENSE.txt ├── README.md ├── appassembler-booter ├── LICENSE.txt ├── pom.xml └── src │ ├── main │ └── java │ │ └── org │ │ └── codehaus │ │ └── mojo │ │ └── appassembler │ │ └── booter │ │ └── AppassemblerBooter.java │ └── test │ ├── java │ └── org │ │ └── codehaus │ │ └── mojo │ │ └── appassembler │ │ └── booter │ │ ├── AppassemblerBooterTest.java │ │ ├── DummyMain.java │ │ └── DummyMainWithArgs.java │ └── resources │ └── org │ └── codehaus │ └── mojo │ └── appassembler │ └── booter │ ├── app.xml │ ├── appWithArgs.xml │ └── largeApp.xml ├── appassembler-examples ├── LICENSE.txt ├── appassembler-example-booter │ ├── pom.xml │ └── src │ │ └── main │ │ ├── assembly │ │ └── bin.xml │ │ └── java │ │ └── org │ │ └── codehaus │ │ └── mojo │ │ └── appassembler │ │ └── example │ │ └── helloworld │ │ └── HelloWorld.java ├── appassembler-example-helloworld │ ├── pom.xml │ └── src │ │ └── main │ │ └── java │ │ └── org │ │ └── codehaus │ │ └── mojo │ │ └── appassembler │ │ └── example │ │ └── helloworld │ │ └── HelloWorld.java ├── appassembler-example-jsw-simple │ ├── pom.xml │ └── src │ │ └── main │ │ ├── assembly │ │ └── bin.xml │ │ ├── java │ │ └── SampleJswApp.java │ │ └── runtime │ │ └── bin │ │ ├── setperm │ │ └── setperm.bat ├── appassembler-example-jsw │ ├── pom.xml │ └── src │ │ └── main │ │ └── conf │ │ └── jetty.xml └── pom.xml ├── appassembler-maven-plugin ├── LICENSE.txt ├── header.txt ├── pom.xml └── src │ ├── it │ ├── MAPPASM-108-DaemonTest │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── codehaus │ │ │ │ └── mojo │ │ │ │ └── appassembler │ │ │ │ └── example │ │ │ │ └── helloworld │ │ │ │ └── HelloWorld.java │ │ └── verify.groovy │ ├── MAPPASM-108-Test │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── codehaus │ │ │ │ └── mojo │ │ │ │ └── appassembler │ │ │ │ └── example │ │ │ │ └── helloworld │ │ │ │ └── HelloWorld.java │ │ └── verify.groovy │ ├── MAPPASM-145-Test │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── codehaus │ │ │ │ └── mojo │ │ │ │ └── appassembler │ │ │ │ └── example │ │ │ │ └── helloworld │ │ │ │ └── HelloWorld.java │ │ └── verify.groovy │ ├── MAPPASM-152 │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── codehaus │ │ │ │ └── mojo │ │ │ │ └── appassembler │ │ │ │ └── example │ │ │ │ └── helloworld │ │ │ │ └── HelloWorld.java │ │ └── verify.groovy │ ├── MAPPASM-201-filtering │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── setup.groovy │ │ ├── src │ │ │ └── main │ │ │ │ ├── config │ │ │ │ └── config.txt │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── codehaus │ │ │ │ └── mojo │ │ │ │ └── appassembler │ │ │ │ └── example │ │ │ │ └── helloworld │ │ │ │ └── HelloWorld.java │ │ └── verify.groovy │ ├── MAPPASM-201-no-filtering │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── setup.groovy │ │ ├── src │ │ │ └── main │ │ │ │ ├── config │ │ │ │ └── config.txt │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── codehaus │ │ │ │ └── mojo │ │ │ │ └── appassembler │ │ │ │ └── example │ │ │ │ └── helloworld │ │ │ │ └── HelloWorld.java │ │ └── verify.groovy │ ├── MAPPASM-205 │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── codehaus │ │ │ │ └── mojo │ │ │ │ └── appassembler │ │ │ │ └── example │ │ │ │ └── helloworld │ │ │ │ └── HelloWorld.java │ │ └── verify.groovy │ ├── MAPPASM-213-extra-dirs │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── codehaus │ │ │ │ └── mojo │ │ │ │ └── appassembler │ │ │ │ └── example │ │ │ │ └── helloworld │ │ │ │ └── HelloWorld.java │ │ └── verify.groovy │ ├── MAPPASM-213-no-extra-dirs │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── codehaus │ │ │ │ └── mojo │ │ │ │ └── appassembler │ │ │ │ └── example │ │ │ │ └── helloworld │ │ │ │ └── HelloWorld.java │ │ └── verify.groovy │ ├── MAPPASM-96-2 │ │ ├── invoker.properties │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ └── java │ │ │ └── org │ │ │ └── codehaus │ │ │ └── mojo │ │ │ └── appassembler │ │ │ └── example │ │ │ └── helloworld │ │ │ └── HelloWorld.java │ ├── MAPPASM-96-3 │ │ ├── invoker.properties │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ └── java │ │ │ └── org │ │ │ └── codehaus │ │ │ └── mojo │ │ │ └── appassembler │ │ │ └── example │ │ │ └── helloworld │ │ │ └── HelloWorld.java │ ├── MAPPASM-96 │ │ ├── invoker.properties │ │ ├── pom.xml │ │ └── src │ │ │ └── main │ │ │ └── java │ │ │ └── org │ │ │ └── codehaus │ │ │ └── mojo │ │ │ └── appassembler │ │ │ └── example │ │ │ └── helloworld │ │ │ └── HelloWorld.java │ ├── assembleDirectoryTest │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── codehaus │ │ │ │ └── mojo │ │ │ │ └── appassembler │ │ │ │ └── example │ │ │ │ └── helloworld │ │ │ │ └── HelloWorld.java │ │ └── verify.groovy │ ├── asterikClassPathTest │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── codehaus │ │ │ │ └── mojo │ │ │ │ └── appassembler │ │ │ │ └── example │ │ │ │ └── helloworld │ │ │ │ └── HelloWorld.java │ │ └── verify.groovy │ ├── asterikClassPathWrongConfigurationTest │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── codehaus │ │ │ │ └── mojo │ │ │ │ └── appassembler │ │ │ │ └── example │ │ │ │ └── helloworld │ │ │ │ └── HelloWorld.java │ │ └── verify.groovy │ ├── basicTest │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── codehaus │ │ │ │ └── mojo │ │ │ │ └── appassembler │ │ │ │ └── example │ │ │ │ └── helloworld │ │ │ │ └── HelloWorld.java │ │ └── verify.groovy │ ├── binFileExtensionTest │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── codehaus │ │ │ │ └── mojo │ │ │ │ └── appassembler │ │ │ │ └── example │ │ │ │ └── helloworld │ │ │ │ └── HelloWorld.java │ │ └── verify.groovy │ ├── binFolderTest │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── codehaus │ │ │ │ └── mojo │ │ │ │ └── appassembler │ │ │ │ └── example │ │ │ │ └── helloworld │ │ │ │ └── HelloWorld.java │ │ └── verify.groovy │ ├── booterLicenseHeaderTest │ │ ├── invoker.properties │ │ ├── license-header-01.txt │ │ ├── license-header.txt │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── codehaus │ │ │ │ └── mojo │ │ │ │ └── appassembler │ │ │ │ └── example │ │ │ │ └── helloworld │ │ │ │ └── HelloWorld.java │ │ └── verify.groovy │ ├── configurationDirectoryCopyDaemonTest │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ ├── config │ │ │ │ ├── subdir │ │ │ │ │ └── test.txt │ │ │ │ ├── subdir1 │ │ │ │ │ ├── result.gf │ │ │ │ │ ├── subdir │ │ │ │ │ │ └── test.txt │ │ │ │ │ └── test.txt │ │ │ │ └── test.txt │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── codehaus │ │ │ │ └── mojo │ │ │ │ └── appassembler │ │ │ │ └── example │ │ │ │ └── helloworld │ │ │ │ └── HelloWorld.java │ │ └── verify.groovy │ ├── configurationDirectoryCopyTest │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ ├── config │ │ │ │ ├── subdir │ │ │ │ │ └── test.txt │ │ │ │ ├── subdir1 │ │ │ │ │ ├── result.gf │ │ │ │ │ ├── subsubdir │ │ │ │ │ │ └── test.txt │ │ │ │ │ └── test.txt │ │ │ │ └── test.txt │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── codehaus │ │ │ │ └── mojo │ │ │ │ └── appassembler │ │ │ │ └── example │ │ │ │ └── helloworld │ │ │ │ └── HelloWorld.java │ │ └── verify.groovy │ ├── configurationDirectoryInClasspathTest │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── codehaus │ │ │ │ └── mojo │ │ │ │ └── appassembler │ │ │ │ └── example │ │ │ │ └── helloworld │ │ │ │ └── HelloWorld.java │ │ └── verify.groovy │ ├── configurationDirectoryTest │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── codehaus │ │ │ │ └── mojo │ │ │ │ └── appassembler │ │ │ │ └── example │ │ │ │ └── helloworld │ │ │ │ └── HelloWorld.java │ │ └── verify.groovy │ ├── configurationSourceDirectoryTest │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ ├── config │ │ │ │ └── supplemental-config.properties │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── codehaus │ │ │ │ └── mojo │ │ │ │ └── appassembler │ │ │ │ └── example │ │ │ │ └── helloworld │ │ │ │ └── HelloWorld.java │ │ └── verify.groovy │ ├── customTemplates │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── templates │ │ │ │ ├── unixJswScriptTemplate │ │ │ │ ├── unixScriptTemplate │ │ │ │ ├── windowsJswScriptTemplate │ │ │ │ └── windowsScriptTemplate │ │ └── verify.groovy │ ├── daemonAppLongNameTest │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ ├── main │ │ │ │ ├── java │ │ │ │ │ └── org │ │ │ │ │ │ └── codehaus │ │ │ │ │ │ └── mojo │ │ │ │ │ │ └── appassembler │ │ │ │ │ │ └── example │ │ │ │ │ │ └── helloworld │ │ │ │ │ │ └── HelloWorld.java │ │ │ │ └── resources │ │ │ │ │ └── log4j.properties │ │ │ └── pre-wrapper │ │ │ │ └── snippet.txt │ │ └── verify.groovy │ ├── daemonAppNameTest │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ ├── main │ │ │ │ ├── java │ │ │ │ │ └── org │ │ │ │ │ │ └── codehaus │ │ │ │ │ │ └── mojo │ │ │ │ │ │ └── appassembler │ │ │ │ │ │ └── example │ │ │ │ │ │ └── helloworld │ │ │ │ │ │ └── HelloWorld.java │ │ │ │ └── resources │ │ │ │ │ └── log4j.properties │ │ │ └── pre-wrapper │ │ │ │ └── snippet.txt │ │ └── verify.groovy │ ├── daemonConfigurationTest │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ ├── java │ │ │ │ └── org │ │ │ │ │ └── codehaus │ │ │ │ │ └── mojo │ │ │ │ │ └── appassembler │ │ │ │ │ └── example │ │ │ │ │ └── helloworld │ │ │ │ │ └── HelloWorld.java │ │ │ │ └── resources │ │ │ │ └── log4j.properties │ │ └── verify.groovy │ ├── daemonMultipleTest │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ ├── java │ │ │ │ └── org │ │ │ │ │ └── codehaus │ │ │ │ │ └── mojo │ │ │ │ │ └── appassembler │ │ │ │ │ └── example │ │ │ │ │ └── helloworld │ │ │ │ │ └── HelloWorld.java │ │ │ │ └── resources │ │ │ │ └── log4j.properties │ │ └── verify.groovy │ ├── daemonRepositoryLayoutTest │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── codehaus │ │ │ │ └── mojo │ │ │ │ └── appassembler │ │ │ │ └── example │ │ │ │ └── helloworld │ │ │ │ └── HelloWorld.java │ │ └── verify.groovy │ ├── daemonScriptNameTest │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ ├── java │ │ │ │ └── org │ │ │ │ │ └── codehaus │ │ │ │ │ └── mojo │ │ │ │ │ └── appassembler │ │ │ │ │ └── example │ │ │ │ │ └── helloworld │ │ │ │ │ └── HelloWorld.java │ │ │ │ └── resources │ │ │ │ └── log4j.properties │ │ └── verify.groovy │ ├── daemonTest │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ ├── main │ │ │ │ ├── java │ │ │ │ │ └── org │ │ │ │ │ │ └── codehaus │ │ │ │ │ │ └── mojo │ │ │ │ │ │ └── appassembler │ │ │ │ │ │ └── example │ │ │ │ │ │ └── helloworld │ │ │ │ │ │ └── HelloWorld.java │ │ │ │ └── resources │ │ │ │ │ └── log4j.properties │ │ │ └── pre-wrapper │ │ │ │ └── snippet.txt │ │ └── verify.groovy │ ├── daemonUseWildcardClassPathTest │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ ├── java │ │ │ │ └── org │ │ │ │ │ └── codehaus │ │ │ │ │ └── mojo │ │ │ │ │ └── appassembler │ │ │ │ │ └── example │ │ │ │ │ └── helloworld │ │ │ │ │ └── HelloWorld.java │ │ │ │ └── resources │ │ │ │ └── log4j.properties │ │ └── verify.groovy │ ├── daemonWrapperExecPrefixNameTest │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── codehaus │ │ │ │ └── mojo │ │ │ │ └── appassembler │ │ │ │ └── example │ │ │ │ └── helloworld │ │ │ │ └── HelloWorld.java │ │ └── verify.groovy │ ├── daemonWrapperLogFileTest │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ ├── main │ │ │ │ ├── java │ │ │ │ │ └── org │ │ │ │ │ │ └── codehaus │ │ │ │ │ │ └── mojo │ │ │ │ │ │ └── appassembler │ │ │ │ │ │ └── example │ │ │ │ │ │ └── helloworld │ │ │ │ │ │ └── HelloWorld.java │ │ │ │ └── resources │ │ │ │ │ └── log4j.properties │ │ │ └── pre-wrapper │ │ │ │ └── snippet.txt │ │ └── verify.groovy │ ├── daemonWrapperMainTest │ │ ├── invoker.properties │ │ ├── pom.xml │ │ └── verify.groovy │ ├── daemonWrapperManagerTest │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ ├── java │ │ │ │ └── org │ │ │ │ │ └── codehaus │ │ │ │ │ └── mojo │ │ │ │ │ └── appassembler │ │ │ │ │ └── example │ │ │ │ │ └── helloworld │ │ │ │ │ ├── HelloWorld.java │ │ │ │ │ └── MyApplication.java │ │ │ │ └── resources │ │ │ │ └── log4j.properties │ │ └── verify.groovy │ ├── environmentSetupTest │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── codehaus │ │ │ │ └── mojo │ │ │ │ └── appassembler │ │ │ │ └── example │ │ │ │ └── helloworld │ │ │ │ └── HelloWorld.java │ │ └── verify.groovy │ ├── generateRepositoryTest │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── codehaus │ │ │ │ └── mojo │ │ │ │ └── appassembler │ │ │ │ └── example │ │ │ │ └── helloworld │ │ │ │ └── HelloWorld.java │ │ └── verify.groovy │ ├── genericDaemonGeneratorTest │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── codehaus │ │ │ │ └── mojo │ │ │ │ └── appassembler │ │ │ │ └── example │ │ │ │ └── helloworld │ │ │ │ └── HelloWorld.java │ │ └── verify.groovy │ ├── outputFileNameMappingClasspath │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── codehaus │ │ │ │ └── mojo │ │ │ │ └── appassembler │ │ │ │ └── example │ │ │ │ └── helloworld │ │ │ │ └── HelloWorld.java │ │ └── verify.groovy │ ├── outputFileNameMappingClasspathBooter │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── codehaus │ │ │ │ └── mojo │ │ │ │ └── appassembler │ │ │ │ └── example │ │ │ │ └── helloworld │ │ │ │ └── HelloWorld.java │ │ └── verify.groovy │ ├── outputFileNameMappingClasspathJSW │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── codehaus │ │ │ │ └── mojo │ │ │ │ └── appassembler │ │ │ │ └── example │ │ │ │ └── helloworld │ │ │ │ └── HelloWorld.java │ │ └── verify.groovy │ ├── outputFileNameMappingFlatRepository │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── codehaus │ │ │ │ └── mojo │ │ │ │ └── appassembler │ │ │ │ └── example │ │ │ │ └── helloworld │ │ │ │ └── HelloWorld.java │ │ └── verify.groovy │ ├── outputFileNameMappingRepository │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── codehaus │ │ │ │ └── mojo │ │ │ │ └── appassembler │ │ │ │ └── example │ │ │ │ └── helloworld │ │ │ │ └── HelloWorld.java │ │ └── verify.groovy │ ├── platformsTest │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── codehaus │ │ │ │ └── mojo │ │ │ │ └── appassembler │ │ │ │ └── example │ │ │ │ └── helloworld │ │ │ │ └── HelloWorld.java │ │ └── verify.groovy │ ├── preAssembleDirectoryCopyDaemonTest │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ ├── java │ │ │ │ └── org │ │ │ │ │ └── codehaus │ │ │ │ │ └── mojo │ │ │ │ │ └── appassembler │ │ │ │ │ └── example │ │ │ │ │ └── helloworld │ │ │ │ │ └── HelloWorld.java │ │ │ │ └── runtime │ │ │ │ ├── subdir │ │ │ │ └── test.txt │ │ │ │ ├── subdir1 │ │ │ │ ├── result.gf │ │ │ │ ├── subdir │ │ │ │ │ └── test.txt │ │ │ │ └── test.txt │ │ │ │ └── test.txt │ │ └── verify.groovy │ ├── preAssembleDirectoryCopyTest │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ ├── java │ │ │ │ └── org │ │ │ │ │ └── codehaus │ │ │ │ │ └── mojo │ │ │ │ │ └── appassembler │ │ │ │ │ └── example │ │ │ │ │ └── helloworld │ │ │ │ │ └── HelloWorld.java │ │ │ │ └── runtime │ │ │ │ ├── subdir │ │ │ │ └── test.txt │ │ │ │ ├── subdir1 │ │ │ │ ├── result.gf │ │ │ │ ├── subsubdir │ │ │ │ │ └── test.txt │ │ │ │ └── test.txt │ │ │ │ └── test.txt │ │ └── verify.groovy │ ├── preCleanTest │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── codehaus │ │ │ │ └── mojo │ │ │ │ └── appassembler │ │ │ │ └── example │ │ │ │ └── helloworld │ │ │ │ └── HelloWorld.java │ │ └── verify.groovy │ ├── programCLIArgumentsTest │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── codehaus │ │ │ │ └── mojo │ │ │ │ └── appassembler │ │ │ │ └── example │ │ │ │ └── helloworld │ │ │ │ └── HelloWorld.java │ │ └── verify.groovy │ ├── programCLIArgumentsWithExpandingTest │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── codehaus │ │ │ │ └── mojo │ │ │ │ └── appassembler │ │ │ │ └── example │ │ │ │ └── helloworld │ │ │ │ └── HelloWorld.java │ │ └── verify.groovy │ ├── programJvmArgumentsTest │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── codehaus │ │ │ │ └── mojo │ │ │ │ └── appassembler │ │ │ │ └── example │ │ │ │ └── helloworld │ │ │ │ └── HelloWorld.java │ │ └── verify.groovy │ ├── programLicenseHeaderTest │ │ ├── invoker.properties │ │ ├── license-header-01.txt │ │ ├── license-header.txt │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── codehaus │ │ │ │ └── mojo │ │ │ │ └── appassembler │ │ │ │ └── example │ │ │ │ └── helloworld │ │ │ │ └── HelloWorld.java │ │ └── verify.groovy │ ├── programNameDuplicateTest │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── codehaus │ │ │ │ └── mojo │ │ │ │ └── appassembler │ │ │ │ └── example │ │ │ │ └── helloworld │ │ │ │ └── HelloWorld.java │ │ └── verify.groovy │ ├── repositoryLayoutLegacyTest │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── codehaus │ │ │ │ └── mojo │ │ │ │ └── appassembler │ │ │ │ └── example │ │ │ │ └── helloworld │ │ │ │ └── HelloWorld.java │ │ └── verify.groovy │ ├── repositoryLayoutTest │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── codehaus │ │ │ │ └── mojo │ │ │ │ └── appassembler │ │ │ │ └── example │ │ │ │ └── helloworld │ │ │ │ └── HelloWorld.java │ │ └── verify.groovy │ ├── settings.xml │ ├── shellDaemonGeneratorTest │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── codehaus │ │ │ │ └── mojo │ │ │ │ └── appassembler │ │ │ │ └── example │ │ │ │ └── helloworld │ │ │ │ └── HelloWorld.java │ │ └── verify.groovy │ ├── systemDependencyTest │ │ ├── invoker.properties │ │ ├── lib │ │ │ └── test-1.0.0.jar │ │ ├── pom.xml │ │ ├── src │ │ │ └── main │ │ │ │ └── java │ │ │ │ └── org │ │ │ │ └── codehaus │ │ │ │ └── mojo │ │ │ │ └── appassembler │ │ │ │ └── example │ │ │ │ └── helloworld │ │ │ │ └── HelloWorld.java │ │ └── verify.groovy │ ├── useTimestampInSnapshotFileNameTest │ │ ├── invoker.properties │ │ ├── pom.xml │ │ └── verify.groovy │ └── wildcardClassPath │ │ ├── invoker.properties │ │ ├── pom.xml │ │ ├── src │ │ └── main │ │ │ └── java │ │ │ └── org │ │ │ └── codehaus │ │ │ └── mojo │ │ │ └── appassembler │ │ │ └── example │ │ │ └── helloworld │ │ │ └── HelloWorld.java │ │ └── verify.groovy │ ├── main │ ├── java │ │ └── org │ │ │ └── codehaus │ │ │ └── mojo │ │ │ └── appassembler │ │ │ ├── AbstractAppAssemblerMojo.java │ │ │ ├── AbstractScriptGeneratorMojo.java │ │ │ ├── AssembleMojo.java │ │ │ ├── CreateRepositoryMojo.java │ │ │ ├── Daemon.java │ │ │ ├── GenerateDaemonsMojo.java │ │ │ ├── GeneratorConfiguration.java │ │ │ ├── JvmSettings.java │ │ │ ├── Program.java │ │ │ ├── daemon │ │ │ ├── DaemonGenerationRequest.java │ │ │ ├── DaemonGenerator.java │ │ │ ├── DaemonGeneratorException.java │ │ │ ├── DaemonGeneratorService.java │ │ │ ├── DefaultDaemonGeneratorService.java │ │ │ ├── booter │ │ │ │ ├── AbstractBooterDaemonGenerator.java │ │ │ │ ├── UnixBooterDaemonGenerator.java │ │ │ │ └── WindowsBooterDaemonGenerator.java │ │ │ ├── daemontools │ │ │ │ └── DaemonToolsDaemonGenerator.java │ │ │ ├── generic │ │ │ │ └── GenericDaemonGenerator.java │ │ │ ├── jsw │ │ │ │ └── JavaServiceWrapperDaemonGenerator.java │ │ │ ├── merge │ │ │ │ ├── DaemonMerger.java │ │ │ │ └── DefaultDaemonMerger.java │ │ │ ├── script │ │ │ │ ├── AbstactScriptDaemonGenerator.java │ │ │ │ ├── DefaultScriptGenerator.java │ │ │ │ ├── Platform.java │ │ │ │ └── ScriptGenerator.java │ │ │ └── standard │ │ │ │ ├── UnixScriptDaemonGenerator.java │ │ │ │ └── WindowsScriptDaemonGenerator.java │ │ │ ├── repository │ │ │ └── FlatRepositoryLayout.java │ │ │ └── util │ │ │ ├── ArtifactUtils.java │ │ │ ├── DependencyFactory.java │ │ │ ├── FileFilterHelper.java │ │ │ └── FormattedProperties.java │ ├── javadoc │ │ └── org │ │ │ └── codehaus │ │ │ └── mojo │ │ │ └── appassembler │ │ │ └── daemon │ │ │ └── booter │ │ │ └── package.html │ ├── patches │ │ ├── AppCommand.bat.in │ │ └── sh.script.in │ └── resources │ │ └── org │ │ └── codehaus │ │ └── mojo │ │ └── appassembler │ │ ├── daemon │ │ ├── daemontools │ │ │ ├── env │ │ │ │ ├── JAVA_HOME │ │ │ │ └── USER │ │ │ └── run.sh.template │ │ └── script │ │ │ ├── .gitattributes │ │ │ ├── default-license-header.txt │ │ │ ├── unixBinTemplate │ │ │ └── windowsBinTemplate │ │ └── template │ │ ├── unixJswScriptTemplateSample │ │ ├── unixScriptTemplateSample │ │ ├── windowsJswScriptTemplateSample │ │ └── windowsScriptTemplateSample │ ├── site │ ├── apt │ │ ├── example-jsw-linux.apt.vm │ │ ├── index.apt │ │ ├── jsw-license.apt │ │ ├── usage-booter-running.apt.vm │ │ ├── usage-booter-structure.apt.vm │ │ ├── usage-booter.apt.vm │ │ ├── usage-daemon-arguments.apt.vm │ │ ├── usage-daemon-generatorconfig.apt.vm │ │ ├── usage-daemon-jvmsettings.apt.vm │ │ ├── usage-daemon-logs.apt.vm │ │ ├── usage-daemon-platforms.apt.vm │ │ ├── usage-daemon-scripts.apt.vm │ │ ├── usage-daemon-structure.apt.vm │ │ ├── usage-daemon.apt │ │ ├── usage-jsw.apt.vm │ │ ├── usage-program-arguments.apt.vm │ │ ├── usage-program-jvmsettings.apt.vm │ │ ├── usage-program-license.apt.vm │ │ ├── usage-program-platform.apt.vm │ │ ├── usage-program-scripts.apt.vm │ │ ├── usage-program-structure.apt.vm │ │ ├── usage-program.apt.vm │ │ ├── usage-script.apt │ │ └── usage.apt │ ├── fml │ │ └── faq.fml │ └── site.xml │ └── test │ ├── groovy │ └── IntegrationBase.groovy │ ├── java │ └── org │ │ └── codehaus │ │ └── mojo │ │ └── appassembler │ │ ├── AssembleMojoTest.java │ │ ├── FileFilterHelperTest.java │ │ ├── daemon │ │ ├── AbstractDaemonGeneratorTest.java │ │ ├── DaemonGeneratorServiceTest.java │ │ ├── generic │ │ │ └── GenericDaemonGeneratorTest.java │ │ ├── jsw │ │ │ └── JavaServiceWrapperDaemonGeneratorTest.java │ │ └── script │ │ │ ├── PlatformTest.java │ │ │ ├── ScriptGeneratorBackgroundTest.java │ │ │ ├── ScriptGeneratorBaseDirRepoTest.java │ │ │ └── ScriptGeneratorTest.java │ │ └── util │ │ ├── FormattedPropertiesTest.java │ │ └── TestBase.java │ └── resources │ ├── model-1.xml │ ├── model-2.xml │ ├── model-3.xml │ ├── model-4.xml │ ├── org │ └── codehaus │ │ └── mojo │ │ └── appassembler │ │ ├── daemon │ │ ├── booter │ │ │ ├── app │ │ │ └── app.bat │ │ ├── generic │ │ │ └── app.xml │ │ ├── jsw │ │ │ ├── no-generator-configurations-run.bat │ │ │ ├── no-generator-configurations-run.sh │ │ │ ├── no-generator-configurations-wrapper.conf │ │ │ ├── run-1.bat │ │ │ ├── run-1.sh │ │ │ ├── run-14.bat │ │ │ ├── run-14.sh │ │ │ ├── run-8.bat │ │ │ ├── run-8.sh │ │ │ ├── run-9.sh │ │ │ ├── wrapper-1.conf │ │ │ ├── wrapper-13.conf │ │ │ ├── wrapper-6.conf │ │ │ ├── wrapper-7.conf │ │ │ ├── wrapper-8.conf │ │ │ └── wrapper-9.conf │ │ ├── script-basedir-repo │ │ │ ├── .gitattributes │ │ │ ├── expected-basedir-test │ │ │ ├── expected-basedir-test.bat │ │ │ ├── expected-repo-test │ │ │ └── expected-repo-test.bat │ │ └── script │ │ │ ├── .gitattributes │ │ │ ├── background │ │ │ ├── .gitattributes │ │ │ ├── expected-false-showConsoleWindow-test │ │ │ └── expected-false-showConsoleWindow-test.bat │ │ │ ├── expected-test │ │ │ ├── expected-test-endorsed-lib │ │ │ ├── expected-test-endorsed-lib.bat │ │ │ └── expected-test.bat │ │ └── util │ │ ├── adding-property-after-another.properties │ │ ├── adding-property-to-commented-list.properties │ │ ├── adding-property-to-empty-list.properties │ │ ├── adding-property-to-existing-commented-list.properties │ │ ├── adding-property-to-list.properties │ │ ├── adding-property-to-long-commented-list.properties │ │ ├── adding-property-to-long-list.properties │ │ ├── adding-property.properties │ │ ├── changing-property.properties │ │ ├── removing-property-from-existing-commented-list.properties │ │ ├── removing-property.properties │ │ └── test.properties │ ├── project-1 │ ├── descriptor.xml │ └── pom.xml │ ├── project-10 │ ├── descriptor.xml │ └── pom.xml │ ├── project-11 │ ├── descriptor.xml │ └── pom.xml │ ├── project-12 │ ├── descriptor.xml │ └── pom.xml │ ├── project-13 │ ├── descriptor.xml │ └── pom.xml │ ├── project-14 │ ├── descriptor.xml │ └── pom.xml │ ├── project-15 │ ├── descriptor.xml │ └── pom.xml │ ├── project-2 │ └── pom.xml │ ├── project-3 │ └── pom.xml │ ├── project-4 │ ├── descriptor.xml │ └── pom.xml │ ├── project-5 │ ├── descriptor.xml │ └── pom.xml │ ├── project-6 │ ├── descriptor.xml │ └── pom.xml │ ├── project-7 │ ├── descriptor.xml │ └── pom.xml │ ├── project-8 │ ├── descriptor.xml │ └── pom.xml │ └── project-9 │ ├── descriptor.xml │ └── pom.xml ├── appassembler-model ├── LICENSE.txt ├── pom.xml └── src │ └── main │ └── modello │ └── model.xml ├── pom.xml └── src └── site ├── apt └── index.apt └── site.xml /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | updates: 3 | - package-ecosystem: "maven" 4 | directory: "/" 5 | schedule: 6 | interval: "daily" 7 | - package-ecosystem: "github-actions" 8 | directory: "/" 9 | schedule: 10 | interval: "daily" 11 | -------------------------------------------------------------------------------- /.github/release-drafter.yml: -------------------------------------------------------------------------------- 1 | _extends: .github 2 | tag-template: appassembler-$NEXT_MINOR_VERSION 3 | -------------------------------------------------------------------------------- /.github/workflows/maven.yml: -------------------------------------------------------------------------------- 1 | 2 | 3 | # Licensed to the Apache Software Foundation (ASF) under one 4 | # or more contributor license agreements. See the NOTICE file 5 | # distributed with this work for additional information 6 | # regarding copyright ownership. The ASF licenses this file 7 | # to you under the Apache License, Version 2.0 (the 8 | # "License"); you may not use this file except in compliance 9 | # with the License. You may obtain a copy of the License at 10 | # 11 | # http://www.apache.org/licenses/LICENSE-2.0 12 | # 13 | # Unless required by applicable law or agreed to in writing, 14 | # software distributed under the License is distributed on an 15 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 | # KIND, either express or implied. See the License for the 17 | # specific language governing permissions and limitations 18 | # under the License. 19 | 20 | name: GitHub CI 21 | 22 | on: [push, pull_request] 23 | 24 | jobs: 25 | build: 26 | name: Verify 27 | uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v4 28 | with: 29 | jdk-matrix: '["8"]' 30 | ff-jdk: "8" 31 | ff-maven: "3.9.6" # Maven version for fail-fast-build 32 | maven-matrix: '[ "3.6.3", "3.9.6" ]' # Maven versions matrix for verify builds 33 | -------------------------------------------------------------------------------- /.github/workflows/release-drafter.yml: -------------------------------------------------------------------------------- 1 | name: Release Drafter 2 | on: 3 | push: 4 | branches: 5 | - master 6 | jobs: 7 | update_release_draft: 8 | runs-on: ubuntu-latest 9 | steps: 10 | - uses: release-drafter/release-drafter@v6 11 | env: 12 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 13 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | target 2 | .settings 3 | .classpath 4 | .project 5 | pom.xml.versionsBackup 6 | *.iml 7 | *~ 8 | .idea 9 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | 2 | The MIT License 3 | 4 | Copyright 2006-2012 The Codehaus. 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files \(the "Software"\), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE. 23 | -------------------------------------------------------------------------------- /appassembler-booter/LICENSE.txt: -------------------------------------------------------------------------------- 1 | 2 | The MIT License 3 | 4 | Copyright 2006-2012 The Codehaus. 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files \(the "Software"\), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE. 23 | -------------------------------------------------------------------------------- /appassembler-examples/LICENSE.txt: -------------------------------------------------------------------------------- 1 | 2 | The MIT License 3 | 4 | Copyright 2006-2011 The Codehaus. 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files \(the "Software"\), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE. 23 | -------------------------------------------------------------------------------- /appassembler-examples/appassembler-example-booter/src/main/java/org/codehaus/mojo/appassembler/example/helloworld/HelloWorld.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * The MIT License 4 | * 5 | * Copyright 2006-2012 The Codehaus. 6 | * 7 | * Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | * this software and associated documentation files (the "Software"), to deal in 9 | * the Software without restriction, including without limitation the rights to 10 | * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | * of the Software, and to permit persons to whom the Software is furnished to do 12 | * so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included in all 15 | * copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | * SOFTWARE. 24 | */ 25 | package org.codehaus.mojo.appassembler.example.helloworld; 26 | 27 | public class HelloWorld 28 | { 29 | public static void main( String[] args ) 30 | { 31 | System.out.println( "Hello World!" ); 32 | System.out.println( "Number of command line arguments: " + args.length ); 33 | 34 | for ( int i = 0; i < args.length; i++ ) 35 | { 36 | System.out.println( "Argument #" + i + ":" + args[ i ] ); 37 | } 38 | 39 | System.out.println( "basedir: " + System.getProperty( "basedir" ) ); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /appassembler-examples/appassembler-example-helloworld/src/main/java/org/codehaus/mojo/appassembler/example/helloworld/HelloWorld.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * The MIT License 4 | * 5 | * Copyright 2006-2012 The Codehaus. 6 | * 7 | * Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | * this software and associated documentation files (the "Software"), to deal in 9 | * the Software without restriction, including without limitation the rights to 10 | * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | * of the Software, and to permit persons to whom the Software is furnished to do 12 | * so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included in all 15 | * copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | * SOFTWARE. 24 | */ 25 | package org.codehaus.mojo.appassembler.example.helloworld; 26 | 27 | public class HelloWorld 28 | { 29 | public static void main( String[] args ) 30 | { 31 | System.out.println( "Hello World!" ); 32 | System.out.println( "Number of command line arguments: " + args.length ); 33 | 34 | for ( int i = 0; i < args.length; i++ ) 35 | { 36 | System.out.println( "Argument #" + i + ":" + args[ i ] ); 37 | } 38 | 39 | System.out.println( "basedir: " + System.getProperty( "basedir" ) ); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /appassembler-examples/appassembler-example-jsw-simple/src/main/assembly/bin.xml: -------------------------------------------------------------------------------- 1 | 3 | bin 4 | ${appName} 5 | 6 | tar.gz 7 | zip 8 | 9 | false 10 | 11 | 12 | 13 | ${appassembler.directory}/jsw/${appName} 14 | 15 | 0755 16 | 0755 17 | 18 | 19 | ${project.basedir}/src/main/runtime 20 | 21 | 0755 22 | 0755 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /appassembler-examples/appassembler-example-jsw-simple/src/main/java/SampleJswApp.java: -------------------------------------------------------------------------------- 1 | public class SampleJswApp 2 | { 3 | 4 | /** 5 | * @param args 6 | */ 7 | public static void main( String[] args ) 8 | { 9 | 10 | try 11 | { 12 | System.out.println( "Press control-C to terminate" ); 13 | Thread.sleep( 10000000000L ); 14 | } 15 | catch ( Exception e ) 16 | { 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /appassembler-examples/appassembler-example-jsw-simple/src/main/runtime/bin/setperm: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | BASEDIR=`dirname "$0"`/.. 4 | BASEDIR=`(cd "$BASEDIR"; pwd)` 5 | cd "$BASEDIR" 6 | 7 | chmod +x bin/* 8 | chmod +x lib/* 9 | -------------------------------------------------------------------------------- /appassembler-examples/appassembler-example-jsw-simple/src/main/runtime/bin/setperm.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mojohaus/appassembler/39a24403a285455a721f22d5c90e74582bcac0ca/appassembler-examples/appassembler-example-jsw-simple/src/main/runtime/bin/setperm.bat -------------------------------------------------------------------------------- /appassembler-maven-plugin/LICENSE.txt: -------------------------------------------------------------------------------- 1 | 2 | The MIT License 3 | 4 | Copyright 2006-2012 The Codehaus. 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files \(the "Software"\), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE. 23 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/header.txt: -------------------------------------------------------------------------------- 1 | ^package 2 | ^\s*$ 3 | ^/\*\s*$ 4 | ^ \* The MIT License\s*$ 5 | ^ \*\s*$ 6 | ^ \* Copyright \(c\) \d{4}(-\d{4}){0,1}, The Codehaus\s*$ 7 | ^ \*\s*$ 8 | ^ \* Permission is hereby granted, free of charge, to any person obtaining a copy of\s*$ 9 | ^ \* this software and associated documentation files \(the "Software"\), to deal in\s*$ 10 | ^ \* the Software without restriction, including without limitation the rights to\s*$ 11 | ^ \* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\s*$ 12 | ^ \* of the Software, and to permit persons to whom the Software is furnished to do\s*$ 13 | ^ \* so, subject to the following conditions:\s*$ 14 | ^ \*\s*$ 15 | ^ \* The above copyright notice and this permission notice shall be included in all\s*$ 16 | ^ \* copies or substantial portions of the Software\.\s*$ 17 | ^ \*\s*$ 18 | ^ \* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\s*$ 19 | ^ \* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\s*$ 20 | ^ \* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\s*$ 21 | ^ \* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\s*$ 22 | ^ \* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\s*$ 23 | ^ \* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\s*$ 24 | ^ \* SOFTWARE\.\s*$ 25 | ^ \*/\s*$ 26 | ^\s*$ 27 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/MAPPASM-108-DaemonTest/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = MAPPASM-108-Daemon Test 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | 34 | 35 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/MAPPASM-108-DaemonTest/src/main/java/org/codehaus/mojo/appassembler/example/helloworld/HelloWorld.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * The MIT License 4 | * 5 | * Copyright 2006-2012 The Codehaus. 6 | * 7 | * Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | * this software and associated documentation files (the "Software"), to deal in 9 | * the Software without restriction, including without limitation the rights to 10 | * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | * of the Software, and to permit persons to whom the Software is furnished to do 12 | * so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included in all 15 | * copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | * SOFTWARE. 24 | */ 25 | package org.codehaus.mojo.appassembler.example.helloworld; 26 | 27 | public class HelloWorld 28 | { 29 | public static void main( String[] args ) 30 | { 31 | System.out.println( "Hello World!" ); 32 | System.out.println( "Number of command line arguments: " + args.length ); 33 | 34 | for ( int i = 0; i < args.length; i++ ) 35 | { 36 | System.out.println( "Argument #" + i + ":" + args[ i ] ); 37 | } 38 | 39 | System.out.println( "basedir: " + System.getProperty( "basedir" ) ); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/MAPPASM-108-Test/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = Basic Test 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/MAPPASM-108-Test/src/main/java/org/codehaus/mojo/appassembler/example/helloworld/HelloWorld.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * The MIT License 4 | * 5 | * Copyright 2006-2012 The Codehaus. 6 | * 7 | * Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | * this software and associated documentation files (the "Software"), to deal in 9 | * the Software without restriction, including without limitation the rights to 10 | * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | * of the Software, and to permit persons to whom the Software is furnished to do 12 | * so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included in all 15 | * copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | * SOFTWARE. 24 | */ 25 | package org.codehaus.mojo.appassembler.example.helloworld; 26 | 27 | public class HelloWorld 28 | { 29 | public static void main( String[] args ) 30 | { 31 | System.out.println( "Hello World!" ); 32 | System.out.println( "Number of command line arguments: " + args.length ); 33 | 34 | for ( int i = 0; i < args.length; i++ ) 35 | { 36 | System.out.println( "Argument #" + i + ":" + args[ i ] ); 37 | } 38 | 39 | System.out.println( "basedir: " + System.getProperty( "basedir" ) ); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/MAPPASM-145-Test/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = MAPPASM-145-Test 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/MAPPASM-145-Test/src/main/java/org/codehaus/mojo/appassembler/example/helloworld/HelloWorld.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * The MIT License 4 | * 5 | * Copyright 2006-2012 The Codehaus. 6 | * 7 | * Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | * this software and associated documentation files (the "Software"), to deal in 9 | * the Software without restriction, including without limitation the rights to 10 | * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | * of the Software, and to permit persons to whom the Software is furnished to do 12 | * so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included in all 15 | * copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | * SOFTWARE. 24 | */ 25 | package org.codehaus.mojo.appassembler.example.helloworld; 26 | 27 | public class HelloWorld 28 | { 29 | public static void main( String[] args ) 30 | { 31 | System.out.println( "Hello World!" ); 32 | System.out.println( "Number of command line arguments: " + args.length ); 33 | 34 | for ( int i = 0; i < args.length; i++ ) 35 | { 36 | System.out.println( "Argument #" + i + ":" + args[ i ] ); 37 | } 38 | 39 | System.out.println( "basedir: " + System.getProperty( "basedir" ) ); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/MAPPASM-152/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = MAPPASM-152 Test 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | 34 | 35 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/MAPPASM-152/src/main/java/org/codehaus/mojo/appassembler/example/helloworld/HelloWorld.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * The MIT License 4 | * 5 | * Copyright 2006-2012 The Codehaus. 6 | * 7 | * Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | * this software and associated documentation files (the "Software"), to deal in 9 | * the Software without restriction, including without limitation the rights to 10 | * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | * of the Software, and to permit persons to whom the Software is furnished to do 12 | * so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included in all 15 | * copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | * SOFTWARE. 24 | */ 25 | package org.codehaus.mojo.appassembler.example.helloworld; 26 | 27 | public class HelloWorld 28 | { 29 | public static void main( String[] args ) 30 | { 31 | System.out.println( "Hello World!" ); 32 | System.out.println( "Number of command line arguments: " + args.length ); 33 | 34 | for ( int i = 0; i < args.length; i++ ) 35 | { 36 | System.out.println( "Argument #" + i + ":" + args[ i ] ); 37 | } 38 | 39 | System.out.println( "basedir: " + System.getProperty( "basedir" ) ); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/MAPPASM-201-filtering/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = configurationDirectoryCopy Test 27 | 28 | invoker.goals = -X clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/MAPPASM-201-filtering/setup.groovy: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * The MIT License 4 | * 5 | * Copyright 2006-2015 The MojoHaus 6 | * 7 | * Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | * this software and associated documentation files (the "Software"), to deal in 9 | * the Software without restriction, including without limitation the rights to 10 | * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | * of the Software, and to permit persons to whom the Software is furnished to do 12 | * so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included in all 15 | * copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | * SOFTWARE. 24 | */ 25 | import java.io.* 26 | 27 | // The emptyDirectory must be created by this setup script, 28 | // cause in Git you can't checkin empty directories. 29 | def configurationDirectory = new File( basedir, "src/main/config/emptyDirectory" ); 30 | 31 | // First we cleanup the structure. 32 | configurationDirectory.deleteDir() 33 | 34 | if (!configurationDirectory.mkdir()) { 35 | throw new FileNotFoundException( "Could not created the emptyDirectory."); 36 | } 37 | 38 | return true; 39 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/MAPPASM-201-filtering/src/main/config/config.txt: -------------------------------------------------------------------------------- 1 | # 2 | # The MIT License 3 | # 4 | # Copyright 2006-2011 The Codehaus. 5 | # 6 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | # this software and associated documentation files (the "Software"), to deal in 8 | # the Software without restriction, including without limitation the rights to 9 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | # of the Software, and to permit persons to whom the Software is furnished to do 11 | # so, subject to the following conditions: 12 | # 13 | # The above copyright notice and this permission notice shall be included in all 14 | # copies or substantial portions of the Software. 15 | # 16 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | # SOFTWARE. 23 | # 24 | 25 | This is a simple message 26 | This contains filtered values like ${project.version} and ${customProperty} 27 | Here are some characters that require a correct encoding to work åäö 28 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/MAPPASM-201-filtering/src/main/java/org/codehaus/mojo/appassembler/example/helloworld/HelloWorld.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * The MIT License 4 | * 5 | * Copyright 2006-2012 The Codehaus. 6 | * 7 | * Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | * this software and associated documentation files (the "Software"), to deal in 9 | * the Software without restriction, including without limitation the rights to 10 | * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | * of the Software, and to permit persons to whom the Software is furnished to do 12 | * so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included in all 15 | * copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | * SOFTWARE. 24 | */ 25 | package org.codehaus.mojo.appassembler.example.helloworld; 26 | 27 | public class HelloWorld 28 | { 29 | public static void main( String[] args ) 30 | { 31 | System.out.println( "Hello World!" ); 32 | System.out.println( "Number of command line arguments: " + args.length ); 33 | 34 | for ( int i = 0; i < args.length; i++ ) 35 | { 36 | System.out.println( "Argument #" + i + ":" + args[ i ] ); 37 | } 38 | 39 | System.out.println( "basedir: " + System.getProperty( "basedir" ) ); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/MAPPASM-201-no-filtering/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = configurationDirectoryCopy Test 27 | 28 | invoker.goals = -X clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/MAPPASM-201-no-filtering/setup.groovy: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * The MIT License 4 | * 5 | * Copyright 2006-2015 The MojoHaus 6 | * 7 | * Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | * this software and associated documentation files (the "Software"), to deal in 9 | * the Software without restriction, including without limitation the rights to 10 | * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | * of the Software, and to permit persons to whom the Software is furnished to do 12 | * so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included in all 15 | * copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | * SOFTWARE. 24 | */ 25 | import java.io.* 26 | 27 | // The emptyDirectory must be created by this setup script, 28 | // cause in Git you can't checkin empty directories. 29 | def configurationDirectory = new File( basedir, "src/main/config/emptyDirectory" ); 30 | 31 | // First we cleanup the structure. 32 | configurationDirectory.deleteDir() 33 | 34 | if (!configurationDirectory.mkdir()) { 35 | throw new FileNotFoundException( "Could not create the emptyDirectory."); 36 | } 37 | 38 | return true; 39 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/MAPPASM-201-no-filtering/src/main/config/config.txt: -------------------------------------------------------------------------------- 1 | # 2 | # The MIT License 3 | # 4 | # Copyright 2006-2011 The Codehaus. 5 | # 6 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | # this software and associated documentation files (the "Software"), to deal in 8 | # the Software without restriction, including without limitation the rights to 9 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | # of the Software, and to permit persons to whom the Software is furnished to do 11 | # so, subject to the following conditions: 12 | # 13 | # The above copyright notice and this permission notice shall be included in all 14 | # copies or substantial portions of the Software. 15 | # 16 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | # SOFTWARE. 23 | # 24 | 25 | This is a simple message 26 | This contains filtered values like ${project.version} and ${customProperty} 27 | Here are some characters that require a correct encoding to work åäö 28 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/MAPPASM-201-no-filtering/src/main/java/org/codehaus/mojo/appassembler/example/helloworld/HelloWorld.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * The MIT License 4 | * 5 | * Copyright 2006-2012 The Codehaus. 6 | * 7 | * Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | * this software and associated documentation files (the "Software"), to deal in 9 | * the Software without restriction, including without limitation the rights to 10 | * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | * of the Software, and to permit persons to whom the Software is furnished to do 12 | * so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included in all 15 | * copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | * SOFTWARE. 24 | */ 25 | package org.codehaus.mojo.appassembler.example.helloworld; 26 | 27 | public class HelloWorld 28 | { 29 | public static void main( String[] args ) 30 | { 31 | System.out.println( "Hello World!" ); 32 | System.out.println( "Number of command line arguments: " + args.length ); 33 | 34 | for ( int i = 0; i < args.length; i++ ) 35 | { 36 | System.out.println( "Argument #" + i + ":" + args[ i ] ); 37 | } 38 | 39 | System.out.println( "basedir: " + System.getProperty( "basedir" ) ); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/MAPPASM-205/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = Basic Test 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/MAPPASM-205/src/main/java/org/codehaus/mojo/appassembler/example/helloworld/HelloWorld.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * The MIT License 4 | * 5 | * Copyright 2006-2012 The Codehaus. 6 | * 7 | * Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | * this software and associated documentation files (the "Software"), to deal in 9 | * the Software without restriction, including without limitation the rights to 10 | * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | * of the Software, and to permit persons to whom the Software is furnished to do 12 | * so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included in all 15 | * copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | * SOFTWARE. 24 | */ 25 | package org.codehaus.mojo.appassembler.example.helloworld; 26 | 27 | public class HelloWorld 28 | { 29 | public static void main( String[] args ) 30 | { 31 | System.out.println( "Hello World!" ); 32 | System.out.println( "Number of command line arguments: " + args.length ); 33 | 34 | for ( int i = 0; i < args.length; i++ ) 35 | { 36 | System.out.println( "Argument #" + i + ":" + args[ i ] ); 37 | } 38 | 39 | System.out.println( "basedir: " + System.getProperty( "basedir" ) ); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/MAPPASM-213-extra-dirs/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = MAPPASM-213 extra dirs 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/MAPPASM-213-extra-dirs/verify.groovy: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * The MIT License 4 | * 5 | * Copyright 2006-2011 The Codehaus. 6 | * 7 | * Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | * this software and associated documentation files (the "Software"), to deal in 9 | * the Software without restriction, including without limitation the rights to 10 | * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | * of the Software, and to permit persons to whom the Software is furnished to do 12 | * so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included in all 15 | * copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | * SOFTWARE. 24 | */ 25 | import java.io.* 26 | 27 | // The logs directory 28 | File logsDirectory = new File( basedir, "target/appassembler/logs"); 29 | if ( !logsDirectory.canRead() ) { 30 | throw new FileNotFoundException( "Could not find the logs directory. " + logsDirectory ); 31 | } 32 | 33 | // The temp directory 34 | File tempDirectory = new File( basedir, "target/appassembler/temp"); 35 | if ( !tempDirectory.canRead() ) { 36 | throw new FileNotFoundException( "Could not find the temp directory. " + tempDirectory ); 37 | } 38 | 39 | return true; 40 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/MAPPASM-213-no-extra-dirs/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = MAPPASM-213 no extra dirs 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/MAPPASM-213-no-extra-dirs/verify.groovy: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * The MIT License 4 | * 5 | * Copyright 2006-2011 The Codehaus. 6 | * 7 | * Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | * this software and associated documentation files (the "Software"), to deal in 9 | * the Software without restriction, including without limitation the rights to 10 | * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | * of the Software, and to permit persons to whom the Software is furnished to do 12 | * so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included in all 15 | * copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | * SOFTWARE. 24 | */ 25 | import java.io.* 26 | 27 | // The logs directory 28 | File logsDirectory = new File( basedir, "target/appassembler/logs"); 29 | if ( logsDirectory.canRead() ) { 30 | throw new Exception( "The logs directory should not be created. " + logsDirectory ); 31 | } 32 | 33 | // The temp directory 34 | File tempDirectory = new File( basedir, "target/appassembler/temp"); 35 | if ( tempDirectory.canRead() ) { 36 | throw new Exception( "The temp directory should not be created. " + tempDirectory ); 37 | } 38 | 39 | return true; 40 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/MAPPASM-96-2/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = MAPPASM-96-2 27 | 28 | invoker.goals = clean deploy 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/MAPPASM-96-2/src/main/java/org/codehaus/mojo/appassembler/example/helloworld/HelloWorld.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * The MIT License 4 | * 5 | * Copyright 2006-2012 The Codehaus. 6 | * 7 | * Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | * this software and associated documentation files (the "Software"), to deal in 9 | * the Software without restriction, including without limitation the rights to 10 | * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | * of the Software, and to permit persons to whom the Software is furnished to do 12 | * so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included in all 15 | * copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | * SOFTWARE. 24 | */ 25 | package org.codehaus.mojo.appassembler.example.helloworld; 26 | 27 | public class HelloWorld 28 | { 29 | public static void main( String[] args ) 30 | { 31 | System.out.println( "Hello World!" ); 32 | System.out.println( "Number of command line arguments: " + args.length ); 33 | 34 | for ( int i = 0; i < args.length; i++ ) 35 | { 36 | System.out.println( "Argument #" + i + ":" + args[ i ] ); 37 | } 38 | 39 | System.out.println( "basedir: " + System.getProperty( "basedir" ) ); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/MAPPASM-96-3/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = MAPPASM-96-3 27 | 28 | invoker.goals = clean deploy 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/MAPPASM-96-3/src/main/java/org/codehaus/mojo/appassembler/example/helloworld/HelloWorld.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * The MIT License 4 | * 5 | * Copyright 2006-2012 The Codehaus. 6 | * 7 | * Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | * this software and associated documentation files (the "Software"), to deal in 9 | * the Software without restriction, including without limitation the rights to 10 | * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | * of the Software, and to permit persons to whom the Software is furnished to do 12 | * so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included in all 15 | * copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | * SOFTWARE. 24 | */ 25 | package org.codehaus.mojo.appassembler.example.helloworld; 26 | 27 | public class HelloWorld 28 | { 29 | public static void main( String[] args ) 30 | { 31 | System.out.println( "Hello World!" ); 32 | System.out.println( "Number of command line arguments: " + args.length ); 33 | 34 | for ( int i = 0; i < args.length; i++ ) 35 | { 36 | System.out.println( "Argument #" + i + ":" + args[ i ] ); 37 | } 38 | 39 | System.out.println( "basedir: " + System.getProperty( "basedir" ) ); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/MAPPASM-96/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = MAPPASM-96 27 | 28 | invoker.goals = clean deploy 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/MAPPASM-96/src/main/java/org/codehaus/mojo/appassembler/example/helloworld/HelloWorld.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * The MIT License 4 | * 5 | * Copyright 2006-2012 The Codehaus. 6 | * 7 | * Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | * this software and associated documentation files (the "Software"), to deal in 9 | * the Software without restriction, including without limitation the rights to 10 | * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | * of the Software, and to permit persons to whom the Software is furnished to do 12 | * so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included in all 15 | * copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | * SOFTWARE. 24 | */ 25 | package org.codehaus.mojo.appassembler.example.helloworld; 26 | 27 | public class HelloWorld 28 | { 29 | public static void main( String[] args ) 30 | { 31 | System.out.println( "Hello World!" ); 32 | System.out.println( "Number of command line arguments: " + args.length ); 33 | 34 | for ( int i = 0; i < args.length; i++ ) 35 | { 36 | System.out.println( "Argument #" + i + ":" + args[ i ] ); 37 | } 38 | 39 | System.out.println( "basedir: " + System.getProperty( "basedir" ) ); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/assembleDirectoryTest/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = assembleDirectory Test 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/asterikClassPathTest/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = configurationDirectoryInClasspath Test 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | #invoker.buildResult = failure 33 | 34 | debug = true 35 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/asterikClassPathWrongConfigurationTest/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = asterikClassPathWrongConfiguration-test Test 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | invoker.buildResult = failure -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/basicTest/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = Basic Test 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/basicTest/src/main/java/org/codehaus/mojo/appassembler/example/helloworld/HelloWorld.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * The MIT License 4 | * 5 | * Copyright 2006-2012 The Codehaus. 6 | * 7 | * Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | * this software and associated documentation files (the "Software"), to deal in 9 | * the Software without restriction, including without limitation the rights to 10 | * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | * of the Software, and to permit persons to whom the Software is furnished to do 12 | * so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included in all 15 | * copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | * SOFTWARE. 24 | */ 25 | package org.codehaus.mojo.appassembler.example.helloworld; 26 | 27 | public class HelloWorld 28 | { 29 | public static void main( String[] args ) 30 | { 31 | System.out.println( "Hello World!" ); 32 | System.out.println( "Number of command line arguments: " + args.length ); 33 | 34 | for ( int i = 0; i < args.length; i++ ) 35 | { 36 | System.out.println( "Argument #" + i + ":" + args[ i ] ); 37 | } 38 | 39 | System.out.println( "basedir: " + System.getProperty( "basedir" ) ); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/binFileExtensionTest/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = binFileExtension Test 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/binFolderTest/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = environmentSetup Test 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/binFolderTest/src/main/java/org/codehaus/mojo/appassembler/example/helloworld/HelloWorld.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * The MIT License 4 | * 5 | * Copyright 2006-2012 The Codehaus. 6 | * 7 | * Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | * this software and associated documentation files (the "Software"), to deal in 9 | * the Software without restriction, including without limitation the rights to 10 | * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | * of the Software, and to permit persons to whom the Software is furnished to do 12 | * so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included in all 15 | * copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | * SOFTWARE. 24 | */ 25 | package org.codehaus.mojo.appassembler.example.helloworld; 26 | 27 | public class HelloWorld 28 | { 29 | public static void main( String[] args ) 30 | { 31 | System.out.println( "Hello World!" ); 32 | System.out.println( "Number of command line arguments: " + args.length ); 33 | 34 | for ( int i = 0; i < args.length; i++ ) 35 | { 36 | System.out.println( "Argument #" + i + ":" + args[ i ] ); 37 | } 38 | 39 | System.out.println( "basedir: " + System.getProperty( "basedir" ) ); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/booterLicenseHeaderTest/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = repositoryLayout Test 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/booterLicenseHeaderTest/license-header-01.txt: -------------------------------------------------------------------------------- 1 | ****************************************** 2 | --- This is LicenseHeader File 01 --- 3 | ****************************************** 4 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/booterLicenseHeaderTest/license-header.txt: -------------------------------------------------------------------------------- 1 | ****************************************** 2 | --- This is my own license header file --- 3 | ****************************************** 4 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/configurationDirectoryCopyDaemonTest/src/main/config/subdir/test.txt: -------------------------------------------------------------------------------- 1 | Test 2 | Test 3 | Test 4 | Test 5 | Test 6 | Test 7 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/configurationDirectoryCopyDaemonTest/src/main/config/subdir1/result.gf: -------------------------------------------------------------------------------- 1 | Test 2 | Test 3 | Test 4 | Test 5 | Test 6 | Test 7 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/configurationDirectoryCopyDaemonTest/src/main/config/subdir1/subdir/test.txt: -------------------------------------------------------------------------------- 1 | Test 2 | Test 3 | Test 4 | Test 5 | Test 6 | Test 7 | Test 8 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/configurationDirectoryCopyDaemonTest/src/main/config/subdir1/test.txt: -------------------------------------------------------------------------------- 1 | Test 2 | Test 3 | Test 4 | Test 5 | Test 6 | Test 7 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/configurationDirectoryCopyDaemonTest/src/main/config/test.txt: -------------------------------------------------------------------------------- 1 | Test 2 | Test 3 | Test 4 | Test 5 | Test 6 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/configurationDirectoryCopyTest/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = configurationDirectoryCopy Test 27 | 28 | invoker.goals = -X clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/configurationDirectoryCopyTest/src/main/config/subdir/test.txt: -------------------------------------------------------------------------------- 1 | Test 2 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/configurationDirectoryCopyTest/src/main/config/subdir1/result.gf: -------------------------------------------------------------------------------- 1 | Test 2 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/configurationDirectoryCopyTest/src/main/config/subdir1/subsubdir/test.txt: -------------------------------------------------------------------------------- 1 | Test 2 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/configurationDirectoryCopyTest/src/main/config/subdir1/test.txt: -------------------------------------------------------------------------------- 1 | Test 2 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/configurationDirectoryCopyTest/src/main/config/test.txt: -------------------------------------------------------------------------------- 1 | Test 2 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/configurationDirectoryInClasspathTest/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = configurationDirectoryInClasspath Test 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/configurationDirectoryTest/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = configurationDirectory Test 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/configurationSourceDirectoryTest/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = environmentSetup Test 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/configurationSourceDirectoryTest/src/main/config/supplemental-config.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | # This file will automatically be copied to the etc folder 27 | # in the resulting structure by appassembler-maven-plugin. 28 | test = false 29 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/customTemplates/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = project1 Test 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/customTemplates/src/templates/unixJswScriptTemplate: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | # From unixJswScriptTemplate 4 | 5 | APP_NAME="@app.name@" 6 | APP_LONG_NAME="@app.long.name@" 7 | @env.setup.unix@ 8 | @run.as.user.envvar@ 9 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/customTemplates/src/templates/unixScriptTemplate: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | #from unixScriptTemplate 4 | @LICENSE_HEADER@ 5 | @ENV_SETUP@ 6 | @REPO@ 7 | @CLASSPATH@ 8 | @EXTRA_JVM_ARGUMENTS@ 9 | @APP_NAME@ 10 | @MAINCLASS@ 11 | @APP_ARGUMENTS@ 12 | @UNIX_BACKGROUND@ 13 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/customTemplates/src/templates/windowsJswScriptTemplate: -------------------------------------------------------------------------------- 1 | @echo off 2 | setlocal 3 | 4 | rem from windowsJswScriptTemplate 5 | @env.setup.windows@ 6 | 7 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/customTemplates/src/templates/windowsScriptTemplate: -------------------------------------------------------------------------------- 1 | #LICENSE_HEADER# 2 | @echo off 3 | 4 | rem from windowsScriptTemplate 5 | #ENV_SETUP# 6 | #JAVA_BINARY# 7 | #REPO# 8 | #CLASSPATH# 9 | #EXTRA_JVM_ARGUMENTS# 10 | #APP_NAME# 11 | #MAINCLASS# 12 | #APP_ARGUMENTS# 13 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/daemonAppLongNameTest/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = daemon App Long Name Test 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/daemonAppLongNameTest/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.appender.console=org.apache.log4j.ConsoleAppender 2 | log4j.appender.console.Target=System.out 3 | log4j.appender.console.layout=org.apache.log4j.PatternLayout 4 | #log4j.appender.console.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}: %m%n 5 | log4j.appender.console.layout.ConversionPattern=%d{ISO8601}|%p|%t|%c{3}|%x|%m%n 6 | 7 | log4j.appender.logFile=org.apache.log4j.FileAppender 8 | log4j.appender.logFile.File=file.log 9 | log4j.appender.logFile.append=false 10 | log4j.appender.logFile.layout=org.apache.log4j.PatternLayout 11 | ### 12 | ### %F:%L 13 | ### FileName:LineNumber 14 | #log4j.appender.logFile.layout.ConversionPattern=%d{ABSOLUTE} (%F:%L) %5p %c{1}: %m%n 15 | log4j.appender.logFile.layout.ConversionPattern=%d{ISO8601}|%p|%t|%c{3}|%x|%m%n 16 | #log4j.appender.logFile.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}: %m%n 17 | 18 | 19 | ### set log levels - for more verbose logging change 'info' to 'debug' ### 20 | log4j.rootLogger=INFO, logFile 21 | 22 | log4j.logger=WARN 23 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/daemonAppLongNameTest/src/pre-wrapper/snippet.txt: -------------------------------------------------------------------------------- 1 | #include me 2 | #include metoo -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/daemonAppNameTest/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = daemon App Long Name Test 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/daemonAppNameTest/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.appender.console=org.apache.log4j.ConsoleAppender 2 | log4j.appender.console.Target=System.out 3 | log4j.appender.console.layout=org.apache.log4j.PatternLayout 4 | #log4j.appender.console.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}: %m%n 5 | log4j.appender.console.layout.ConversionPattern=%d{ISO8601}|%p|%t|%c{3}|%x|%m%n 6 | 7 | log4j.appender.logFile=org.apache.log4j.FileAppender 8 | log4j.appender.logFile.File=file.log 9 | log4j.appender.logFile.append=false 10 | log4j.appender.logFile.layout=org.apache.log4j.PatternLayout 11 | ### 12 | ### %F:%L 13 | ### FileName:LineNumber 14 | #log4j.appender.logFile.layout.ConversionPattern=%d{ABSOLUTE} (%F:%L) %5p %c{1}: %m%n 15 | log4j.appender.logFile.layout.ConversionPattern=%d{ISO8601}|%p|%t|%c{3}|%x|%m%n 16 | #log4j.appender.logFile.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}: %m%n 17 | 18 | 19 | ### set log levels - for more verbose logging change 'info' to 'debug' ### 20 | log4j.rootLogger=INFO, logFile 21 | 22 | log4j.logger=WARN 23 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/daemonAppNameTest/src/pre-wrapper/snippet.txt: -------------------------------------------------------------------------------- 1 | #include me 2 | #include metoo -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/daemonConfigurationTest/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = project1 Test 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/daemonConfigurationTest/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.appender.console=org.apache.log4j.ConsoleAppender 2 | log4j.appender.console.Target=System.out 3 | log4j.appender.console.layout=org.apache.log4j.PatternLayout 4 | #log4j.appender.console.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}: %m%n 5 | log4j.appender.console.layout.ConversionPattern=%d{ISO8601}|%p|%t|%c{3}|%x|%m%n 6 | 7 | log4j.appender.logFile=org.apache.log4j.FileAppender 8 | log4j.appender.logFile.File=file.log 9 | log4j.appender.logFile.append=false 10 | log4j.appender.logFile.layout=org.apache.log4j.PatternLayout 11 | ### 12 | ### %F:%L 13 | ### FileName:LineNumber 14 | #log4j.appender.logFile.layout.ConversionPattern=%d{ABSOLUTE} (%F:%L) %5p %c{1}: %m%n 15 | log4j.appender.logFile.layout.ConversionPattern=%d{ISO8601}|%p|%t|%c{3}|%x|%m%n 16 | #log4j.appender.logFile.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}: %m%n 17 | 18 | 19 | ### set log levels - for more verbose logging change 'info' to 'debug' ### 20 | log4j.rootLogger=INFO, logFile 21 | 22 | log4j.logger=WARN 23 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/daemonMultipleTest/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = project1 Test 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/daemonMultipleTest/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.appender.console=org.apache.log4j.ConsoleAppender 2 | log4j.appender.console.Target=System.out 3 | log4j.appender.console.layout=org.apache.log4j.PatternLayout 4 | #log4j.appender.console.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}: %m%n 5 | log4j.appender.console.layout.ConversionPattern=%d{ISO8601}|%p|%t|%c{3}|%x|%m%n 6 | 7 | log4j.appender.logFile=org.apache.log4j.FileAppender 8 | log4j.appender.logFile.File=file.log 9 | log4j.appender.logFile.append=false 10 | log4j.appender.logFile.layout=org.apache.log4j.PatternLayout 11 | ### 12 | ### %F:%L 13 | ### FileName:LineNumber 14 | #log4j.appender.logFile.layout.ConversionPattern=%d{ABSOLUTE} (%F:%L) %5p %c{1}: %m%n 15 | log4j.appender.logFile.layout.ConversionPattern=%d{ISO8601}|%p|%t|%c{3}|%x|%m%n 16 | #log4j.appender.logFile.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}: %m%n 17 | 18 | 19 | ### set log levels - for more verbose logging change 'info' to 'debug' ### 20 | log4j.rootLogger=INFO, logFile 21 | 22 | log4j.logger=WARN 23 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/daemonRepositoryLayoutTest/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = repositoryLayout Test 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/daemonScriptNameTest/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = daemon App Long Name Test 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/daemonScriptNameTest/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.appender.console=org.apache.log4j.ConsoleAppender 2 | log4j.appender.console.Target=System.out 3 | log4j.appender.console.layout=org.apache.log4j.PatternLayout 4 | #log4j.appender.console.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}: %m%n 5 | log4j.appender.console.layout.ConversionPattern=%d{ISO8601}|%p|%t|%c{3}|%x|%m%n 6 | 7 | log4j.appender.logFile=org.apache.log4j.FileAppender 8 | log4j.appender.logFile.File=file.log 9 | log4j.appender.logFile.append=false 10 | log4j.appender.logFile.layout=org.apache.log4j.PatternLayout 11 | ### 12 | ### %F:%L 13 | ### FileName:LineNumber 14 | #log4j.appender.logFile.layout.ConversionPattern=%d{ABSOLUTE} (%F:%L) %5p %c{1}: %m%n 15 | log4j.appender.logFile.layout.ConversionPattern=%d{ISO8601}|%p|%t|%c{3}|%x|%m%n 16 | #log4j.appender.logFile.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}: %m%n 17 | 18 | 19 | ### set log levels - for more verbose logging change 'info' to 'debug' ### 20 | log4j.rootLogger=INFO, logFile 21 | 22 | log4j.logger=WARN 23 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/daemonTest/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = project1 Test 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/daemonTest/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.appender.console=org.apache.log4j.ConsoleAppender 2 | log4j.appender.console.Target=System.out 3 | log4j.appender.console.layout=org.apache.log4j.PatternLayout 4 | #log4j.appender.console.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}: %m%n 5 | log4j.appender.console.layout.ConversionPattern=%d{ISO8601}|%p|%t|%c{3}|%x|%m%n 6 | 7 | log4j.appender.logFile=org.apache.log4j.FileAppender 8 | log4j.appender.logFile.File=file.log 9 | log4j.appender.logFile.append=false 10 | log4j.appender.logFile.layout=org.apache.log4j.PatternLayout 11 | ### 12 | ### %F:%L 13 | ### FileName:LineNumber 14 | #log4j.appender.logFile.layout.ConversionPattern=%d{ABSOLUTE} (%F:%L) %5p %c{1}: %m%n 15 | log4j.appender.logFile.layout.ConversionPattern=%d{ISO8601}|%p|%t|%c{3}|%x|%m%n 16 | #log4j.appender.logFile.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}: %m%n 17 | 18 | 19 | ### set log levels - for more verbose logging change 'info' to 'debug' ### 20 | log4j.rootLogger=INFO, logFile 21 | 22 | log4j.logger=WARN 23 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/daemonTest/src/pre-wrapper/snippet.txt: -------------------------------------------------------------------------------- 1 | #include me 2 | #include metoo -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/daemonUseWildcardClassPathTest/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = daemonUseWildcardClassPath Test 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/daemonUseWildcardClassPathTest/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.appender.console=org.apache.log4j.ConsoleAppender 2 | log4j.appender.console.Target=System.out 3 | log4j.appender.console.layout=org.apache.log4j.PatternLayout 4 | #log4j.appender.console.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}: %m%n 5 | log4j.appender.console.layout.ConversionPattern=%d{ISO8601}|%p|%t|%c{3}|%x|%m%n 6 | 7 | log4j.appender.logFile=org.apache.log4j.FileAppender 8 | log4j.appender.logFile.File=file.log 9 | log4j.appender.logFile.append=false 10 | log4j.appender.logFile.layout=org.apache.log4j.PatternLayout 11 | ### 12 | ### %F:%L 13 | ### FileName:LineNumber 14 | #log4j.appender.logFile.layout.ConversionPattern=%d{ABSOLUTE} (%F:%L) %5p %c{1}: %m%n 15 | log4j.appender.logFile.layout.ConversionPattern=%d{ISO8601}|%p|%t|%c{3}|%x|%m%n 16 | #log4j.appender.logFile.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}: %m%n 17 | 18 | 19 | ### set log levels - for more verbose logging change 'info' to 'debug' ### 20 | log4j.rootLogger=INFO, logFile 21 | 22 | log4j.logger=WARN 23 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/daemonWrapperExecPrefixNameTest/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = project1 Test 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/daemonWrapperLogFileTest/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = project1 Test 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/daemonWrapperLogFileTest/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.appender.console=org.apache.log4j.ConsoleAppender 2 | log4j.appender.console.Target=System.out 3 | log4j.appender.console.layout=org.apache.log4j.PatternLayout 4 | #log4j.appender.console.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}: %m%n 5 | log4j.appender.console.layout.ConversionPattern=%d{ISO8601}|%p|%t|%c{3}|%x|%m%n 6 | 7 | log4j.appender.logFile=org.apache.log4j.FileAppender 8 | log4j.appender.logFile.File=file.log 9 | log4j.appender.logFile.append=false 10 | log4j.appender.logFile.layout=org.apache.log4j.PatternLayout 11 | ### 12 | ### %F:%L 13 | ### FileName:LineNumber 14 | #log4j.appender.logFile.layout.ConversionPattern=%d{ABSOLUTE} (%F:%L) %5p %c{1}: %m%n 15 | log4j.appender.logFile.layout.ConversionPattern=%d{ISO8601}|%p|%t|%c{3}|%x|%m%n 16 | #log4j.appender.logFile.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}: %m%n 17 | 18 | 19 | ### set log levels - for more verbose logging change 'info' to 'debug' ### 20 | log4j.rootLogger=INFO, logFile 21 | 22 | log4j.logger=WARN 23 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/daemonWrapperLogFileTest/src/pre-wrapper/snippet.txt: -------------------------------------------------------------------------------- 1 | #include me 2 | #include metoo -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/daemonWrapperMainTest/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = project1 Test 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/daemonWrapperManagerTest/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = project1 Test 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/daemonWrapperManagerTest/src/main/java/org/codehaus/mojo/appassembler/example/helloworld/MyApplication.java: -------------------------------------------------------------------------------- 1 | package org.codehaus.mojo.appassembler.example.helloworld; 2 | 3 | import java.util.concurrent.atomic.AtomicBoolean; 4 | 5 | import org.apache.log4j.Logger; 6 | 7 | public class MyApplication extends Thread { 8 | 9 | private static Logger LOGGER = Logger.getLogger(MyApplication.class); 10 | 11 | private AtomicBoolean stopping; 12 | 13 | private String[] arguments; 14 | 15 | public MyApplication(String[] args) { 16 | this.arguments = args; 17 | this.stopping = new AtomicBoolean(false); 18 | } 19 | 20 | @Override 21 | public void start() { 22 | LOGGER.info("Hello World!"); 23 | LOGGER.info("Number of command line arguments: " + arguments.length); 24 | 25 | for (int i = 0; i < arguments.length; i++) { 26 | LOGGER.info("Argument #" + i + ":" + arguments[i]); 27 | } 28 | 29 | LOGGER.info("basedir: " + System.getProperty("basedir")); 30 | 31 | long start = System.currentTimeMillis(); 32 | while (true && !stopping.get()) { 33 | try { 34 | Thread.sleep(1000); 35 | } catch (InterruptedException e) { 36 | LOGGER.error("InterruptedException:", e); 37 | } 38 | long current = System.currentTimeMillis(); 39 | LOGGER.info("Vergangene Zeit seit dem Start:" + (current - start) 40 | + " ms"); 41 | } 42 | 43 | LOGGER.info("Ended Loop."); 44 | } 45 | 46 | 47 | public void stopWorking() { 48 | this.stopping.getAndSet(true); 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/daemonWrapperManagerTest/src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | log4j.appender.console=org.apache.log4j.ConsoleAppender 2 | log4j.appender.console.Target=System.out 3 | log4j.appender.console.layout=org.apache.log4j.PatternLayout 4 | #log4j.appender.console.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}: %m%n 5 | log4j.appender.console.layout.ConversionPattern=%d{ISO8601}|%p|%t|%c{3}|%x|%m%n 6 | 7 | log4j.appender.logFile=org.apache.log4j.FileAppender 8 | log4j.appender.logFile.File=file.log 9 | log4j.appender.logFile.append=false 10 | log4j.appender.logFile.layout=org.apache.log4j.PatternLayout 11 | ### 12 | ### %F:%L 13 | ### FileName:LineNumber 14 | #log4j.appender.logFile.layout.ConversionPattern=%d{ABSOLUTE} (%F:%L) %5p %c{1}: %m%n 15 | log4j.appender.logFile.layout.ConversionPattern=%d{ISO8601}|%p|%t|%c{3}|%x|%m%n 16 | #log4j.appender.logFile.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}: %m%n 17 | 18 | 19 | ### set log levels - for more verbose logging change 'info' to 'debug' ### 20 | log4j.rootLogger=INFO, logFile 21 | 22 | log4j.logger=WARN 23 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/environmentSetupTest/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = environmentSetup Test 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/generateRepositoryTest/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = repositoryLayout Test 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/generateRepositoryTest/pom.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 4.0.0 7 | 8 | org.codehaus.mojo.appassembler-maven-plugin.it 9 | repositoryLayout-test 10 | 11 | jar 12 | 1.0-SNAPSHOT 13 | appassembler-maven-plugin BasicTest 14 | http://maven.apache.org 15 | 16 | 17 | UTF-8 18 | 19 | 20 | 21 | 22 | 23 | @project.groupId@ 24 | @project.artifactId@ 25 | @project.version@ 26 | 27 | 28 | package 29 | 30 | assemble 31 | 32 | 33 | 34 | 35 | -Xms16m 36 | flat 37 | false 38 | 39 | unix 40 | 41 | 42 | 43 | org.codehaus.mojo.appassembler.example.helloworld.HelloWorld 44 | basic-test 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/genericDaemonGeneratorTest/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = project1 Test 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/outputFileNameMappingClasspath/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = MAPPASM-71-3 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/outputFileNameMappingClasspathBooter/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2013 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = MAPPASM-71-5 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/outputFileNameMappingClasspathJSW/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = MAPPASM-71-4 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/outputFileNameMappingFlatRepository/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = MAPPASM-71-2 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/outputFileNameMappingRepository/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = MAPPASM-71-1 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/platformsTest/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = platforms Test 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/platformsTest/pom.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 4.0.0 7 | 8 | org.codehaus.mojo.appassembler-maven-plugin.it 9 | platforms-test 10 | 11 | jar 12 | 1.0-SNAPSHOT 13 | appassembler-maven-plugin BasicTest 14 | http://maven.apache.org 15 | 16 | 17 | UTF-8 18 | 19 | 20 | 21 | 22 | 23 | @project.groupId@ 24 | @project.artifactId@ 25 | @project.version@ 26 | 27 | 28 | package 29 | 30 | assemble 31 | 32 | 33 | 34 | 35 | -Xms16m 36 | 37 | all 38 | 39 | 40 | 41 | org.codehaus.mojo.appassembler.example.helloworld.HelloWorld 42 | basic-test 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/platformsTest/src/main/java/org/codehaus/mojo/appassembler/example/helloworld/HelloWorld.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * The MIT License 4 | * 5 | * Copyright 2006-2012 The Codehaus. 6 | * 7 | * Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | * this software and associated documentation files (the "Software"), to deal in 9 | * the Software without restriction, including without limitation the rights to 10 | * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | * of the Software, and to permit persons to whom the Software is furnished to do 12 | * so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included in all 15 | * copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | * SOFTWARE. 24 | */ 25 | package org.codehaus.mojo.appassembler.example.helloworld; 26 | 27 | public class HelloWorld 28 | { 29 | public static void main( String[] args ) 30 | { 31 | System.out.println( "Hello World!" ); 32 | System.out.println( "Number of command line arguments: " + args.length ); 33 | 34 | for ( int i = 0; i < args.length; i++ ) 35 | { 36 | System.out.println( "Argument #" + i + ":" + args[ i ] ); 37 | } 38 | 39 | System.out.println( "basedir: " + System.getProperty( "basedir" ) ); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/preAssembleDirectoryCopyDaemonTest/src/main/runtime/subdir/test.txt: -------------------------------------------------------------------------------- 1 | Test 2 | Test 3 | Test 4 | Test 5 | Test 6 | Test 7 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/preAssembleDirectoryCopyDaemonTest/src/main/runtime/subdir1/result.gf: -------------------------------------------------------------------------------- 1 | Test 2 | Test 3 | Test 4 | Test 5 | Test 6 | Test 7 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/preAssembleDirectoryCopyDaemonTest/src/main/runtime/subdir1/subdir/test.txt: -------------------------------------------------------------------------------- 1 | Test 2 | Test 3 | Test 4 | Test 5 | Test 6 | Test 7 | Test 8 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/preAssembleDirectoryCopyDaemonTest/src/main/runtime/subdir1/test.txt: -------------------------------------------------------------------------------- 1 | Test 2 | Test 3 | Test 4 | Test 5 | Test 6 | Test 7 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/preAssembleDirectoryCopyDaemonTest/src/main/runtime/test.txt: -------------------------------------------------------------------------------- 1 | Test 2 | Test 3 | Test 4 | Test 5 | Test 6 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/preAssembleDirectoryCopyTest/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = preAssembleDirectoryCopy Test 27 | 28 | invoker.goals = -X clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/preAssembleDirectoryCopyTest/src/main/runtime/subdir/test.txt: -------------------------------------------------------------------------------- 1 | Test 2 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/preAssembleDirectoryCopyTest/src/main/runtime/subdir1/result.gf: -------------------------------------------------------------------------------- 1 | Test 2 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/preAssembleDirectoryCopyTest/src/main/runtime/subdir1/subsubdir/test.txt: -------------------------------------------------------------------------------- 1 | Test 2 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/preAssembleDirectoryCopyTest/src/main/runtime/subdir1/test.txt: -------------------------------------------------------------------------------- 1 | Test 2 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/preAssembleDirectoryCopyTest/src/main/runtime/test.txt: -------------------------------------------------------------------------------- 1 | Test 2 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/preCleanTest/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = preClean Test 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/preCleanTest/src/main/java/org/codehaus/mojo/appassembler/example/helloworld/HelloWorld.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * The MIT License 4 | * 5 | * Copyright 2006-2012 The Codehaus. 6 | * 7 | * Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | * this software and associated documentation files (the "Software"), to deal in 9 | * the Software without restriction, including without limitation the rights to 10 | * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | * of the Software, and to permit persons to whom the Software is furnished to do 12 | * so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included in all 15 | * copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | * SOFTWARE. 24 | */ 25 | package org.codehaus.mojo.appassembler.example.helloworld; 26 | 27 | public class HelloWorld 28 | { 29 | public static void main( String[] args ) 30 | { 31 | System.out.println( "Hello World!" ); 32 | System.out.println( "Number of command line arguments: " + args.length ); 33 | 34 | for ( int i = 0; i < args.length; i++ ) 35 | { 36 | System.out.println( "Argument #" + i + ":" + args[ i ] ); 37 | } 38 | 39 | System.out.println( "basedir: " + System.getProperty( "basedir" ) ); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/preCleanTest/verify.groovy: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * The MIT License 4 | * 5 | * Copyright 2006-2011 The Codehaus. 6 | * 7 | * Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | * this software and associated documentation files (the "Software"), to deal in 9 | * the Software without restriction, including without limitation the rights to 10 | * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | * of the Software, and to permit persons to whom the Software is furnished to do 12 | * so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included in all 15 | * copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | * SOFTWARE. 24 | */ 25 | import java.io.* 26 | import java.util.* 27 | 28 | File stagedPom1 = new File( basedir, "target/appassembler-1/pom.xml"); 29 | 30 | if ( stagedPom1.exists() ) { 31 | throw new Exception( "Should not see " + stagedPom1 ); 32 | } 33 | 34 | File stagedPom2 = new File( basedir, "target/appassembler-2/pom.xml"); 35 | 36 | if ( !stagedPom2.exists() ) { 37 | throw new FileNotFoundException( stagingPom2 ); 38 | } 39 | 40 | return true; 41 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/programCLIArgumentsTest/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = repositoryLayout Test 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/programCLIArgumentsWithExpandingTest/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = repositoryLayout Test 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/programJvmArgumentsTest/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = programJvmArguments Test 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/programLicenseHeaderTest/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = repositoryLayout Test 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/programLicenseHeaderTest/license-header-01.txt: -------------------------------------------------------------------------------- 1 | ****************************************** 2 | --- This is LicenseHeader File 01 --- 3 | ****************************************** 4 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/programLicenseHeaderTest/license-header.txt: -------------------------------------------------------------------------------- 1 | ****************************************** 2 | --- This is my own license header file --- 3 | ****************************************** 4 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/programNameDuplicateTest/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = programNameDuplicate Test 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | 34 | # Must fail based on an exception which has to be thrown. 35 | invoker.buildResult = failure 36 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/repositoryLayoutLegacyTest/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | # This test can only be run with Maven 2.2.1 / 2.2.0 (not tested yet) 27 | # cause Maven 3. does not support the legacy format for repositoryLayout. 28 | invoker.name = repositoryLayoutLegacy Test 29 | 30 | invoker.goals = clean package 31 | 32 | invoker.debug = true 33 | 34 | debug = true 35 | 36 | invoker.maven.version = 2.0.10+, 2.1.0+, 2.2.0+, !3.0.0+ 37 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/repositoryLayoutLegacyTest/pom.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 4.0.0 7 | 8 | org.codehaus.mojo.appassembler-maven-plugin.it 9 | repositoryLayoutLegacy-test 10 | 11 | jar 12 | 1.0-SNAPSHOT 13 | appassembler-maven-plugin BasicTest 14 | http://maven.apache.org 15 | 16 | 17 | UTF-8 18 | 19 | 20 | 21 | 22 | 23 | @project.groupId@ 24 | @project.artifactId@ 25 | @project.version@ 26 | 27 | 28 | package 29 | 30 | assemble 31 | 32 | 33 | 34 | 35 | -Xms16m 36 | legacy 37 | 38 | unix 39 | 40 | 41 | 42 | org.codehaus.mojo.appassembler.example.helloworld.HelloWorld 43 | basic-test 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/repositoryLayoutTest/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = repositoryLayout Test 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/repositoryLayoutTest/pom.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 4.0.0 7 | 8 | org.codehaus.mojo.appassembler-maven-plugin.it 9 | repositoryLayout-test 10 | 11 | jar 12 | 1.0-SNAPSHOT 13 | appassembler-maven-plugin BasicTest 14 | http://maven.apache.org 15 | 16 | 17 | UTF-8 18 | 19 | 20 | 21 | 22 | 23 | @project.groupId@ 24 | @project.artifactId@ 25 | @project.version@ 26 | 27 | 28 | package 29 | 30 | assemble 31 | 32 | 33 | 34 | 35 | -Xms16m 36 | flat 37 | 38 | unix 39 | 40 | 41 | 42 | org.codehaus.mojo.appassembler.example.helloworld.HelloWorld 43 | basic-test 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/shellDaemonGeneratorTest/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = repositoryLayout Test 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/systemDependencyTest/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = systemDependency Test 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | #invoker.buildResult = failure 33 | 34 | debug = true 35 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/systemDependencyTest/lib/test-1.0.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mojohaus/appassembler/39a24403a285455a721f22d5c90e74582bcac0ca/appassembler-maven-plugin/src/it/systemDependencyTest/lib/test-1.0.0.jar -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/useTimestampInSnapshotFileNameTest/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = useTimestampInSnapshotFileNameTest 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/wildcardClassPath/invoker.properties: -------------------------------------------------------------------------------- 1 | # 2 | # 3 | # The MIT License 4 | # 5 | # Copyright 2006-2011 The Codehaus. 6 | # 7 | # Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | # this software and associated documentation files (the "Software"), to deal in 9 | # the Software without restriction, including without limitation the rights to 10 | # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | # of the Software, and to permit persons to whom the Software is furnished to do 12 | # so, subject to the following conditions: 13 | # 14 | # The above copyright notice and this permission notice shall be included in all 15 | # copies or substantial portions of the Software. 16 | # 17 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | # SOFTWARE. 24 | # 25 | 26 | invoker.name = wildcardClassPath Test 27 | 28 | invoker.goals = clean package 29 | 30 | invoker.debug = true 31 | 32 | debug = true 33 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/it/wildcardClassPath/src/main/java/org/codehaus/mojo/appassembler/example/helloworld/HelloWorld.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | * The MIT License 4 | * 5 | * Copyright 2006-2012 The Codehaus. 6 | * 7 | * Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | * this software and associated documentation files (the "Software"), to deal in 9 | * the Software without restriction, including without limitation the rights to 10 | * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | * of the Software, and to permit persons to whom the Software is furnished to do 12 | * so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included in all 15 | * copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | * SOFTWARE. 24 | */ 25 | package org.codehaus.mojo.appassembler.example.helloworld; 26 | 27 | public class HelloWorld 28 | { 29 | public static void main( String[] args ) 30 | { 31 | System.out.println( "Hello World!" ); 32 | System.out.println( "Number of command line arguments: " + args.length ); 33 | 34 | for ( int i = 0; i < args.length; i++ ) 35 | { 36 | System.out.println( "Argument #" + i + ":" + args[ i ] ); 37 | } 38 | 39 | System.out.println( "basedir: " + System.getProperty( "basedir" ) ); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/main/java/org/codehaus/mojo/appassembler/daemon/booter/UnixBooterDaemonGenerator.java: -------------------------------------------------------------------------------- 1 | package org.codehaus.mojo.appassembler.daemon.booter; 2 | 3 | /* 4 | * The MIT License 5 | * 6 | * Copyright (c) 2006-2012, The Codehaus 7 | * 8 | * Permission is hereby granted, free of charge, to any person obtaining a copy of 9 | * this software and associated documentation files (the "Software"), to deal in 10 | * the Software without restriction, including without limitation the rights to 11 | * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 12 | * of the Software, and to permit persons to whom the Software is furnished to do 13 | * so, subject to the following conditions: 14 | * 15 | * The above copyright notice and this permission notice shall be included in all 16 | * copies or substantial portions of the Software. 17 | * 18 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 24 | * SOFTWARE. 25 | */ 26 | 27 | import org.codehaus.mojo.appassembler.daemon.script.Platform; 28 | 29 | /** 30 | * Generates unix wrapperscripts. 31 | * 32 | * @author Kaare Nilsen 33 | * @plexus.component role-hint="booter-unix" 34 | */ 35 | public class UnixBooterDaemonGenerator 36 | extends AbstractBooterDaemonGenerator 37 | { 38 | public UnixBooterDaemonGenerator() 39 | { 40 | super( Platform.UNIX_NAME ); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/main/java/org/codehaus/mojo/appassembler/daemon/booter/WindowsBooterDaemonGenerator.java: -------------------------------------------------------------------------------- 1 | package org.codehaus.mojo.appassembler.daemon.booter; 2 | 3 | /* 4 | * The MIT License 5 | * 6 | * Copyright (c) 2006-2012, The Codehaus 7 | * 8 | * Permission is hereby granted, free of charge, to any person obtaining a copy of 9 | * this software and associated documentation files (the "Software"), to deal in 10 | * the Software without restriction, including without limitation the rights to 11 | * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 12 | * of the Software, and to permit persons to whom the Software is furnished to do 13 | * so, subject to the following conditions: 14 | * 15 | * The above copyright notice and this permission notice shall be included in all 16 | * copies or substantial portions of the Software. 17 | * 18 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 24 | * SOFTWARE. 25 | */ 26 | 27 | import org.codehaus.mojo.appassembler.daemon.script.Platform; 28 | 29 | /** 30 | * Generates windows wrapperscripts. 31 | * 32 | * @author Kaare Nilsen 33 | * @plexus.component role-hint="booter-windows" 34 | */ 35 | public class WindowsBooterDaemonGenerator 36 | extends AbstractBooterDaemonGenerator 37 | { 38 | public WindowsBooterDaemonGenerator() 39 | { 40 | super( Platform.WINDOWS_NAME ); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/main/javadoc/org/codehaus/mojo/appassembler/daemon/booter/package.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Insert title here 6 | 7 | 8 | 9 |

This package contains the classes which handle the generation of the scripts for the booter mechanism.

10 | 11 | 12 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/main/resources/org/codehaus/mojo/appassembler/daemon/daemontools/env/JAVA_HOME: -------------------------------------------------------------------------------- 1 | /opt/java/sdk/1.5 -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/main/resources/org/codehaus/mojo/appassembler/daemon/daemontools/env/USER: -------------------------------------------------------------------------------- 1 | handyande -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/main/resources/org/codehaus/mojo/appassembler/daemon/daemontools/run.sh.template: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | export DAEMONDIR=`dirname $0` 4 | export DAEMONDIR=`(cd "$DAEMONDIR"; pwd)` 5 | export BASEDIR=`(cd "$DAEMONDIR/../.."; pwd)` 6 | 7 | if [ $SHLVL -gt 1 ]; then 8 | echo "This script mut be run by daemontools, not from the shell" 9 | echo "To set this up symlink $DAEMONDIR to /services/mydaemon" 10 | fi 11 | 12 | exec \ 13 | envdir $DAEMONDIR/env \ 14 | sh -c 'exec setuidgid $USER $BASEDIR/bin/@NAME@' > $DAEMONDIR/logs/@NAME@.log 2>&1 15 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/main/resources/org/codehaus/mojo/appassembler/daemon/script/.gitattributes: -------------------------------------------------------------------------------- 1 | # Set the default behavior, in case people don't have core.autocrlf set. 2 | * text=auto 3 | 4 | # Declare files that will always have LF line endings on checkout. 5 | unixBinTemplate text eol=lf -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/main/resources/org/codehaus/mojo/appassembler/daemon/script/default-license-header.txt: -------------------------------------------------------------------------------- 1 | ---------------------------------------------------------------------------- 2 | Copyright 2001-2006 The Apache Software Foundation. 3 | 4 | Licensed under the Apache License, Version 2.0 (the "License"); 5 | you may not use this file except in compliance with the License. 6 | You may obtain a copy of the License at 7 | 8 | http://www.apache.org/licenses/LICENSE-2.0 9 | 10 | Unless required by applicable law or agreed to in writing, software 11 | distributed under the License is distributed on an "AS IS" BASIS, 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | See the License for the specific language governing permissions and 14 | limitations under the License. 15 | ---------------------------------------------------------------------------- 16 | 17 | Copyright (c) 2001-2006 The Apache Software Foundation. All rights 18 | reserved. -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/main/resources/org/codehaus/mojo/appassembler/template/unixJswScriptTemplateSample: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | # From unixJswScriptTemplateSample 4 | 5 | APP_NAME="@app.name@" 6 | APP_LONG_NAME="@app.long.name@" 7 | @env.setup.unix@ 8 | @run.as.user.envvar@ 9 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/main/resources/org/codehaus/mojo/appassembler/template/unixScriptTemplateSample: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | 3 | #from unixScriptTemplateSample 4 | @LICENSE_HEADER@ 5 | @ENV_SETUP@ 6 | @REPO@ 7 | @CLASSPATH@ 8 | @EXTRA_JVM_ARGUMENTS@ 9 | @APP_NAME@ 10 | @MAINCLASS@ 11 | @APP_ARGUMENTS@ 12 | @UNIX_BACKGROUND@ 13 | @ENDORSED_DIR@ 14 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/main/resources/org/codehaus/mojo/appassembler/template/windowsJswScriptTemplateSample: -------------------------------------------------------------------------------- 1 | @echo off 2 | setlocal 3 | 4 | rem from windowsJswScriptTemplateSample 5 | @env.setup.windows@ 6 | 7 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/main/resources/org/codehaus/mojo/appassembler/template/windowsScriptTemplateSample: -------------------------------------------------------------------------------- 1 | #LICENSE_HEADER# 2 | @echo off 3 | 4 | rem from windowsScriptTemplateSample 5 | #ENV_SETUP# 6 | #JAVA_BINARY# 7 | #REPO# 8 | #CLASSPATH# 9 | #EXTRA_JVM_ARGUMENTS# 10 | #APP_NAME# 11 | #MAINCLASS# 12 | #APP_ARGUMENTS# 13 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/test/resources/model-1.xml: -------------------------------------------------------------------------------- 1 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/test/resources/model-2.xml: -------------------------------------------------------------------------------- 1 | 24 | 25 | 26 | 27 | Foo 28 | 29 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/test/resources/model-3.xml: -------------------------------------------------------------------------------- 1 | 24 | 25 | 26 | 27 | foo.Bar 28 | 29 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/test/resources/model-4.xml: -------------------------------------------------------------------------------- 1 | 24 | 25 | 26 | foo.Bar 27 | jezloius 28 | 29 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/test/resources/org/codehaus/mojo/appassembler/daemon/script-basedir-repo/.gitattributes: -------------------------------------------------------------------------------- 1 | # Set the default behavior, in case people don't have core.autocrlf set. 2 | * text=auto 3 | 4 | # Declare files that will always have LF line endings on checkout. 5 | expected-basedir-test text eol=lf 6 | expected-repo-test text eol=lf -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/test/resources/org/codehaus/mojo/appassembler/daemon/script/.gitattributes: -------------------------------------------------------------------------------- 1 | # Set the default behavior, in case people don't have core.autocrlf set. 2 | * text=auto 3 | 4 | # Declare files that will always have LF line endings on checkout. 5 | expected-test text eol=lf 6 | expected-test-endorsed-lib text eol=lf -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/test/resources/org/codehaus/mojo/appassembler/daemon/script/background/.gitattributes: -------------------------------------------------------------------------------- 1 | # Set the default behavior, in case people don't have core.autocrlf set. 2 | * text=auto 3 | 4 | # Declare files that will always have LF line endings on checkout. 5 | expected-false-showConsoleWindow-test text eol=lf -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/test/resources/project-1/pom.xml: -------------------------------------------------------------------------------- 1 | 24 | 25 | 26 | 4.0.0 27 | org.codehaus.mojo.appassembler 28 | project-1 29 | 1.0-SNAPSHOT 30 | Test Project 31 | This is a test project. 32 | 33 | 34 | org.codehaus.plexus 35 | plexus-utils 36 | 1.1 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/test/resources/project-10/pom.xml: -------------------------------------------------------------------------------- 1 | 24 | 25 | 26 | 4.0.0 27 | org.codehaus.mojo.appassembler 28 | project-9 29 | 1.0-SNAPSHOT 30 | Test Project 31 | This is a test project. 32 | 33 | 34 | org.codehaus.plexus 35 | plexus-utils 36 | 1.1 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/test/resources/project-11/pom.xml: -------------------------------------------------------------------------------- 1 | 24 | 25 | 26 | 4.0.0 27 | org.codehaus.mojo.appassembler 28 | project-9 29 | 1.0-SNAPSHOT 30 | Test Project 31 | This is a test project. 32 | 33 | 34 | org.codehaus.plexus 35 | plexus-utils 36 | 1.1 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/test/resources/project-12/pom.xml: -------------------------------------------------------------------------------- 1 | 24 | 25 | 26 | 4.0.0 27 | org.codehaus.mojo.appassembler 28 | project-12 29 | 1.0-SNAPSHOT 30 | Test Project 31 | This is a test project. 32 | 33 | 34 | org.codehaus.plexus 35 | plexus-utils 36 | 1.1 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/test/resources/project-13/pom.xml: -------------------------------------------------------------------------------- 1 | 24 | 25 | 26 | 4.0.0 27 | org.codehaus.mojo.appassembler 28 | project-13 29 | 1.0-SNAPSHOT 30 | Test Project 31 | This is a test project. 32 | 33 | 34 | org.codehaus.plexus 35 | plexus-utils 36 | 1.1 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/test/resources/project-14/descriptor.xml: -------------------------------------------------------------------------------- 1 | 24 | 25 | 26 | com.westerngeco.example.App 27 | etc 28 | 29 | 30 | jsw 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/test/resources/project-14/pom.xml: -------------------------------------------------------------------------------- 1 | 24 | 25 | 26 | 4.0.0 27 | org.codehaus.mojo.appassembler 28 | project-14 29 | 1.0-SNAPSHOT 30 | Test Project 31 | This is a test project. 32 | 33 | 34 | org.codehaus.plexus 35 | plexus-utils 36 | 1.1 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/test/resources/project-15/descriptor.xml: -------------------------------------------------------------------------------- 1 | 24 | 25 | 26 | com.westerngeco.example.App 27 | conf 28 | 29 | 30 | jsw 31 | 32 | 33 | lib 34 | lib-endorsed 35 | 36 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/test/resources/project-15/pom.xml: -------------------------------------------------------------------------------- 1 | 24 | 25 | 26 | 4.0.0 27 | org.codehaus.mojo.appassembler 28 | project-15 29 | 1.0-SNAPSHOT 30 | Test Project 31 | This is a test project. 32 | 33 | 34 | org.codehaus.plexus 35 | plexus-utils 36 | 1.1 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/test/resources/project-2/pom.xml: -------------------------------------------------------------------------------- 1 | 24 | 25 | 26 | 4.0.0 27 | org.codehaus.mojo.appassembler 28 | project-2 29 | 1.0-SNAPSHOT 30 | 31 | 32 | org.codehaus.plexus 33 | plexus-utils 34 | 1.1 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/test/resources/project-4/pom.xml: -------------------------------------------------------------------------------- 1 | 24 | 25 | 26 | 4.0.0 27 | org.codehaus.mojo.appassembler 28 | project-1 29 | 1.0-SNAPSHOT 30 | Test Project 31 | This is a test project. 32 | 33 | 34 | org.codehaus.plexus 35 | plexus-utils 36 | 1.1 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/test/resources/project-5/pom.xml: -------------------------------------------------------------------------------- 1 | 24 | 25 | 26 | 4.0.0 27 | org.codehaus.mojo.appassembler 28 | project-1 29 | 1.0-SNAPSHOT 30 | Test Project 31 | This is a test project. 32 | 33 | 34 | org.codehaus.plexus 35 | plexus-utils 36 | 1.1 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/test/resources/project-6/pom.xml: -------------------------------------------------------------------------------- 1 | 24 | 25 | 26 | 4.0.0 27 | org.codehaus.mojo.appassembler 28 | project-6 29 | 1.0-SNAPSHOT 30 | Test Project 31 | This is a test project. 32 | 33 | 34 | org.codehaus.plexus 35 | plexus-utils 36 | 1.1 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/test/resources/project-7/pom.xml: -------------------------------------------------------------------------------- 1 | 24 | 25 | 26 | 4.0.0 27 | org.codehaus.mojo.appassembler 28 | project-6 29 | 1.0-SNAPSHOT 30 | Test Project 31 | This is a test project. 32 | 33 | 34 | org.codehaus.plexus 35 | plexus-utils 36 | 1.1 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/test/resources/project-8/pom.xml: -------------------------------------------------------------------------------- 1 | 24 | 25 | 26 | 4.0.0 27 | org.codehaus.mojo.appassembler 28 | project-8 29 | 1.0-SNAPSHOT 30 | Test Project 31 | This is a test project using RUN_AS_USER. 32 | 33 | 34 | org.codehaus.plexus 35 | plexus-utils 36 | 1.1 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /appassembler-maven-plugin/src/test/resources/project-9/pom.xml: -------------------------------------------------------------------------------- 1 | 24 | 25 | 26 | 4.0.0 27 | org.codehaus.mojo.appassembler 28 | project-9 29 | 1.0-SNAPSHOT 30 | Test Project 31 | This is a test project. 32 | 33 | 34 | org.codehaus.plexus 35 | plexus-utils 36 | 1.1 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /appassembler-model/LICENSE.txt: -------------------------------------------------------------------------------- 1 | 2 | The MIT License 3 | 4 | Copyright 2006-2012 The Codehaus. 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files \(the "Software"\), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 10 | of the Software, and to permit persons to whom the Software is furnished to do 11 | so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE. 23 | -------------------------------------------------------------------------------- /src/site/apt/index.apt: -------------------------------------------------------------------------------- 1 | ~~ 2 | ~~ 3 | ~~ The MIT License 4 | ~~ 5 | ~~ Copyright 2006-2012 The Codehaus. 6 | ~~ 7 | ~~ Permission is hereby granted, free of charge, to any person obtaining a copy of 8 | ~~ this software and associated documentation files (the "Software"), to deal in 9 | ~~ the Software without restriction, including without limitation the rights to 10 | ~~ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 11 | ~~ of the Software, and to permit persons to whom the Software is furnished to do 12 | ~~ so, subject to the following conditions: 13 | ~~ 14 | ~~ The above copyright notice and this permission notice shall be included in all 15 | ~~ copies or substantial portions of the Software. 16 | ~~ 17 | ~~ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | ~~ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | ~~ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | ~~ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | ~~ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | ~~ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | ~~ SOFTWARE. 24 | ~~ 25 | 26 | ----- 27 | Mojo Appassembler 28 | ----- 29 | Brett Porter 30 | Kristian Nordal 31 | Trygve Laugstol 32 | ----- 33 | 13 May 2008 34 | ----- 35 | 36 | Mojo Appassembler 37 | 38 | Writing good end to end portable applications in Java has always 39 | been a pain because of the missing OS abstractions. The main goal of the 40 | Appassembler Maven plug-in is to try to remove some of this pain through 41 | an application descriptor and a set of Maven Mojos. 42 | 43 | To get started using the plug-in for generating a runtime, see the 44 | {{{./appassembler-maven-plugin/index.html} Maven plugin documentation}} 45 | --------------------------------------------------------------------------------