[jboss-cvs] jboss-seam/examples/hibernate2 ...
Michael Yuan
michael.yuan at jboss.com
Tue Nov 28 16:35:57 EST 2006
User: myuan
Date: 06/11/28 16:35:57
Modified: examples/hibernate2 build.xml
Log:
change build structure for WL
Revision Changes Path
1.4 +26 -17 jboss-seam/examples/hibernate2/build.xml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: build.xml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/hibernate2/build.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- build.xml 17 Nov 2006 21:40:56 -0000 1.3
+++ build.xml 28 Nov 2006 21:35:57 -0000 1.4
@@ -40,7 +40,18 @@
</javac>
</target>
- <target name="components" depends="compile">
+ <!--
+ Works for JBoss 4.0.5 by default
+
+ See notes for which JARs to add for JBoss AS 4.0.2 to 4.0.4
+
+ JBoss AS 4.0.0: need to remove cglib.jar and hibernate2.jar from server/default/lib
+ the isolated classloader in jboss-web.xml does not seem to work. If we force it
+ in jbossweb*/META-INF/jboss-service.xml, the commons logging lib in thirdparty-all.jar
+ will throw errors
+ -->
+ <target name="jboss" depends="compile">
+
<mkdir dir="${build.jars}"/>
<jar destfile="${build.jars}/${projname}.jar">
@@ -53,19 +64,6 @@
<include name="hibernate.cfg.xml" />
</fileset>
</jar>
- </target>
-
- <!--
- Works for JBoss 4.0.5 by default
-
- See notes for which JARs to add for JBoss AS 4.0.2 to 4.0.4
-
- JBoss AS 4.0.0: need to remove cglib.jar and hibernate2.jar from server/default/lib
- the isolated classloader in jboss-web.xml does not seem to work. If we force it
- in jbossweb*/META-INF/jboss-service.xml, the commons logging lib in thirdparty-all.jar
- will throw errors
- -->
- <target name="jboss" depends="compile,components">
<war destfile="${build.jars}/${projname}.war"
webxml="${resources}/web.xml">
@@ -73,8 +71,6 @@
<include name="faces-config.xml" />
<include name="pages.xml" />
<include name="navigation.xml" />
- </webinf>
- <webinf dir="${resources}/jboss">
<include name="jboss-web.xml" />
<include name="components.xml" />
</webinf>
@@ -108,7 +104,20 @@
</war>
</target>
- <target name="tomcat" depends="compile,components">
+ <target name="tomcat" depends="compile">
+
+ <mkdir dir="${build.jars}"/>
+
+ <jar destfile="${build.jars}/${projname}.jar">
+ <fileset dir="${build.classes}">
+ <include name="**/*.class"/>
+ </fileset>
+ <fileset dir="${resources}">
+ <include name="seam.properties" />
+ <include name="import.sql" />
+ <include name="hibernate.cfg.xml" />
+ </fileset>
+ </jar>
<war destfile="${build.jars}/${projname}.war"
webxml="${resources}/web.xml">
More information about the jboss-cvs-commits
mailing list