playgrnd
@ HEAD
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 |
<?xml version="1.0" encoding="UTF-8"?> <project name="ESB-QuickTwo" basedir="."> <description> ${ant.project.name} ${line.separator} </description> <!-- load properties --> <property file="build.properties" /> <property environment="env" /> <!-- set directories --> <property name="jboss.server.path" value="${jboss.home}/server/${jboss.config}" /> <property name="jboss.deploy.path" value="${jboss.server.path}/deploy" /> <property name="src.dir" value="${basedir}/src/main/java" /> <property name="res.dir" value="${basedir}/src/main/resources" /> <property name="classes.dir" value="${basedir}/build/classes" /> <property name="test-src.dir" value="${basedir}/src/test/java" /> <property name="test-res.dir" value="${basedir}/src/test/resources" /> <property name="test-classes.dir" value="${basedir}/build/test-classes" /> <property name="dist.dir" value="${basedir}/dist" /> <property name="input.dir" value="${dist.dir}/input" /> <property name="output.dir" value="${dist.dir}/output" /> <property name="error.dir" value="${dist.dir}/error" /> <!-- validate environment --> <available file="${jboss.deploy.path}" property="jboss.found" /> <fail unless="jboss.found" message="JBoss server not found" /> <!-- set classpath --> <path id="jboss_classpath"> <fileset dir="${jboss.home}/lib" includes="*.jar" /> <fileset dir="${jboss.server.path}/lib" includes="*.jar" /> </path> <path id="esb_classpath"> <fileset dir="${esb.home}/lib" includes="*.jar" /> <fileset dir="${esb.home}/lib/jbossesb.sar/lib" includes="*.jar" /> <fileset dir="${esb.home}/lib/jbossesb.esb" includes="*.jar" /> <fileset dir="${esb.home}/lib/spring.esb" includes="*.jar" /> <fileset dir="${esb.home}/lib/soap.esb" includes="*.jar" /> <fileset dir="${esb.home}/lib/jbpm.esb" includes="*.jar" /> <fileset dir="${esb.home}/lib/smooks.esb" includes="*.jar" /> <fileset dir="${esb.home}/lib/ext" includes="*.jar" /> </path> <path id="compile_classpath"> <path refid="jboss_classpath" /> <path refid="esb_classpath" /> </path> <path id="exec_classpath"> <pathelement location="${jboss.home}/client/jbossall-client.jar" /> <pathelement location="${test-classes.dir}" /> <pathelement location="${test-res.dir}" /> <path refid="esb_classpath" /> </path> <!-- cleans the project --> <target name="clean"> <delete includeemptydirs="true"> <fileset dir="${classes.dir}" /> <fileset dir="${test-classes.dir}" /> <fileset dir="${dist.dir}" includes="**/*" /> </delete> </target> <!-- compiles the project --> <target name="compile"> <mkdir dir="${classes.dir}" /> <javac fork="true" srcdir="${src.dir}" destdir="${classes.dir}" debug="on"> <classpath refid="compile_classpath" /> </javac> <mkdir dir="${test-classes.dir}" /> <javac fork="true" srcdir="${test-src.dir}" destdir="${test-classes.dir}" debug="on"> <classpath refid="compile_classpath" /> </javac> </target> <!-- configures the project --> <target name="config"> <mkdir dir="${input.dir}" /> <mkdir dir="${output.dir}" /> <mkdir dir="${error.dir}" /> <copy file="${res.dir}/META-INF/jboss-esb-template.xml" tofile="${res.dir}/META-INF/jboss-esb.xml" overwrite="true" filtering="true"> <filterset> <filter token="INPUTDIR" value="${input.dir}" /> <filter token="OUTPUTDIR" value="${output.dir}" /> <filter token="ERRORDIR" value="${error.dir}" /> </filterset> </copy> </target> <!-- packages the project --> <target name="package" depends="compile, config"> <jar destfile="${dist.dir}/${ant.project.name}.esb"> <fileset dir="${classes.dir}" includes="**/*.class" /> <fileset dir="${res.dir}" /> </jar> </target> <!-- deploys the project --> <target name="deploy" depends="package"> <copy todir="${jboss.deploy.path}"> <fileset file="${dist.dir}/${ant.project.name}.esb" /> </copy> </target> <!-- undeploys the project --> <target name="undeploy"> <delete file="${jboss.deploy.path}/${ant.project.name}.esb" /> </target> <!-- send sample file through esb --> <target name="test_SendSampleOrder"> <java classname="com.quick.SendFileThruESB" fork="yes"> <classpath refid="exec_classpath" /> <arg value="HelloWorldServices" /> <arg value="MessageRouter" /> <arg value="${test-res.dir}/SampleOrder.xml" /> </java> </target> <!-- send large file through esb --> <target name="test_SendLargeOrder"> <java classname="com.quick.SendFileThruESB" fork="yes"> <classpath refid="exec_classpath" /> <arg value="HelloWorldServices" /> <arg value="MessageRouter" /> <arg value="${test-res.dir}/LargeOrder.xml" /> </java> </target> <!-- create large order file --> <target name="test_CreateLargeOrderFile"> <java classname="com.quick.CreateOrderFile"> <classpath refid="exec_classpath" /> <arg value="${test-res.dir}/LargeOrder.xml" /> <arg value="1000"/> </java> </target> </project> |
Commits for playgrnd/esbQuickTwo/build.xml
Revision | Author | Commited | Message |
---|---|---|---|
13 | snark | Tue 24 Jul, 2012 01:29:08 +0000 | initial checkin |