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

📄 build.xml

📁 jgroups开发平台
💻 XML
📖 第 1 页 / 共 3 页
字号:
    <target name="checkout-docbook-support">        <exec executable="svn">            <arg value="co"/>            <arg value="http://anonsvn.jboss.org/repos/jbossas/trunk/docbook-support"/>            <arg value="${root.dir}/../docbook-support"/>        </exec>    </target>    <target name="clean"            description="Removes all class files and the ./dist directory">        <delete dir="${compile.dir}" failonerror="false"/>        <delete dir="${dist.dir}" failonerror="false"/>        <delete dir="${tmp.dir}" failonerror="false"/>        <delete dir="${keystore.dir}" failonerror="false"/>        <delete file="${lib.dir}/jboss-test.jar" failonerror="false"/>        <delete>            <fileset dir="${root.dir}" defaultexcludes="no">                <include name="**/*~"/>            </fileset>        </delete>    	<!-- clean the docs directory if docs have been processed -->        <antcall target="clean-docs"/>    </target>	<target name="clean-docs" if="docbook.support.present">        <ant dir="${root.dir}/doc/manual" antfile="build.xml" target="clean"/>	</target>	    <target name="version"            depends="compile"            description="Prints some info about the Ant version and the OS/JDK used">        <echo message="${ant.version}"/>        <echo message="JDK=${java.vm.version} on ${os.name} ${os.version}"/>        <java classname="org.jgroups.Version" classpathref="jg.classpath"/>    </target>        <target name="makeKeystore"            depends="compile"            description="Generates an appropraite temporary keystore file for the unit tests and the JVM in use">        <mkdir dir="${keystore.dir}"/>        <java classname="org.jgroups.demos.KeyStoreGenerator" fork="false">            <arg value="--storeName"/>            <arg value="keystore/defaultStore.keystore"/>            <classpath refid="jg.classpath"/>        </java>        <java classname="org.jgroups.demos.KeyStoreGenerator" fork="false">            <arg value="--storeName"/>            <arg value="keystore/defaultStore2.keystore"/>            <classpath refid="jg.classpath"/>        </java>    </target>    <target name="unittests-xml" depends="compile, makeKeystore, copy-build-properties">        <delete dir="${tmp.dir}/tests-results"/>        <mkdir dir="${tmp.dir}/tests-results"/>        <junit printsummary="yes" timeout="${unittest.timeout.low}" fork="yes">            <jvmarg value="-Djgroups.bind_addr=${jgroups.bind_addr}"/>            <jvmarg value="-Djgroups.tcpping.initial_hosts=${jgroups.tcpping.initial_hosts}"/>            <jvmarg value="-Dtests.tmp.dir=${tmp.dir}"/>            <jvmarg value="-Dlog4j.configuration=file:${conf.dir}/log4j.properties"/>            <classpath refid="jg.classpath"/>            <formatter type="xml" usefile="true"/>            <batchtest todir="${tmp.dir}/tests-results">                <fileset dir="${junit-functional.dir}" includes="**/*Test.java"/>                <fileset dir="${junit.dir}" includes="**/*Test.java" excludes="**/DistributedQueueTest.java"/>            </batchtest>        </junit>    </target>    <!--		 Main macro definition for test running. Work in progress.	-->    <macrodef name="testrunner">        <text name="text"/>        <attribute name="set"/>        <sequential>            <echo>@{text}</echo>            <echo>Using set: @{set}</echo>            <mkdir dir="${tmp.dir}/tests-results"/>            <property name="formatter.class"                      value="org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter"/>        	<property name="testname.ext" value=""/>            <junit printsummary="yes" timeout="${unittest.timeout.low}" fork="yes" showoutput="${test.verbose}">                <jvmarg value="-Djgroups.bind_addr=${jgroups.bind_addr}"/>                <jvmarg value="-Djgroups.tcpping.initial_hosts=${jgroups.tcpping.initial_hosts}"/>                <jvmarg value="-Djava.net.preferIPv4Stack=true"/>                <sysproperty key="cfg" value="${conf.dir}/stacks.xml"/>                <sysproperty key="log4j.configuration" value="file:${conf.dir}/log4j.properties"/>                <sysproperty key="tests.tmp.dir" value="${tmp.dir}"/>                <sysproperty key="channel.conf" value="${channel.conf}"/>                <sysproperty key="channel.conf.flush" value="${channel.conf.flush}"/>                <sysproperty key="mux.on" value="${mux.on}"/>                <sysproperty key="mux.conf" value="${mux.conf}"/>                <sysproperty key="mux.conf.stack" value="${mux.conf.stack}"/>                <sysproperty key="mux.factorycount" value="${mux.factorycount}"/>                <sysproperty key="threadcount" value="${threadcount}"/>                <classpath refid="jg.classpath"/>                <sysproperty key="jboss-junit-configuration" value="${testname.ext}"/>                <formatter classname="${formatter.class}" extension="${testname.ext}.xml"/>                <batchtest todir="${tmp.dir}/tests-results">                    <fileset dir="${junit.dir}">                        <patternset refid="@{set}"/>                        <patternset refid="junit.excludes"/>                    </fileset>                </batchtest>            </junit>        </sequential>    </macrodef>    <macrodef name="testrunner-functional">        <text name="text"/>        <attribute name="set"/>        <sequential>            <echo>@{text}</echo>            <echo>Using set: @{set}</echo>            <mkdir dir="${tmp.dir}/tests-results"/>            <property name="formatter.class"                      value="org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter"/>            <junit printsummary="yes" timeout="${unittest.timeout.low}" fork="yes" showoutput="${test.verbose}">                <jvmarg value="-Djgroups.bind_addr=${jgroups.bind_addr}"/>                <jvmarg value="-Djgroups.tcpping.initial_hosts=${jgroups.tcpping.initial_hosts}"/>                <jvmarg value="-Djava.net.preferIPv4Stack=true"/>                <sysproperty key="cfg" value="${conf.dir}/stacks.xml"/>                <sysproperty key="log4j.configuration" value="file:${conf.dir}/log4j.properties"/>                <sysproperty key="tests.tmp.dir" value="${tmp.dir}"/>                <sysproperty key="channel.conf" value="${channel.conf}"/>                <sysproperty key="channel.conf.flush" value="${channel.conf.flush}"/>                <sysproperty key="mux.on" value="${mux.on}"/>                <sysproperty key="mux.conf" value="${mux.conf}"/>                <sysproperty key="mux.conf.stack" value="${mux.conf.stack}"/>                <sysproperty key="mux.factorycount" value="${mux.factorycount}"/>                <sysproperty key="threadcount" value="${threadcount}"/>                <classpath refid="jg.classpath"/>                <formatter type="xml" usefile="true" unless="testname.ext"/>                <sysproperty key="jboss-junit-configuration" value="${testname.ext}"/>                <formatter classname="${formatter.class}" extension="-${testname.ext}.xml" if="testname.ext"/>                <batchtest todir="${tmp.dir}/tests-results">                    <fileset dir="${junit-functional.dir}">                        <patternset refid="@{set}"/>                        <patternset refid="junit.excludes"/>                    </fileset>                </batchtest>            </junit>        </sequential>    </macrodef>    <!--		 Target wrapping macro definition for test running. All test targets 		 use this target. 	-->    <target name="runtests" depends="compile, copy-build-properties">        <testrunner set="${testset}">Tests running with parameters:            channel.conf=${channel.conf}            channel.conf.flush=${channel.conf.flush}            mux.on=${mux.on}            mux.conf=${mux.conf}            mux.conf.stack=${mux.conf.stack}            mux.factorycount=${mux.factorycount}            threadcount=${threadcount}            test.verbose=${test.verbose}            testname.ext=${testname.ext}            formatter.class=${formatter.class}        </testrunner>    </target>    <target name="runtests-functional" depends="compile, copy-build-properties">        <testrunner-functional set="all.tests">Tests running with parameters:            channel.conf=${channel.conf}            channel.conf.flush=${channel.conf.flush}            mux.on=${mux.on}            mux.conf=${mux.conf}            mux.conf.stack=${mux.conf.stack}            mux.factorycount=${mux.factorycount}            threadcount=${threadcount}            test.verbose=${test.verbose}            testname.ext=${testname.ext}            formatter.class=${formatter.class}        </testrunner-functional>    </target>		<!--          Runs flush tests in various channel modes                    	     -->    <target name="all-flush-tests" depends="makeKeystore"            description="Runs flush tests in various channel modes">    	        <get usetimestamp="true"             src="http://repository.jboss.com/maven2/jboss/jboss-test/1.0.1.GA/jboss-test-1.0.1.GA.jar"             dest="${lib.dir}/jboss-test.jar"/>             	    	<antcall target="runtests">            <param name="testset" value="flush.tests"/>            <param name="mux.on" value="false"/>            <param name="mux.conf.stack" value="udp"/>    		<param name="channel.conf" value="udp.xml"/>    		<param name="channel.conf.flush" value="flush-udp.xml"/>    		<param name="test.verbose" value="false"/>    		<param name="testname.ext" value="udp"/>    		<param name="formatter.class" value="org.jboss.ant.taskdefs.XMLJUnitMultipleResultFormatter"/>        </antcall>    	        <antcall target="runtests">            <param name="testset" value="flush.tests"/>            <param name="mux.on" value="false"/>        	<param name="channel.conf" value="tcp.xml"/>        	<param name="channel.conf.flush" value="flush-tcp.xml"/>        	<param name="test.verbose" value="false"/>        	<param name="testname.ext" value="tcp"/>        	<param name="formatter.class" value="org.jboss.ant.taskdefs.XMLJUnitMultipleResultFormatter"/>        </antcall>    	        <antcall target="runtests">            <param name="testset" value="flush.tests"/>            <param name="mux.on" value="true"/>            <param name="mux.conf.stack" value="udp"/>            <param name="test.verbose" value="false"/>            <param name="testname.ext" value="mux-udp"/>        	<param name="formatter.class" value="org.jboss.ant.taskdefs.XMLJUnitMultipleResultFormatter"/>        </antcall>    	        <antcall target="runtests">            <param name="testset" value="flush.tests"/>            <param name="mux.on" value="true"/>            <param name="mux.conf.stack" value="tcp"/>			<param name="test.verbose" value="false"/>			<param name="testname.ext" value="mux-tcp"/>        	<param name="formatter.class" value="org.jboss.ant.taskdefs.XMLJUnitMultipleResultFormatter"/>        </antcall>    </target>		    <!--              Runs entire testsuite for nightly Cruise Control builds.     -->    <target name="all-tests-cc" depends="makeKeystore"            description="Runs entire testsuite for nightly Cruise Control builds">        <!-- jboss-test.jar contains org.jboss.ant.taskdefs.XMLJUnitMultipleResultFormatter                 get jboss-test.jar only if not present locally -->        <get usetimestamp="true"             src="http://repository.jboss.com/maven2/jboss/jboss-test/1.0.1.GA/jboss-test-1.0.1.GA.jar"             dest="${lib.dir}/jboss-test.jar"/>        <antcall target="runtests-functional">            <param name="testset" value="all.tests"/>            <param name="testname.ext" value="functional"/>            <param name="formatter.class" value="org.jboss.ant.taskdefs.XMLJUnitMultipleResultFormatter"/>        </antcall>        <antcall target="runtests">            <param name="testset" value="all.tests"/>            <param name="channel.conf" value="udp.xml"/>            <param name="channel.conf.flush" value="flush-udp.xml"/>            <param name="testname.ext" value="udp"/>            <param name="formatter.class" value="org.jboss.ant.taskdefs.XMLJUnitMultipleResultFormatter"/>        </antcall>        <antcall target="runtests">            <param name="testset" value="all.tests"/>            <param name="channel.conf" value="tcp.xml"/>            <param name="channel.conf.flush" value="flush-tcp.xml"/>            <param name="testname.ext" value="tcp"/>            <param name="formatter.class" value="org.jboss.ant.taskdefs.XMLJUnitMultipleResultFormatter"/>        </antcall>        <antcall target="runtests">            <param name="testset" value="all.tests"/>            <param name="mux.on" value="true"/>            <param name="mux.conf.stack" value="udp"/>            <param name="testname.ext" value="mux-udp"/>            <param name="formatter.class" value="org.jboss.ant.taskdefs.XMLJUnitMultipleResultFormatter"/>        </antcall>    	    	<antcall target="runtests">            <param name="testset" value="all.tests"/>            <param name="mux.on" value="true"/>

⌨️ 快捷键说明

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