[hibernate-commits] Hibernate SVN: r13238 - jpa-api/tags/annotations_v3_1_0_Beta9.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Wed Aug 15 20:17:16 EDT 2007


Author: epbernard
Date: 2007-08-15 20:17:16 -0400 (Wed, 15 Aug 2007)
New Revision: 13238

Added:
   jpa-api/tags/annotations_v3_1_0_Beta9/build.xml
Log:
Move jpa-api tags/annotations_v31beta9 to the new structure (annotations_v3_1_0_Beta9)

Copied: jpa-api/tags/annotations_v3_1_0_Beta9/build.xml (from rev 13237, tags/annotations_v31beta9/HibernateExt/ejb-api/build.xml)
===================================================================
--- jpa-api/tags/annotations_v3_1_0_Beta9/build.xml	                        (rev 0)
+++ jpa-api/tags/annotations_v3_1_0_Beta9/build.xml	2007-08-16 00:17:16 UTC (rev 13238)
@@ -0,0 +1,106 @@
+<!--
+
+	EJB API build script.
+
+	Emmanuel Bernard
+
+-->
+
+<project name="EJB-API" default="jar" basedir=".">
+
+	<!-- Give user a chance to override without editing this file or typing -D -->
+	<property file="build.properties"/>
+	<property file="${user.home}/.ant.properties"/>
+
+	<!-- Name of project and version, used to create filenames -->
+	<property name="name" value="ejb3-persistence"/>
+	<property name="version" value="public-draft"/>
+
+	<!-- set global properties for this build -->
+	<property name="src.dir" value="src"/>
+	<property name="build.dir" value="build"/>
+    <property name="metainf.dir" value="etc"/>
+	<property name="classes.dir" value="${build.dir}/classes"/>
+	<property name="jar.name" value="${name}"/>
+
+	<property name="javac.debug" value="on"/>
+	<property name="javac.optimize" value="off"/>
+
+	<patternset id="src.files">
+		<!-- include everything we want in the src directory
+			that we didn't want in the jar itself -->
+		<include name="**/*.java"/>
+		<include name="META-INF/ra.xml"/>
+	</patternset>
+
+
+	<!-- ############################ Targets #############################-->
+
+	<target name="clean" description="Cleans up build and dist directories">
+		<delete dir="${build.dir}"/>
+	</target>
+
+	<target name="init" description="Initialize the build">
+		<tstamp>
+			<format property="subversion" pattern="yyyy-MM-dd hh:mm:ss"/>
+		</tstamp>
+		<echo message="Build ${name}-${version} (${subversion})"/>
+
+		<mkdir dir="${classes.dir}"/>
+
+	</target>
+
+	<target name="compile" depends="init" description="Compile the Java source code">
+		<available
+			classname="org.eclipse.core.launcher.Main"
+			property="build.compiler"
+			value="org.eclipse.jdt.core.JDTCompilerAdapter"
+			classpath="${java.class.path}"/>
+		<javac
+			destdir="${classes.dir}"
+			debug="${javac.debug}"
+			optimize="${javac.optimize}"
+			nowarn="on"
+            source="1.5">
+          <src path="${src.dir}"/>
+        </javac>
+	</target>
+
+
+	<target name="jar" depends="compile" description="Build the distribution .jar file">
+		<jar jarfile="${build.dir}/${jar.name}.jar" basedir="${classes.dir}">
+			<include name="javax/**/*.class"/>
+            <manifest>
+                <attribute name="Built-By" value="hibernate.org"/>
+                <attribute name="Specification-Title" value="EJB 3.0"/>
+                <attribute name="Specification-Version" value="${version}"/>
+                <attribute name="Specification-Vendor" value="Sun Microsystems, Inc."/>
+                <attribute name="Implementation-Title" value="EJB"/>
+                <attribute name="Implementation-Version" value="${version} ${TODAY}"/> 
+                <attribute name="Implementation-Vendor" value="hibernate.org"/>
+            </manifest>
+            <metainf dir="${basedir}/${metainf.dir}">
+                <include name="**/license.txt"/>
+            </metainf>
+		</jar>
+	</target>
+
+    <target name="javadoc" description="Compile the Javadoc API documentation">
+        <mkdir dir="${build.dir}/api"/>
+        <javadoc
+        	packagenames="javax.persistence.*"
+        	destdir="${build.dir}/api"
+        	use="true"
+        	protected="true"
+        	version="true"
+        	windowtitle="EJB 3.0 Persistence API Documentation"
+        	doctitle="EJB 3.0 Persistence API Documentation"
+        	link="http://java.sun.com/j2se/1.5/docs/api">
+        	<packageset dir="${src.dir}" defaultexcludes="yes" >
+		      <include name="**/*" />
+		    </packageset>
+        </javadoc>
+    </target>
+
+
+</project>




More information about the hibernate-commits mailing list