blob: 8d864d8b4294cbfc79493113bd70d4855e98bacf [file] [log] [blame]
<project name="OpenEJB-RI-Server" default="jar" basedir="../">
<!--
Contributions by:
Daniel S. Haischt <sirabyss@gmx.net>
-->
<property name="build.riserver.src" value="${build.src}/riserver"/>
<property name="build.riserver.dest" value="${build.dest}/riserver"/>
<property name="dest.riserver.javadoc.dir" value="${dest.javadoc.dir}/riserver"/>
<!-- Build classpath -->
<path id="project.classpath">
<pathelement location="${jrefactory.jar}"/>
<pathelement location="${castor.home}/${castor.jar}"/>
<pathelement location="${castor.home}/${castor.xml.jar}"/>
<pathelement location="${ejb11.jar}"/>
<pathelement location="${ejb20.jar}"/>
<pathelement location="${jaas.home}/${jaas.jar}"/>
<pathelement location="${jca.jar}"/>
<pathelement location="${jdbcext.jar}"/>
<pathelement location="${jdk12proxy.jar}"/>
<pathelement location="${jedi.home}/lib/${jedi.jar}"/>
<pathelement location="${jedi.home}/lib/${jediplugin.jar}"/>
<pathelement location="${jms.jar}"/>
<pathelement location="${jndi.jar}"/>
<pathelement location="${jta.jar}"/>
<pathelement location="${log4j.jar}"/>
<pathelement location="${minerva.jar}"/>
<pathelement location="${openorb.home}/${openorb.jar}"/>
<pathelement location="${openorb.home}/${openorb.rmi.jar}"/>
<pathelement location="${openorb.home}/${openorb.tools.jar}"/>
<pathelement location="${jts.jar}"/>
<pathelement location="${tyrex.home}/${tyrex.jar}"/>
<pathelement location="${tyrex.home}/${tyrex.iiop.jar}"/>
<pathelement location="${jaxp.home}/jaxp.jar"/>
<pathelement location="${jaxp.home}/${jaxp.parser.jar}"/>
<pathelement location="${jaxp.home}/${jaxp.parserapi.jar}"/>
<pathelement location="${jaxp.home}/${jaxp.xsltprocessor.jar}"/>
<pathelement location="${jaxp.home}/${jaxp.xalan1compat.jar}"/>
<pathelement location="${junit.jar}"/>
<pathelement location="${jakarta.regexp.jar}"/>
</path>
<!-- ================================================================== -->
<!-- Prepares the build directory -->
<!-- ================================================================== -->
<target name="prepare">
<mkdir dir="${build.riserver.src}"/>
<mkdir dir="${build.riserver.dest}"/>
<mkdir dir="${dest.riserver.javadoc.dir}"/>
<copy todir="${build.riserver.src}">
<fileset dir="${src.java.dir}/facilities" >
<include name="${src.java.dir}/facilities/org/openejb/alt/util/Messages.java"/>
<include name="**/ri/**"/>
<exclude name="**/CVS/**"/>
<exclude name="**/*.class"/>
</fileset>
</copy>
</target>
<target name="copy.manifest">
<copy todir="${build.riserver.dest}">
<fileset dir="${src.java.dir}/etc" >
<include name="**/LICENSE"/>
<include name="**/MANIFEST.MF"/>
<include name="**/README"/>
</fileset>
</copy>
<copy todir="${build.riserver.dest}">
<fileset dir="${final.dir}/src/etc" >
<include name="**/CHANGELOG"/>
</fileset>
</copy>
<replace file="${build.riserver.dest}/MANIFEST.MF" token="$$VERSION$$" value="${version}"/>
</target>
<target name="copy.i18n">
<copy todir="${build.riserver.dest}">
<fileset dir="${src.java.dir}/facilities" >
<include name="**/resources/*.properties"/>
</fileset>
</copy>
</target>
<!-- ================================================================== -->
<!-- Compiles the source directory -->
<!-- ================================================================== -->
<target name="compile"
depends="prepare"
description="--> compiles the java source files">
<javac srcdir="${build.riserver.src}"
destdir="${build.riserver.dest}"
debug="${debug}"
deprecation="${deprecation}">
<classpath>
<path refid="project.classpath"/>
<pathelement location="${build.dest}/openejb"/>
</classpath>
</javac>
</target>
<!-- ================================================================== -->
<!-- Compiles the source directory and creates a .jar file -->
<!-- ================================================================== -->
<target name="jar"
depends="compile, copy.manifest, copy.i18n"
description="--> generates all java archives (default)">
<jar jarfile="dist/${project}_ri_server-${version}.jar"
basedir="${build.riserver.dest}"
manifest="${build.riserver.dest}/MANIFEST.MF"/>
</target>
<!-- ================================================================== -->
<!-- Creates the API documentation -->
<!-- ================================================================== -->
<target name="javadocs"
depends="compile"
description="--> generates the API documentation">
<javadoc packagenames="org.openejb.*"
sourcepath="${build.riserver.src}"
destdir="${dest.riserver.javadoc.dir}"
doctitle="${name} RI-Server JavaDoc"
windowtitle="${name} JavaDoc"
bottom="${copyright}"
package="true"
author="true"
version="true"
noindex="true">
<classpath>
<path refid="project.classpath"/>
<pathelement location="${build.dest}/openejb"/>
</classpath>
</javadoc>
</target>
</project>