[jboss-cvs] JBossCache/examples/PojoCache/annotated50 ...
Ben Wang
bwang at jboss.com
Thu Sep 21 12:12:17 EDT 2006
User: bwang
Date: 06/09/21 12:12:17
Modified: examples/PojoCache/annotated50 build.xml readme.txt
Log:
Updated to 2.0 apis
Revision Changes Path
1.4 +15 -18 JBossCache/examples/PojoCache/annotated50/build.xml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: build.xml
===================================================================
RCS file: /cvsroot/jboss/JBossCache/examples/PojoCache/annotated50/build.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- build.xml 20 Sep 2006 10:45:44 -0000 1.3
+++ build.xml 21 Sep 2006 16:12:17 -0000 1.4
@@ -11,13 +11,8 @@
<path id="lib.classpath">
<fileset dir="${lib}">
<include name="**/*.jar" />
- <exclude name="jboss-cache.jar"/>
- <exclude name="jboss-aop.jar"/>
</fileset>
- <fileset dir="${lib-50}">
- <include name="**/*.jar" />
- </fileset>
<pathelement path="${build}"/>
</path>
@@ -58,23 +53,25 @@
</classpath>
</javac>
- <copy todir="${output}/etc">
- <fileset dir="${etc}">
- <include name="**/*"/>
- <exclude name="jboss-aop.xml"/>
+ <copy todir="output/etc/META-INF" filtering="no" overwrite="yes">
+ <fileset dir="${etc}/META-INF">
+ <include name="*.xml"/>
</fileset>
</copy>
- <!-- Use the jboss-aop.xml from the src dir -->
- <copy file="${source}/jboss-aop.xml"
- todir="${output}/etc/META-INF" overwrite="true"/>
+ <copy todir="output/etc" filtering="no" overwrite="yes">
+ <fileset dir="${etc}">
+ <include name="log4j.xml"/>
+ </fileset>
+ </copy>
</target>
<target name="run.aop.example" depends="compile" description="run standalone server replicator.">
<java classname="test.examples.StudentMaintTest" fork="yes" >
- <jvmarg value="-Djboss.aop.path=${output}/etc/META-INF/jboss-aop.xml"/>
- <jvmarg value="-javaagent:${lib-50}/jboss-aop-jdk50.jar"/>
+ <jvmarg value="-Djboss.aop.path=src/jboss-aop.xml"/>
+ <jvmarg value="-javaagent:${lib}/jboss-aop-jdk50.jar"/>
+ <sysproperty key="log4j.configuration" value="file:${output}/etc/log4j.xml"/>
<classpath refid="lib.classpath" />
<classpath path="${output}/etc" />
<classpath path="${build}" />
@@ -88,7 +85,7 @@
<aopc compilerclasspathref="lib.classpath" classpathref="lib.classpath" verbose="true">
<src path="${build}/examples"/>
- <aoppath path="${output}/etc/META-INF/jboss-aop.xml"/>
+ <aoppath path="src/jboss-aop.xml"/>
<classpath path="${build}"/>
</aopc>
</target>
1.3 +3 -3 JBossCache/examples/PojoCache/annotated50/readme.txt
(In the diff below, changes in quantity of whitespace are not shown.)
Index: readme.txt
===================================================================
RCS file: /cvsroot/jboss/JBossCache/examples/PojoCache/annotated50/readme.txt,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- readme.txt 5 Feb 2006 11:54:41 -0000 1.2
+++ readme.txt 21 Sep 2006 16:12:17 -0000 1.3
@@ -1,11 +1,11 @@
-This is an example that illustrates using JBossCacheAop to replicate
+This is an example that illustrates using PojoCache to replicate
over a cluster state information about students and the courses they take.
Note that you will need to use JDK50 to run this example!
We will use JDK50 POJO Cache annotation for illustration where
the necessary domain model classes have been annotated with
- at org.jboss.cache.aop.annotation.PojoCacheable and
-@@org.jboss.cache.aop.annotation.InstanceOfPojoCacheable annotations.
+ at org.jboss.cache.pojo.annotation.PojoCacheable and
+@@org.jboss.cache.pojo.annotation.InstanceOfPojoCacheable annotations.
You can run either using loadtime mode ("run.aop.example"), meaning there is
no need for pre-compilation once you have annotated your POJOs, or using
More information about the jboss-cvs-commits
mailing list