synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sami...@apache.org
Subject svn commit: r370131 - in /incubator/synapse/trunk/java: maven.xml scripts/samples/deprecation_mediator/build.xml scripts/userguide/build.xml
Date Wed, 18 Jan 2006 12:16:59 GMT
Author: saminda
Date: Wed Jan 18 04:16:38 2006
New Revision: 370131

URL: http://svn.apache.org/viewcvs?rev=370131&view=rev
Log:
Updated maven.xml as Paul sujested, Update build.xmls 

Modified:
    incubator/synapse/trunk/java/maven.xml
    incubator/synapse/trunk/java/scripts/samples/deprecation_mediator/build.xml
    incubator/synapse/trunk/java/scripts/userguide/build.xml

Modified: incubator/synapse/trunk/java/maven.xml
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/java/maven.xml?rev=370131&r1=370130&r2=370131&view=diff
==============================================================================
--- incubator/synapse/trunk/java/maven.xml (original)
+++ incubator/synapse/trunk/java/maven.xml Wed Jan 18 04:16:38 2006
@@ -240,7 +240,7 @@
         </jar>
 
         <copy file="target/DeprecationMediator.aar"
-              tofile="target/samples/samples/deprecation_mediator/DeprecationMediator.aar"/>
+              tofile="target/samples/deprecation_mediator/DeprecationMediator.aar"/>
 
         <!-- Deleteing helper stuff-->
 
@@ -259,30 +259,20 @@
     <goal name="samples_userguide">
         <mkdir dir="target/samples"/>
         <mkdir dir="${samples.dir}/userguide"/>
-        <mkdir dir="${samples.dir}/samples/deprecation_mediator"/>
+        <mkdir dir="${samples.dir}/deprecation_mediator"/>
         <mkdir dir="${samples.dir}/userguide/src"/>
-        <mkdir dir="${samples.dir}/samples/deprecation_mediator/src"/>
+        <mkdir dir="${samples.dir}/deprecation_mediator/src"/>
         <ant:copy todir="${samples.dir}/userguide/src">
             <ant:fileset dir="src">
                 <ant:include name="**/userguide/**"/>
             </ant:fileset>
         </ant:copy>
-        <ant:copy todir="${samples.dir}/samples/deprecation_mediator/src">
+        <ant:copy todir="${samples.dir}/deprecation_mediator/src">
             <ant:fileset dir="src">
                 <ant:include name="**/deprecation/**"/>
             </ant:fileset>
         </ant:copy>
 
-        <jar destfile="${samples.dir}/userguide/sample_userguide.jar">
-            <fileset dir="target/classes">
-                <include name="**/userguide/**"/>
-            </fileset>
-        </jar>
-        <jar destfile="${samples.dir}/samples/deprecation_mediator/sample_deprecation_mediator.jar">
-            <fileset dir="target/classes">
-                <include name="**/deprecation/**"/>
-            </fileset>
-        </jar>
     </goal>
 
     <!-- ================================================================ -->
@@ -396,11 +386,11 @@
                   tofile="${bin.dist.dir}/samples/userguide/README.txt"/>
 
         <ant:copy file="scripts/samples/deprecation_mediator/synapse.xml"
-                  tofile="${bin.dist.dir}/samples/samples/deprecation_mediator/synapse.xml"/>
+                  tofile="${bin.dist.dir}/samples/deprecation_mediator/synapse.xml"/>
         <ant:copy file="scripts/samples/deprecation_mediator/README.txt"
-                  tofile="${bin.dist.dir}/samples/samples/deprecation_mediator/README.txt"/>
+                  tofile="${bin.dist.dir}/samples/deprecation_mediator/README.txt"/>
         <ant:copy file="scripts/samples/deprecation_mediator/build.xml"
-                  tofile="${bin.dist.dir}/samples/samples/deprecation_mediator/build.xml"/>
+                  tofile="${bin.dist.dir}/samples/deprecation_mediator/build.xml"/>
 
         <ant:copy todir="${bin.dist.dir}/samples">
             <ant:fileset dir="target/samples/">
@@ -416,14 +406,9 @@
 
         <ant:zip file="${dist.dir}/${dist.name}-bin.zip"
                  basedir="target/temp"/>
-        <ant:tar tarfile="target/${dist.name}-bin.tar"
-                 basedir="target/temp"/>
-        <gzip src="target/${dist.name}-bin.tar"
-              zipfile="${dist.dir}/${dist.name}-bin.tar.gz"/>
         <ant:delete dir="target/dist-bin"/>
         <ant:delete dir="target/temp"/>
         <ant:delete dir="target/samples/"/>
-        <ant:delete file="target/${dist.name}-bin.tar"/>
     </goal>
     <!-- ================================================================ -->
     <!--- dist-src -->

Modified: incubator/synapse/trunk/java/scripts/samples/deprecation_mediator/build.xml
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/java/scripts/samples/deprecation_mediator/build.xml?rev=370131&r1=370130&r2=370131&view=diff
==============================================================================
--- incubator/synapse/trunk/java/scripts/samples/deprecation_mediator/build.xml (original)
+++ incubator/synapse/trunk/java/scripts/samples/deprecation_mediator/build.xml Wed Jan 18
04:16:38 2006
@@ -1,24 +1,66 @@
-<project name="samples" default="StockQuoteClient">
-    <property name="arg1" value="IBM"/>
-    <property name="arg2" value="http://64.124.140.30:9090/soap"/>
-    <property name="arg3" value="http://localhost:8080"/>
+<project name="samples" default="help">
+    <target name="help">
+        <echo>
+            This script requires Ant 1.5 or higher
+
+            usage:
+            ant -help display ant help screen
+            ant help display this message
+            ant clean delete the built directory
+
+            ant compile build the deprecation_mediator sample
+
+            ant StockQuote [Symbol] [webserviceurl] [synapseurl]
+            Use the smart client - Synapse in WS-Addressing router mode
+
+        </echo>
+    </target>
+
+    <property name="symbol" value="IBM"/>
+    <property name="url" value="http://www.webservicex.net/stockquote.asmx"/>
+    <property name="synapseurl" value="http://localhost:8080"/>
+
+    <property name="class.dir" value="target/classes"/>
 
     <path id="axis.classpath">
-        <fileset dir="../../../lib">
+        <fileset dir="../../lib">
             <include name="*.jar"/>
         </fileset>
-        <pathelement location="sample_deprecation_mediator.jar"/>
     </path>
 
-    <target name="StockQuoteClient">
+    <target name="clean">
+        <delete dir="target" quiet="true"/>
+        <delete dir="${class.dir}" quiet="true"/>
+    </target>
+
+
+    <target name="StockQuote" depends="compile">
         <java classname="samples.userguide.StockQuoteClient"
               classpathref="axis.classpath" fork="true">
-            <arg value="${arg1}"/>
-            <arg value="${arg2}"/>
-            <arg value="${arg3}"/>
+            <arg value="${symbol}"/>
+            <arg value="${url}"/>
+            <arg value="${synapseurl}"/>
         </java>
     </target>
 
+    <target name="init">
+        <mkdir dir="${class.dir}"/>
+        <mkdir dir="src/ddl"/>
+
+        <path id="javac.classpath">
+            <pathelement path="${class.dir}"/>
+            <fileset dir="../../lib">
+                <include name="**/*.jar"/>
+            </fileset>
+        </path>
+    </target>
+
+    <target name="compile" depends="init" description="Compile all Java">
+        <javac srcdir="src" destdir="${class.dir}">
+            <classpath refid="javac.classpath"/>
+        </javac>
+    </target>
+
     <target name="synapse">
         <java classname="org.apache.axis2.transport.http.SimpleHTTPServer"
               classpathref="axis.classpath" fork="true">
@@ -26,4 +68,5 @@
             <arg value="8080"/>
         </java>
     </target>
+
 </project>

Modified: incubator/synapse/trunk/java/scripts/userguide/build.xml
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/java/scripts/userguide/build.xml?rev=370131&r1=370130&r2=370131&view=diff
==============================================================================
--- incubator/synapse/trunk/java/scripts/userguide/build.xml (original)
+++ incubator/synapse/trunk/java/scripts/userguide/build.xml Wed Jan 18 04:16:38 2006
@@ -1,32 +1,32 @@
 <project name="samples" default="help">
-<target name="help">
-<echo>
-This script requires Ant 1.5 or higher
-
-usage:
-  ant -help		display ant help screen
-  ant help		display this message	
-  ant clean		delete the built directory
-				
-  ant compile	build the samples
-				
-  ant StockQuote [Symbol] [webserviceurl] [synapseurl] 
-     Use the smart client - Synapse in WS-Addressing router mode
-			
-  ant ProxyStockQuote [Symbol] [webserviceurl] [synapseurl]
-	Use the http proxy client - Synapse in "transparent mode"
-		
-  ant DumbStockQuote [Symbol] [synapseurl] 	
-    Use the dumb soap client - Synapse in "gateway" mode
-			
-  </echo>
-</target>
+    <target name="help">
+        <echo>
+            This script requires Ant 1.5 or higher
+
+            usage:
+            ant -help display ant help screen
+            ant help display this message
+            ant clean delete the built directory
+
+            ant compile build the samples
+
+            ant StockQuote [Symbol] [webserviceurl] [synapseurl]
+            Use the smart client - Synapse in WS-Addressing router mode
+
+            ant ProxyStockQuote [Symbol] [webserviceurl] [synapseurl]
+            Use the http proxy client - Synapse in "transparent mode"
+
+            ant DumbStockQuote [Symbol] [synapseurl]
+            Use the dumb soap client - Synapse in "gateway" mode
+
+        </echo>
+    </target>
 
     <property name="symbol" value="IBM"/>
     <property name="url" value="http://www.webservicex.net/stockquote.asmx"/>
     <property name="synapseurl" value="http://localhost:8080"/>
 
-	<property name="class.dir" value="target/classes"/>
+    <property name="class.dir" value="target/classes"/>
 
     <path id="axis.classpath">
         <fileset dir="../../lib">
@@ -34,11 +34,10 @@
         </fileset>
     </path>
 
-	<target name="clean">
-		<delete dir="target" quiet="true"/>
-		<delete dir="${class.dir}" quiet="true"/>
-	</target>
-
+    <target name="clean">
+        <delete dir="target" quiet="true"/>
+        <delete dir="${class.dir}" quiet="true"/>
+    </target>
 
 
     <target name="StockQuote" depends="compile">
@@ -50,7 +49,7 @@
         </java>
     </target>
 
-	<target name="ProxyStockQuote" depends="compile">
+    <target name="ProxyStockQuote" depends="compile">
         <java classname="samples.userguide.ProxyStockQuoteClient"
               classpathref="axis.classpath" fork="true">
             <arg value="${symbol}"/>
@@ -58,7 +57,7 @@
             <arg value="${synapseurl}"/>
         </java>
     </target>
-    
+
     <target name="DumbQuoteClient" depends="compile">
         <java classname="samples.userguide.DumbStockQuoteClient"
               classpathref="axis.classpath" fork="true">
@@ -68,27 +67,27 @@
     </target>
 
     <target name="log_with_addressing" depends="compile">
-      <java classname="samples.userguide.log.LoggingClient"
+        <java classname="samples.userguide.log.LoggingClient"
               classpathref="axis.classpath" fork="true">
         </java>
     </target>
 
-  <target name="init">
-    <mkdir dir="${class.dir}"/>
-    <mkdir dir="src/ddl"/>
-
-    <path id="javac.classpath">
-      <pathelement path="${class.dir}"/>
-      <fileset dir="../../lib">
-        <include name="**/*.jar"/>
-      </fileset>
-    </path>
-  </target>
+    <target name="init">
+        <mkdir dir="${class.dir}"/>
+        <mkdir dir="src/ddl"/>
+
+        <path id="javac.classpath">
+            <pathelement path="${class.dir}"/>
+            <fileset dir="../../lib">
+                <include name="**/*.jar"/>
+            </fileset>
+        </path>
+    </target>
 
-  <target name="compile" depends="init" description="Compile all Java">
-    <javac srcdir="src" destdir="${class.dir}">
-      <classpath refid="javac.classpath"/>
-    </javac>
-  </target>
+    <target name="compile" depends="init" description="Compile all Java">
+        <javac srcdir="src" destdir="${class.dir}">
+            <classpath refid="javac.classpath"/>
+        </javac>
+    </target>
 
 </project>



---------------------------------------------------------------------
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