Author: thomas.diesler(a)jboss.com
Date: 2006-12-22 07:49:33 -0500 (Fri, 22 Dec 2006)
New Revision: 1724
Added:
trunk/integration-tomcat/build.xml
Modified:
trunk/integration-tomcat/
Log:
restructure build
Property changes on: trunk/integration-tomcat
___________________________________________________________________
Name: svn:ignore
-
output-eclipse
+
output-eclipse
output
Added: trunk/integration-tomcat/build.xml
===================================================================
--- trunk/integration-tomcat/build.xml 2006-12-22 12:49:28 UTC (rev 1723)
+++ trunk/integration-tomcat/build.xml 2006-12-22 12:49:33 UTC (rev 1724)
@@ -0,0 +1,158 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- ====================================================================== -->
+<!-- -->
+<!-- JBoss, the OpenSource J2EE webOS -->
+<!-- -->
+<!-- Distributable under LGPL license. -->
+<!-- See terms of license at
http://www.gnu.org. -->
+<!-- -->
+<!-- ====================================================================== -->
+
+<!-- $Id$ -->
+
+<project default="main" basedir="../integration-tomcat"
name="JBossWS-Tomcat">
+
+ <import file="${basedir}/../build/import/build-setup.xml"/>
+ <import file="${basedir}/../build/import/build-thirdparty.xml"/>
+
+ <target name="tomcat-init" depends="prepare, thirdparty">
+ <path id="core.classpath">
+ <path refid="library.classpath"/>
+ <path refid="jboss.core.classpath"/>
+ <path path="${jbossws.dir}/output/lib/jbossws-client.jar"/>
+ </path>
+ </target>
+
+ <!-- ================================================================== -->
+ <!-- Compile -->
+ <!-- ================================================================== -->
+
+ <!--
+ | Compile everything.
+ |
+ | This target should depend on other compile-* targets for each
+ | different type of compile that needs to be performed, short of
+ | documentation compiles.
+ -->
+
+ <target name="tomcat-compile"
depends="tomcat-init,tomcat-compile-classes,tomcat-compile-etc"
description="Compile all source files."/>
+
+ <!-- Compile java sources -->
+ <target name="tomcat-compile-classes" depends="tomcat-init">
+ <mkdir dir="${output.classes.dir}"/>
+ <ant antfile="${jbossws.dir}/build.xml" target="jbossws-jars"
dir="${jbossws.dir}" inheritall="false"/>
+ <javac srcdir="${integration.tomcat.dir}/src/main/java"
sourcepath="" destdir="${output.classes.dir}"
encoding="utf-8" debug="${javac.debug}"
verbose="${javac.verbose}"
+ deprecation="${javac.deprecation}"
failonerror="${javac.fail.onerror}">
+ <include name="org/jboss/ws/integration/tomcat/**"/>
+ <classpath path="${output.classes14.dir}"/>
+ <classpath refid="tomcat.integration.classpath"/>
+ <classpath refid="core.classpath"/>
+ </javac>
+ </target>
+
+ <!-- Compile etc files (manifests and such) -->
+ <target name="tomcat-compile-etc" depends="tomcat-init">
+ </target>
+
+ <!-- ================================================================== -->
+ <!-- Archives -->
+ <!-- ================================================================== -->
+
+ <!--
+ | Build all jar files.
+ -->
+ <target name="tomcat-jars"
depends="tomcat-compile,tomcat-module-jars" description="Builds all jar
files.">
+ </target>
+
+ <!--
+ | Build all jar files.
+ -->
+ <target name="tomcat-module-jars">
+
+ <!-- Build jbossws-tomcat-integration.jar -->
+ <mkdir dir="${output.lib.dir}"/>
+ <jar jarfile="${output.lib.dir}/jbossws-tomcat-integration.jar"
manifest="${output.etc.dir}/default.mf">
+ <fileset dir="${output.classes.dir}">
+ <include name="org/jboss/ws/integration/tomcat/**"/>
+ </fileset>
+ </jar>
+
+ <!-- Build jbossws.war -->
+ <war warfile="${output.lib.dir}/jbossws.war"
webxml="${jbossws.resources.dir}/jbossws.war/Tomcat/WEB-INF/web.xml">
+ <fileset dir="${jbossws.resources.dir}/jbossws.war">
+ <include name="index.html"/>
+ <include name="styles.css"/>
+ </fileset>
+ <fileset dir="${jbossws.resources.dir}/jbossws.war/Tomcat">
+ <include name="META-INF/jboss-beans.xml"/>
+ </fileset>
+ <fileset dir="${jbossws.resources.dir}/jbossws.sar">
+ <include name="META-INF/standard-jaxrpc-client-config.xml"/>
+ <include name="META-INF/standard-jaxrpc-endpoint-config.xml"/>
+ <include name="META-INF/standard-jaxws-client-config.xml"/>
+ <include name="META-INF/standard-jaxws-endpoint-config.xml"/>
+ </fileset>
+ <classes
dir="${jbossws.resources.dir}/jbossws.war/Tomcat/WEB-INF">
+ <include name="log4j.xml"/>
+ </classes>
+ </war>
+
+ </target>
+
+ <!-- ================================================================== -->
+ <!-- Deployment -->
+ <!-- ================================================================== -->
+
+ <!-- Deploy to Tomcat -->
+ <target name="deploy-tomcat"
depends="tomcat-jars,tomcat-thirdparty-jar" description="Deploy JBossWS to
Tomcat">
+ <copy todir="${tomcat.common.dir}/endorsed"
file="${thirdparty.dir}/serializer.jar"/>
+ <copy todir="${tomcat.common.dir}/endorsed"
file="${thirdparty.dir}/xalan.jar"/>
+ <copy todir="${tomcat.common.dir}/endorsed"
file="${thirdparty.dir}/xercesImpl.jar"/>
+ <copy todir="${tomcat.common.dir}/lib"
file="${thirdparty.dir}/activation.jar"/>
+ <copy todir="${tomcat.common.dir}/lib"
file="${thirdparty.dir}/log4j.jar"/>
+ <copy todir="${tomcat.common.dir}/lib"
file="${thirdparty.dir}/mailapi.jar"/>
+ <copy todir="${tomcat.common.dir}/lib"
file="${output.lib.dir}/jbossws-core.jar" overwrite="true"/>
+ <copy todir="${tomcat.common.dir}/lib"
file="${output.lib.dir}/jbossws-tomcat-integration.jar"
overwrite="true"/>
+ <copy todir="${tomcat.common.dir}/lib"
file="${output.lib.dir}/jbossws-thirdparty.jar" overwrite="true"/>
+ <copy todir="${tomcat.common.dir}/lib"
file="${output.lib.dir}/jboss-jaxws.jar" overwrite="true"/>
+ <copy todir="${tomcat.common.dir}/lib"
file="${output.lib.dir}/jboss-jaxrpc.jar" overwrite="true"/>
+ <copy todir="${tomcat.common.dir}/lib"
file="${output.lib.dir}/jboss-saaj.jar" overwrite="true"/>
+ <copy todir="${tomcat.webapps.dir}"
file="${output.lib.dir}/jbossws.war" overwrite="true"/>
+ <delete dir="${tomcat.webapps.dir}/jbossws"/>
+ </target>
+
+ <target name="tomcat-thirdparty-jar"
unless="jbossws.thirdparty.available">
+ <!-- Build jbossws-thirdparty.jar -->
+ <mkdir dir="${output.lib.dir}/build"/>
+ <unjar dest="${output.lib.dir}/build"
src="${thirdparty.dir}/jaxb-api.jar"/>
+ <unjar dest="${output.lib.dir}/build"
src="${thirdparty.dir}/jboss-common-core.jar"/>
+ <unjar dest="${output.lib.dir}/build"
src="${jboss.server.lib}/jboss-j2ee.jar"/>
+ <unjar dest="${output.lib.dir}/build"
src="${thirdparty.dir}/jboss-container.jar"/>
+ <unjar dest="${output.lib.dir}/build"
src="${thirdparty.dir}/jboss-dependency.jar"/>
+ <unjar dest="${output.lib.dir}/build"
src="${thirdparty.dir}/jboss-logging-spi.jar"/>
+ <unjar dest="${output.lib.dir}/build"
src="${thirdparty.dir}/jboss-microcontainer.jar"/>
+ <unjar dest="${output.lib.dir}/build"
src="${thirdparty.dir}/jboss-remoting.jar"/>
+ <unjar dest="${output.lib.dir}/build"
src="${thirdparty.dir}/jboss-xml-binding.jar"/>
+ <unjar dest="${output.lib.dir}/build"
src="${thirdparty.dir}/javassist.jar"/>
+ <unjar dest="${output.lib.dir}/build"
src="${thirdparty.dir}/concurrent.jar"/>
+ <unjar dest="${output.lib.dir}/build"
src="${thirdparty.dir}/wsdl4j.jar"/>
+ <unjar dest="${output.lib.dir}/build"
src="${thirdparty.dir}/xmlsec.jar"/>
+ <jar jarfile="${output.lib.dir}/jbossws-thirdparty.jar"
manifest="${output.etc.dir}/default.mf">
+ <fileset dir="${output.lib.dir}/build"/>
+ </jar>
+ <delete dir="${output.lib.dir}/build"/>
+ </target>
+
+ <target name="clean" depends="prepare" description="Cleans
up most generated files.">
+ <delete dir="${output.dir}"/>
+ </target>
+
+ <target name="main" description="Executes the default target
(most)." depends="most"/>
+
+ <target name="most" description="Builds almost everything."
depends="tomcat-jars"/>
+
+ <target name="all" description="Create a distribution zip file"
depends="main">
+ </target>
+
+</project>
\ No newline at end of file
Property changes on: trunk/integration-tomcat/build.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF