Commits

Sam Adams committed f144d9c

Create chempound-webapp-war project

Comments (0)

Files changed (7)

chempound-webapp-war/pom.xml

+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+    <parent>
+        <groupId>net.chempound</groupId>
+        <artifactId>chempound</artifactId>
+        <version>0.1-SNAPSHOT</version>
+    </parent>
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <artifactId>chempound-webapp-war</artifactId>
+    <packaging>war</packaging>
+
+    <name>Chempound :: WebApp :: War</name>
+
+    <dependencies>
+
+        <dependency>
+            <groupId>net.chempound</groupId>
+            <artifactId>chempound-webapp</artifactId>
+            <version>0.1-SNAPSHOT</version>
+        </dependency>
+
+    </dependencies>
+
+</project>

chempound-webapp-war/src/main/webapp/WEB-INF/web.xml

+<?xml version="1.0" encoding="UTF-8"?>
+<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+
+    <display-name>Chempound</display-name>
+
+    <listener>
+        <listener-class>net.chempound.webapp.ChempoundServletConfig</listener-class>
+    </listener>
+
+    <filter>
+        <filter-name>guiceFilter</filter-name>
+        <filter-class>com.google.inject.servlet.GuiceFilter</filter-class>
+    </filter>
+
+    <filter-mapping>
+        <filter-name>guiceFilter</filter-name>
+        <url-pattern>/*</url-pattern>
+    </filter-mapping>
+
+</web-app>

chempound-webapp-war/src/main/webapp/robots.txt

+User-agent: *
+Disallow: /search/
+Disallow: /sparql/
+Disallow: /sword/

chempound-webapp/src/main/resources/net/chempound/templates/default/collection.ftl

+<div class="collection">
+<#if title><h1 class="title">${title}</h1></#if>
 <#list aggregation.aggregatedResources as resource>
     <div class="result<#if resource_index == 0> first</#if>">
     <@macro.snippet items[resource.uri] />
     </div>
 </#list>
+</div>

chempound-webapp/src/main/webapp/WEB-INF/web.xml

-<?xml version="1.0" encoding="UTF-8"?>
-<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
-
-    <display-name>Quixote Chempound</display-name>
-
-    <listener>
-        <listener-class>net.chempound.webapp.ChempoundServletConfig</listener-class>
-    </listener>
-
-    <filter>
-        <filter-name>guiceFilter</filter-name>
-        <filter-class>com.google.inject.servlet.GuiceFilter</filter-class>
-    </filter>
-
-    <filter-mapping>
-        <filter-name>guiceFilter</filter-name>
-        <url-pattern>/*</url-pattern>
-    </filter-mapping>
-
-</web-app>

chempound-webapp/src/main/webapp/robots.txt

-User-agent: *
-Disallow: /search/
-Disallow: /sparql/
-Disallow: /sword/
         <module>chempound-rdf</module>
         <module>chempound-webapi</module>
         <module>chempound-webapp</module>
+        <module>chempound-webapp-war</module>
     </modules>
 
     <dependencyManagement>