labs-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ber...@apache.org
Subject svn commit: r658563 - /labs/vysper/build.xml
Date Wed, 21 May 2008 06:24:03 GMT
Author: berndf
Date: Tue May 20 23:24:02 2008
New Revision: 658563

URL: http://svn.apache.org/viewvc?rev=658563&view=rev
Log:
[vysper] create jar file when building

Modified:
    labs/vysper/build.xml

Modified: labs/vysper/build.xml
URL: http://svn.apache.org/viewvc/labs/vysper/build.xml?rev=658563&r1=658562&r2=658563&view=diff
==============================================================================
--- labs/vysper/build.xml (original)
+++ labs/vysper/build.xml Tue May 20 23:24:02 2008
@@ -59,6 +59,8 @@
   
   <property name="vysper.output.dir" value="${basedir}/build/ant/classes"/>
   <property name="vysper.docs.dir" value="${basedir}/build/ant/apidocs"/>
+  <property name="vysper.target.dir" value="${basedir}/target"/>
+  <property name="vysper.jar.filename" value="vysper-server.jar"/>
   <property name="vysper.unittest.base.dir" value="${basedir}/build/ant/tests/junit"/>
   <property name="vysper.unittest.output.classes.dir" value="${vysper.unittest.base.dir}/classes"/>
   <property name="vysper.unittest.output.reports.dir" value="${vysper.unittest.base.dir}/reports"/>
@@ -107,7 +109,20 @@
   </path>
   
   
-  <target name="compile.vysper" depends="compile.production,compile.tests" description="Compile
vysper"/>
+  <target name="init" description="Build initialization">
+   <!-- Perform any build initialization in this target -->
+  </target>
+  
+  <target name="clean" depends="clean.vysper" description="cleanup all"/>
+
+  <target name="all" depends="init, clean, compile.vysper, run-unit-tests, package" description="build
all"/>
+	
+  <target name="docs" description="generate javadocs">
+    <javadoc sourcepathref="sourcepath" destdir="${vysper.docs.dir}">
+    </javadoc>
+  </target>
+
+  <target name="compile.vysper" depends="compile.production,compile.tests" description="compile
vysper source code"/>
   
   <target name="compile.production" description="Compile vysper; production classes">
     <mkdir dir="${vysper.output.dir}"/>
@@ -149,19 +164,29 @@
     <delete dir="${vysper.unittest.base.dir}"/>
   </target>
 
-  <target name="run-server" depends="compile.vysper" description="run the stand-alone
server">
+  <target name="package">
+    
+  </target>      
+    
+  <target name="package-jar" >
+      <mkdir dir="${vysper.target.dir}" />
+      <jar basedir="${vysper.output.dir}" destfile="${vysper.target.dir}/${vysper.jar.filename}"
/>
+  </target>
+    
+  <target name="run-server" depends="compile.vysper, package-jar" description="run the
stand-alone server">
     <java classname="org.apache.vysper.spring.ServerMain" fork="true" spawn="true">
       <classpath>
           <fileset dir="${basedir}/lib">
             <include name="*.jar"/>
           </fileset>
-          <pathelement location="${vysper.output.dir}"/>
+          <pathelement location="${vysper.target.dir}/${vysper.jar.filename}"/>
           <pathelement location="${basedir}/src/main/config"/>
         </classpath>
     </java>
+    <echo message="Vysper Server has been started. It will continue running even when
ant has terminated."/>
   </target>
 
-  <target name="run-unit-tests" depends="compile.vysper">
+  <target name="run-unit-tests" depends="compile.vysper" description="execute all unit
tests">
     <echo message="Running Vysper Unit Tests"/>
     <mkdir dir="${vysper.unittest.output.classes.dir}"/>
     <mkdir dir="${vysper.unittest.output.reports.dir}"/>
@@ -185,17 +210,4 @@
     </junit>
   </target>
 
-
-  <target name="init" description="Build initialization">
-    <!-- Perform any build initialization in this target -->
-  </target>
-  
-  <target name="clean" depends="clean.vysper" description="cleanup all"/>
-  
-  <target name="all" depends="init, clean, compile.vysper" description="build all"/>
-	
-  <target name="docs" description="generate javadocs">
-  	<javadoc sourcepathref="sourcepath" destdir="${vysper.docs.dir}">
-  	</javadoc>
-  </target>
 </project>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org


Mime
View raw message