Author: epbernard
Date: 2007-08-15 20:02:56 -0400 (Wed, 15 Aug 2007)
New Revision: 13078
Added:
jpa-api/tags/BEFORE_HAN_SPLIT/build.xml
Log:
Move jpa-api tags/BEFORE_HAN_SPLIT to the new structure (BEFORE_HAN_SPLIT)
Copied: jpa-api/tags/BEFORE_HAN_SPLIT/build.xml (from rev 13077,
tags/BEFORE_HAN_SPLIT/HibernateExt/ejb-api/build.xml)
===================================================================
--- jpa-api/tags/BEFORE_HAN_SPLIT/build.xml (rev 0)
+++ jpa-api/tags/BEFORE_HAN_SPLIT/build.xml 2007-08-16 00:02:56 UTC (rev 13078)
@@ -0,0 +1,108 @@
+<!--
+
+ 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="3.0 Final Release"/>
+
+ <!-- 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"
+ stylesheetfile="./etc/jdstyle.css"
+
link="http://java.sun.com/j2se/1.5/docs/api">
+ <packageset dir="${src.dir}" defaultexcludes="yes" >
+ <include name="**/*" />
+ </packageset>
+ </javadoc>
+
+ </target>
+
+
+</project>