You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@labs.apache.org by th...@apache.org on 2008/01/15 13:45:01 UTC
svn commit: r612107 - /labs/droids/trunk/build.xml
Author: thorsten
Date: Tue Jan 15 04:44:57 2008
New Revision: 612107
URL: http://svn.apache.org/viewvc?rev=612107&view=rev
Log:
Adding target to create a jar
Modified:
labs/droids/trunk/build.xml
Modified: labs/droids/trunk/build.xml
URL: http://svn.apache.org/viewvc/labs/droids/trunk/build.xml?rev=612107&r1=612106&r2=612107&view=diff
==============================================================================
--- labs/droids/trunk/build.xml (original)
+++ labs/droids/trunk/build.xml Tue Jan 15 04:44:57 2008
@@ -19,7 +19,6 @@
<!-- Load all the default properties, and any the user wants -->
<!-- to contribute (without having to type -D or edit this file -->
- <property file="${user.home}/build.properties" />
<property file="${basedir}/build.properties" />
<property file="${basedir}/default.properties" />
@@ -51,14 +50,19 @@
<target name="droids.init">
<mkdir dir="${build.dir}"/>
<mkdir dir="${build.classes}"/>
+ <mkdir dir="${droids.handler.save.dir}"/>
+ </target>
+<!-- will generate the properties file which we need to substitute all of our
+ variables (@var@) -->
+ <target name="droids.properties">
+ <echoproperties destfile="${build.dir}/droids.properties"/>
</target>
-
<!-- ====================================================== -->
<!-- Compile the Java files -->
<!-- ====================================================== -->
<target name="droids.compile" depends="droids.compile-core" description="--> Will compile/deploy the droids core"/>
<!-- ,ivy.resolve -->
- <target name="droids.compile-core" depends="droids.init" description="--> Will compile the droids core" >
+ <target name="droids.compile-core" depends="droids.init,droids.properties" description="--> Will compile the droids core" >
<javac
encoding="${build.encoding}"
srcdir="${src.dir.core}"
@@ -71,10 +75,9 @@
deprecation="${javac.deprecation}">
<classpath refid="droids.classpath"/>
</javac>
- <copy toDir="${build.classes}" >
- <fileset dir="${src.dir.core}" >
- <exclude name="**/*.java"/>
- </fileset>
+ <filter filtersfile="${build.dir}/droids.properties"/>
+ <copy todir="${build.classes}" preservelastmodified="true" filtering="true">
+ <fileset dir="${src.dir.core}" includes="**/*.properties,**/*.xml"/>
</copy>
</target>
@@ -83,12 +86,28 @@
maxmemory="${droids.maxmemory}" failonerror="true"
resultproperty="buildResult">
<arg value="${droids.name}"/>
- <!-- <arg value="${droids.initial.url}"/> -->
+ <arg value="${droids.spring.context}"/>
<classpath>
<path refid="droids.classpath"/>
</classpath>
</java>
</target>
+
+ <target name="droids.jar" depends="droids.compile-core" description="--> Make droids.jar">
+ <jar jarfile="${build.dir}/${final.name}.jar"
+ basedir="${build.classes}">
+ <manifest>
+ <attribute name="Main-Class" value="org.apache.droids.Cli"/>
+ <section name="org/apache/droids/">
+ <attribute name="Comment" value="Support classes for Apache Droids"/>
+ <attribute name="Implementation-Title" value="org.apache.droids"/>
+ <attribute name="Implementation-Version" value="${final.name} "/>
+ <attribute name="Implementation-Vendor" value="The Apache Software Foundation"/>
+ <attribute name="Implementation-URL" value="http://labs.apache.org/droids/"/>
+ </section>
+ </manifest>
+ </jar>
+ </target>
<!-- Clean. Delete the build files, and their directories -->
<!-- ================================================================== -->
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org