chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sklev...@apache.org
Subject svn commit: r1103480 - in /chemistry/opencmis/trunk: ./ chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/ chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/ chemistry-opencmis-workbench/chemistry-opencmis-workbenc...
Date Sun, 15 May 2011 17:47:44 GMT
Author: sklevenz
Date: Sun May 15 17:47:44 2011
New Revision: 1103480

URL: http://svn.apache.org/viewvc?rev=1103480&view=rev
Log:
CMIS-375: introduced new maven module for packaging CMISWorkbench into a WAR using JNLPDownloadservlet

Added:
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/pom.xml
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/jnlp/
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/jnlp/resources/
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/jnlp/resources/images/
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/jnlp/resources/images/icon.png
  (with props)
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/jnlp/resources/images/splash.png
  (with props)
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/jnlp/workbench.vm
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/webapp/
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/webapp/WEB-INF/
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/webapp/WEB-INF/web.xml
  (with props)
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/webapp/css/
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/webapp/css/opencmis.css
  (with props)
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/webapp/images/
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/webapp/images/asf_logo.png
  (with props)
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/webapp/images/chemistry_logo_small.png
  (with props)
    chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/webapp/index.jsp
  (with props)
Modified:
    chemistry/opencmis/trunk/pom.xml

Added: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/pom.xml
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/pom.xml?rev=1103480&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/pom.xml
(added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/pom.xml
Sun May 15 17:47:44 2011
@@ -0,0 +1,116 @@
+<?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/maven-v4_0_0.xsd">
+
+	<modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.chemistry.opencmis</groupId>
+        <artifactId>chemistry-opencmis</artifactId>
+        <version>0.4.0-SNAPSHOT</version>
+        <relativePath>../../pom.xml</relativePath>
+    </parent>
+
+    <artifactId>chemistry-opencmis-workbench-webstart</artifactId>
+    <name>OpenCMIS Workbench WebStart</name>
+    <packaging>war</packaging>
+
+    <properties>
+        <parentBasedir>../../</parentBasedir>
+        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+        <!-- Java 6 is required due to AWT dependencies -->
+        <maven.compile.source>1.6</maven.compile.source>
+        <maven.compile.target>1.6</maven.compile.target>
+    </properties>
+
+	<build>
+		<plugins>
+			<plugin>
+				<groupId>org.codehaus.mojo.webstart</groupId>
+				<artifactId>webstart-maven-plugin</artifactId>
+				<version>1.0-beta-1</version>
+				<executions>
+					<execution>
+						<phase>process-resources</phase>
+						<goals>
+							<goal>jnlp-download-servlet</goal>
+						</goals>
+					</execution>
+				</executions>
+
+				<configuration>
+					<outputDirectoryName>workbench</outputDirectoryName>
+					<libPath>lib</libPath>
+
+					<jnlpFiles>
+						<jnlpFile>
+							<templateFilename>workbench.vm</templateFilename>
+							<outputFilename>CMISWorkbench.jnlp</outputFilename>
+							<jarResources>
+								<jarResource>
+									<groupId>org.apache.chemistry.opencmis</groupId>
+									<artifactId>chemistry-opencmis-workbench</artifactId>
+						            <version>${project.version}</version>
+									<mainClass>org.apache.chemistry.opencmis.workbench.Workbench</mainClass>
+								</jarResource>
+							</jarResources>
+						</jnlpFile>
+					</jnlpFiles>
+
+					<outputJarVersions>true</outputJarVersions>
+
+                    <pack200>true</pack200>
+                    <gzip>true</gzip>
+
+                    <sign>
+                        <keystore>${project.build.directory}/keystore</keystore>
+                        <keypass>password</keypass>
+                        <storepass>password</storepass>
+                        <alias>webstart</alias>
+
+                        <validity>365</validity>
+                        <dnameCn>ECM JPaaS Serivce</dnameCn>
+                        <dnameOu>TIP Core CSI ECM</dnameOu>
+                        <dnameO>SAP AG</dnameO>
+
+                        <verify>true</verify>
+
+                        <keystoreConfig>
+                            <delete>true</delete>
+                            <gen>true</gen>
+                        </keystoreConfig>
+                    </sign>
+
+				</configuration>
+
+			</plugin>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-war-plugin</artifactId>
+				<version>2.1.1</version>
+				<configuration>
+					<archive>
+						<manifest>
+							<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
+						</manifest>
+						<manifestEntries>
+							<Web-ContextPath>/org.apache.chemistry.opencmis.workbench</Web-ContextPath>
+							<Timestamp>${maven.build.timestamp}</Timestamp>
+							<BuildHost>${env.COMPUTERNAME}</BuildHost>
+						</manifestEntries>
+					</archive>
+				</configuration>
+			</plugin>
+		</plugins>
+
+	</build>
+
+	<dependencies>
+		<dependency>
+			<groupId>org.codehaus.mojo.webstart</groupId>
+			<artifactId>webstart-jnlp-servlet</artifactId>
+			<version>1.0-6.0.02_ea_b02.1</version>
+		</dependency>
+	</dependencies>
+
+</project>
\ No newline at end of file

Added: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/jnlp/resources/images/icon.png
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/jnlp/resources/images/icon.png?rev=1103480&view=auto
==============================================================================
Binary file - no diff available.

Propchange: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/jnlp/resources/images/icon.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/jnlp/resources/images/splash.png
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/jnlp/resources/images/splash.png?rev=1103480&view=auto
==============================================================================
Binary file - no diff available.

Propchange: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/jnlp/resources/images/splash.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/jnlp/workbench.vm
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/jnlp/workbench.vm?rev=1103480&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/jnlp/workbench.vm
(added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/jnlp/workbench.vm
Sun May 15 17:47:44 2011
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<jnlp spec="$jnlpspec" codebase="$$codebase" context="$$context" name="$$name" href="$$name">
+  <information>
+    <title>$project.name</title>
+    <vendor>$project.Organization.Name</vendor>
+    <homepage href="$project.Organization.Url"/>
+    <description>$project.description</description>
+    <offline-allowed/>
+    <update check="timeout" policy="prompt-update"/>
+  	<icon href="images/icon.png"/>
+  	<icon href="images/splash.png" kind="splash"/>
+  	<shortcut online="false">
+  		<desktop/>
+  	</shortcut>
+  </information>
+  <security>
+     <all-permissions/>
+  </security>
+  <offline-allowed/>
+  <resources>
+    <j2se version="1.6+" initial-heap-size="64m" max-heap-size="256m"/>
+     $dependencies
+  </resources>
+  <application-desc main-class="$mainClass"/>
+</jnlp>
+

Added: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/webapp/WEB-INF/web.xml?rev=1103480&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/webapp/WEB-INF/web.xml
(added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/webapp/WEB-INF/web.xml
Sun May 15 17:47:44 2011
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
+  <display-name>gateway.tool.web</display-name>
+  <welcome-file-list>
+    <welcome-file>index.jsp</welcome-file>
+  </welcome-file-list>
+
+  <servlet>
+    <servlet-name>JnlpDownloadServlet</servlet-name>
+    <servlet-class>jnlp.sample.servlet.JnlpDownloadServlet</servlet-class>
+  </servlet>
+
+  <servlet-mapping>
+    <servlet-name>JnlpDownloadServlet</servlet-name>
+    <url-pattern>/workbench/*</url-pattern>
+  </servlet-mapping>
+
+</web-app>
\ No newline at end of file

Propchange: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/webapp/css/opencmis.css
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/webapp/css/opencmis.css?rev=1103480&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/webapp/css/opencmis.css
(added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/webapp/css/opencmis.css
Sun May 15 17:47:44 2011
@@ -0,0 +1,63 @@
+@CHARSET "UTF-8";
+
+body {
+  font-family: Verdana, arial, sans-serif;
+  color: black;
+  font-size: 12px;
+}
+
+h1 {
+  font-size: 24px;
+  line-height: normal;
+  font-weight: bold;
+  background-color: #f0f0f0;
+  color: #003366;
+   border-bottom: 1px solid #3c78b5;
+  padding: 2px;
+  margin: 4px 0px 4px 0px;
+}
+
+h2 {
+  font-size: 18px;
+  line-height: normal;
+  font-weight: bold;
+  background-color: #f0f0f0;
+   border-bottom: 1px solid #3c78b5;
+  padding: 2px;
+  margin: 4px 0px 4px 0px;
+}
+
+h3 {
+  font-size: 14px;
+  line-height: normal;
+  font-weight: bold;
+  background-color: #f0f0f0;
+  padding: 2px;
+  margin: 4px 0px 4px 0px;
+}
+
+h4 {
+  font-size: 12px;
+  line-height: normal;
+  font-weight: bold;
+  background-color: #f0f0f0;
+  padding: 2px;
+  margin: 4px 0px 4px 0px;
+}
+
+HR {
+  color: 3c78b5;
+  height: 1;
+}
+
+th  {
+    border: 1px solid #ccc;
+    padding: 2px 4px 2px 4px;
+    background: #f0f0f0;
+    text-align: center;
+}
+
+td  {
+    border: 1px solid #ccc;
+    padding: 3px 4px 3px 4px;
+}

Propchange: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/webapp/css/opencmis.css
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/webapp/images/asf_logo.png
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/webapp/images/asf_logo.png?rev=1103480&view=auto
==============================================================================
Binary file - no diff available.

Propchange: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/webapp/images/asf_logo.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/webapp/images/chemistry_logo_small.png
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/webapp/images/chemistry_logo_small.png?rev=1103480&view=auto
==============================================================================
Binary file - no diff available.

Propchange: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/webapp/images/chemistry_logo_small.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/webapp/index.jsp
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/webapp/index.jsp?rev=1103480&view=auto
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/webapp/index.jsp
(added)
+++ chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/webapp/index.jsp
Sun May 15 17:47:44 2011
@@ -0,0 +1,43 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!-- 
+/*
+ * 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.
+ */
+-->
+<html>
+<head>
+<title>OpenCMIS Workbench Web Start Application</title>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<link rel="stylesheet" type="text/css" href="css/opencmis.css"/>
+</head>
+<body>
+<a href="http://chemistry.apache.org"><img alt="Apache Chemistry Logo" title="Apache
Chemistry Logo" src="images/chemistry_logo_small.png" /></a>
+<h1>Apache Chemistry OpenCMIS</h1>
+
+<br/>
+<h2>CMIS Workbench</h2>
+<div><a href="workbench/CMISWorkbench.jnlp">CMIS Workbench</a></div>
+
+<br/>
+<h2>License</h2>
+<a href="http://www.apache.org"><img alt="ASF Logo" title="ASF Logo" src="images/asf_logo.png"
align="right"/></a>
+<div>This software is licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0.html">Apache
2.0 License</a>.</div>
+<br/>
+
+</body>
+</html>
\ No newline at end of file

Propchange: chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart/src/main/webapp/index.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: chemistry/opencmis/trunk/pom.xml
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/pom.xml?rev=1103480&r1=1103479&r2=1103480&view=diff
==============================================================================
--- chemistry/opencmis/trunk/pom.xml (original)
+++ chemistry/opencmis/trunk/pom.xml Sun May 15 17:47:44 2011
@@ -190,6 +190,7 @@
         <module>chemistry-opencmis-test/chemistry-opencmis-test-browser</module>
         <module>chemistry-opencmis-test/chemistry-opencmis-test-browser-app</module>
       
         <module>chemistry-opencmis-workbench/chemistry-opencmis-workbench</module>
+        <module>chemistry-opencmis-workbench/chemistry-opencmis-workbench-webstart</module>
         <module>chemistry-opencmis-dist</module>
     </modules>
 



Mime
View raw message