synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sami...@apache.org
Subject svn commit: r354014 - in /incubator/synapse/trunk/java: maven.xml scripts/web.xml
Date Mon, 05 Dec 2005 08:08:56 GMT
Author: saminda
Date: Mon Dec  5 00:08:48 2005
New Revision: 354014

URL: http://svn.apache.org/viewcvs?rev=354014&view=rev
Log:
Added a goal to generate synapse.war. It contains minimum requirements 
to deploy in a web container and host Synapse server. This goal will be 
subjected to change, when Axi2 folks comeup with a lightweight packaging 
structure. Once it's present, Synapse can use its admin jsp's to 
configure embeded Axis2 environment.   

Added:
    incubator/synapse/trunk/java/scripts/web.xml
Modified:
    incubator/synapse/trunk/java/maven.xml

Modified: incubator/synapse/trunk/java/maven.xml
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/java/maven.xml?rev=354014&r1=354013&r2=354014&view=diff
==============================================================================
--- incubator/synapse/trunk/java/maven.xml (original)
+++ incubator/synapse/trunk/java/maven.xml Mon Dec  5 00:08:48 2005
@@ -67,18 +67,49 @@
              basedir="target/services/emptymediator">
             <include name="**"/>
         </jar>
+        <j:if test="${context.getVariable('maven.test.skip') != 'true'}">
 
-        <echo message="----------------Creating NPE aar----------------"/>
-        <mkdir dir="target/services/npe/META-INF"/>
-        <mkdir dir="target/services/npe/org/apache/axis2/test"/>
-        <copy file="test/org/apache/axis2/META-INF/services.xml"
-              tofile="target/services/npe/META-INF/services.xml"/>
-        <copy file="target/test-classes/org/apache/axis2/test/Echo.class"
-              tofile="target/services/npe/org/apache/axis2/test/Echo.class"/>
-        <jar jarfile="target/npe.aar"
-             basedir="target/services/npe">
-            <include name="**"/>
-        </jar>
+            <echo message="----------------Creating NPE aar----------------"/>
+            <mkdir dir="target/services/npe/META-INF"/>
+            <mkdir dir="target/services/npe/org/apache/axis2/test"/>
+            <copy file="test/org/apache/axis2/META-INF/services.xml"
+                  tofile="target/services/npe/META-INF/services.xml"/>
+            <copy file="target/test-classes/org/apache/axis2/test/Echo.class"
+                  tofile="target/services/npe/org/apache/axis2/test/Echo.class"/>
+            <jar jarfile="target/npe.aar"
+                 basedir="target/services/npe">
+                <include name="**"/>
+            </jar>
+
+            <echo message="-----------Creating Testing Repository - SendOn ----------"/>
+            <mkdir dir="target/synapse-repository-sendon"/>
+            <copy file="target/synapse.aar"
+                  tofile="target/synapse-repository-sendon/services/synapse.aar"/>
+            <copy file="target/npe.aar"
+                  tofile="target/synapse-repository-sendon/services/npe.aar"/>
+            <copy file="target/emptymediator.aar"
+                  tofile="target/synapse-repository-sendon/services/emptymediator.aar"/>
+            <mkdir dir="target/synapse-repository-sendon/modules"/>
+            <copy file="target/synapse.mar"
+                  tofile="target/synapse-repository-sendon/modules/synapse.mar"/>
+            <copy file="synapse-test-resources/axis2/modules/addressing.mar"
+                  tofile="target/synapse-repository-sendon/modules/addressing.mar"/>
+            <copy file="synapse-test-resources/axis2/axis2.xml"
+                  tofile="target/synapse-repository-sendon/axis2.xml"/>
+            <copy file="test/rules/synapse-sendon.xml"
+                  tofile="target/synapse-repository-sendon/synapse.xml"/>
+
+            <echo message="-----------Creating Testing Repository - SendOnAxis2 ----------"/>
+            <mkdir dir="target/synapse-repository-sendonAxis2"/>
+
+            <copy file="target/npe.aar"
+                  tofile="target/synapse-repository-sendonAxis2/services/npe.aar"/>
+
+            <copy file="synapse-test-resources/axis2/modules/addressing.mar"
+                  tofile="target/synapse-repository-sendonAxis2/modules/addressing.mar"/>
+            <copy file="synapse-test-resources/axis2/axis2.xml"
+                  tofile="target/synapse-repository-sendonAxis2/axis2.xml"/>
+        </j:if>
 
 
         <echo message="-----------Creating Testing Repository - Genral----------"/>
@@ -127,34 +158,7 @@
         <copy file="test/rules/synapse-send.xml"
               tofile="target/synapse-repository-send/synapse.xml"/>
 
-        <echo message="-----------Creating Testing Repository - SendOn ----------"/>
-        <mkdir dir="target/synapse-repository-sendon"/>
-        <copy file="target/synapse.aar"
-              tofile="target/synapse-repository-sendon/services/synapse.aar"/>
-        <copy file="target/npe.aar"
-              tofile="target/synapse-repository-sendon/services/npe.aar"/>
-        <copy file="target/emptymediator.aar"
-              tofile="target/synapse-repository-sendon/services/emptymediator.aar"/>
-        <mkdir dir="target/synapse-repository-sendon/modules"/>
-        <copy file="target/synapse.mar"
-              tofile="target/synapse-repository-sendon/modules/synapse.mar"/>
-        <copy file="synapse-test-resources/axis2/modules/addressing.mar"
-              tofile="target/synapse-repository-sendon/modules/addressing.mar"/>
-        <copy file="synapse-test-resources/axis2/axis2.xml"
-              tofile="target/synapse-repository-sendon/axis2.xml"/>
-        <copy file="test/rules/synapse-sendon.xml"
-              tofile="target/synapse-repository-sendon/synapse.xml"/>
-
-        <echo message="-----------Creating Testing Repository - SendOnAxis2 ----------"/>
-        <mkdir dir="target/synapse-repository-sendonAxis2"/>
-
-        <copy file="target/npe.aar"
-              tofile="target/synapse-repository-sendonAxis2/services/npe.aar"/>
 
-        <copy file="synapse-test-resources/axis2/modules/addressing.mar"
-              tofile="target/synapse-repository-sendonAxis2/modules/addressing.mar"/>
-        <copy file="synapse-test-resources/axis2/axis2.xml"
-              tofile="target/synapse-repository-sendonAxis2/axis2.xml"/>
     </postGoal>
     <!-- ================================================================ -->
     <!--- Reports -->
@@ -242,7 +246,7 @@
         <ant:zip file="${dist.dir}/${dist.name}-src.zip">
             <ant:fileset dir=".">
                 <ant:include name="**"/>
-                <ant:exclude name="**/target/**"/>
+                <ant:exclude name="target"/>
                 <ant:exclude name="**/.svn/**"/>
                 <ant:exclude name="**/bin/**"/>
                 <ant:exclude name="**/*.log"/>
@@ -261,8 +265,28 @@
                 <ant:exclude name="**/*.license"/>
             </ant:tarfileset>
         </ant:tar>
-        <gzip src="target/${dist.name}-src.tar" zipfile="${dist.dir}/${dist.name}-src.tar.gz"/>
+        <gzip src="target/${dist.name}-src.tar"
+              zipfile="${dist.dir}/${dist.name}-src.tar.gz"/>
         <ant:delete file="target/${dist.name}-src.tar"/>
+    </goal>
+
+    <goal name="war" prereqs="init">
+        <j:if test="${jars.uptodate != 'yes'}">
+            <attainGoal name="jar"/>
+        </j:if>
+        <!-- jar the test classes -->
+        <ant:war destfile="target/synapse.war" webxml="scripts/web.xml">
+            <ant:lib dir="target/lib">
+                <ant:include name="**"/>
+                <ant:exclude name="**servlet**"/>
+                <ant:exclude name="ant*.jar"/>
+            </ant:lib>
+            <ant:lib dir="target">
+                <ant:include
+                        name="${pom.artifactId}-${pom.currentVersion}.jar"/>
+            </ant:lib>
+            <ant:webinf dir="target/synapse-repository-send/"/>
+        </ant:war>
     </goal>
 
 

Added: incubator/synapse/trunk/java/scripts/web.xml
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/java/scripts/web.xml?rev=354014&view=auto
==============================================================================
--- incubator/synapse/trunk/java/scripts/web.xml (added)
+++ incubator/synapse/trunk/java/scripts/web.xml Mon Dec  5 00:08:48 2005
@@ -0,0 +1,126 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
+
+<web-app>
+    <display-name>Apache-Axis2</display-name>
+    <servlet>
+        <servlet-name>AxisServlet</servlet-name>
+        <display-name>Apache-Axis Servlet</display-name>
+        <servlet-class>
+            org.apache.axis2.transport.http.AxisServlet
+        </servlet-class>
+    </servlet>
+
+    <servlet-mapping>
+        <servlet-name>AxisServlet</servlet-name>
+        <url-pattern>/servlet/AxisServlet</url-pattern>
+    </servlet-mapping>
+
+    <servlet-mapping>
+        <servlet-name>AxisServlet</servlet-name>
+        <url-pattern>*.jws</url-pattern>
+    </servlet-mapping>
+
+    <servlet-mapping>
+        <servlet-name>AxisServlet</servlet-name>
+        <url-pattern>/listServices</url-pattern>
+    </servlet-mapping>
+
+    <servlet-mapping>
+        <servlet-name>AxisServlet</servlet-name>
+        <url-pattern>/listService</url-pattern>
+    </servlet-mapping>
+
+    <servlet-mapping>
+        <servlet-name>AxisServlet</servlet-name>
+        <url-pattern>/listModules</url-pattern>
+    </servlet-mapping>
+
+    <servlet-mapping>
+        <servlet-name>AxisServlet</servlet-name>
+        <url-pattern>/globalModules</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>AxisServlet</servlet-name>
+        <url-pattern>/listPhases</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>AxisServlet</servlet-name>
+        <url-pattern>/engagingglobally</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>AxisServlet</servlet-name>
+        <url-pattern>/engageToService</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>AxisServlet</servlet-name>
+        <url-pattern>/adminlogin</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>AxisServlet</servlet-name>
+        <url-pattern>/viewGlobalHandlers</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>AxisServlet</servlet-name>
+        <url-pattern>/selectService</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>AxisServlet</servlet-name>
+        <url-pattern>/viewServiceHandlers</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>AxisServlet</servlet-name>
+        <url-pattern>/listoperation</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>AxisServlet</servlet-name>
+        <url-pattern>/listOperations</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>AxisServlet</servlet-name>
+        <url-pattern>/services/*</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>AxisServlet</servlet-name>
+        <url-pattern>/servicedit</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>AxisServlet</servlet-name>
+        <url-pattern>/removeService</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>AxisServlet</servlet-name>
+        <url-pattern>/editServicepara</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>AxisServlet</servlet-name>
+        <url-pattern>/selectServiceParaEdit</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>AxisServlet</servlet-name>
+        <url-pattern>/listServciceGroups</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>AxisServlet</servlet-name>
+        <url-pattern>/engageToServiceGroup</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>AxisServlet</servlet-name>
+        <url-pattern>/listContexts</url-pattern>
+    </servlet-mapping>
+    <servlet-mapping>
+        <servlet-name>AxisServlet</servlet-name>
+        <url-pattern>/logout</url-pattern>
+    </servlet-mapping>
+    <error-page>
+        <exception-type>
+            org.apache.axis2.transport.http.server.AdminAppException</exception-type>
+        <location>/Error/AuthError.html</location>
+    </error-page>
+
+    <!--error-page>
+        <exception-type>java.lang.Exception</exception-type>
+        <location>/Error/GenError.html</location>
+    </error-page-->
+</web-app>



---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org


Mime
View raw message