[jboss-cvs] JBossAS SVN: r82510 - in projects/ejb3/trunk/docs/tutorial: singleinheritance and 1 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Dec 23 06:10:27 EST 2008
Author: jaikiran
Date: 2008-12-23 06:10:27 -0500 (Tue, 23 Dec 2008)
New Revision: 82510
Added:
projects/ejb3/trunk/docs/tutorial/singleinheritance/
Modified:
projects/ejb3/trunk/docs/tutorial/singleinheritance/META-INF/persistence.xml
projects/ejb3/trunk/docs/tutorial/singleinheritance/build.xml
Log:
Initial version of the SingleInheritance in Entities tutorial, for JBoss-5 GA
Copied: projects/ejb3/trunk/docs/tutorial/singleinheritance (from rev 82032, projects/oldstuff/ejb3/docs/tutorial/singleinheritance)
Modified: projects/ejb3/trunk/docs/tutorial/singleinheritance/META-INF/persistence.xml
===================================================================
--- projects/oldstuff/ejb3/docs/tutorial/singleinheritance/META-INF/persistence.xml 2008-12-04 08:31:45 UTC (rev 82032)
+++ projects/ejb3/trunk/docs/tutorial/singleinheritance/META-INF/persistence.xml 2008-12-23 11:10:27 UTC (rev 82510)
@@ -1,5 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
-<persistence>
+<persistence xmlns="http://java.sun.com/xml/ns/persistence"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
+ version="1.0">
+
<persistence-unit name="tempdb">
<jta-data-source>java:/DefaultDS</jta-data-source>
<properties>
Modified: projects/ejb3/trunk/docs/tutorial/singleinheritance/build.xml
===================================================================
--- projects/oldstuff/ejb3/docs/tutorial/singleinheritance/build.xml 2008-12-04 08:31:45 UTC (rev 82032)
+++ projects/ejb3/trunk/docs/tutorial/singleinheritance/build.xml 2008-12-23 11:10:27 UTC (rev 82510)
@@ -8,26 +8,20 @@
<property environment="env"/>
<property name="src.dir" value="${basedir}/src"/>
- <property name="jboss.home" value="${env.JBOSS_HOME}"/> <property name="jboss.server.config" value="all"/>
+ <property name="jboss.home" value="${env.JBOSS_HOME}"/>
+ <property name="jboss.server.config" value="default"/>
<property name="build.dir" value="${basedir}/build"/>
<property name="build.classes.dir" value="${build.dir}/classes"/>
+ <property name="build.artifact" value="jboss-ejb3-tutorial-entity-singleinheritance.jar"/>
<!-- Build classpath -->
<path id="classpath">
<!-- So that we can get jndi.properties for InitialContext -->
<pathelement location="${basedir}"/>
- <fileset dir="${jboss.home}/lib">
- <include name="**/*.jar"/>
+ <!-- Only the jbossall-client.jar should ideally be sufficient -->
+ <fileset dir="${jboss.home}/client">
+ <include name="**/jbossall-client.jar"/>
</fileset>
- <fileset dir="${jboss.home}/server/${jboss.server.config}/lib">
- <include name="**/*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/server/${jboss.server.config}/deploy/ejb3.deployer">
- <include name="*.jar"/>
- </fileset>
- <fileset dir="${jboss.home}/server/${jboss.server.config}/deploy/jboss-aop-jdk50.deployer">
- <include name="*.jar"/>
- </fileset>
<pathelement location="${build.classes.dir}"/>
</path>
@@ -56,7 +50,7 @@
</target>
<target name="ejbjar" depends="compile">
- <jar jarfile="build/tutorial.jar">
+ <jar jarfile="build/${build.artifact}">
<fileset dir="${build.classes.dir}">
<include name="**/*.class"/>
</fileset>
@@ -64,7 +58,7 @@
<include name="META-INF/persistence.xml"/>
</fileset>
</jar>
- <copy file="build/tutorial.jar" todir="${jboss.home}/server/${jboss.server.config}/deploy"/>
+ <copy file="build/${build.artifact}" todir="${jboss.home}/server/${jboss.server.config}/deploy"/>
</target>
<target name="run" depends="ejbjar">
@@ -82,7 +76,7 @@
<target name="clean">
<delete dir="${build.dir}"/>
- <delete file="${jboss.home}/server/${jboss.server.config}/deploy/tutorial.jar"/>
+ <delete file="${jboss.home}/server/${jboss.server.config}/deploy/${build.artifact}"/>
</target>
More information about the jboss-cvs-commits
mailing list