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/03/14 14:49:04 UTC
svn commit: r637100 - in /labs/droids/trunk: build.xml default.properties
ivy.xml
Author: thorsten
Date: Fri Mar 14 06:49:03 2008
New Revision: 637100
URL: http://svn.apache.org/viewvc?rev=637100&view=rev
Log:
Adding targerts to generate and use the examples
Modified:
labs/droids/trunk/build.xml
labs/droids/trunk/default.properties
labs/droids/trunk/ivy.xml
Modified: labs/droids/trunk/build.xml
URL: http://svn.apache.org/viewvc/labs/droids/trunk/build.xml?rev=637100&r1=637099&r2=637100&view=diff
==============================================================================
--- labs/droids/trunk/build.xml (original)
+++ labs/droids/trunk/build.xml Fri Mar 14 06:49:03 2008
@@ -53,6 +53,7 @@
<target name="droids.init">
<mkdir dir="${build.dir}"/>
<mkdir dir="${build.classes}"/>
+ <mkdir dir="${build.classesExample}"/>
<mkdir dir="${droids.handler.save.dir}"/>
</target>
<!-- will generate the properties file which we need to substitute all of our
@@ -83,7 +84,25 @@
<fileset dir="${src.dir.core}" includes="**/*.properties,**/*.xml,**/*.txt"/>
</copy>
</target>
-
+ <!-- Examples -->
+ <target name="droids.compile-example" depends="droids.compile-core" description="--> Will compile the droids examples" >
+ <javac
+ encoding="${build.encoding}"
+ srcdir="${src.dir.example}"
+ includes="org/apache/droids/**/*.java"
+ destdir="${build.classesExample}"
+ debug="${javac.debug}"
+ optimize="${javac.optimize}"
+ target="${javac.version}"
+ source="${javac.version}"
+ deprecation="${javac.deprecation}">
+ <classpath refid="droids.classpath"/>
+ </javac>
+ <filter filtersfile="${build.dir}/droids.properties"/>
+ <copy todir="${build.classesExample}" preservelastmodified="true" filtering="true">
+ <fileset dir="${src.dir.example}" includes="**/*.properties,**/*.xml,**/*.txt"/>
+ </copy>
+ </target>
<target name="droids.crawl" description="--> Will invoke the crawling.">
<java classname="org.apache.droids.Cli" fork="true" dir="${build.dir}"
maxmemory="${droids.maxmemory}" failonerror="true"
@@ -111,7 +130,23 @@
</manifest>
</jar>
</target>
-
+ <target name="droids.example.jar" depends="droids.compile-example" description="--> Make droids-example.jar">
+ <jar jarfile="${build.dir}/${final.name}-example.jar"
+ basedir="${build.classesExample}">
+ <manifest>
+ <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>
+ <copy todir="${lib.dir}">
+ <fileset dir="${build.dir}" includes="${final.name}-example.jar"/>
+ </copy>
+ </target>
<target name="droids.javadoc" depends="droids.compile-core"
description="--> Documentation javadocs">
<mkdir dir="${build.javadoc}"/>
Modified: labs/droids/trunk/default.properties
URL: http://svn.apache.org/viewvc/labs/droids/trunk/default.properties?rev=637100&r1=637099&r2=637100&view=diff
==============================================================================
--- labs/droids/trunk/default.properties (original)
+++ labs/droids/trunk/default.properties Fri Mar 14 06:49:03 2008
@@ -55,6 +55,7 @@
basedir = ./
src.dir.core = ${basedir}/src/core/java
+src.dir.example = ${basedir}/src/examples/java
lib.dir = ${basedir}/lib
conf.dir = ${basedir}/conf
docs.dir = ${basedir}/docs
@@ -63,6 +64,7 @@
build.dir = ${basedir}/build
build.classes = ${build.dir}/classes
+build.classesExample = ${build.dir}/classesExample
build.webapps = ${build.dir}/webapps
build.plugins = ${build.dir}/plugins
build.docs = ${build.dir}/docs
Modified: labs/droids/trunk/ivy.xml
URL: http://svn.apache.org/viewvc/labs/droids/trunk/ivy.xml?rev=637100&r1=637099&r2=637100&view=diff
==============================================================================
--- labs/droids/trunk/ivy.xml (original)
+++ labs/droids/trunk/ivy.xml Fri Mar 14 06:49:03 2008
@@ -19,7 +19,11 @@
<info organisation="apache" module="droids">
<license name="Apache License, Version 2.0" url="http://www.apache.org/licenses/"/>
<ivyauthor name="Apache Droids - an Apache Labs lab" url="http://labs.apache.org/"/>
- </info>
+ </info>
+ <configurations>
+ <conf name="core"/>
+ <conf name="test" extends="core" visibility="private" description="for testing our framework"/>
+ </configurations>
<publications>
<artifact name="org.apache.droids" type="jar" ext="jar"/>
</publications>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org