[jboss-svn-commits] JBL Code SVN: r14242 - in labs/shotoku/trunk/shotoku-cache: cache-base and 3 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Wed Aug 15 05:22:54 EDT 2007
Author: adamw
Date: 2007-08-15 05:22:54 -0400 (Wed, 15 Aug 2007)
New Revision: 14242
Added:
labs/shotoku/trunk/shotoku-cache/cache-base/build.xml
labs/shotoku/trunk/shotoku-cache/cache-base/src/
labs/shotoku/trunk/shotoku-cache/cache-base/src/etc/
labs/shotoku/trunk/shotoku-cache/cache-base/src/java/
labs/shotoku/trunk/shotoku-cache/cache-test/
labs/shotoku/trunk/shotoku-cache/cache-test/test/
labs/shotoku/trunk/shotoku-cache/cache-test/test/build.xml
labs/shotoku/trunk/shotoku-cache/cache-test/test/src/
Removed:
labs/shotoku/trunk/shotoku-cache/cache-base/src/etc/
labs/shotoku/trunk/shotoku-cache/cache-base/src/java/
labs/shotoku/trunk/shotoku-cache/cache-test/test/build.xml
labs/shotoku/trunk/shotoku-cache/cache-test/test/src/
labs/shotoku/trunk/shotoku-cache/src/
labs/shotoku/trunk/shotoku-cache/test/
Log:
Modularazing step 2
Copied: labs/shotoku/trunk/shotoku-cache/cache-base/build.xml (from rev 14190, labs/shotoku/trunk/shotoku-cache/build.xml)
===================================================================
--- labs/shotoku/trunk/shotoku-cache/cache-base/build.xml (rev 0)
+++ labs/shotoku/trunk/shotoku-cache/cache-base/build.xml 2007-08-15 09:22:54 UTC (rev 14242)
@@ -0,0 +1,97 @@
+<?xml version='1.0' encoding='UTF-8'?>
+
+<project name="Shotoku Renewable Cache" default="build" basedir=".">
+ <!-- Configuration of deployment -->
+ <property name="jboss.home" value="/home/adamw/jboss/jboss-cache" />
+ <property name="jboss.conf" value="default" />
+
+ <!-- Name of the service archive which will contain the blog application -->
+ <property name="jar.lib.name" value="shotoku-cache.jar" />
+ <property name="jar.service.name" value="shotoku-cache-service.jar" />
+ <property name="sar.name" value="shotoku-cache-service.sar" />
+
+ <!-- Configuration of source/ target directories -->
+ <property name="src" value="src"/>
+ <property name="src.java" value="${src}/java"/>
+ <property name="src.meta" value="${src}/etc"/>
+ <property name="build" value="build"/>
+ <property name="dist" value="${basedir}/dist"/>
+
+ <!-- Helper properties: built using the above ones -->
+ <property name="dist.sar.dir" value="${dist}/${sar.name}" />
+ <property name="dist.sar.lib.dir" value="${dist.sar.dir}/lib" />
+ <property name="dist.lib.dir" value="${dist}" />
+
+ <property name="deploy.sar.dir" value="${jboss.home}/server/${jboss.conf}/deploy" />
+ <property name="deploy.lib.dir" value="${jboss.home}/server/${jboss.conf}/lib" />
+
+ <!-- Dependency jars filesets definitions -->
+ <fileset id="classpath" dir="lib">
+ <include name="**/*.jar"/>
+ </fileset>
+ <path id="classpath.jars">
+ <fileset refid="classpath" />
+ </path>
+
+ <!-- Main tasks -->
+ <target name="clean">
+ <delete dir="${dist}" />
+ <delete dir="${build}" />
+ </target>
+
+ <target name="build" depends="clean">
+ <mkdir dir="${build}" />
+
+ <!-- Compiling the source -->
+ <javac srcdir="${src.java}" destdir="${build}" target="1.5" source="1.5">
+ <classpath refid="classpath.jars" />
+ </javac>
+ </target>
+
+ <target name="dist" depends="build">
+ <mkdir dir="${dist.sar.dir}" />
+ <mkdir dir="${dist.sar.lib.dir}" />
+ <mkdir dir="${dist.lib.dir}" />
+
+ <!-- Copying the meta information -->
+ <copy todir="${dist.sar.dir}">
+ <fileset dir="${src.meta}">
+ <include name="**/*" />
+ </fileset>
+ </copy>
+
+ <!-- Creating the jars with the classes -->
+ <jar destfile="${dist.sar.lib.dir}/${jar.service.name}"
+ basedir="${build}"
+ includes="**/*ServiceImpl*" />
+
+ <jar destfile="${dist.lib.dir}/${jar.lib.name}"
+ basedir="${build}"
+ excludes="**/*ServiceImpl*" />
+ </target>
+
+ <target name="deploy" depends="dist,undeploy">
+ <!-- Copying the sar directory to the jboss deploy dir -->
+ <copy todir="${deploy.sar.dir}">
+ <fileset dir="${dist}">
+ <include name="${sar.name}/**" />
+ </fileset>
+ </copy>
+
+ <copy todir="${deploy.lib.dir}">
+ <fileset dir="${dist}">
+ <include name="${jar.lib.name}" />
+ </fileset>
+ </copy>
+ </target>
+
+ <target name="undeploy">
+ <!-- Deleting old deployment -->
+ <delete dir="${deploy.sar.dir}/${sar.name}" />
+ <delete dir="${deploy.lib.dir}/${jar.lib.name}" />
+ </target>
+
+ <target name="test" depends="dist">
+ <ant dir="test" inheritrefs="true" target="all" />
+ </target>
+</project>
Copied: labs/shotoku/trunk/shotoku-cache/cache-base/src (from rev 14177, labs/shotoku/trunk/shotoku-cache/src)
Copied: labs/shotoku/trunk/shotoku-cache/cache-base/src/etc (from rev 14241, labs/shotoku/trunk/shotoku-cache/src/etc)
Copied: labs/shotoku/trunk/shotoku-cache/cache-base/src/java (from rev 14241, labs/shotoku/trunk/shotoku-cache/src/java)
Copied: labs/shotoku/trunk/shotoku-cache/cache-test/test (from rev 14186, labs/shotoku/trunk/shotoku-cache/test)
Deleted: labs/shotoku/trunk/shotoku-cache/cache-test/test/build.xml
===================================================================
--- labs/shotoku/trunk/shotoku-cache/test/build.xml 2007-08-13 18:02:52 UTC (rev 14186)
+++ labs/shotoku/trunk/shotoku-cache/cache-test/test/build.xml 2007-08-15 09:22:54 UTC (rev 14242)
@@ -1,33 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-
-<project name="Shotoku Renewable Cache Test" default="all" basedir=".">
- <path id="classpath.test.jars">
- <fileset refid="classpath" />
- <fileset dir="../dist"><include name="shotoku-cache.jar"/></fileset>
- </path>
-
- <target name="all">
- <delete dir="dist" />
- <delete dir="build" />
-
- <!-- -->
-
- <mkdir dir="build" />
-
- <javac srcdir="src/java" destdir="build" target="1.5" source="1.5">
- <classpath refid="classpath.test.jars" />
- </javac>
-
- <!-- -->
-
- <copy todir="build">
- <fileset dir="src/web"><include name="**/*" /></fileset>
- </copy>
-
- <!-- -->
-
- <mkdir dir="dist" />
-
- <jar destfile="dist/shotoku-cache-test.war" basedir="build" />
- </target>
-</project>
Copied: labs/shotoku/trunk/shotoku-cache/cache-test/test/build.xml (from rev 14241, labs/shotoku/trunk/shotoku-cache/test/build.xml)
===================================================================
--- labs/shotoku/trunk/shotoku-cache/cache-test/test/build.xml (rev 0)
+++ labs/shotoku/trunk/shotoku-cache/cache-test/test/build.xml 2007-08-15 09:22:54 UTC (rev 14242)
@@ -0,0 +1,45 @@
+<?xml version='1.0' encoding='UTF-8'?>
+
+<project name="Shotoku Renewable Cache Test" default="all" basedir=".">
+ <path id="classpath.test.jars">
+ <fileset refid="classpath" />
+ <fileset dir="../dist">
+ <include name="shotoku-cache.jar"/>
+ </fileset>
+ </path>
+
+ <target name="all">
+ <delete dir="dist" />
+ <delete dir="build" />
+
+ <!-- -->
+
+ <mkdir dir="build" />
+
+ <javac srcdir="src/java" destdir="build" target="1.5" source="1.5">
+ <classpath refid="classpath.test.jars" />
+ </javac>
+
+ <!-- -->
+
+ <copy todir="build">
+ <fileset dir="src/web">
+ <include name="**/*" />
+ </fileset>
+ </copy>
+
+ <!-- -->
+
+ <mkdir dir="dist" />
+
+ <jar destfile="dist/shotoku-cache-test.war" basedir="build" />
+
+ <!-- -->
+
+ <copy todir="${deploy.sar.dir}">
+ <fileset dir="dist">
+ <include name="shotoku-cache-test.war" />
+ </fileset>
+ </copy>
+ </target>
+</project>
Copied: labs/shotoku/trunk/shotoku-cache/cache-test/test/src (from rev 14241, labs/shotoku/trunk/shotoku-cache/test/src)
More information about the jboss-svn-commits
mailing list