blob: e30c39afff56ea31a527ab37974664032cc0ecd3 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Revision: 1.21 $ $Date: 2004-10-27 20:54:09 +0600 (Wed, 27 Oct 2004) $ -->
<project default="jar"
xmlns:j="jelly:core"
xmlns:u="jelly:util"
xmlns:maven="jelly:maven"
xmlns:util="jelly:util"
xmlns:deploy="deploy"
xmlns:ant="jelly:ant">
<preGoal name="itest:compile">
<u:file var="file" name="${maven.itest.src}"/>
<j:if test="${!file.exists()}">
<j:expr value="${context.setVariable('maven.itest.skip', 'true')}"/>
</j:if>
</preGoal>
<postGoal name="jar">
<jar destfile="target/axiom-api-${axiom.version}.jar">
<ant:fileset dir="target/classes">
<ant:exclude name="org/apache/ws/commons/soap/impl/llom/**"/>
<ant:exclude name="org/apache/ws/commons/om/impl/llom/**"/>
</ant:fileset>
</jar>
<jar destfile="target/axiom-impl-${axiom.version}.jar">
<ant:fileset dir="target/classes">
<ant:include name="org/apache/ws/commons/soap/impl/llom/**"/>
<ant:include name="org/apache/ws/commons/om/impl/llom/**"/>
</ant:fileset>
</jar>
</postGoal>
<goal name="jar">
<attainGoal name="jar:install"/>
</goal>
<goal name="release" prereqs="dist-bin,dist-src">
</goal>
<goal name="dist-bin" prereqs="jar,javadocs">
<ant:echo>+----------------------------------------------</ant:echo>
<ant:echo>| Creating: Axiom Binary Distribution</ant:echo>
<ant:echo>+----------------------------------------------</ant:echo>
<property name="dist" value="target/dist/temp"/>
<mkdir dir="${dist}"/>
<mkdir dir="${dist}/apidocs"/>
<mkdir dir="${dist}/build"/>
<mkdir dir="${dist}/docs"/>
<mkdir dir="${dist}/lib"/>
<!--copy dependent jars-->
<maven:reactor basedir="${basedir}"
postProcessing="true"
includes="project.xml"
banner="Executing (${goals}):"
ignoreFailures="false"/>
<j:forEach var="x" items="${reactorProjects}">
<ant:echo message="Copying ${x} to ${dist}"/>
<deploy:copy-deps todir="${dist}/lib"
projectDescriptor="${x.getFile()}"/>
</j:forEach>
<ant:delete file="${dist}/lib/xmlunit-${xmlunit.version}.jar"/>
<!--add api docs-->
<ant:javadoc packagenames="org.apache.ws.commons.*"
defaultexcludes="yes"
destdir="${dist}/apidocs"
author="true"
breakiterator="true"
version="true"
use="true"
windowtitle="AXIOM API">
<ant:arg
line="-J-Dhttp.proxy.port=${maven.proxy.port} -J-Dhttp.proxy.host=${maven.proxy.host}"/>
<ant:sourcepath>
<ant:pathelement location="src"/>
</ant:sourcepath>
<ant:classpath>
<ant:fileset dir="${dist}/lib">
<ant:include name="*.jar"/>
</ant:fileset>
</ant:classpath>
</ant:javadoc>
<!--add jars-->
<ant:copy toDir="${dist}/build">
<ant:fileset file="target/axiom-api-${axiom.version}.jar"/>
<ant:fileset file="target/axiom-impl-${axiom.version}.jar"/>
</ant:copy>
<!--add documents-->
<ant:copy toDir="${dist}/docs">
<ant:fileset dir="xdocs">
<ant:exclude name="**/.svn/**"/>
</ant:fileset>
</ant:copy>
<!--copy release notes, etc-->
<ant:copy toDir="${dist}">
<ant:fileset file="RELEASE-NOTE.txt"/>
<ant:fileset file="README.txt"/>
<ant:fileset file="LICENSE.txt"/>
</ant:copy>
<!--create the zip-->
<ant:zip file="target/dist/axiom-${axiom.version}-bin.zip">
<ant:fileset dir="${dist}/"/>
</ant:zip>
<ant:delete dir="${dist}"/>
</goal>
<goal name="dist-src" prereqs="jar">
<ant:echo>+----------------------------------------------</ant:echo>
<ant:echo>| Creating: Axiom Source Distribution</ant:echo>
<ant:echo>+----------------------------------------------</ant:echo>
<ant:property name="${dist}" value="target/dist/temp"/>
<ant:copy toDir="${dist}">
<ant:fileset dir=".">
<ant:exclude name="**/.svn/**"/>
<ant:include name="**/src/**"/>
<ant:include name="**/test/**"/>
</ant:fileset>
</ant:copy>
<!-- Copy the master maven files for the standard src distro -->
<ant:copy toDir="${dist}">
<ant:fileset file="maven.xml"/>
<ant:fileset file="project.xml"/>
<ant:fileset file="project.properties"/>
<ant:fileset file="RELEASE-NOTE.txt"/>
<ant:fileset file="LICENSE.txt"/>
</ant:copy>
<ant:zip file="target/dist/axiom-${axiom.version}-src.zip">
<ant:fileset dir="${dist}/"/>
</ant:zip>
<ant:delete dir="${dist}"/>
</goal>
<goal name="javadocs">
<mkdir dir="target/apidocs"/>
<ant:javadoc packagenames="org.apache.ws.commons.*"
defaultexcludes="yes"
destdir="target/apidocs"
author="true"
breakiterator="true"
version="true"
use="true"
windowtitle="AXIOM API">
<ant:arg
line="-J-Dhttp.proxy.port=${maven.proxy.port} -J-Dhttp.proxy.host=${maven.proxy.host}"/>
<ant:sourcepath>
<ant:pathelement location="src"/>
</ant:sourcepath>
</ant:javadoc>
</goal>
</project>