[jboss-svn-commits] JBL Code SVN: r8587 - labs/jbossesb/trunk/product/samples/quickstarts/helloworld_ftp_action

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Sat Dec 23 16:04:50 EST 2006


Author: estebanschifman
Date: 2006-12-23 16:04:48 -0500 (Sat, 23 Dec 2006)
New Revision: 8587

Added:
   labs/jbossesb/trunk/product/samples/quickstarts/helloworld_ftp_action/build.xml
Log:
ant file for helloworld_ftp_action quickstart

Added: labs/jbossesb/trunk/product/samples/quickstarts/helloworld_ftp_action/build.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/helloworld_ftp_action/build.xml	2006-12-23 20:45:29 UTC (rev 8586)
+++ labs/jbossesb/trunk/product/samples/quickstarts/helloworld_ftp_action/build.xml	2006-12-23 21:04:48 UTC (rev 8587)
@@ -0,0 +1,86 @@
+<project name="Quickstart_helloworld_FTP_action" default="run" basedir=".">
+  
+  <property file="../quickstarts.properties" />
+  
+  <property name="build.dir" value="${basedir}/build"/>
+  <property name="src.dir" value="${basedir}/src"/>
+		
+  <property name="esb-config" value="${basedir}/jbossesb.xml"/>
+
+	<path id="classpath">
+    <!-- fileset dir="${basedir}" includes="jbossesb-properties.xml" -->
+    <!-- fileset dir="${basedir}" includes="juddi.properties" -->
+    <fileset dir="${basedir}/lib" includes="*jar"/>    
+	<fileset dir="${esb.product.lib.dir}" includes="*jar"/>
+	<fileset dir="${esb.product.lib.dir}" includes="*xml"/>
+	<fileset dir="${esb.product.lib.dir}/ext" includes="*jar"/>
+	<fileset dir="${jbosshome.dir}/client" includes="*jar"/>
+	<fileset dir="${jbosshome.dir}/server/default/lib">
+			<include name="jboss-j2ee.jar"/> <!-- added this for the JMS client -->
+	</fileset>		
+  	
+  <fileset dir="${basedir}" includes="build/**/*.jar"/>
+  <fileset dir="${basedir}" includes="build/**/*.xml"/>
+  <pathelement location="." />
+  
+  </path>
+ 
+  <property name="cp" refid="classpath"/>
+  
+  <target name="echoCP">    
+  	<echo message="Classpath is ${cp}"/>
+  </target>
+  
+  <target name="prepare">
+	<mkdir dir="${build.dir}" />
+  </target>
+
+  <target name="clean">
+	<delete dir="${build.dir}" />
+  </target>
+
+  <target name="compile" depends="prepare">
+	<javac srcdir="${src.dir}"
+	   destdir="${build.dir}">
+	  <classpath refid="classpath"/>
+ 	</javac>
+  </target>
+
+  <target name="jars" depends="compile">
+	<delete file="${build.dir}/${ant.project.name}.jar"/>
+        <jar destfile="${build.dir}/${ant.project.name}.jar"
+		basedir="${build.dir}"
+		includes="**/*.class"/>
+  </target>
+
+  <target name="run" depends="jars">
+	     <echo>Basic FTP Gateway and JMS Listener with Actions</echo>
+	     <java fork="yes" classname="org.jboss.soa.esb.listeners.StandAloneBootStrapper" failonerror="true">  
+	     	<arg value="${esb-config}"/>
+			<classpath refid="classpath"/>
+	     </java>     
+  </target>	
+
+  <target name="deployToSAR">
+	    <echo>Deploys the project to the JBoss Application Server ESB SAR</echo>
+	  	<copy file="${build.dir}/${ant.project.name}.jar" overwrite="true"
+	  		todir="${jbosshome.dir}/server/default/deploy/jbossesb.sar"	
+	  	/>
+	  	<copy file="jbossesb.xml" overwrite="true"
+	  		todir="${jbosshome.dir}/server/default/conf"
+	  	/>
+	  	<touch file="${jbosshome.dir}/server/default/deploy/jbossesb.sar/META-INF/jboss-service.xml"/>
+	  	<echo>Check your AS console to see if everything deployed properly then run 'ant runtest'</echo>
+  </target>
+	
+  <target name="runtest">
+     <echo>Runs Test File creator (local filesystem)</echo>
+     <java fork="yes" classname="quickstart.hw_ftp_action.test.CreateTestFile" failonerror="true">
+     	<arg value="/home/ftpuser/tmp/esbInput"/> <!--  Directory -->
+     	<arg value="MyInput.dat"/> <!--  File name -->
+     	<arg value="Hello World In A File (for FTP gateway)"/> <!--  File Contnets -->
+		<classpath refid="classpath"/>
+     </java>
+  </target>  
+
+</project>
\ No newline at end of file




More information about the jboss-svn-commits mailing list