blob: dfcbae0c8cf0d36009551a4fe10dc41a0a8bd849 [file] [log] [blame]
<project name="OpenEJB-Webadmin" default="jar" basedir="../">
<!--
Contributions by:
Daniel S. Haischt <sirabyss@gmx.net>
-->
<property name="build.webadmin.src" value="${build.src}/webadmin"/>
<property name="build.webadmin.dest" value="${build.dest}/webadmin"/>
<property name="src.webadmin.dir" value="${src.dir}/facilities"/>
<property name="dest.webadmin.javadoc.dir" value="${dest.javadoc.dir}/webadmin"/>
<!-- 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.xsltprocessor.jar}"/>
<pathelement location="${jaxp.home}/${jaxp.xalan1compat.jar}"/>
<pathelement location="${junit.jar}"/>
<pathelement location="${jakarta.regexp.jar}"/>
<pathelement location="${xslp.jar}"/>
</path>
<!-- ================================================================== -->
<!-- Prepares the build directory -->
<!-- ================================================================== -->
<target name="prepare">
<echo message="preparing webadmin"/>
<mkdir dir="${build.webadmin.src}"/>
<mkdir dir="${build.webadmin.dest}"/>
<mkdir dir="${dest.webadmin.javadoc.dir}"/>
<mkdir dir="${build.webadmin.dest}/META-INF"/>
<mkdir dir="beans"/>
<copy todir="${build.webadmin.src}">
<fileset dir="${src.webadmin.dir}" >
<include name="**/admin/**"/>
<exclude name="**/CVS/**"/>
<exclude name="**/javax/**"/>
<exclude name="**/*.class"/>
</fileset>
</copy>
<copy todir="${build.webadmin.dest}">
<fileset dir="${src.java.dir}/etc" >
<include name="**/CHANGELOG"/>
<include name="**/LICENSE"/>
<include name="**/MANIFEST.MF"/>
<include name="**/README"/>
</fileset>
<fileset dir="${src.webadmin.dir}" >
<include name="ejb-jar.xml"/>
<include name="openejb-jar.xml"/>
</fileset>
</copy>
<copy todir="${build.webadmin.dest}/META-INF">
<fileset dir="${src.webadmin.dir}/org/openejb/admin/web" >
<include name="ejb-jar.xml"/>
<include name="openejb-jar.xml"/>
</fileset>
</copy>
<replace file="${build.webadmin.dest}/MANIFEST.MF" token="$$VERSION$$" value="${version}"/>
</target>
<!-- ================================================================== -->
<!-- Compiles the source directory -->
<!-- ================================================================== -->
<target name="compile"
depends="prepare"
description="--> compiles the java source files">
<echo message="compiling webadmin"/>
<javac srcdir="${build.webadmin.src}"
destdir="${build.webadmin.dest}"
excludes="**/*_Foo.*"
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"
description="--> generates all java archives (default)">
<echo message="jarring webadmin"/>
<jar jarfile="dist/${project}_httpbean-api-${version}.jar"
basedir="build/classes/webadmin"
includes="org/openejb/admin/web/HttpBean.class,
org/openejb/admin/web/HttpHome.class,
org/openejb/admin/web/HttpObject.class,
org/openejb/admin/web/HttpRequest.class,
org/openejb/admin/web/HttpResponse.class"
manifest="${build.webadmin.dest}/MANIFEST.MF"/>
<jar jarfile="beans/${project}_webadmin-${version}.jar"
basedir="${build.webadmin.dest}"
includes="**/web/**,META-INF/*.xml"
excludes="org/openejb/admin/web/HttpBean.class,
org/openejb/admin/web/HttpHome.class,
org/openejb/admin/web/HttpObject.class,
org/openejb/admin/web/HttpRequest.class,
org/openejb/admin/web/HttpResponse.class,
**/web/*Test*.class"
manifest="${build.webadmin.dest}/MANIFEST.MF"/>
</target>
<!-- ================================================================== -->
<!-- Creates the API documentation -->
<!-- ================================================================== -->
<target name="javadocs"
depends="compile"
description="--> generates the API documentation">
<javadoc packagenames="org.openejb.*"
sourcepath="${build.webadmin.src}"
destdir="${dest.webadmin.javadoc.dir}"
doctitle="${name} Webadmin 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>