From: Frederick N. B. <fb...@us...> - 2002-06-05 13:53:23
|
User: fbrier Date: 02/06/05 06:53:21 Modified: jboss.net build.xml Log: Changed build.xml so flash.tld was placed in the taglib's META-INF instead of META-INF/tlds. Had placement reversed between taglib .jar and .war. Revision Changes Path 1.25 +568 -571 contrib/jboss.net/build.xml Index: build.xml =================================================================== RCS file: /cvsroot/jboss/contrib/jboss.net/build.xml,v retrieving revision 1.24 retrieving revision 1.25 diff -u -r1.24 -r1.25 --- build.xml 31 May 2002 16:59:03 -0000 1.24 +++ build.xml 5 Jun 2002 13:53:20 -0000 1.25 @@ -1,571 +1,568 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE project [ - <!ENTITY buildmagic SYSTEM "resource://org/jboss/tools/buildmagic/common.xml"> -]> - -<!-- ====================================================================== --> -<!-- --> -<!-- JBoss, the OpenSource J2EE webOS --> -<!-- --> -<!-- Distributable under LGPL license. --> -<!-- See terms of license at http://www.gnu.org. --> -<!-- --> -<!-- ====================================================================== --> - -<!-- $Id: build.xml,v 1.24 2002/05/31 16:59:03 fbrier Exp $ --> - -<project default="main" name="JBoss/JBoss.Net"> - - <!-- ================================================================== --> - <!-- Setup --> - <!-- ================================================================== --> - - <!-- - | Include the common Buildmagic elements. - | - | This defines several different targets, properties and paths. - | It also sets up the basic extention tasks amoung other things. - --> - - &buildmagic; - - - <!-- ================================================================== --> - <!-- Initialization --> - <!-- ================================================================== --> - - <!-- - | Initialize the build system. Must depend on '_buildmagic:init'. - | Other targets should depend on 'init' or things will mysteriously fail. - --> - - <target name="init" unless="init.disable" depends="_buildmagic:init"> - </target> - - - <!-- ================================================================== --> - <!-- Configuration --> - <!-- ================================================================== --> - - <!-- - | Configure the build system. - | - | This target is invoked by the Buildmagic initialization logic and - | should contain module specific configuration elements. - --> - - <target name="configure" unless="configure.disable"> - - <!-- =================== --> - <!-- Basic Configuration --> - <!-- =================== --> - - <!-- Module name(s) & version --> - <property name="module.name" value="jboss-net"/> - <property name="module.Name" value="JBoss.Net plugin"/> - <property name="module.version" value="DEV"/> - - <!-- ========= --> - <!-- Libraries --> - <!-- ========= --> - - <!-- Java API for XML Processing (JAXP) --> - <property name="sun.jaxp.root" value="${project.thirdparty}/sun/jaxp"/> - <property name="sun.jaxp.lib" value="${sun.jaxp.root}/lib"/> - <path id="sun.jaxp.classpath"> - <fileset dir="${sun.jaxp.lib}"> - <include name="*.jar"/> - </fileset> - </path> - - <!-- Java Authentication and Authorization API --> - <property name="sun.jaas.root" value="${project.thirdparty}/sun/jaas"/> - <property name="sun.jaas.lib" value="${sun.jaas.root}/lib"/> - <path id="sun.jaas.classpath"> - <fileset dir="${sun.jaas.lib}"> - <include name="*.jar"/> - </fileset> - </path> - - - <!-- Log4j --> - <property name="apache.log4j.root" value="${project.thirdparty}/apache/log4j"/> - <property name="apache.log4j.lib" value="${apache.log4j.root}/lib"/> - <path id="apache.log4j.classpath"> - <pathelement path="${apache.log4j.lib}/log4j.jar"/> - </path> - - <!-- JUnit --> - <property name="junit.junit.root" value="${project.thirdparty}/junit/junit"/> - <property name="junit.junit.lib" value="${junit.junit.root}/lib"/> - <path id="junit.junit.classpath"> - <pathelement path="${junit.junit.lib}/junit.jar"/> - </path> - - <!-- Axis --> - <property name="apache.axis.root" value="${project.thirdparty}/apache/axis"/> - <property name="apache.axis.lib" value="${apache.axis.root}/lib"/> - <property name="ibm.wsdl4j.root" value="${project.thirdparty}/ibm/wsdl4j"/> - <property name="ibm.wsdl4j.lib" value="${ibm.wsdl4j.root}/lib"/> - <property name="techtrader.tt-bytecode.root" value="${project.thirdparty}/techtrader/tt-bytecode"/> - <property name="techtrader.tt-bytecode.lib" value="${techtrader.tt-bytecode.root}/lib"/> - - <path id="apache.axis.classpath"> - <fileset dir="${apache.axis.lib}"> - <include name="**/axis.jar"/> - </fileset> - <fileset dir="${ibm.wsdl4j.lib}"> - <include name="**/wsdl4j.jar"/> - </fileset> - </path> - - <!-- UDDI4J --> - <property name="ibm.uddi4j.root" value="${project.thirdparty}/ibm/uddi4j"/> - <property name="ibm.uddi4j.lib" value="${ibm.uddi4j.root}/lib"/> - - <path id="ibm.uddi4j.classpath"> - <fileset dir="${ibm.uddi4j.lib}"> - <include name="**/uddi4j.jar"/> - </fileset> - </path> - - <!-- JSSE --> - <property name="sun.jsse.root" value="${project.thirdparty}/sun/jsse"/> - <property name="sun.jsse.lib" value="${sun.jsse.root}/lib" /> - - <path id="sun.jsse.classpath"> - <fileset dir="${sun.jsse.lib}"> - <include name="**/jnet.jar"/> - <include name="**/jsse.jar"/> - </fileset> - </path> - - <!-- The combined library classpath --> - <path id="library.classpath"> - <path refid="sun.jaxp.classpath"/> - <path refid="sun.jaas.classpath"/> - <path refid="sun.jsse.classpath"/> - <path refid="apache.log4j.classpath"/> - <path refid="junit.junit.classpath"/> - <path refid="apache.axis.classpath"/> - <path refid="ibm.uddi4j.classpath"/> - <path><pathelement path="${project.thirdparty}/sun/jsse/lib/jsse.jar"/></path> - </path> - - <!-- ======= --> - <!-- Modules --> - <!-- ======= --> - - <!-- J2EE --> - <property name="jboss.j2ee.root" value="${project.root}/j2ee/output"/> - <property name="jboss.j2ee.lib" value="${jboss.j2ee.root}/lib"/> - <path id="jboss.j2ee.classpath"> - <pathelement path="${jboss.j2ee.lib}/jboss-j2ee.jar"/> - </path> - - <!-- Common --> - <property name="jboss.common.root" value="${project.root}/common/output"/> - <property name="jboss.common.lib" value="${jboss.common.root}/lib"/> - <path id="jboss.common.classpath"> - <pathelement path="${jboss.common.lib}/jboss-common.jar"/> - </path> - - <!-- System --> - <property name="jboss.system.root" value="${project.root}/system/output"/> - <property name="jboss.system.lib" value="${jboss.system.root}/lib"/> - <path id="jboss.system.classpath"> - <pathelement path="${jboss.system.lib}/jboss-system.jar"/> - </path> - - <!-- Server --> - <property name="jboss.server.root" value="${project.root}/server/output"/> - <property name="jboss.server.lib" value="${jboss.server.root}/lib"/> - <path id="jboss.server.classpath"> - <pathelement path="${jboss.server.lib}/jboss-spine.jar"/> - <pathelement path="${jboss.server.lib}/jboss.jar"/> - </path> - - <!-- JMX --> - <property name="jboss.jmx.root" value="${project.root}/jmx/output"/> - <property name="jboss.jmx.lib" value="${jboss.jmx.root}/lib"/> - <path id="jboss.jmx.classpath"> - <pathelement path="${jboss.jmx.lib}/jboss-jmx.jar"/> - </path> - - <!-- Servlets --> - <property name="sun.servlet.root" value="${project.root}/jetty/output"/> - <property name="sun.servlet.lib" value="${sun.servlet.root}/lib"/> - <path id="sun.servlet.classpath"> - <pathelement path="${sun.servlet.lib}/javax.servlet.jar"/> - </path> - - <!-- The combined dependent module classpath --> - <path id="dependentmodule.classpath"> - <path refid="jboss.j2ee.classpath"/> - <path refid="jboss.common.classpath"/> - <path refid="jboss.system.classpath"/> - <path refid="jboss.server.classpath"/> - <path refid="jboss.jmx.classpath"/> - <path refid="sun.servlet.classpath"/> - </path> - - <!-- ===== --> - <!-- Tasks --> - <!-- ===== --> - - <!-- Where source files live --> - <property name="source.bin" value="${module.source}/bin"/> - <property name="source.java" value="${module.source}/main"/> - <property name="source.etc" value="${module.source}/etc"/> - <property name="source.resources" value="${module.source}/resources"/> - - <!-- Where build generated files will go --> - <property name="build.bin" value="${module.output}/bin"/> - <property name="build.classes" value="${module.output}/classes"/> - <property name="build.lib" value="${module.output}/lib"/> - <property name="build.api" value="${module.output}/api"/> - <property name="build.etc" value="${module.output}/etc"/> - <property name="build.gensrc" value="${module.output}/gensrc"/> - <property name="build.web" value="${module.output}/web"/> - <property name="build.reports" value="${module.output}/reports"/> - <property name="build.resources" value="${module.output}/resources"/> - - <!-- Install/Release structure --> - <property name="install.id" value="${module.name}-${module.version}"/> - <property name="release.id" value="${install.id}"/> - <property name="install.root" value="${module.output}/${install.id}"/> - - <!-- The combined thirdparty classpath --> - <path id="thirdparty.classpath"> - <path refid="library.classpath"/> - <path refid="dependentmodule.classpath"/> - </path> - - <!-- This module is based on Java 1.2 --> - <property name="javac.target" value="1.2"/> - - <!-- classpath and local.classpath must have a value using with a path --> - <property name="classpath" value=""/> - <property name="local.classpath" value=""/> - - <!-- The classpath required to build classes. --> - <path id="javac.classpath"> - <pathelement path="${classpath}"/> - <pathelement path="${local.classpath}"/> - <path refid="thirdparty.classpath"/> - </path> - - <!-- The classpath required to build javadocs. --> - <path id="javadoc.classpath"> - <path refid="javac.classpath"/> - </path> - - <!-- Packages to include when generating api documentation --> - <property name="javadoc.packages" value="org.jboss.*"/> - - <!-- Override JUnit defaults --> - <property name="junit.timeout" value="240000"/> <!-- 4 minutes --> - <property name="junit.batchtest.todir" value="${build.reports}"/> - <property name="junit.jvm.options" value="-Ddummy"/> - - <!-- xdoclet --> - <path id="xdoclet.task.classpath"> - <path refid="javac.classpath"/> - <pathelement location="${project.tools}/lib/xdoclet.jar"/> - <pathelement location="${project.tools}/lib/xjavadoc.jar"/> - <pathelement location="${project.tools}/lib/ant.jar"/> - </path> - <property name="xdoclet.task.classpath" refid="xdoclet.task.classpath"/> - - </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="compile" - depends="compile-etc, compile-resources, webdoclet, compile-classes" - description="Compile all source files."/> - - <!-- Run WebDoclet --> - <target name="webdoclet" depends="compile-resources"> - - <mkdir dir="${build.resources}"/> - <mkdir dir="${build.resources}/taglib"/> - <mkdir dir="${build.resources}/taglib/META-INF"/> - <mkdir dir="${build.resources}/taglib/META-INF/tlds"/> - - <taskdef name="webdoclet" classname="xdoclet.web.WebDocletTask" - classpath="${xdoclet.task.classpath}"/> - - <webdoclet - sourcepath="${source.java}" - destdir="${build.gensrc}" - classpath="${xdoclet.task.classpath}"> - - <fileset dir="${source.java}"> - <include name="**/*Tag.java" /> - </fileset> - - <jsptaglib jspversion="1.2" - destdir="${build.resources}/taglib/META-INF/tlds" - filename="flash.tld" shortname="flash" validateXml="false"/> - </webdoclet> - - </target> - - <!-- Compile all class files --> - <target name="compile-classes" depends="webdoclet"> - - <mkdir dir="${build.classes}/main"/> - - <javac destdir="${build.classes}/main" - optimize="${javac.optimize}" - target="${javac.target}" - debug="${javac.debug}" - depend="${javac.depend}" - verbose="${javac.verbose}" - deprecation="${javac.deprecation}" - includeAntRuntime="${javac.include.ant.runtime}" - includeJavaRuntime="${javac.include.java.runtime}" - failonerror="${javac.fail.onerror}"> - <src path="${source.java}"/> - <classpath refid="javac.classpath"/> - <include name="${javac.includes}"/> - <exclude name="${javac.excludes}"/> - </javac> - - </target> - - <!-- Compile etc files (manifests and such) --> - <target name="compile-etc" depends="init"> - <mkdir dir="${build.etc}/manifest"/> - <copy todir="${build.etc}" filtering="yes"> - <fileset dir="${source.etc}"> - <include name="**/*"/> - </fileset> - </copy> - <!-- Copy with filtering to replace the following tokens that are - used to make up the jar manifest version information. - --> - <filter token="version.major" value="${version.major}"/> - <filter token="version.minor" value="${version.minor}"/> - <filter token="version.revision" value="${version.revision}"/> - <filter token="version.tag" value="${version.tag}"/> - <filter token="version.name" value="${version.name}"/> - <copy todir="${build.etc}/manifest" filtering="yes"> - <fileset dir="${project.root}/build/etc"> - <include name="version.mf"/> - </fileset> - </copy> - </target> - - <!-- Compile resource files --> - <target name="compile-resources" depends="init"> - <mkdir dir="${build.resources}"/> - <copy todir="${build.resources}" filtering="yes"> - <fileset dir="${source.resources}"> - <include name="**/*"/> - </fileset> - </copy> - </target> - - - <!-- ================================================================== --> - <!-- Archives --> - <!-- ================================================================== --> - - <!-- - | Build all jar files. - --> - - <target name="jars" depends="compile" description="Build the Service Archive"> - <mkdir dir="${build.lib}"/> - - <jar jarfile="${build.lib}/${module.name}.sar" - manifest="${build.etc}/manifest/version.mf"> - <fileset dir="${build.classes}/main"> - <include name="**/jboss/net/**"/> - <exclude name="**/taglib/**"/> - </fileset> - <fileset dir="${build.resources}/plugin"> - <include name="**/*"/> - </fileset> - <fileset dir="${apache.axis.lib}"> - <include name="axis.jar"/> - </fileset> - <fileset dir="${ibm.wsdl4j.lib}"> - <include name="wsdl4j.jar"/> - </fileset> - <fileset dir="${apache.log4j.lib}"> - <include name="commons-logging.jar"/> - </fileset> - <fileset dir="${techtrader.tt-bytecode.lib}"> - <include name="tt-bytecode.jar"/> - </fileset> - <fileset dir="${build.etc}"> - <include name="axis-config.xml"/> - </fileset> - <fileset dir="${build.etc}"> - <include name="client-config.xml"/> - </fileset> - </jar> - - <jar jarfile="${build.lib}/${module.name}-client.jar" - manifest="${build.etc}/manifest/version.mf"> - <fileset dir="${build.classes}/main"> - <include name="**/jboss/net/**"/> - <exclude name="**/server/**"/> - <exclude name="**/taglib/**"/> - </fileset> - <fileset dir="${build.etc}"> - <include name="client-config.wsdd"/> - </fileset> - </jar> - - <jar jarfile="${build.lib}/${module.name}-taglib.jar" - manifest="${build.etc}/manifest/version.mf"> - <fileset dir="${build.classes}/main"> - <include name="**/jboss/net/taglib/**"/> - </fileset> - <fileset dir="${build.resources}/taglib"> - <include name="META-INF/**"/> - </fileset> - </jar> - - <mkdir dir="${build.bin}"/> - </target> - - - <!-- ================================================================== --> - <!-- Documents --> - <!-- ================================================================== --> - - <!-- - | Create all generated documenation. - | - | This target should depend on other docs-* targets for each - | different type of docuementation that is to be generated. - --> - - <target name="docs" depends="init, docs-api" - description="Builds all documentation."> - </target> - - <!-- Javadocs is an exception, but provide a docs-api to conform. --> - <target name="docs-api" depends="docs-javadocs"/> - - <!-- - | Check if we need to build javadocs - | - | Javadocs will only be generated if one or more .java source files - | is newer than the generated index.html. - --> - - <target name="docs-javadocs-check" depends="init"> - <!-- if index.html is newer than the sources we are up to date --> - <uptodate property="docs-javadocs.disable" - targetfile="${build.api}/index.html"> - <srcfiles dir="${source.java}" includes="**/*.java"/> - </uptodate> - </target> - - <!-- Generate Javadoc if we are out of date --> - <target name="docs-javadocs" depends="docs-javadocs-check" unless="docs-javadocs.disable"> - <mkdir dir="${build.api}"/> - <javadoc packagenames="${javadoc.packages}" - sourcepath="${source.java}" - destdir="${build.api}" - classpathref="javadoc.classpath" - windowtitle="${javadoc.windowtitle}" - splitindex="${javadoc.splitindex}" - doctitle="${javadoc.doctitle}" - author="${javadoc.author}" - version="${javadoc.version}" - public="${javadoc.public}" - package="${javadoc.package}" - protected="${javadoc.protected}" - private="${javadoc.private}" - use="${javadoc.use}" - verbose="${javadoc.verbose}"> - <group title="JDBC Extension" packages="javax.sql*"/> - <group title="J2EE" packages="javax*"/> - </javadoc> - </target> - - <target name="javadocs" depends="docs-javadocs"/> - - - <!-- ================================================================== --> - <!-- Install & Release --> - <!-- ================================================================== --> - - <target name="install" - description="Install the structure for a release." - depends="all, _buildmagic:install:default"/> - - <target name="release" depends="install"/> - - <target name="release-zip" - description="Builds a ZIP distribution." - depends="release, _buildmagic:release:zip"/> - - <target name="release-tar" - description="Builds a TAR distribution." - depends="release, _buildmagic:release:tar"/> - - <target name="release-tgz" - description="Builds a TAR-GZ distribution." - depends="release, _buildmagic:release:tgz"/> - - <target name="release-all" - description="Builds a distribution for each archive type." - depends="release-zip, release-tgz"/> - - - <!-- ================================================================== --> - <!-- Cleaning --> - <!-- ================================================================== --> - - <!-- Clean up all build output --> - <target name="clean" - description="Cleans up most generated files." - depends="_buildmagic:clean"> - </target> - - <!-- Clean up all generated files --> - <target name="clobber" - description="Cleans up all generated files." - depends="_buildmagic:clobber, clean"> - </target> - - - <!-- ================================================================== --> - <!-- Misc. --> - <!-- ================================================================== --> - - <target name="main" - description="Executes the default target (most)." - depends="most"/> - - <target name="all" - description="Builds everything." - depends="jars, docs"/> - - <target name="most" - description="Builds almost everything." - depends="jars"/> - - <target name="help" - description="Show this help message." - depends="_buildmagic:help:standard"/> - -</project> +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE project [ + <!ENTITY buildmagic SYSTEM "resource://org/jboss/tools/buildmagic/common.xml"> +]> + +<!-- ====================================================================== --> +<!-- --> +<!-- JBoss, the OpenSource J2EE webOS --> +<!-- --> +<!-- Distributable under LGPL license. --> +<!-- See terms of license at http://www.gnu.org. --> +<!-- --> +<!-- ====================================================================== --> + +<!-- $Id: build.xml,v 1.25 2002/06/05 13:53:20 fbrier Exp $ --> + +<project default="main" name="JBoss/JBoss.Net"> + + <!-- ================================================================== --> + <!-- Setup --> + <!-- ================================================================== --> + + <!-- + | Include the common Buildmagic elements. + | + | This defines several different targets, properties and paths. + | It also sets up the basic extention tasks amoung other things. + --> + + &buildmagic; + + + <!-- ================================================================== --> + <!-- Initialization --> + <!-- ================================================================== --> + + <!-- + | Initialize the build system. Must depend on '_buildmagic:init'. + | Other targets should depend on 'init' or things will mysteriously fail. + --> + + <target name="init" unless="init.disable" depends="_buildmagic:init"> + </target> + + + <!-- ================================================================== --> + <!-- Configuration --> + <!-- ================================================================== --> + + <!-- + | Configure the build system. + | + | This target is invoked by the Buildmagic initialization logic and + | should contain module specific configuration elements. + --> + + <target name="configure" unless="configure.disable"> + + <!-- =================== --> + <!-- Basic Configuration --> + <!-- =================== --> + + <!-- Module name(s) & version --> + <property name="module.name" value="jboss-net"/> + <property name="module.Name" value="JBoss.Net plugin"/> + <property name="module.version" value="DEV"/> + + <!-- ========= --> + <!-- Libraries --> + <!-- ========= --> + + <!-- Java API for XML Processing (JAXP) --> + <property name="sun.jaxp.root" value="${project.thirdparty}/sun/jaxp"/> + <property name="sun.jaxp.lib" value="${sun.jaxp.root}/lib"/> + <path id="sun.jaxp.classpath"> + <fileset dir="${sun.jaxp.lib}"> + <include name="*.jar"/> + </fileset> + </path> + + <!-- Java Authentication and Authorization API --> + <property name="sun.jaas.root" value="${project.thirdparty}/sun/jaas"/> + <property name="sun.jaas.lib" value="${sun.jaas.root}/lib"/> + <path id="sun.jaas.classpath"> + <fileset dir="${sun.jaas.lib}"> + <include name="*.jar"/> + </fileset> + </path> + + + <!-- Log4j --> + <property name="apache.log4j.root" value="${project.thirdparty}/apache/log4j"/> + <property name="apache.log4j.lib" value="${apache.log4j.root}/lib"/> + <path id="apache.log4j.classpath"> + <pathelement path="${apache.log4j.lib}/log4j.jar"/> + </path> + + <!-- JUnit --> + <property name="junit.junit.root" value="${project.thirdparty}/junit/junit"/> + <property name="junit.junit.lib" value="${junit.junit.root}/lib"/> + <path id="junit.junit.classpath"> + <pathelement path="${junit.junit.lib}/junit.jar"/> + </path> + + <!-- Axis --> + <property name="apache.axis.root" value="${project.thirdparty}/apache/axis"/> + <property name="apache.axis.lib" value="${apache.axis.root}/lib"/> + <property name="ibm.wsdl4j.root" value="${project.thirdparty}/ibm/wsdl4j"/> + <property name="ibm.wsdl4j.lib" value="${ibm.wsdl4j.root}/lib"/> + <property name="techtrader.tt-bytecode.root" value="${project.thirdparty}/techtrader/tt-bytecode"/> + <property name="techtrader.tt-bytecode.lib" value="${techtrader.tt-bytecode.root}/lib"/> + + <path id="apache.axis.classpath"> + <fileset dir="${apache.axis.lib}"> + <include name="**/axis.jar"/> + </fileset> + <fileset dir="${ibm.wsdl4j.lib}"> + <include name="**/wsdl4j.jar"/> + </fileset> + </path> + + <!-- UDDI4J --> + <property name="ibm.uddi4j.root" value="${project.thirdparty}/ibm/uddi4j"/> + <property name="ibm.uddi4j.lib" value="${ibm.uddi4j.root}/lib"/> + + <path id="ibm.uddi4j.classpath"> + <fileset dir="${ibm.uddi4j.lib}"> + <include name="**/uddi4j.jar"/> + </fileset> + </path> + + <!-- JSSE --> + <property name="sun.jsse.root" value="${project.thirdparty}/sun/jsse"/> + <property name="sun.jsse.lib" value="${sun.jsse.root}/lib" /> + + <path id="sun.jsse.classpath"> + <fileset dir="${sun.jsse.lib}"> + <include name="**/jnet.jar"/> + <include name="**/jsse.jar"/> + </fileset> + </path> + + <!-- The combined library classpath --> + <path id="library.classpath"> + <path refid="sun.jaxp.classpath"/> + <path refid="sun.jaas.classpath"/> + <path refid="sun.jsse.classpath"/> + <path refid="apache.log4j.classpath"/> + <path refid="junit.junit.classpath"/> + <path refid="apache.axis.classpath"/> + <path refid="ibm.uddi4j.classpath"/> + <path><pathelement path="${project.thirdparty}/sun/jsse/lib/jsse.jar"/></path> + </path> + + <!-- ======= --> + <!-- Modules --> + <!-- ======= --> + + <!-- J2EE --> + <property name="jboss.j2ee.root" value="${project.root}/j2ee/output"/> + <property name="jboss.j2ee.lib" value="${jboss.j2ee.root}/lib"/> + <path id="jboss.j2ee.classpath"> + <pathelement path="${jboss.j2ee.lib}/jboss-j2ee.jar"/> + </path> + + <!-- Common --> + <property name="jboss.common.root" value="${project.root}/common/output"/> + <property name="jboss.common.lib" value="${jboss.common.root}/lib"/> + <path id="jboss.common.classpath"> + <pathelement path="${jboss.common.lib}/jboss-common.jar"/> + </path> + + <!-- System --> + <property name="jboss.system.root" value="${project.root}/system/output"/> + <property name="jboss.system.lib" value="${jboss.system.root}/lib"/> + <path id="jboss.system.classpath"> + <pathelement path="${jboss.system.lib}/jboss-system.jar"/> + </path> + + <!-- Server --> + <property name="jboss.server.root" value="${project.root}/server/output"/> + <property name="jboss.server.lib" value="${jboss.server.root}/lib"/> + <path id="jboss.server.classpath"> + <pathelement path="${jboss.server.lib}/jboss-spine.jar"/> + <pathelement path="${jboss.server.lib}/jboss.jar"/> + </path> + + <!-- JMX --> + <property name="jboss.jmx.root" value="${project.root}/jmx/output"/> + <property name="jboss.jmx.lib" value="${jboss.jmx.root}/lib"/> + <path id="jboss.jmx.classpath"> + <pathelement path="${jboss.jmx.lib}/jboss-jmx.jar"/> + </path> + + <!-- Servlets --> + <property name="sun.servlet.root" value="${project.root}/jetty/output"/> + <property name="sun.servlet.lib" value="${sun.servlet.root}/lib"/> + <path id="sun.servlet.classpath"> + <pathelement path="${sun.servlet.lib}/javax.servlet.jar"/> + </path> + + <!-- The combined dependent module classpath --> + <path id="dependentmodule.classpath"> + <path refid="jboss.j2ee.classpath"/> + <path refid="jboss.common.classpath"/> + <path refid="jboss.system.classpath"/> + <path refid="jboss.server.classpath"/> + <path refid="jboss.jmx.classpath"/> + <path refid="sun.servlet.classpath"/> + </path> + + <!-- ===== --> + <!-- Tasks --> + <!-- ===== --> + + <!-- Where source files live --> + <property name="source.bin" value="${module.source}/bin"/> + <property name="source.java" value="${module.source}/main"/> + <property name="source.etc" value="${module.source}/etc"/> + <property name="source.resources" value="${module.source}/resources"/> + + <!-- Where build generated files will go --> + <property name="build.bin" value="${module.output}/bin"/> + <property name="build.classes" value="${module.output}/classes"/> + <property name="build.lib" value="${module.output}/lib"/> + <property name="build.api" value="${module.output}/api"/> + <property name="build.etc" value="${module.output}/etc"/> + <property name="build.gensrc" value="${module.output}/gensrc"/> + <property name="build.web" value="${module.output}/web"/> + <property name="build.reports" value="${module.output}/reports"/> + <property name="build.resources" value="${module.output}/resources"/> + + <!-- Install/Release structure --> + <property name="install.id" value="${module.name}-${module.version}"/> + <property name="release.id" value="${install.id}"/> + <property name="install.root" value="${module.output}/${install.id}"/> + + <!-- The combined thirdparty classpath --> + <path id="thirdparty.classpath"> + <path refid="library.classpath"/> + <path refid="dependentmodule.classpath"/> + </path> + + <!-- This module is based on Java 1.2 --> + <property name="javac.target" value="1.2"/> + + <!-- classpath and local.classpath must have a value using with a path --> + <property name="classpath" value=""/> + <property name="local.classpath" value=""/> + + <!-- The classpath required to build classes. --> + <path id="javac.classpath"> + <pathelement path="${classpath}"/> + <pathelement path="${local.classpath}"/> + <path refid="thirdparty.classpath"/> + </path> + + <!-- The classpath required to build javadocs. --> + <path id="javadoc.classpath"> + <path refid="javac.classpath"/> + </path> + + <!-- Packages to include when generating api documentation --> + <property name="javadoc.packages" value="org.jboss.*"/> + + <!-- Override JUnit defaults --> + <property name="junit.timeout" value="240000"/> <!-- 4 minutes --> + <property name="junit.batchtest.todir" value="${build.reports}"/> + <property name="junit.jvm.options" value="-Ddummy"/> + + <!-- xdoclet --> + <path id="xdoclet.task.classpath"> + <path refid="javac.classpath"/> + <pathelement location="${project.tools}/lib/xdoclet.jar"/> + <pathelement location="${project.tools}/lib/xjavadoc.jar"/> + <pathelement location="${project.tools}/lib/ant.jar"/> + </path> + <property name="xdoclet.task.classpath" refid="xdoclet.task.classpath"/> + + </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="compile" + depends="compile-etc, compile-resources, webdoclet, compile-classes" + description="Compile all source files."/> + + <!-- Run WebDoclet --> + <target name="webdoclet" depends="compile-resources"> + + <mkdir dir="${build.resources}/taglib/META-INF"/> + + <taskdef name="webdoclet" classname="xdoclet.web.WebDocletTask" + classpath="${xdoclet.task.classpath}"/> + + <webdoclet + sourcepath="${source.java}" + destdir="${build.gensrc}" + classpath="${xdoclet.task.classpath}"> + + <fileset dir="${source.java}"> + <include name="**/*Tag.java" /> + </fileset> + + <jsptaglib jspversion="1.2" + destdir="${build.resources}/taglib/META-INF" + filename="flash.tld" shortname="flash" validateXml="false"/> + </webdoclet> + + </target> + + <!-- Compile all class files --> + <target name="compile-classes" depends="webdoclet"> + + <mkdir dir="${build.classes}/main"/> + + <javac destdir="${build.classes}/main" + optimize="${javac.optimize}" + target="${javac.target}" + debug="${javac.debug}" + depend="${javac.depend}" + verbose="${javac.verbose}" + deprecation="${javac.deprecation}" + includeAntRuntime="${javac.include.ant.runtime}" + includeJavaRuntime="${javac.include.java.runtime}" + failonerror="${javac.fail.onerror}"> + <src path="${source.java}"/> + <classpath refid="javac.classpath"/> + <include name="${javac.includes}"/> + <exclude name="${javac.excludes}"/> + </javac> + + </target> + + <!-- Compile etc files (manifests and such) --> + <target name="compile-etc" depends="init"> + <mkdir dir="${build.etc}/manifest"/> + <copy todir="${build.etc}" filtering="yes"> + <fileset dir="${source.etc}"> + <include name="**/*"/> + </fileset> + </copy> + <!-- Copy with filtering to replace the following tokens that are + used to make up the jar manifest version information. + --> + <filter token="version.major" value="${version.major}"/> + <filter token="version.minor" value="${version.minor}"/> + <filter token="version.revision" value="${version.revision}"/> + <filter token="version.tag" value="${version.tag}"/> + <filter token="version.name" value="${version.name}"/> + <copy todir="${build.etc}/manifest" filtering="yes"> + <fileset dir="${project.root}/build/etc"> + <include name="version.mf"/> + </fileset> + </copy> + </target> + + <!-- Compile resource files --> + <target name="compile-resources" depends="init"> + <mkdir dir="${build.resources}"/> + <copy todir="${build.resources}" filtering="yes"> + <fileset dir="${source.resources}"> + <include name="**/*"/> + </fileset> + </copy> + </target> + + + <!-- ================================================================== --> + <!-- Archives --> + <!-- ================================================================== --> + + <!-- + | Build all jar files. + --> + + <target name="jars" depends="compile" description="Build the Service Archive"> + <mkdir dir="${build.lib}"/> + + <jar jarfile="${build.lib}/${module.name}.sar" + manifest="${build.etc}/manifest/version.mf"> + <fileset dir="${build.classes}/main"> + <include name="**/jboss/net/**"/> + <exclude name="**/taglib/**"/> + </fileset> + <fileset dir="${build.resources}/plugin"> + <include name="**/*"/> + </fileset> + <fileset dir="${apache.axis.lib}"> + <include name="axis.jar"/> + </fileset> + <fileset dir="${ibm.wsdl4j.lib}"> + <include name="wsdl4j.jar"/> + </fileset> + <fileset dir="${apache.log4j.lib}"> + <include name="commons-logging.jar"/> + </fileset> + <fileset dir="${techtrader.tt-bytecode.lib}"> + <include name="tt-bytecode.jar"/> + </fileset> + <fileset dir="${build.etc}"> + <include name="axis-config.xml"/> + </fileset> + <fileset dir="${build.etc}"> + <include name="client-config.xml"/> + </fileset> + </jar> + + <jar jarfile="${build.lib}/${module.name}-client.jar" + manifest="${build.etc}/manifest/version.mf"> + <fileset dir="${build.classes}/main"> + <include name="**/jboss/net/**"/> + <exclude name="**/server/**"/> + <exclude name="**/taglib/**"/> + </fileset> + <fileset dir="${build.etc}"> + <include name="client-config.wsdd"/> + </fileset> + </jar> + + <jar jarfile="${build.lib}/${module.name}-taglib.jar" + manifest="${build.etc}/manifest/version.mf"> + <fileset dir="${build.classes}/main"> + <include name="**/jboss/net/taglib/**"/> + </fileset> + <fileset dir="${build.resources}/taglib"> + <include name="META-INF/**"/> + </fileset> + </jar> + + <mkdir dir="${build.bin}"/> + </target> + + + <!-- ================================================================== --> + <!-- Documents --> + <!-- ================================================================== --> + + <!-- + | Create all generated documenation. + | + | This target should depend on other docs-* targets for each + | different type of docuementation that is to be generated. + --> + + <target name="docs" depends="init, docs-api" + description="Builds all documentation."> + </target> + + <!-- Javadocs is an exception, but provide a docs-api to conform. --> + <target name="docs-api" depends="docs-javadocs"/> + + <!-- + | Check if we need to build javadocs + | + | Javadocs will only be generated if one or more .java source files + | is newer than the generated index.html. + --> + + <target name="docs-javadocs-check" depends="init"> + <!-- if index.html is newer than the sources we are up to date --> + <uptodate property="docs-javadocs.disable" + targetfile="${build.api}/index.html"> + <srcfiles dir="${source.java}" includes="**/*.java"/> + </uptodate> + </target> + + <!-- Generate Javadoc if we are out of date --> + <target name="docs-javadocs" depends="docs-javadocs-check" unless="docs-javadocs.disable"> + <mkdir dir="${build.api}"/> + <javadoc packagenames="${javadoc.packages}" + sourcepath="${source.java}" + destdir="${build.api}" + classpathref="javadoc.classpath" + windowtitle="${javadoc.windowtitle}" + splitindex="${javadoc.splitindex}" + doctitle="${javadoc.doctitle}" + author="${javadoc.author}" + version="${javadoc.version}" + public="${javadoc.public}" + package="${javadoc.package}" + protected="${javadoc.protected}" + private="${javadoc.private}" + use="${javadoc.use}" + verbose="${javadoc.verbose}"> + <group title="JDBC Extension" packages="javax.sql*"/> + <group title="J2EE" packages="javax*"/> + </javadoc> + </target> + + <target name="javadocs" depends="docs-javadocs"/> + + + <!-- ================================================================== --> + <!-- Install & Release --> + <!-- ================================================================== --> + + <target name="install" + description="Install the structure for a release." + depends="all, _buildmagic:install:default"/> + + <target name="release" depends="install"/> + + <target name="release-zip" + description="Builds a ZIP distribution." + depends="release, _buildmagic:release:zip"/> + + <target name="release-tar" + description="Builds a TAR distribution." + depends="release, _buildmagic:release:tar"/> + + <target name="release-tgz" + description="Builds a TAR-GZ distribution." + depends="release, _buildmagic:release:tgz"/> + + <target name="release-all" + description="Builds a distribution for each archive type." + depends="release-zip, release-tgz"/> + + + <!-- ================================================================== --> + <!-- Cleaning --> + <!-- ================================================================== --> + + <!-- Clean up all build output --> + <target name="clean" + description="Cleans up most generated files." + depends="_buildmagic:clean"> + </target> + + <!-- Clean up all generated files --> + <target name="clobber" + description="Cleans up all generated files." + depends="_buildmagic:clobber, clean"> + </target> + + + <!-- ================================================================== --> + <!-- Misc. --> + <!-- ================================================================== --> + + <target name="main" + description="Executes the default target (most)." + depends="most"/> + + <target name="all" + description="Builds everything." + depends="jars, docs"/> + + <target name="most" + description="Builds almost everything." + depends="jars"/> + + <target name="help" + description="Show this help message." + depends="_buildmagic:help:standard"/> + +</project> |