⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 build.xml

📁 jgroups开发平台
💻 XML
📖 第 1 页 / 共 3 页
字号:
<?xml version="1.0"?><!-- $Id: build.xml,v 1.123.2.3 2007/11/28 11:47:29 belaban Exp $ --><project name="JGroups" default="compile" basedir=".">    <description>        build.xml file for JGroups. Needs Ant (jakarta.apache.org) to run    </description>    <property name="build.properties.file" value="build.properties"/>    <property file="${build.properties.file}"/>    <property name="root.dir" value="${basedir}"/>    <property name="src.dir" value="${root.dir}/src"/>    <property name="tests.dir" value="${root.dir}/tests/other"/>    <property name="junit.dir" value="${root.dir}/tests/junit"/>    <property name="junit-functional.dir" value="${root.dir}/tests/junit-functional"/>    <property name="stress.dir" value="${root.dir}/tests/stress"/>    <property name="perf.dir" value="${root.dir}/tests/perf"/>    <property name="compile.dir" value="${root.dir}/classes"/>    <property name="lib.dir" value="${root.dir}/lib"/>    <property name="license.dir" value="${lib.dir}/licenses"/>    <property name="dist.dir" value="${root.dir}/dist"/>    <property name="tmp.dir" value="${root.dir}/tmp"/>    <property name="doc.dir" value="${root.dir}/doc"/>    <property name="javadoc.dir" value="${dist.dir}/javadoc"/>    <property name="conf.dir" value="${root.dir}/conf"/>    <property name="bin.dir" value="${root.dir}/bin"/>    <property name="keystore.dir" value="${root.dir}/keystore"/>    <property name="javadoc.packages" value="org.jgroups.*"/>    <property name="unittest.timeout.low" value="240000"/>    <property name="version" value="2.6.1"/>    <!-- default properties used in all test targets -->    <property name="channel.conf" value="udp.xml"/>    <property name="channel.conf.flush" value="flush-udp.xml"/>    <property name="mux.on" value="false"/>    <property name="mux.conf" value="stacks.xml"/>    <property name="mux.conf.stack" value="udp"/>    <property name="mux.factorycount" value="4"/>    <property name="threadcount" value="false"/>    <property name="test.verbose" value="false"/>    <path id="jg.classpath">        <pathelement location="${compile.dir}"/>        <pathelement location="${conf.dir}"/>        <pathelement location="${keystore.dir}"/>        <fileset dir="${lib.dir}">            <include name="*.jar"/>        </fileset>    </path>    <!-- patternsets used to define test sets -->    <patternset id="flush.tests">        <include name="org/jgroups/tests/FlushTest*"/>    	<include name="org/jgroups/tests/ConcurrentStateTransferTest*"/>        <include name="org/jgroups/tests/ConcurrentStartupTest*"/>    </patternset>    <patternset id="mux.tests">        <include name="org/jgroups/tests/Multiplexer*"/>    </patternset>    <patternset id="one.test">        <include name="**/*${test}*"/>    </patternset>    <patternset id="all.tests">        <include name="org/jgroups/tests/**Test**"/>        <include name="org/jgroups/blocks/**Test**"/>    </patternset>    <patternset id="junit.excludes">        <exclude name="**/DistributedQueueTest*"/>        <exclude name="**/ChannelTestBase*"/>    </patternset>    <target name="prepare">        <property environment="env"/>        <mkdir dir="${compile.dir}"/>        <mkdir dir="${dist.dir}"/>        <mkdir dir="${javadoc.dir}"/>    </target>    <target name="compile"            depends="prepare"            description="Compiles are Java files">        <javac destdir="${compile.dir}"               source="1.5"               classpathref="jg.classpath"               debug="on"               deprecation="off"               optimize="off"               listfiles="false"               includes="org/jgroups/**">            <exclude name="**/obsolete/**"/>            <src path="${src.dir}"/>            <src path="${tests.dir}"/>            <src path="${junit.dir}"/>            <src path="${junit-functional.dir}"/>            <src path="${stress.dir}"/>            <src path="${perf.dir}"/>        </javac>    </target>    <target name="jar"            description="Compiles and creates JAR files in the ./dist directory"            depends="compile,                jgroups-all.jar,                jgroups-core.jar">    </target>    <target name="jgroups-all.jar"            description="Creates the jgroups-all.jar (includes everything)">        <jar destfile="${dist.dir}/jgroups-all.jar"             basedir="${compile.dir}"             manifest="${conf.dir}/manifest.mf"             includes="org/jgroups/**">            <fileset dir="${conf.dir}" includes="*.dtd, *.xml" excludes="*-service.xml"/>        </jar>    </target>    <target name="jgroups-core.jar"            description="Creates the jgroups-core.jar. Includes only core file, no demos" depends="compile">        <mkdir dir="${dist.dir}"/>        <jar jarfile="${dist.dir}/jgroups-core.jar"             basedir="${compile.dir}"             manifest="${conf.dir}/manifest.mf"             includes="org/jgroups/**"             excludes="org/jgroups/demos/**,                      org/jgroups/tests/**,                      org/jgroups/**/*Test.class,                      org/jgroups/**/*Test\$*.class">            <fileset dir="${conf.dir}" includes="*.dtd, *.xml" excludes="*-service.xml"/>        </jar>    </target>    <target name="dist" description="Creates the distribution ZIP files in ./dist">        <antcall target="src-dist"/>        <antcall target="bin-dist"/>    </target>    <target name="src-dist" depends="clean">        <echo message="Creating source distribution ${dist.dir}/JGroups-${version}.src.zip"/>        <mkdir dir="${tmp.dir}/JGroups-${version}.src"/>        <copy todir="${tmp.dir}/JGroups-${version}.src">            <fileset dir="${root.dir}">                <exclude name="*CVS*"/>                <exclude name="doc/progguide/**"/>                <exclude name="doc/usersguide/**"/>            </fileset>        </copy>        <mkdir dir="${dist.dir}"/>        <zip zipfile="${dist.dir}/JGroups-${version}.src.zip" basedir="${tmp.dir}" filesonly="true"/>        <delete dir="${tmp.dir}" failonerror="false"/>    </target>    <target name="bin-dist" depends="jar">        <echo message="Creating binary distribution ${dist.dir}/JGroups-${version}.bin.zip"/>        <mkdir dir="${tmp.dir}/JGroups-${version}.bin"/>        <copy todir="${tmp.dir}/JGroups-${version}.bin">            <fileset dir="${root.dir}">                <include name="CREDITS"/>                <include name="INSTALL.html"/>                <include name="LICENSE"/>                <include name="EULA"/>            </fileset>            <fileset dir="${lib.dir}">                <include name="commons-logging*.jar"/>                <include name="log4j*.jar"/>                <include name="licenses/*"/>            </fileset>            <fileset dir="${dist.dir}">                <include name="jgroups-all*.jar"/>            </fileset>            <fileset dir="${conf.dir}">                <include name="config.txt"/>                <include name="udp.xml"/>                <include name="tcp*.xml"/>                <include name="mping.xml"/>                <include name="sfc.xml"/>            </fileset>            <fileset dir="${bin.dir}">                <include name="jgroups*"/>            </fileset>        </copy>        <mkdir dir="${dist.dir}"/>        <zip zipfile="${dist.dir}/JGroups-${version}.bin.zip" basedir="${tmp.dir}" filesonly="true"/>        <delete dir="${tmp.dir}" failonerror="false"/>    </target>    <target name="gossip-service"            description="Creates the service archive used to deploy GossipRouter as a JBoss MBean"            depends="compile">        <mkdir dir="${dist.dir}/gossiptemp"/>        <copy file="${conf.dir}/gossip-service.xml" tofile="${dist.dir}/gossiptemp/jboss-service.xml"/>        <jar jarfile="${dist.dir}/gossip-router.sar"             basedir="${compile.dir}"             includes="org/jgroups/**"             excludes="org/jgroups/demos/**,                      org/jgroups/tests/**,                      org/jgroups/**/*Test.class,                      org/jgroups/**/*Test\$*.class">            <metainf dir="${dist.dir}/gossiptemp"                     includes="jboss-service.xml"/>            <fileset dir="${conf.dir}" includes="jg-magic-map.xml"/>        </jar>        <delete dir="${dist.dir}/gossiptemp"/>    </target>    <target name="multiplexer-service" depends="jgroups-core.jar"            description="Creates the service archive used to deploy the JChannelFactory (multiplexer) MBean">        <mkdir dir="${dist.dir}/muxtemp"/>        <copy file="${conf.dir}/multiplexer-service.xml" tofile="${dist.dir}/muxtemp/jboss-service.xml"/>        <copy file="${conf.dir}/multiplexer-xmbean.xml" todir="${dist.dir}/muxtemp/"/>        <jar jarfile="${dist.dir}/Multiplexer.sar">            <fileset dir="${dist.dir}" includes="jgroups-core.jar"/>            <fileset dir="${lib.dir}" includes="commons-logging*.jar,log4j*.jar"/>            <fileset dir="${conf.dir}" includes="jg-magic-map.xml,stacks.xml"/>            <metainf dir="${dist.dir}/muxtemp"                     includes="*.xml"/>        </jar>        <delete dir="${dist.dir}/muxtemp"/>    </target>    <target name="jgroups-service" depends="jgroups-core.jar"            description="Creates the service archive used to deploy a JGroups channel as a JBoss MBean">        <jar jarfile="${dist.dir}/jgroups-service.sar">            <fileset dir="${dist.dir}" includes="jgroups-core.jar"/>            <fileset dir="${lib.dir}" includes="commons-logging*.jar,log4j*.jar"/>            <metainf dir="${conf.dir}"                     includes="jboss-service.xml"/>            <fileset dir="${conf.dir}" includes="jg-magic-map.xml,stacks.xml"/>        </jar>    </target>    <!-- generate java doc -->    <target name="javadoc"            depends="prepare"            description="Create Javadoc documentation in the ./dist/javadoc directory">        <javadoc packagenames="${javadoc.packages}"                 sourcepath="${src.dir}"                 destdir="${javadoc.dir}"                 classpathref="jg.classpath"                 author="true"                 version="true"                 use="true"                 bottom="Copyright &#169; 1998-2008 Bela Ban. All Rights Reserved."                 useexternalfile="yes"                 doctitle="JGroups"                 overview="${src.dir}/org/jgroups/overview.html">            <!-- The tag option for Javadoc is available in Java 1.4 or later. -->            <tag name="todo" description="To do:"/>        </javadoc>    </target>    <target name="all" depends="compile"/>    <target name="docs" description="Build all html and pdf docs" depends="check-docbook-support">        <echo message="Building docs from docbook ..."/>        <ant dir="${root.dir}/doc/manual" antfile="build.xml" target="all.doc"/>        <ant dir="${root.dir}/doc/tutorial" antfile="build.xml" target="all.doc"/>    </target>    <target name="manual" description="Build the html doc" depends="check-docbook-support">        <echo message="Building HTML doc from docbook ..."/>        <ant dir="${root.dir}/doc/manual" antfile="build.xml" target="html"/>        <ant dir="${root.dir}/doc/tutorial" antfile="build.xml" target="html"/>    </target>    <target name="pdf" description="Build the PDF doc" depends="check-docbook-support">        <echo message="Building PDF doc from docbook ..."/>        <ant dir="${root.dir}/doc/manual" antfile="build.xml" target="pdf"/>        <ant dir="${root.dir}/doc/tutorial" antfile="build.xml" target="pdf"/>    </target>    <target name="check-docbook-support">        <available file="${root.dir}/../docbook-support" type="dir"                   property="docbook.support.present"/>        <fail message="docbook-support directory does not exist, please check it out from jboss first (run target checkout-docbook-support)"              unless="docbook.support.present"/>    </target>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -