Author: epbernard
Date: 2007-08-15 20:26:00 -0400 (Wed, 15 Aug 2007)
New Revision: 13367
Added:
annotations/tags/v3_0_0_Beta1/build.xml
Log:
Move annotations tags/annotations_v30beta1 to the new structure (v3_0_0_Beta1)
Copied: annotations/tags/v3_0_0_Beta1/build.xml (from rev 13366,
tags/annotations_v30beta1/HibernateExt/metadata/build.xml)
===================================================================
--- annotations/tags/v3_0_0_Beta1/build.xml (rev 0)
+++ annotations/tags/v3_0_0_Beta1/build.xml 2007-08-16 00:26:00 UTC (rev 13367)
@@ -0,0 +1,137 @@
+<!--
+
+ Hibernate Annotations ANT build script.
+
+ Note that javac, javadoc etc. is forking javac, javadoc etc. based on
+ relative names to ${jdk15.home}
+
+-->
+
+<project name="HibernateAnnotations" 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 Annotations
Preview"/>
+ <property name="name" value="hibernate-annotations"/>
+ <property name="version" value="3.0beta1"/>
+ <property name="javadoc.packagenames"
value="org.hibernate.*"/>
+ <property name="jdbc.dir" value="jdbc"/>
+
+ <import file="../common/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}. jdk15.home must 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="${classes.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="${classes.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="${classes.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="${classes.dir}">
+ <include name="**/*Test.class"/>
+ </fileset>
+ </batchtest>
+ </junit>
+ </target>
+
+ <!-- Run a single unit test. -->
+ <target name="junitsingle" depends="compiletest"
description="Run a single test suite (requires testname and jdbc.driver
properties)">
+ <mkdir dir="test_output"/>
+ <junit jvm="${jdk15.home}/bin/java" printsummary="yes"
fork="yes" haltonfailure="yes">
+ <classpath>
+ <fileset dir="${jdbc.dir}">
+ <include name="**/*.jar"/>
+ <include name="**/*.zip"/>
+ </fileset>
+ <path refid="lib.class.path"/>
+ <pathelement path="${classes.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"/>
+ <test fork="yes" todir="test_output"
haltonfailure="no" name="${testname}"/>
+ </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>
+
+ <!-- Temporary new target for docs -->
+ <target name="dist"
depends="jar,javadoc,copysource,copylib,extras" description="Build
everything">
+ <copy todir="${dist.dir}/doc" failonerror="false">
+ <fileset dir="doc">
+ <include name="**/*.*"/>
+ </fileset>
+ </copy>
+ <antcall target="common-build.dist"/>
+ </target>
+
+
+</project>
Show replies by date