[Tynstep-svn] r49 - trunk/step-server
ChrisBurrell at crosswire.org
ChrisBurrell at crosswire.org
Mon Dec 14 11:23:44 MST 2009
Author: ChrisBurrell
Date: 2009-12-14 11:23:44 -0700 (Mon, 14 Dec 2009)
New Revision: 49
Modified:
trunk/step-server/build.xml
Log:
updates to build script for step server
Modified: trunk/step-server/build.xml
===================================================================
--- trunk/step-server/build.xml 2009-12-14 17:49:41 UTC (rev 48)
+++ trunk/step-server/build.xml 2009-12-14 18:23:44 UTC (rev 49)
@@ -1,27 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
-<project name="${module}" default="compile" basedir=".">
+<project name="${module}" default="run" basedir=".">
- <property environment="env"/>
- <property file="build.properties"/>
+ <property environment="env" />
+ <property file="build.properties" />
- <path id="classpath">
- <fileset dir="lib" includes="**/*.jar" />
- </path>
-
- <target name="clean"
- description="deletes all generated files">
- <delete dir="build"/> <!-- generated by the prepare target -->
- </target>
+ <path id="classpath">
+ <fileset dir="lib" includes="**/*.jar" />
+ <fileset dir="../StepWebApp/war/WEB-INF/lib" includes="**/*.jar" />
+ </path>
+
+ <target name="clean" description="deletes all generated files">
+ <delete dir="build" />
+ <!-- generated by the prepare target -->
+ </target>
- <target name="compile" depends="clean"
- description="compiles Java source files to bytecode">
- <mkdir dir="build"/>
-
- <javac srcdir="src" destdir="build"
- classpathref="classpath" debug="true">
- </javac>
-
- <jar destfile="build/step-server.jar"></jar>
-
- </target>
+ <target name="compile" depends="clean" description="compiles Java source files to bytecode">
+ <mkdir dir="build/classes" />
+
+ <javac srcdir="src" destdir="build/classes" classpathref="classpath" debug="true">
+ </javac>
+
+ <jar destfile="build/step-server.jar" basedir="build/classes">
+ <manifest>
+ <attribute name="Main-Class" value="com.tyndalehouse.step.server.StepServer" />
+ </manifest>
+ </jar>
+ </target>
+
+ <target name="run" >
+ <java fork="true" classname="com.tyndalehouse.step.server.StepServer" >
+ <sysproperty key="step.db.location" value="../StepWebApp/war/StepDB" />
+ <classpath>
+ <path refid="classpath" />
+ <path location="build/step-server.jar" />
+ </classpath>
+ </java>
+ </target>
+
</project>
\ No newline at end of file
More information about the Tynstep-svn
mailing list