Author: kwright
Date: Sun Sep  9 13:02:40 2012
New Revision: 1382487

URL: http://svn.apache.org/viewvc?rev=1382487&view=rev
Log:
Rearrange framework tree to build a combined service war.

Added:
    manifoldcf/branches/CONNECTORS-523/framework/api-service/src/main/java/
    manifoldcf/branches/CONNECTORS-523/framework/api-service/src/main/java/org/
    
manifoldcf/branches/CONNECTORS-523/framework/api-service/src/main/java/org/apache/
    
manifoldcf/branches/CONNECTORS-523/framework/api-service/src/main/java/org/apache/manifoldcf/
    
manifoldcf/branches/CONNECTORS-523/framework/api-service/src/main/java/org/apache/manifoldcf/apiservice/
    
manifoldcf/branches/CONNECTORS-523/framework/api-service/src/main/java/org/apache/manifoldcf/apiservice/ServletListener.java
      - copied, changed from r1381983, 
manifoldcf/branches/CONNECTORS-523/framework/api-servlet/src/main/java/org/apache/manifoldcf/api/ServletListener.java
    
manifoldcf/branches/CONNECTORS-523/framework/api-servlet/src/main/java/org/apache/manifoldcf/apiservlet/
      - copied from r1381983, 
manifoldcf/branches/CONNECTORS-523/framework/api-servlet/src/main/java/org/apache/manifoldcf/api/
    
manifoldcf/branches/CONNECTORS-523/framework/authority-service/src/main/java/
    
manifoldcf/branches/CONNECTORS-523/framework/authority-service/src/main/java/org/
    
manifoldcf/branches/CONNECTORS-523/framework/authority-service/src/main/java/org/apache/
    
manifoldcf/branches/CONNECTORS-523/framework/authority-service/src/main/java/org/apache/manifoldcf/
    
manifoldcf/branches/CONNECTORS-523/framework/authority-service/src/main/java/org/apache/manifoldcf/authorityservice/
    
manifoldcf/branches/CONNECTORS-523/framework/authority-service/src/main/java/org/apache/manifoldcf/authorityservice/ServletListener.java
      - copied unchanged from r1381983, 
manifoldcf/branches/CONNECTORS-523/framework/authority-servlet/src/main/java/org/apache/manifoldcf/authorityservice/ServletListener.java
    
manifoldcf/branches/CONNECTORS-523/framework/authority-servlet/src/main/java/org/apache/manifoldcf/authorityservlet/
    
manifoldcf/branches/CONNECTORS-523/framework/authority-servlet/src/main/java/org/apache/manifoldcf/authorityservlet/UserACLServlet.java
      - copied, changed from r1381983, 
manifoldcf/branches/CONNECTORS-523/framework/authority-servlet/src/main/java/org/apache/manifoldcf/authorityservice/servlet/UserACLServlet.java
    manifoldcf/branches/CONNECTORS-523/framework/combined-service/
    manifoldcf/branches/CONNECTORS-523/framework/combined-service/src/
    manifoldcf/branches/CONNECTORS-523/framework/combined-service/src/main/
    manifoldcf/branches/CONNECTORS-523/framework/combined-service/src/main/java/
    
manifoldcf/branches/CONNECTORS-523/framework/combined-service/src/main/java/org/
    
manifoldcf/branches/CONNECTORS-523/framework/combined-service/src/main/java/org/apache/
    
manifoldcf/branches/CONNECTORS-523/framework/combined-service/src/main/java/org/apache/manifoldcf/
    
manifoldcf/branches/CONNECTORS-523/framework/combined-service/src/main/java/org/apache/manifoldcf/combinedservice/
    
manifoldcf/branches/CONNECTORS-523/framework/combined-service/src/main/java/org/apache/manifoldcf/combinedservice/ServletListener.java
   (with props)
    
manifoldcf/branches/CONNECTORS-523/framework/combined-service/src/main/webapp/
    
manifoldcf/branches/CONNECTORS-523/framework/combined-service/src/main/webapp/WEB-INF/
    
manifoldcf/branches/CONNECTORS-523/framework/combined-service/src/main/webapp/WEB-INF/web.xml
Removed:
    
manifoldcf/branches/CONNECTORS-523/framework/api-servlet/src/main/java/org/apache/manifoldcf/api/
    
manifoldcf/branches/CONNECTORS-523/framework/api-servlet/src/main/java/org/apache/manifoldcf/apiservlet/ServletListener.java
    
manifoldcf/branches/CONNECTORS-523/framework/authority-servlet/src/main/java/org/apache/manifoldcf/authorityservice/
Modified:
    
manifoldcf/branches/CONNECTORS-523/framework/api-service/src/main/webapp/WEB-INF/web.xml
    
manifoldcf/branches/CONNECTORS-523/framework/api-servlet/src/main/java/org/apache/manifoldcf/apiservlet/APIServlet.java
    
manifoldcf/branches/CONNECTORS-523/framework/authority-service/src/main/webapp/WEB-INF/web.xml
    
manifoldcf/branches/CONNECTORS-523/framework/authority-service/src/main/webapp/WEB-INF/web.xml.external
    manifoldcf/branches/CONNECTORS-523/framework/build.xml

Copied: 
manifoldcf/branches/CONNECTORS-523/framework/api-service/src/main/java/org/apache/manifoldcf/apiservice/ServletListener.java
 (from r1381983, 
manifoldcf/branches/CONNECTORS-523/framework/api-servlet/src/main/java/org/apache/manifoldcf/api/ServletListener.java)
URL: 
http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-523/framework/api-service/src/main/java/org/apache/manifoldcf/apiservice/ServletListener.java?p2=manifoldcf/branches/CONNECTORS-523/framework/api-service/src/main/java/org/apache/manifoldcf/apiservice/ServletListener.java&p1=manifoldcf/branches/CONNECTORS-523/framework/api-servlet/src/main/java/org/apache/manifoldcf/api/ServletListener.java&r1=1381983&r2=1382487&rev=1382487&view=diff
==============================================================================
--- 
manifoldcf/branches/CONNECTORS-523/framework/api-servlet/src/main/java/org/apache/manifoldcf/api/ServletListener.java
 (original)
+++ 
manifoldcf/branches/CONNECTORS-523/framework/api-service/src/main/java/org/apache/manifoldcf/apiservice/ServletListener.java
 Sun Sep  9 13:02:40 2012
@@ -16,7 +16,7 @@
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
-package org.apache.manifoldcf.api;
+package org.apache.manifoldcf.apiservice;
 
 import org.apache.manifoldcf.core.interfaces.*;
 import org.apache.manifoldcf.crawler.system.ManifoldCF;

Modified: 
manifoldcf/branches/CONNECTORS-523/framework/api-service/src/main/webapp/WEB-INF/web.xml
URL: 
http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-523/framework/api-service/src/main/webapp/WEB-INF/web.xml?rev=1382487&r1=1382486&r2=1382487&view=diff
==============================================================================
--- 
manifoldcf/branches/CONNECTORS-523/framework/api-service/src/main/webapp/WEB-INF/web.xml
 (original)
+++ 
manifoldcf/branches/CONNECTORS-523/framework/api-service/src/main/webapp/WEB-INF/web.xml
 Sun Sep  9 13:02:40 2012
@@ -21,13 +21,13 @@
 -->
 
 <web-app>
-  <display-name>ManifoldCF General API</display-name>
+  <display-name>ManifoldCF General API Webapp</display-name>
 
-  <description>ManifoldCF General API</description>
+  <description>ManifoldCF General API Webapp</description>
 
   <servlet>
     <servlet-name>APIServlet</servlet-name>
-    <servlet-class>org.apache.manifoldcf.api.APIServlet</servlet-class>
+    <servlet-class>org.apache.manifoldcf.apiservlet.APIServlet</servlet-class>
   </servlet>
 
   <servlet-mapping>
@@ -40,7 +40,7 @@
   </session-config>
 
   <listener>
-    <listener-class>org.apache.manifoldcf.api.ServletListener</listener-class>
+    
<listener-class>org.apache.manifoldcf.apiservice.ServletListener</listener-class>
   </listener>
 
 </web-app>

Modified: 
manifoldcf/branches/CONNECTORS-523/framework/api-servlet/src/main/java/org/apache/manifoldcf/apiservlet/APIServlet.java
URL: 
http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-523/framework/api-servlet/src/main/java/org/apache/manifoldcf/apiservlet/APIServlet.java?rev=1382487&r1=1381983&r2=1382487&view=diff
==============================================================================
--- 
manifoldcf/branches/CONNECTORS-523/framework/api-servlet/src/main/java/org/apache/manifoldcf/apiservlet/APIServlet.java
 (original)
+++ 
manifoldcf/branches/CONNECTORS-523/framework/api-servlet/src/main/java/org/apache/manifoldcf/apiservlet/APIServlet.java
 Sun Sep  9 13:02:40 2012
@@ -16,7 +16,7 @@
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
-package org.apache.manifoldcf.api;
+package org.apache.manifoldcf.apiservlet;
 
 import org.apache.manifoldcf.core.interfaces.*;
 import org.apache.manifoldcf.agents.interfaces.*;

Modified: 
manifoldcf/branches/CONNECTORS-523/framework/authority-service/src/main/webapp/WEB-INF/web.xml
URL: 
http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-523/framework/authority-service/src/main/webapp/WEB-INF/web.xml?rev=1382487&r1=1382486&r2=1382487&view=diff
==============================================================================
--- 
manifoldcf/branches/CONNECTORS-523/framework/authority-service/src/main/webapp/WEB-INF/web.xml
 (original)
+++ 
manifoldcf/branches/CONNECTORS-523/framework/authority-service/src/main/webapp/WEB-INF/web.xml
 Sun Sep  9 13:02:40 2012
@@ -21,13 +21,13 @@
 -->
 
 <web-app>
-  <display-name>ManifoldCF Authorities API</display-name>
+  <display-name>ManifoldCF Authorities API Webapp</display-name>
 
-  <description>ManifoldCF Authorities API</description>
+  <description>ManifoldCF Authorities API Webapp</description>
 
   <servlet>
     <servlet-name>UserACLServlet</servlet-name>
-    
<servlet-class>org.apache.manifoldcf.authorityservice.servlet.UserACLServlet</servlet-class>
+    
<servlet-class>org.apache.manifoldcf.authorityservlet.UserACLServlet</servlet-class>
   </servlet>
 
   <servlet-mapping>

Modified: 
manifoldcf/branches/CONNECTORS-523/framework/authority-service/src/main/webapp/WEB-INF/web.xml.external
URL: 
http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-523/framework/authority-service/src/main/webapp/WEB-INF/web.xml.external?rev=1382487&r1=1382486&r2=1382487&view=diff
==============================================================================
--- 
manifoldcf/branches/CONNECTORS-523/framework/authority-service/src/main/webapp/WEB-INF/web.xml.external
 (original)
+++ 
manifoldcf/branches/CONNECTORS-523/framework/authority-service/src/main/webapp/WEB-INF/web.xml.external
 Sun Sep  9 13:02:40 2012
@@ -21,13 +21,13 @@
 -->
 
 <web-app>
-  <display-name>ManifoldCF Authorities API</display-name>
+  <display-name>ManifoldCF Authorities API Webapp</display-name>
 
-  <description>ManifoldCF Authorities API</description>
+  <description>ManifoldCF Authorities API Webapp</description>
 
   <servlet>
        <servlet-name>UserACLServlet</servlet-name>
-       
<servlet-class>org.apache.manifoldcf.authorityservice.servlet.UserACLServlet</servlet-class>
+       
<servlet-class>org.apache.manifoldcf.authorityservlet.UserACLServlet</servlet-class>
   </servlet>
 
   <servlet-mapping>

Copied: 
manifoldcf/branches/CONNECTORS-523/framework/authority-servlet/src/main/java/org/apache/manifoldcf/authorityservlet/UserACLServlet.java
 (from r1381983, 
manifoldcf/branches/CONNECTORS-523/framework/authority-servlet/src/main/java/org/apache/manifoldcf/authorityservice/servlet/UserACLServlet.java)
URL: 
http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-523/framework/authority-servlet/src/main/java/org/apache/manifoldcf/authorityservlet/UserACLServlet.java?p2=manifoldcf/branches/CONNECTORS-523/framework/authority-servlet/src/main/java/org/apache/manifoldcf/authorityservlet/UserACLServlet.java&p1=manifoldcf/branches/CONNECTORS-523/framework/authority-servlet/src/main/java/org/apache/manifoldcf/authorityservice/servlet/UserACLServlet.java&r1=1381983&r2=1382487&rev=1382487&view=diff
==============================================================================
--- 
manifoldcf/branches/CONNECTORS-523/framework/authority-servlet/src/main/java/org/apache/manifoldcf/authorityservice/servlet/UserACLServlet.java
 (original)
+++ 
manifoldcf/branches/CONNECTORS-523/framework/authority-servlet/src/main/java/org/apache/manifoldcf/authorityservlet/UserACLServlet.java
 Sun Sep  9 13:02:40 2012
@@ -16,7 +16,7 @@
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
-package org.apache.manifoldcf.authorityservice.servlet;
+package org.apache.manifoldcf.authorityservlet;
 
 import org.apache.manifoldcf.core.interfaces.*;
 import org.apache.manifoldcf.authorities.interfaces.*;

Modified: manifoldcf/branches/CONNECTORS-523/framework/build.xml
URL: 
http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-523/framework/build.xml?rev=1382487&r1=1382486&r2=1382487&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-523/framework/build.xml (original)
+++ manifoldcf/branches/CONNECTORS-523/framework/build.xml Sun Sep  9 13:02:40 
2012
@@ -160,6 +160,19 @@
         </javac>
     </target>
 
+    <target name="compile-authority-service" 
depends="compile-core,compile-agents,compile-pull-agent,compile-authority-servlet">
+        <mkdir dir="build/authority-service/classes"/>
+        <javac srcdir="authority-service/src/main/java" 
destdir="build/authority-service/classes" target="1.6" source="1.6" 
debug="true" debuglevel="lines,vars,source">
+            <classpath>
+                <path refid="framework-classpath"/>
+                <pathelement location="build/core/classes"/>
+                <pathelement location="build/agents/classes"/>
+                <pathelement location="build/pull-agent/classes"/>
+                <pathelement location="build/authority-servlet/classes"/>
+            </classpath>
+        </javac>
+    </target>
+
     <target name="compile-api-servlet" 
depends="compile-core,compile-ui-core,compile-agents,compile-pull-agent">
         <mkdir dir="build/api-servlet/classes"/>
         <javac srcdir="api-servlet/src/main/java" 
destdir="build/api-servlet/classes" target="1.6" source="1.6" debug="true" 
debuglevel="lines,vars,source">
@@ -173,6 +186,35 @@
         </javac>
     </target>
 
+    <target name="compile-api-service" 
depends="compile-core,compile-ui-core,compile-agents,compile-pull-agent,compile-api-servlet">
+        <mkdir dir="build/api-service/classes"/>
+        <javac srcdir="api-service/src/main/java" 
destdir="build/api-service/classes" target="1.6" source="1.6" debug="true" 
debuglevel="lines,vars,source">
+            <classpath>
+                <path refid="framework-classpath"/>
+                <pathelement location="build/core/classes"/>
+                <pathelement location="build/ui-core/classes"/>
+                <pathelement location="build/agents/classes"/>
+                <pathelement location="build/pull-agent/classes"/>
+                <pathelement location="build/api-servlet/classes"/>
+            </classpath>
+        </javac>
+    </target>
+
+    <target name="compile-combined-service" 
depends="compile-core,compile-ui-core,compile-agents,compile-pull-agent,compile-api-servlet,compile-authority-servlet">
+        <mkdir dir="build/combined-service/classes"/>
+        <javac srcdir="combined-service/src/main/java" 
destdir="build/combined-service/classes" target="1.6" source="1.6" debug="true" 
debuglevel="lines,vars,source">
+            <classpath>
+                <path refid="framework-classpath"/>
+                <pathelement location="build/core/classes"/>
+                <pathelement location="build/ui-core/classes"/>
+                <pathelement location="build/agents/classes"/>
+                <pathelement location="build/pull-agent/classes"/>
+                <pathelement location="build/api-servlet/classes"/>
+                <pathelement location="build/authority-servlet/classes"/>
+            </classpath>
+        </javac>
+    </target>
+
     <target name="compile-crawler-ui" 
depends="compile-core,compile-ui-core,compile-agents,compile-pull-agent">
         <mkdir dir="build/crawler-ui/classes"/>
         <javac srcdir="crawler-ui/src/main/java" 
destdir="build/crawler-ui/classes" target="1.6" source="1.6" debug="true" 
debuglevel="lines,vars,source">
@@ -251,7 +293,17 @@
         <jar destfile="build/jar/mcf-script-engine.jar" 
basedir="build/script-engine/classes"/>
     </target>
 
-    <target name="webapp-authority-service" 
depends="jar-core,jar-agents,jar-pull-agent,compile-authority-servlet">
+    <target name="jar-authority-servlet" depends="compile-authority-servlet">
+        <mkdir dir="build/jar"/>
+        <jar destfile="build/jar/mcf-authority-servlet.jar" 
basedir="build/authority-servlet/classes"/>
+    </target>
+
+    <target name="jar-api-servlet" depends="compile-api-servlet">
+        <mkdir dir="build/jar"/>
+        <jar destfile="build/jar/mcf-api-servlet.jar" 
basedir="build/api-servlet/classes"/>
+    </target>
+
+    <target name="webapp-authority-service" 
depends="jar-core,jar-agents,jar-pull-agent,jar-authority-servlet,compile-authority-service">
         <mkdir dir="build/webapp/authority-service/WEB-INF/lib"/>
         <copy todir="build/webapp/authority-service/WEB-INF/lib">
             <fileset dir="../lib">
@@ -281,12 +333,13 @@
                 <include name="mcf-core.jar"/>
                 <include name="mcf-agents.jar"/>
                 <include name="mcf-pull-agent.jar"/>
+                <include name="mcf-authority-servlet.jar"/>
             </fileset>
         </copy>
-        <jar 
destfile="build/webapp/authority-service/WEB-INF/lib/mcf-authority-servlet.jar" 
basedir="build/authority-servlet/classes"/>
+        <jar 
destfile="build/webapp/authority-service/WEB-INF/lib/mcf-authority-service.jar" 
basedir="build/authority-service/classes"/>
     </target>
 
-    <target name="webapp-authority-service-proprietary" 
depends="jar-core,jar-agents,jar-pull-agent,compile-authority-servlet">
+    <target name="webapp-authority-service-proprietary" 
depends="jar-core,jar-agents,jar-pull-agent,jar-authority-servlet,compile-authority-service">
         <mkdir dir="build/webapp/authority-service-proprietary/WEB-INF/lib"/>
         <copy todir="build/webapp/authority-service-proprietary/WEB-INF/lib">
             <fileset dir="../lib">
@@ -321,12 +374,13 @@
                 <include name="mcf-core.jar"/>
                 <include name="mcf-agents.jar"/>
                 <include name="mcf-pull-agent.jar"/>
+                <include name="mcf-authority-servlet.jar"/>
             </fileset>
         </copy>
-        <jar 
destfile="build/webapp/authority-service-proprietary/WEB-INF/lib/mcf-authority-servlet.jar"
 basedir="build/authority-servlet/classes"/>
+        <jar 
destfile="build/webapp/authority-service-proprietary/WEB-INF/lib/mcf-authority-service.jar"
 basedir="build/authority-service/classes"/>
     </target>
 
-    <target name="webapp-api-service" 
depends="jar-core,jar-ui-core,jar-agents,jar-pull-agent,compile-api-servlet">
+    <target name="webapp-api-service" 
depends="jar-core,jar-ui-core,jar-agents,jar-pull-agent,jar-api-servlet,compile-api-service">
         <mkdir dir="build/webapp/api-service/WEB-INF/lib"/>
         <copy todir="build/webapp/api-service/WEB-INF/lib">
             <fileset dir="../lib">
@@ -357,12 +411,13 @@
                 <include name="mcf-ui-core.jar"/>
                 <include name="mcf-agents.jar"/>
                 <include name="mcf-pull-agent.jar"/>
+                <include name="mcf-api-servlet.jar"/>
             </fileset>
         </copy>
-        <jar 
destfile="build/webapp/api-service/WEB-INF/lib/mcf-api-servlet.jar" 
basedir="build/api-servlet/classes"/>
+        <jar 
destfile="build/webapp/api-service/WEB-INF/lib/mcf-api-service.jar" 
basedir="build/api-service/classes"/>
     </target>
 
-    <target name="webapp-api-service-proprietary" 
depends="jar-core,jar-ui-core,jar-agents,jar-pull-agent,compile-api-servlet">
+    <target name="webapp-api-service-proprietary" 
depends="jar-core,jar-ui-core,jar-agents,jar-pull-agent,jar-api-servlet,compile-api-service">
         <mkdir dir="build/webapp/api-service-proprietary/WEB-INF/lib"/>
         <copy todir="build/webapp/api-service-proprietary/WEB-INF/lib">
             <fileset dir="../lib">
@@ -400,7 +455,7 @@
                 <include name="mcf-pull-agent.jar"/>
             </fileset>
         </copy>
-        <jar 
destfile="build/webapp/api-service-proprietary/WEB-INF/lib/mcf-api-servlet.jar" 
basedir="build/api-servlet/classes"/>
+        <jar 
destfile="build/webapp/api-service-proprietary/WEB-INF/lib/mcf-api-service.jar" 
basedir="build/api-service/classes"/>
     </target>
 
     <target name="webapp-crawler-ui" 
depends="compile-crawler-ui,jar-core,jar-ui-core,jar-agents,jar-pull-agent">
@@ -500,6 +555,103 @@
         <jar 
destfile="build/webapp/crawler-ui-proprietary/WEB-INF/lib/mcf-crawler-ui.jar" 
basedir="build/crawler-ui/classes"/>
     </target>
 
+    <target name="webapp-combined-service" 
depends="compile-combined-service,jar-core,jar-ui-core,jar-agents,jar-pull-agent">
+        <mkdir dir="build/webapp/combined-service/WEB-INF/lib"/>
+        <copy todir="build/webapp/combined-service/WEB-INF/lib">
+            <fileset dir="../lib">
+                <include name="jstl*.jar"/>
+                <include name="json*.jar"/>
+                <include name="commons-codec*.jar"/>
+                <include name="commons-collections*.jar"/>
+                <include name="commons-el*.jar"/>
+                <include name="commons-fileupload*.jar"/>
+                <include name="commons-httpclient*.jar"/>
+                <include name="commons-io*.jar"/>
+                <include name="commons-lang*.jar"/>
+                <include name="commons-logging*.jar"/>
+                <include name="log4j*.jar"/>
+                <include name="serializer*.jar"/>
+                <include name="xalan*.jar"/>
+                <include name="xercesImpl*.jar"/>
+                <include name="xml-apis*.jar"/>
+                <include name="velocity*.jar"/>
+            </fileset>
+            <fileset dir="../lib">
+                <include name="postgresql*.jar"/>
+                <include name="derby*.jar"/>
+                <include name="hsqldb*.jar"/>
+            </fileset>
+            <fileset dir="build/jar">
+                <include name="mcf-core.jar"/>
+                <include name="mcf-agents.jar"/>
+                <include name="mcf-pull-agent.jar"/>
+                <include name="mcf-ui-core.jar"/>
+            </fileset>
+        </copy>
+        <mkdir dir="build/webapp/combined-service/WEB-INF/jsp"/>
+        <copy todir="build/webapp/combined-service/WEB-INF/jsp">
+            <fileset dir="crawler-ui/src/main/webapp/WEB-INF/jsp">
+                <include name="*.tld"/>
+            </fileset>
+        </copy>
+        <copy todir="build/webapp/combined-service">
+            <fileset dir="crawler-ui/src/main/webapp" 
includes="**/*.jsp,**/*.css,**/*.png,**/*.html"/>
+        </copy>
+        <jar 
destfile="build/webapp/combined-service/WEB-INF/lib/mcf-combined-service.jar" 
basedir="build/combined-service/classes"/>
+    </target>
+  
+      <target name="webapp-combined-service-proprietary" 
depends="compile-combined-service,jar-core,jar-ui-core,jar-agents,jar-pull-agent">
+        <mkdir dir="build/webapp/combined-service-proprietary/WEB-INF/lib"/>
+        <copy todir="build/webapp/combined-service-proprietary/WEB-INF/lib">
+            <fileset dir="../lib">
+                <include name="jstl*.jar"/>
+                <include name="json*.jar"/>
+                <include name="commons-codec*.jar"/>
+                <include name="commons-collections*.jar"/>
+                <include name="commons-el*.jar"/>
+                <include name="commons-fileupload*.jar"/>
+                <include name="commons-httpclient*.jar"/>
+                <include name="commons-io*.jar"/>
+                <include name="commons-lang*.jar"/>
+                <include name="commons-logging*.jar"/>
+                <include name="log4j*.jar"/>
+                <include name="serializer*.jar"/>
+                <include name="xalan*.jar"/>
+                <include name="xercesImpl*.jar"/>
+                <include name="xml-apis*.jar"/>
+                <include name="velocity*.jar"/>
+            </fileset>
+            <fileset dir="../lib">
+                <include name="postgresql*.jar"/>
+                <include name="derby*.jar"/>
+                <include name="hsqldb*.jar"/>
+            </fileset>
+            <fileset dir="../lib-proprietary">
+                <include name="mysql*.jar"/>
+                <include name="ojdbc*.jar"/>
+                <include name="jtds*.jar"/>
+            </fileset>
+        </copy>
+        <copy todir="build/webapp/combined-service-proprietary/WEB-INF/lib">
+            <fileset dir="build/jar">
+                <include name="mcf-core.jar"/>
+                <include name="mcf-agents.jar"/>
+                <include name="mcf-pull-agent.jar"/>
+                <include name="mcf-ui-core.jar"/>
+            </fileset>
+        </copy>
+        <mkdir dir="build/webapp/combined-service-proprietary/WEB-INF/jsp"/>
+        <copy todir="build/webapp/combined-service-proprietary/WEB-INF/jsp">
+            <fileset dir="crawler-ui/src/main/webapp/WEB-INF/jsp">
+                <include name="*.tld"/>
+            </fileset>
+        </copy>
+        <copy todir="build/webapp/combined-service-proprietary">
+            <fileset dir="crawler-ui/src/main/webapp" 
includes="**/*.jsp,**/*.css,**/*.png,**/*.html"/>
+        </copy>
+        <jar 
destfile="build/webapp/combined-service-proprietary/WEB-INF/lib/mcf-combined-service.jar"
 basedir="build/combined-service/classes"/>
+    </target>
+
     <target name="war-authority-service" depends="webapp-authority-service">
         <mkdir dir="build/war"/>
         <war destfile="build/war/mcf-authority-service.war" 
webxml="authority-service/src/main/webapp/WEB-INF/web.xml" 
basedir="build/webapp/authority-service"/>
@@ -530,14 +682,24 @@
         <war destfile="build/war-proprietary/mcf-crawler-ui.war" 
webxml="crawler-ui/src/main/webapp/WEB-INF/web.xml" 
basedir="build/webapp/crawler-ui-proprietary"/>
     </target>
 
-    <target name="wars" 
depends="war-authority-service,war-api-service,war-crawler-ui">
+    <target name="war-combined-service" depends="webapp-combined-service">
+        <mkdir dir="build/war"/>
+        <war destfile="build/war/mcf-combined-service.war" 
webxml="combined-service/src/main/webapp/WEB-INF/web.xml" 
basedir="build/webapp/combined-service"/>
+    </target>
+
+    <target name="war-combined-service-proprietary" 
depends="webapp-combined-service-proprietary">
+        <mkdir dir="build/war-proprietary"/>
+        <war destfile="build/war-proprietary/mcf-combined-service.war" 
webxml="combined-service/src/main/webapp/WEB-INF/web.xml" 
basedir="build/webapp/combined-service-proprietary"/>
+    </target>
+
+    <target name="wars" 
depends="war-authority-service,war-api-service,war-crawler-ui,war-combined-service">
         <mkdir dir="dist/web/war"/>
         <copy todir="dist/web/war">
             <fileset dir="build/war"/>
         </copy>
     </target>
 
-    <target name="wars-proprietary" 
depends="war-authority-service-proprietary,war-api-service-proprietary,war-crawler-ui-proprietary">
+    <target name="wars-proprietary" 
depends="war-authority-service-proprietary,war-api-service-proprietary,war-crawler-ui-proprietary,war-combined-service-proprietary">
         <mkdir dir="dist/web-proprietary/war"/>
         <copy todir="dist/web-proprietary/war">
             <fileset dir="build/war-proprietary"/>

Added: 
manifoldcf/branches/CONNECTORS-523/framework/combined-service/src/main/java/org/apache/manifoldcf/combinedservice/ServletListener.java
URL: 
http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-523/framework/combined-service/src/main/java/org/apache/manifoldcf/combinedservice/ServletListener.java?rev=1382487&view=auto
==============================================================================
--- 
manifoldcf/branches/CONNECTORS-523/framework/combined-service/src/main/java/org/apache/manifoldcf/combinedservice/ServletListener.java
 (added)
+++ 
manifoldcf/branches/CONNECTORS-523/framework/combined-service/src/main/java/org/apache/manifoldcf/combinedservice/ServletListener.java
 Sun Sep  9 13:02:40 2012
@@ -0,0 +1,70 @@
+/* $Id$ */
+
+/**
+* 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.
+*/
+package org.apache.manifoldcf.combinedservice;
+
+import org.apache.manifoldcf.core.interfaces.*;
+import org.apache.manifoldcf.crawler.system.ManifoldCF;
+import javax.servlet.*;
+
+/** This class furnishes a servlet shutdown hook for ManifoldCF.  It should be 
referenced in the
+* web.xml file for the application in order to do the right thing, however.
+*/
+public class ServletListener implements ServletContextListener
+{
+  public static final String _rcsid = "@(#)$Id$";
+
+  public static final String agentShutdownSignal = 
org.apache.manifoldcf.agents.AgentRun.agentShutdownSignal;
+  private Thread jobsThread = null;
+
+  public void contextInitialized(ServletContextEvent sce)
+  {
+    try
+    {
+      ManifoldCF.initializeEnvironment();
+
+      IThreadContext tc = ThreadContextFactory.make();
+
+      ManifoldCF.createSystemDatabase(tc);
+      ManifoldCF.installTables(tc);
+      ManifoldCF.registerThisAgent(tc);
+      ManifoldCF.reregisterAllConnectors(tc);
+
+      ManifoldCF.startAgents(tc);
+    }
+    catch (ManifoldCFException e)
+    {
+      throw new RuntimeException("Could not initialize servlet; 
"+e.getMessage(),e);
+    }
+  }
+  
+  public void contextDestroyed(ServletContextEvent sce)
+  {
+    try
+    {
+      IThreadContext tc = ThreadContextFactory.make();
+      ManifoldCF.stopAgents(tc);
+    }
+    catch (ManifoldCFException e)
+    {
+      throw new RuntimeException("Cannot shutdown servlet cleanly; 
"+e.getMessage(),e);
+    }
+    ManifoldCF.cleanUpEnvironment();
+  }
+
+}

Propchange: 
manifoldcf/branches/CONNECTORS-523/framework/combined-service/src/main/java/org/apache/manifoldcf/combinedservice/ServletListener.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
manifoldcf/branches/CONNECTORS-523/framework/combined-service/src/main/java/org/apache/manifoldcf/combinedservice/ServletListener.java
------------------------------------------------------------------------------
    svn:keywords = Id

Added: 
manifoldcf/branches/CONNECTORS-523/framework/combined-service/src/main/webapp/WEB-INF/web.xml
URL: 
http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-523/framework/combined-service/src/main/webapp/WEB-INF/web.xml?rev=1382487&view=auto
==============================================================================
--- 
manifoldcf/branches/CONNECTORS-523/framework/combined-service/src/main/webapp/WEB-INF/web.xml
 (added)
+++ 
manifoldcf/branches/CONNECTORS-523/framework/combined-service/src/main/webapp/WEB-INF/web.xml
 Sun Sep  9 13:02:40 2012
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<!DOCTYPE web-app
+    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
+    "http://java.sun.com/j2ee/dtds/web-app_2.2.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.
+-->
+
+<web-app>
+  <display-name>ManifoldCF Combined WebApp</display-name>
+
+  <description>ManifoldCF Combined WebApp</description>
+
+  <servlet>
+    <servlet-name>APIServlet</servlet-name>
+    <servlet-class>org.apache.manifoldcf.apiservlet.APIServlet</servlet-class>
+  </servlet>
+
+  <servlet>
+    <servlet-name>UserACLServlet</servlet-name>
+    
<servlet-class>org.apache.manifoldcf.authorityservlet.UserACLServlet</servlet-class>
+  </servlet>
+
+  <servlet-mapping>
+    <servlet-name>APIServlet</servlet-name>
+    <url-pattern>/api/*</url-pattern>
+  </servlet-mapping>
+
+  <servlet-mapping>
+    <servlet-name>UserACLServlet</servlet-name>
+    <url-pattern>/UserACLs</url-pattern>
+  </servlet-mapping>
+
+  <session-config>
+    <session-timeout>5</session-timeout>
+  </session-config>
+
+  <listener>
+    
<listener-class>org.apache.manifoldcf.combinedservice.ServletListener</listener-class>
+  </listener>
+
+</web-app>


Reply via email to