diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/app-a-bundle/pom.xml | 77 | ||||
-rw-r--r-- | examples/app-a-bundle/src/main/unix/files/root/etc/booter.properties | 2 | ||||
-rw-r--r-- | examples/app-a-bundle/src/main/unix/files/scripts/postinstall | 6 | ||||
-rw-r--r-- | examples/app-a-web/pom.xml | 11 | ||||
-rw-r--r-- | examples/app-a-web/src/main/webapp/WEB-INF/web.xml | 4 | ||||
-rw-r--r-- | examples/app-a-web/src/main/webapp/index.jspx | 10 |
6 files changed, 110 insertions, 0 deletions
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 @@ +<project> + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>io.trygvis.appsh</groupId> + <artifactId>appsh-parent</artifactId> + <version>1.0-SNAPSHOT</version> + </parent> + <groupId>io.trygvis.appsh.examples</groupId> + <artifactId>app-a-bundle</artifactId> + <packaging>unix-zip</packaging> + <repositories> + <repository> + <id>trygvis.io-snapshots</id> + <url>http://repo.trygvis.io/snapshots</url> + </repository> + </repositories> + <dependencies> + <dependency> + <groupId>io.trygvis.appsh</groupId> + <artifactId>booter-jetty8</artifactId> + <version>1.0-SNAPSHOT</version> + </dependency> + <dependency> + <groupId>io.trygvis.appsh.examples</groupId> + <artifactId>app-a-web</artifactId> + <version>${project.version}</version> + <type>war</type> + </dependency> + </dependencies> + <build> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>appassembler-maven-plugin</artifactId> + <version>1.1</version> + <executions> + <execution> + <phase>generate-resources</phase> + <goals> + <goal>assemble</goal> + </goals> + </execution> + </executions> + <configuration> + <programs> + <program> + <name>app-a</name> + <mainClass>io.trygvis.appsh.booter.jetty8.Main</mainClass> + </program> + </programs> + </configuration> + </plugin> + <plugin> + <groupId>no.arktekk.unix</groupId> + <artifactId>unix-maven-plugin</artifactId> + <version>1.0-alpha-6</version> + <extensions>true</extensions> + <configuration> + <contact>Trygve Laugstol</contact> + <assembly> + <copyDirectory> + <from>target/appassembler</from> + <to>root</to> + <excludes> + <exclude>**/*.bat</exclude> + </excludes> + </copyDirectory> + <copyArtifact> + <artifact>io.trygvis.appsh.examples:app-a-web:war</artifact> + <toFile>root/wars/app-a-web.war</toFile> + </copyArtifact> + </assembly> + </configuration> + </plugin> + </plugins> + </build> +</project> 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 @@ +<project> + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>io.trygvis.appsh</groupId> + <artifactId>appsh-parent</artifactId> + <version>1.0-SNAPSHOT</version> + </parent> + <groupId>io.trygvis.appsh.examples</groupId> + <artifactId>app-a-web</artifactId> + <packaging>war</packaging> +</project> 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" + version="3.0"> +</web-app> 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 @@ +<html xmlns:jsp="http://java.sun.com/JSP/Page"> + <jsp:output doctype-root-element="HTML" doctype-system="about:legacy-compat"/> + <jsp:directive.page contentType="text/html;charset=UTF-8"/> + <head> + <title>Hello World!</title> + </head> + <body> + <h1>Hello World!</h1> + </body> +</html> |