From eea29a05abbd9a89a181455ac858173fc3640f93 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 7 Oct 2012 18:50:48 +0200 Subject: o Initial import of Java utils for app.sh. --- examples/app-a-bundle/pom.xml | 77 ++++++++++++++++++++++ .../src/main/unix/files/root/etc/booter.properties | 2 + .../src/main/unix/files/scripts/postinstall | 6 ++ examples/app-a-web/pom.xml | 11 ++++ examples/app-a-web/src/main/webapp/WEB-INF/web.xml | 4 ++ examples/app-a-web/src/main/webapp/index.jspx | 10 +++ 6 files changed, 110 insertions(+) create mode 100644 examples/app-a-bundle/pom.xml create mode 100644 examples/app-a-bundle/src/main/unix/files/root/etc/booter.properties create mode 100644 examples/app-a-bundle/src/main/unix/files/scripts/postinstall create mode 100644 examples/app-a-web/pom.xml create mode 100644 examples/app-a-web/src/main/webapp/WEB-INF/web.xml create mode 100644 examples/app-a-web/src/main/webapp/index.jspx (limited to 'examples') diff --git a/examples/app-a-bundle/pom.xml b/examples/app-a-bundle/pom.xml new file mode 100644 index 0000000..63b4c5a --- /dev/null +++ b/examples/app-a-bundle/pom.xml @@ -0,0 +1,77 @@ + + 4.0.0 + + io.trygvis.appsh + appsh-parent + 1.0-SNAPSHOT + + io.trygvis.appsh.examples + app-a-bundle + unix-zip + + + trygvis.io-snapshots + http://repo.trygvis.io/snapshots + + + + + io.trygvis.appsh + booter-jetty8 + 1.0-SNAPSHOT + + + io.trygvis.appsh.examples + app-a-web + ${project.version} + war + + + + + + org.codehaus.mojo + appassembler-maven-plugin + 1.1 + + + generate-resources + + assemble + + + + + + + app-a + io.trygvis.appsh.booter.jetty8.Main + + + + + + no.arktekk.unix + unix-maven-plugin + 1.0-alpha-6 + true + + Trygve Laugstol + + + target/appassembler + root + + **/*.bat + + + + io.trygvis.appsh.examples:app-a-web:war + root/wars/app-a-web.war + + + + + + + diff --git a/examples/app-a-bundle/src/main/unix/files/root/etc/booter.properties b/examples/app-a-bundle/src/main/unix/files/root/etc/booter.properties new file mode 100644 index 0000000..8c36e9c --- /dev/null +++ b/examples/app-a-bundle/src/main/unix/files/root/etc/booter.properties @@ -0,0 +1,2 @@ +http.port=3001 +context./=wars/app-a-web.war diff --git a/examples/app-a-bundle/src/main/unix/files/scripts/postinstall b/examples/app-a-bundle/src/main/unix/files/scripts/postinstall new file mode 100644 index 0000000..381dff7 --- /dev/null +++ b/examples/app-a-bundle/src/main/unix/files/scripts/postinstall @@ -0,0 +1,6 @@ +#!/bin/bash + +echo "pwd: " +pwd +echo "env:" +env diff --git a/examples/app-a-web/pom.xml b/examples/app-a-web/pom.xml new file mode 100644 index 0000000..4258644 --- /dev/null +++ b/examples/app-a-web/pom.xml @@ -0,0 +1,11 @@ + + 4.0.0 + + io.trygvis.appsh + appsh-parent + 1.0-SNAPSHOT + + io.trygvis.appsh.examples + app-a-web + war + diff --git a/examples/app-a-web/src/main/webapp/WEB-INF/web.xml b/examples/app-a-web/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000..50e8c1e --- /dev/null +++ b/examples/app-a-web/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,4 @@ + + + diff --git a/examples/app-a-web/src/main/webapp/index.jspx b/examples/app-a-web/src/main/webapp/index.jspx new file mode 100644 index 0000000..166ef4b --- /dev/null +++ b/examples/app-a-web/src/main/webapp/index.jspx @@ -0,0 +1,10 @@ + + + + + Hello World! + + +

Hello World!

+ + -- cgit v1.2.3