[jboss-cvs] jboss-seam/examples/wiki ...
Christian Bauer
christian.bauer at jboss.com
Wed Feb 21 11:24:10 EST 2007
User: cbauer
Date: 07/02/21 11:24:10
Modified: examples/wiki build.xml build.properties
Log:
User registration/login and some security
JBSEAM-870
JBSEAM-871
JBSEAM-874
Revision Changes Path
1.3 +52 -3 jboss-seam/examples/wiki/build.xml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: build.xml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/build.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- build.xml 16 Feb 2007 16:26:45 -0000 1.2
+++ build.xml 21 Feb 2007 16:24:10 -0000 1.3
@@ -10,8 +10,10 @@
<property name="dist.dir" value="dist" />
<property name="src.java.dir" value="src" />
<property name="src.test.dir" value="test" />
- <property name="lib.dir" value="../../lib" />
- <property name="seamlibs.dir" value="../../"/>
+ <property name="seam.home" value="../../"/>
+ <property name="lib.dir" value="${seam.home}/lib" />
+ <property name="seamlibs.dir" value="${seam.home}"/>
+ <property name="drools.lib.dir" value="${seam.home}/drools/lib"/>
<property name="ear.dir" value="exploded-archives/${project.name}.ear" />
<property name="jar.dir" value="exploded-archives/${project.name}.jar" />
<property name="war.dir" value="exploded-archives/${project.name}.war" />
@@ -34,6 +36,15 @@
<include name="jboss-seam*.jar"/>
</fileset>
+ <zipfileset id="droolslibs"
+ dir="${drools.lib.dir}">
+ <include name="*.jar"/>
+ </zipfileset>
+
+ <zipfileset id="jcaptchalibs" dir="${lib.dir}">
+ <include name="jcaptcha-all*.jar"/>
+ </zipfileset>
+
<path id="build.classpath">
<fileset refid="lib" />
<fileset refid="seamlibs"/>
@@ -110,6 +121,7 @@
<fileset dir="${seamlibs.dir}">
<include name="jboss-seam-debug.jar" />
<include name="jboss-seam-ui.jar" />
+ <include name="jboss-seam-mail.jar" />
</fileset>
</copy>
<copy todir="${war.dir}/WEB-INF/classes">
@@ -133,11 +145,14 @@
<fileset dir="${seamlibs.dir}">
<include name="jboss-seam.jar" />
</fileset>
+ <fileset refid="droolslibs"/>
+ <fileset refid="jcaptchalibs"/>
</copy>
<copy todir="${ear.dir}/META-INF">
<fileset dir="${basedir}/resources/META-INF">
<include name="application.xml" />
<include name="jboss-app.xml" />
+ <include name="security-rules.drl" />
</fileset>
</copy>
</target>
@@ -249,4 +264,38 @@
</target>
+ <!-- Database schema export -->
+ <path id="tools.classpath">
+ <fileset dir="../../seam-gen/lib">
+ <include name="*.jar"/>
+ </fileset>
+ <fileset dir="../../hibernate/lib">
+ <include name="*.jar"/>
+ </fileset>
+ <fileset dir="../../lib">
+ <include name="thirdparty*.jar"/>
+ </fileset>
+ </path>
+
+ <taskdef name="hibernatetool"
+ classname="org.hibernate.tool.ant.HibernateToolTask"
+ classpathref="tools.classpath"/>
+
+ <target name="schemaexport" depends="jar"
+ description="Exports a generated schema to a file">
+
+ <hibernatetool destdir="${basedir}">
+ <classpath path="${jar.dir}"/>
+ <jpaconfiguration/> <!-- Use META-INF/persistence.xml -->
+ <hbm2ddl
+ drop="false"
+ create="true"
+ export="false"
+ outputfilename="${dist.dir}/wiki-ddl.sql"
+ delimiter=";"
+ format="true"/>
+ </hibernatetool>
+ <echo message="Exported DDL to file: ${dist.dir}/wiki-ddl.sql"/>
+ </target>
+
</project>
1.2 +3 -0 jboss-seam/examples/wiki/build.properties
(In the diff below, changes in quantity of whitespace are not shown.)
Index: build.properties
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/build.properties,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- build.properties 1 Feb 2007 07:08:25 -0000 1.1
+++ build.properties 21 Feb 2007 16:24:10 -0000 1.2
@@ -1 +1,4 @@
+#Set this if you move the 'wiki' example out of the Seam example directory
+#seam.home = /Users/turin/work/remote/jboss/public/jboss-seam
+
jboss.home = /Users/turin/work/local/jboss/jboss-4.0.5.GA
\ No newline at end of file
More information about the jboss-cvs-commits
mailing list