You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chemistry.apache.org by sk...@apache.org on 2011/07/14 15:30:23 UTC
svn commit: r1146698 - in
/chemistry/opencmis/branches/server-osgi-enablement/chemistry-opencmis-server:
chemistry-opencmis-server-bindings-war/
chemistry-opencmis-server-bindings-war/src/
chemistry-opencmis-server-bindings-war/src/main/ chemistry-open...
Author: sklevenz
Date: Thu Jul 14 13:30:23 2011
New Revision: 1146698
URL: http://svn.apache.org/viewvc?rev=1146698&view=rev
Log:
CMIS-400 initial branch commit
Added:
chemistry/opencmis/branches/server-osgi-enablement/chemistry-opencmis-server/chemistry-opencmis-server-bindings-war/
chemistry/opencmis/branches/server-osgi-enablement/chemistry-opencmis-server/chemistry-opencmis-server-bindings-war/pom.xml
chemistry/opencmis/branches/server-osgi-enablement/chemistry-opencmis-server/chemistry-opencmis-server-bindings-war/src/
chemistry/opencmis/branches/server-osgi-enablement/chemistry-opencmis-server/chemistry-opencmis-server-bindings-war/src/main/
chemistry/opencmis/branches/server-osgi-enablement/chemistry-opencmis-server/chemistry-opencmis-server-bindings-war/src/main/resources/
chemistry/opencmis/branches/server-osgi-enablement/chemistry-opencmis-server/chemistry-opencmis-server-bindings-war/src/main/resources/META-INF/
chemistry/opencmis/branches/server-osgi-enablement/chemistry-opencmis-server/chemistry-opencmis-server-bindings-war/src/main/webapp/
chemistry/opencmis/branches/server-osgi-enablement/chemistry-opencmis-server/chemistry-opencmis-server-inmemory-war/
chemistry/opencmis/branches/server-osgi-enablement/chemistry-opencmis-server/chemistry-opencmis-server-inmemory-war/pom.xml
chemistry/opencmis/branches/server-osgi-enablement/chemistry-opencmis-server/chemistry-opencmis-server-inmemory-war/src/
chemistry/opencmis/branches/server-osgi-enablement/chemistry-opencmis-server/chemistry-opencmis-server-inmemory-war/src/main/
chemistry/opencmis/branches/server-osgi-enablement/chemistry-opencmis-server/chemistry-opencmis-server-inmemory-war/src/main/webapp/
chemistry/opencmis/branches/server-osgi-enablement/chemistry-opencmis-server/chemistry-opencmis-server-inmemory-war/src/main/webapp/index.jsp
Added: chemistry/opencmis/branches/server-osgi-enablement/chemistry-opencmis-server/chemistry-opencmis-server-bindings-war/pom.xml
URL: http://svn.apache.org/viewvc/chemistry/opencmis/branches/server-osgi-enablement/chemistry-opencmis-server/chemistry-opencmis-server-bindings-war/pom.xml?rev=1146698&view=auto
==============================================================================
--- chemistry/opencmis/branches/server-osgi-enablement/chemistry-opencmis-server/chemistry-opencmis-server-bindings-war/pom.xml (added)
+++ chemistry/opencmis/branches/server-osgi-enablement/chemistry-opencmis-server/chemistry-opencmis-server-bindings-war/pom.xml Thu Jul 14 13:30:23 2011
@@ -0,0 +1,139 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+ <!--
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless
+ required by applicable law or agreed to in writing, software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations under the License.
+ -->
+
+<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/maven-v4_0_0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.chemistry.opencmis</groupId>
+ <artifactId>chemistry-opencmis</artifactId>
+ <version>0.5.0-SNAPSHOT</version>
+ <relativePath>../../pom.xml</relativePath>
+ </parent>
+
+ <artifactId>chemistry-opencmis-server-bindings-war</artifactId>
+ <name>OpenCMIS Server Implementation WAR packaging</name>
+ <packaging>war</packaging>
+
+ <properties>
+ <parentBasedir>../../</parentBasedir>
+ </properties>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>unpack</id>
+ <phase>initialize</phase>
+ <goals>
+ <goal>unpack</goal>
+ </goals>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>chemistry-opencmis-commons-impl</artifactId>
+ <version>${project.version}</version>
+ <type>jar</type>
+ <overWrite>true</overWrite>
+ <includes>wsdl/*.xsd, wsdl/*.wsdl</includes>
+ </artifactItem>
+ </artifactItems>
+ <outputDirectory>${project.basedir}/src/main/webapp/WEB-INF</outputDirectory>
+ <overWriteReleases>true</overWriteReleases>
+ <overWriteSnapshots>true</overWriteSnapshots>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>chemistry-opencmis-commons-api</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>chemistry-opencmis-commons-impl</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <!-- server-support is not a *runtime* dependency but it's added for commodity in the WAR -->
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>chemistry-opencmis-server-support</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>chemistry-opencmis-server-bindings</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-fileupload</groupId>
+ <artifactId>commons-fileupload</artifactId>
+ <version>1.2.1</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-io</groupId>
+ <artifactId>commons-io</artifactId>
+ <version>2.0.1</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-lang</groupId>
+ <artifactId>commons-lang</artifactId>
+ <version>2.6</version>
+ </dependency>
+ <dependency>
+ <groupId>com.googlecode.json-simple</groupId>
+ <artifactId>json-simple</artifactId>
+ <version>1.1</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <version>2.4</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>com.sun.xml.ws</groupId>
+ <artifactId>jaxws-rt</artifactId>
+ <version>2.1.7</version>
+ <scope>compile</scope>
+ </dependency>
+ </dependencies>
+
+ <repositories>
+ <repository>
+ <id>maven-repository.dev.java.net</id>
+ <name>Java.net Repository for Maven 1</name>
+ <url>http://download.java.net/maven/1/</url>
+ <layout>legacy</layout>
+ </repository>
+ <repository>
+ <id>maven2-repository.dev.java.net</id>
+ <name>Java.net Repository for Maven 2</name>
+ <url>http://download.java.net/maven/2/</url>
+ </repository>
+ </repositories>
+
+ <pluginRepositories>
+ <pluginRepository>
+ <id>maven2-repository.dev.java.net</id>
+ <url>http://download.java.net/maven/2/</url>
+ </pluginRepository>
+ </pluginRepositories>
+</project>
Added: chemistry/opencmis/branches/server-osgi-enablement/chemistry-opencmis-server/chemistry-opencmis-server-inmemory-war/pom.xml
URL: http://svn.apache.org/viewvc/chemistry/opencmis/branches/server-osgi-enablement/chemistry-opencmis-server/chemistry-opencmis-server-inmemory-war/pom.xml?rev=1146698&view=auto
==============================================================================
--- chemistry/opencmis/branches/server-osgi-enablement/chemistry-opencmis-server/chemistry-opencmis-server-inmemory-war/pom.xml (added)
+++ chemistry/opencmis/branches/server-osgi-enablement/chemistry-opencmis-server/chemistry-opencmis-server-inmemory-war/pom.xml Thu Jul 14 13:30:23 2011
@@ -0,0 +1,150 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+ <!--
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless
+ required by applicable law or agreed to in writing, software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations under the License.
+ -->
+
+<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/maven-v4_0_0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.chemistry.opencmis</groupId>
+ <artifactId>chemistry-opencmis</artifactId>
+ <version>0.5.0-SNAPSHOT</version>
+ <relativePath>../../pom.xml</relativePath>
+ </parent>
+
+ <artifactId>chemistry-opencmis-server-inmemory-war</artifactId>
+ <name>OpenCMIS InMemory Server WAR packaging</name>
+ <packaging>war</packaging>
+
+ <properties>
+ <parentBasedir>../../</parentBasedir>
+ </properties>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-war-plugin</artifactId>
+ <configuration>
+ <archive>
+ <manifestEntries>
+ <Bundle-Name>org.apache.chemistry.opencmis.server.inmemory</Bundle-Name>
+ <Bundle-SymbolicName>org.apache.chemistry.opencmis.server.inmemory</Bundle-SymbolicName>
+ <Bundle-Version>0.0.1</Bundle-Version>
+ <Import-Package>javax.servlet,javax.servlet.http,javax.servlet.resources</Import-Package>
+ <Bundle-Classpath>.</Bundle-Classpath>
+ <Web-ContextPath>inmemory</Web-ContextPath>
+ </manifestEntries>
+ </archive>
+ <overlays>
+ <overlay>
+ </overlay>
+ <overlay>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>chemistry-opencmis-server-bindings-war</artifactId>
+ </overlay>
+ </overlays>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-eclipse-plugin</artifactId>
+ <version>2.8</version>
+ <configuration>
+ <wtpversion>2.0</wtpversion>
+ <wtpContextName>inmemory</wtpContextName>
+ <linkedResources>
+ <linkedResource>
+ <name>src/main/webapp/WEB-INF/sun-jaxws.xml</name>
+ <type>1</type>
+ <location>WORKSPACE_LOC/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/webapp/WEB-INF/sun-jaxws.xml</location>
+ </linkedResource>
+ <linkedResource>
+ <name>src/main/webapp/WEB-INF/web.xml</name>
+ <type>1</type>
+ <location>WORKSPACE_LOC/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/webapp/WEB-INF/web.xml</location>
+ </linkedResource>
+ <linkedResource>
+ <name>src/main/webapp/WEB-INF/wsdl</name>
+ <type>2</type>
+ <location>WORKSPACE_LOC/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/webapp/WEB-INF/wsdl</location>
+ </linkedResource>
+ <linkedResource>
+ <name>src/main/webapp/css</name>
+ <type>2</type>
+ <location>WORKSPACE_LOC/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/webapp/css</location>
+ </linkedResource>
+ <linkedResource>
+ <name>src/main/webapp/images</name>
+ <type>2</type>
+ <location>WORKSPACE_LOC/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/webapp/images</location>
+ </linkedResource>
+ <linkedResource>
+ <name>src/main/webapp/web</name>
+ <type>2</type>
+ <location>WORKSPACE_LOC/chemistry-opencmis-server/chemistry-opencmis-server-bindings/src/main/webapp/web</location>
+ </linkedResource>
+ </linkedResources>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+ <dependencies>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>chemistry-opencmis-commons-api</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.chemistry.opencmis</groupId>
+ <artifactId>chemistry-opencmis-commons-impl</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>chemistry-opencmis-client-bindings</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>chemistry-opencmis-test-util</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>chemistry-opencmis-server-bindings-war</artifactId>
+ <version>${project.version}</version>
+ <type>war</type>
+ </dependency>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>chemistry-opencmis-server-support</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
+ <artifactId>chemistry-opencmis-server-inmemory</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.antlr</groupId>
+ <artifactId>antlr-runtime</artifactId>
+ <version>3.1.3</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <version>2.4</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+
+</project>
Added: chemistry/opencmis/branches/server-osgi-enablement/chemistry-opencmis-server/chemistry-opencmis-server-inmemory-war/src/main/webapp/index.jsp
URL: http://svn.apache.org/viewvc/chemistry/opencmis/branches/server-osgi-enablement/chemistry-opencmis-server/chemistry-opencmis-server-inmemory-war/src/main/webapp/index.jsp?rev=1146698&view=auto
==============================================================================
--- chemistry/opencmis/branches/server-osgi-enablement/chemistry-opencmis-server/chemistry-opencmis-server-inmemory-war/src/main/webapp/index.jsp (added)
+++ chemistry/opencmis/branches/server-osgi-enablement/chemistry-opencmis-server/chemistry-opencmis-server-inmemory-war/src/main/webapp/index.jsp Thu Jul 14 13:30:23 2011
@@ -0,0 +1,236 @@
+<!--
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+-->
+<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
+ pageEncoding="ISO-8859-1"%>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+
+<%@ page import="java.util.Date, java.text.SimpleDateFormat, java.util.Locale, java.util.Calendar" %>
+<%@ page import="org.apache.chemistry.opencmis.inmemory.storedobj.api.StoreManager" %>
+<%@ page import="org.apache.chemistry.opencmis.commons.server.CallContext" %>
+<%@ page import="org.apache.chemistry.opencmis.inmemory.DummyCallContext" %>
+<%@ page import="org.apache.chemistry.opencmis.commons.server.CmisServiceFactory" %>
+<%@ page import="org.apache.chemistry.opencmis.commons.server.CmisService" %>
+<%@ page import="org.apache.chemistry.opencmis.inmemory.server.InMemoryService" %>
+<%@ page import="org.apache.chemistry.opencmis.inmemory.ConfigConstants" %>
+<%@ page import="org.apache.chemistry.opencmis.inmemory.ConfigurationSettings" %>
+
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+<link rel="stylesheet" type="text/css" href="css/opencmis.css"/>
+<title>Apache Chemistry OpenCMIS-InMemory Server</title>
+
+<%!
+ private StoreManager getStoreManager(HttpServletRequest request) {
+ CallContext context = new DummyCallContext();
+ CmisServiceFactory servicesFactory = (CmisServiceFactory) request.getSession().getServletContext().getAttribute(
+ "org.apache.chemistry.opencmis.servicesfactory");
+ // AbstractServiceFactory factory = (AbstractServiceFactory)
+ CmisService service = servicesFactory.getService(context);
+ if (!(service instanceof InMemoryService))
+ throw new RuntimeException("Illegal configuration, service must be of type InMemoryService.");
+ return ((InMemoryService) service).getStoreManager();
+ }
+%>
+
+</head>
+<body>
+ <img alt="Apache Chemistry Logo" title="Apache Chemistry Logo" src="images/chemistry_logo_small.png" />
+
+<h1>OpenCMIS InMemory Server</h1>
+<p> Your server is up and running.</p>
+<p>
+ The OpenCMIS InMemory Server is a CMIS server for development and test purposes.
+ All objects are hold in memory and will be lost after shutdown.
+</p>
+<p>
+ You have to use a CMIS client to use this application. An example for
+ such a client is the <a href="http://chemistry.apache.org/java/developing/tools/dev-tools-workbench.html"> CMIS Workbench.</a>
+</p>
+
+<h2>Access Information</h2>
+<p>
+WS (SOAP) Binding: <a href="services/RepositoryService"> All Services</a>
+</p>
+<p>
+AtomPub Binding: <a href="atom">
+<%
+String reqStr = request.getRequestURL().toString();
+out.println(reqStr.substring(0, reqStr.lastIndexOf('/')+1) + "atom");
+%>
+</a>
+</p>
+<p>
+Authentication: Basic Authentication (user name and password are arbitrary)
+Note: Authentication is optional and only informational. User names are stored
+in properties (createdBy, etc.), password is not required. The server does
+not perform any kind of secure authentication.
+</p>
+
+<h2>Web Interface</h2>
+<p>
+The <a href="web">OpenCMIS web interface</a> is simple web interface to access
+the repository. Please note that this is not the usual way to access the repository.
+Usually you will use a client application supporting the CMIS specification like
+the CMIS workbench.
+</p>
+
+<h2>NOTICE</h2>
+<p>
+This is an unsupported and experimental service. Any use is at your own risk.
+</p>
+<p>
+This service is provided on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
+OF ANY KIND, either express or implied. See the license below for more information.
+</p>
+
+<h2>Monitor</h2>
+<p>
+ Current state of the server:
+</p>
+
+<table>
+<tr> <th> Repository Id </th> <th> No. of objects</th></tr>
+<%
+ StoreManager sm = getStoreManager(request);
+ for (String repId: sm.getAllRepositoryIds() ) {
+ out.println("<td>" + repId + "</td>");
+ out.println("<td>" + sm.getObjectStore(repId).getObjectCount() + "</td>");
+ }
+%>
+</table>
+<p> </p>
+<table>
+<tr> <th> Java VM </th> <th>Size</th></tr>
+<%
+ Runtime runtime = Runtime.getRuntime ();
+ long mb = 1048576;
+ long value;
+ value = runtime.totalMemory ();
+ value = (value + mb/2) / mb;
+ out.println("<tr><td> Used Memory </td>");
+ out.println("<td>" + value + "MB</td></tr>");
+ value = runtime.maxMemory ();
+ value = (value + mb/2) / mb;
+ out.println("<tr><td> Max Memory </td>");
+ out.println("<td>" + value + "MB</td></tr>");
+ value = runtime.freeMemory ();
+ value = (value + mb/2) / mb;
+ out.println("<tr><td> Free Memory </td>");
+ out.println("<td>" + value + "MB</td>");
+ out.println("<tr><td> Processors </td>");
+ out.println("<td>" + runtime.availableProcessors() + "</td></tr>");
+%>
+</table>
+
+<h2>Configuration</h2>
+<p>
+ Important configuration settings
+</p>
+
+<table>
+<tr> <th> Setting </th> <th> Value</th></tr>
+<tr>
+ <td>Max. allowed content size </td>
+ <%
+ String maxSize = ConfigurationSettings.getConfigurationValueAsString(ConfigConstants.MAX_CONTENT_SIZE_KB);
+ if (null == maxSize)
+ maxSize = "unlimited";
+ else
+ maxSize += "KB";
+ out.println("<td>" + maxSize + "</td>");
+ %>
+</tr>
+<tr>
+ <td>Auto clean every</td>
+ <%
+ String cleanInterValStr = ConfigurationSettings.getConfigurationValueAsString(ConfigConstants.CLEAN_REPOSITORY_INTERVAL);
+ if (null == cleanInterValStr)
+ out.println("<td> - </td>");
+ else
+ out.println("<td>" + cleanInterValStr + " minutes </td>");
+ %>
+</tr>
+<tr>
+ <td>Time of deployment</td>
+ <%
+ out.println("<td>" + ConfigurationSettings.getConfigurationValueAsString(ConfigConstants.DEPLOYMENT_TIME) + "</td>");
+ %>
+</tr>
+<tr>
+ <td>Next cleanup</td>
+ <%
+ String dateStr;
+ Long interval = ConfigurationSettings.getConfigurationValueAsLong(ConfigConstants.CLEAN_REPOSITORY_INTERVAL);
+ long diff = 0;
+
+ if (null == interval)
+ dateStr = "Never";
+ else {
+ try {
+ Date now = new Date();
+ Calendar calNow = Calendar.getInstance();
+ Calendar calNextClean = Calendar.getInstance();
+ calNow.setTime(now);
+ SimpleDateFormat formatter ;
+ Date deploy;
+ formatter = new SimpleDateFormat("EEE MMM dd hh:mm:ss a z yyyy", Locale.US);
+ deploy = formatter.parse(ConfigurationSettings.getConfigurationValueAsString(ConfigConstants.DEPLOYMENT_TIME));
+ calNextClean.setTime(deploy);
+ while (calNextClean.before(calNow))
+ calNextClean.add(Calendar.MINUTE, interval.intValue());
+ dateStr = formatter.format(calNextClean.getTime());
+ diff = calNextClean.getTimeInMillis() - calNow.getTimeInMillis();
+
+ } catch (Exception e) {
+ dateStr = e.getMessage();
+ }
+ }
+ if (diff > 0)
+ dateStr += " (in " + diff / 60000 + "min, " + ((diff / 1000) % 60) + "s)";
+
+ // Date deploy = new Date(Date.parse();
+ out.println("<td>" + dateStr + "</td>");
+ %>
+</tr>
+</table>
+
+<h2>More Information</h2>
+<p>
+<a href="http://chemistry.apache.org"> Apache Chemistry web site</a>
+</p>
+<p>
+<a href="http://www.oasis-open.org/committees/cmis"> CMIS page at OASIS</a>
+</p>
+
+
+<hr/>
+<h2>License Information</h2>
+This software is licensed under the
+<a href="http://www.apache.org/licenses/LICENSE-2.0.html"> Apache 2.0 License </a>
+<br/>
+
+<a href="http://www.apache.org">
+ <img alt="ASF Logo" title="ASF Logo" src="images/asf_logo.png" align="right"/>
+</a>
+
+</body>
+</html>
\ No newline at end of file