[hibernate-commits] Hibernate SVN: r13422 - annotations/tags/before_ejb3_annotations.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Wed Aug 15 20:28:48 EDT 2007


Author: epbernard
Date: 2007-08-15 20:28:48 -0400 (Wed, 15 Aug 2007)
New Revision: 13422

Added:
   annotations/tags/before_ejb3_annotations/build.xml
Log:
Move annotations tags/before_ejb3_annotations to the new structure (before_ejb3_annotations)

Copied: annotations/tags/before_ejb3_annotations/build.xml (from rev 13421, tags/before_ejb3_annotations/HibernateExt/metadata/build.xml)
===================================================================
--- annotations/tags/before_ejb3_annotations/build.xml	                        (rev 0)
+++ annotations/tags/before_ejb3_annotations/build.xml	2007-08-16 00:28:48 UTC (rev 13422)
@@ -0,0 +1,106 @@
+<!--
+
+  HibernateMetadata ANT build script.
+  
+  Note that javac, javadoc etc. is forking javac, javadoc etc. based on
+  relative names to ${jdk15.home}
+
+-->
+
+<project name="HibernateMetadata" default="dist" basedir=".">
+
+    <!-- Give user a chance to override without editing this file
+       (and without typing -D each time it compiles it) -->
+    <property file="build.properties"/>
+    <property file="${user.home}/.ant.properties"/>
+
+    <!-- Name of project and version, used to create filenames -->
+    <property name="Name" value="Hibernate Metadata"/>
+    <property name="name" value="hibernate-metadata"/>
+    <property name="version" value="3.0"/>
+    <property name="javadoc.packagenames" value="org.hibernate.metadata.*"/>
+	<property name="jdbc.dir" value="jdbc"/>
+	
+	<import file="../common-build.xml"/>
+
+	<target name="init" depends="common-build.init">
+		<available file="${jdk15.home}" type="dir" property="jdk15.available"/>
+	    <fail unless="jdk15.available">
+  		 Could not find ${jdk15.home}. It shall point to a JDK 1.5 directory.
+    	</fail>
+	</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
+      	    compiler="extJavac"
+      		executable="${jdk15.home}/bin/javac"
+      	    source="1.5"
+            srcdir="${src.dir}" 
+            destdir="${build.dir}"
+            classpathref="lib.class.path" 
+            debug="${javac.debug}"
+            optimize="${javac.optimize}"
+            nowarn="on"
+      		>
+      	<bootclasspath>
+			<fileset dir="${jdk15.home}/jre/lib" includes="*.jar"/>
+      	</bootclasspath>
+        </javac>
+    </target>
+	
+	<target name="compiletest" depends="compile" description="Compile the tests">
+		<available 
+			classname="org.eclipse.core.launcher.Main"
+			property="build.compiler" 
+			value="org.eclipse.jdt.core.JDTCompilerAdapter"
+			classpath="${java.class.path}"/>		
+		<javac
+			compiler="extJavac"
+			executable="${jdk15.home}/bin/javac"
+			source="1.5"
+			srcdir="${test.dir}" 
+			destdir="${build.dir}"
+			classpathref="lib.class.path" 
+			debug="${javac.debug}"
+			optimize="${javac.optimize}"
+			nowarn="on">
+			  	<bootclasspath>
+			<fileset dir="${jdk15.home}/jre/lib" includes="*.jar"/>
+      	</bootclasspath>
+    
+		</javac>
+	</target>
+
+    <target name="junit" depends="compiletest">
+        <mkdir dir="test_output"/>
+        <junit fork="yes" jvm="${jdk15.home}/bin/java" printsummary="yes" haltonfailure="yes">
+            <classpath>
+                <fileset dir="${jdbc.dir}">
+					<include name="**/*.jar"/>
+					<include name="**/*.zip"/>
+				</fileset>
+            	<path refid="lib.class.path"/>
+                <pathelement path="${build.dir}"/>
+                <pathelement path="${src.dir}"/> <!-- pick up properties from here -->
+				<pathelement path="${test.dir}"/> <!-- pick up mappings from here -->
+            </classpath>
+            <formatter type="plain"/>
+            <formatter type="xml"/>
+            <batchtest fork="yes" todir="test_output" haltonfailure="no">
+                <fileset dir="${build.dir}">
+                    <include name="**/*Test.class"/>
+                </fileset>
+            </batchtest>
+        </junit>
+    </target>
+				
+    <target name="javadoc" description="Compile the Javadoc API documentation to dist dir">
+			<echo>Skipping java doc since ant's javadoc task cannot handle an alternative javadoc</echo>        	
+     </target>
+	
+</project>




More information about the hibernate-commits mailing list