战争的蚂蚁召唤序列(Ant call sequence for war)
战争的蚂蚁召唤序列(Ant call sequence for war)
这是我的Java Web项目的ant build.xml。 我能够从以下代码生成类文件
<?xml version="1.0" encoding="UTF-8"?><project basedir="." default="build" name="manager"&
战争的蚂蚁召唤序列(Ant call sequence for war)
这是我的Java Web项目的ant build.xml。 我能够从以下代码生成类文件
<?xml version="1.0" encoding="UTF-8"?><project basedir="." default="build" name="manager"> <property environment="env"/> <property name="ECLIPSE_HOME" value="C:/Program Files (x86)/IBM/SDP"/> <property name="debuglevel" value="source,lines,vars"/> <property name="target" value="1.2"/> <property name="source" value="1."/> <path id="Web App Libraries.libraryclasspath"> <pathelement location="WebContent/WEB-IF/lib/activation.jar"/> <pathelement location="WebContent/WEB-IF/lib/antlr.jar"/> <pathelement location="WebContent/WEB-IF/lib/avalon-framework-cvs-20020806.jar"/> <pathelement location="WebContent/WEB-IF/lib/batik.jar"/> <pathelement location="WebContent/WEB-IF/lib/comm-beanutils-1.7.0.jar"/> <pathelement location="WebContent/WEB-IF/lib/comm-beanutils.jar"/> <pathelement location="WebContent/WEB-IF/lib/comm-collecti-.2.jar"/> <pathelement location="WebContent/WEB-IF/lib/comm-collecti.jar"/> <pathelement location="WebContent/WEB-IF/lib/comm-digester.jar"/> <pathelement location="WebContent/WEB-IF/lib/comm-fileupload-1.2.1.jar"/> <pathelement location="WebContent/WEB-IF/lib/comm-fileupload.jar"/> <pathelement location="WebContent/WEB-IF/lib/comm-io-1.4.jar"/> <pathelement location="WebContent/WEB-IF/lib/comm-lang-2.4.jar"/> <pathelement location="WebContent/WEB-IF/lib/comm-lang.jar"/> <pathelement location="WebContent/WEB-IF/lib/comm-logging.jar"/> <pathelement location="WebContent/WEB-IF/lib/comm-validator.jar"/> <pathelement location="WebContent/WEB-IF/lib/cos.jar"/> <pathelement location="WebContent/WEB-IF/lib/crypt.jar"/> <pathelement location="WebContent/WEB-IF/lib/dbbeans.jar"/> <pathelement location="WebContent/WEB-IF/lib/ezmorph-1.0..jar"/> <pathelement location="WebContent/WEB-IF/lib/fop.jar"/> <pathelement location="WebContent/WEB-IF/lib/itext-1.4..jar"/> <pathelement location="WebContent/WEB-IF/lib/jai_codec.jar"/> <pathelement location="WebContent/WEB-IF/lib/jai_core.jar"/> <pathelement location="WebContent/WEB-IF/lib/jakarta-oro.jar"/> <pathelement location="WebContent/WEB-IF/lib/jakarta-poi-1.10.0-dev-2000222.jar"/> <pathelement location="WebContent/WEB-IF/lib/jaxen-full.jar"/> <pathelement location="WebContent/WEB-IF/lib/jcommon-1.0.17-junit.jar"/> <pathelement location="WebContent/WEB-IF/lib/jcommon-1.0.17.jar"/> <pathelement location="WebContent/WEB-IF/lib/jcommon-xml-1.0.6.jar"/> <pathelement location="WebContent/WEB-IF/lib/jfreechart-1.0.15.jar"/> <pathelement location="WebContent/WEB-IF/lib/json-lib-2.1-jdk1.jar"/> <pathelement location="WebContent/WEB-IF/lib/jspsql.jar"/> <pathelement location="WebContent/WEB-IF/lib/jstl.jar"/> <pathelement location="WebContent/WEB-IF/lib/junit.jar"/> <pathelement location="WebContent/WEB-IF/lib/jxl.jar"/> <pathelement location="WebContent/WEB-IF/lib/log4j-1.2.1.jar"/> <pathelement location="WebContent/WEB-IF/lib/mail.jar"/> <pathelement location="WebContent/WEB-IF/lib/quartz-1.8.4.jar"/> <pathelement location="WebContent/WEB-IF/lib/rowset.jar"/> <pathelement location="WebContent/WEB-IF/lib/saxpath.jar"/> <pathelement location="WebContent/WEB-IF/lib/servlet.jar"/> <pathelement location="WebContent/WEB-IF/lib/slf4j-api-1.6.0.jar"/> <pathelement location="WebContent/WEB-IF/lib/slf4j-log4j12-1.6.0.jar"/> <pathelement location="WebContent/WEB-IF/lib/standard.jar"/> <pathelement location="WebContent/WEB-IF/lib/struts.jar"/> <pathelement location="WebContent/WEB-IF/lib/taglibs-application.jar"/> <pathelement location="WebContent/WEB-IF/lib/taglibs-page.jar"/> <pathelement location="WebContent/WEB-IF/lib/taglibs-request.jar"/> <pathelement location="WebContent/WEB-IF/lib/taglibs-respe.jar"/> <pathelement location="WebContent/WEB-IF/lib/taglibs-session.jar"/> <pathelement location="WebContent/WEB-IF/lib/xalan-2.4.1.jar"/> <pathelement location="WebContent/WEB-IF/lib/xalan.jar"/> <pathelement location="WebContent/WEB-IF/lib/xercesImpl-2.2.1.jar"/> <pathelement location="WebContent/WEB-IF/lib/xml-apis.jar"/> </path> <path id="EAR Libraries.libraryclasspath"/> <path id="WebSphere Application Server v7.0 [WebSphere Application Server v7.0].libraryclasspath"> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/lib/bootstrap.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/lib/j2ee.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/lib/mail-impl.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/lib/rsadbutils.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.admin.services.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.jpa.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.portletcontainer.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.prereq.soap.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.prereq.vajava.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.prereq.wsdl4j.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.runtime.dist.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.runtime.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.sib.server.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.sip.interface.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.wccm.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.webcontainer.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.wsadie/marshall.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/sdo.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/sdo.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/xmi.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/profiles/was70profile1/installedConnectors/wmq.jmsra.rar/com.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/profiles/was70profile1/installedConnectors/wmq.jmsra.rar/com.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/profiles/was70profile1/installedConnectors/wmq.jmsra.rar/dhbcore.jar"/> </path> <path id=""> <pathelement location="WebContent/WEB-IF/classes"/> <path refid="Web App Libraries.libraryclasspath"/> <path refid="EAR Libraries.libraryclasspath"/> <path refid="WebSphere Application Server v7.0 [WebSphere Application Server v7.0].libraryclasspath"/> </path> <target name="init"> <mkdir dir="WebContent/WEB-IF/classes"/> <copy includeemptydirs="false" todir="WebContent/WEB-IF/classes"> <fileset dir="src" excludes="**/*.launch, **/*.java"/> </copy> <copy includeemptydirs="false" todir="WebContent/WEB-IF/classes"> <fileset dir=".apt_generated" excludes="**/*.launch, **/*.java"/> </copy> </target> <target name="clean"> <delete dir="WebContent/WEB-IF/classes"/> </target> <target depends="clean" name="cleanall"/> <target depends="build-subprojects,build-project" name="build"/> <target name="build-subprojects"/> <target depends="init" name="build-project"> <echo message="${ant.}: ${ant.file}"/> <javac debug="true" debuglevel="${debuglevel}" destdir="WebContent/WEB-IF/classes" source="${source}" target="${target}"> <src path="src"/> <classpath refid=""/> </javac> <javac debug="true" debuglevel="${debuglevel}" destdir="WebContent/WEB-IF/classes" source="${source}" target="${target}"> <src path=".apt_generated"/> <classpath refid=""/> </javac> </target> <target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects"/> <target description="copy Eclipse compiler jars to ant lib directory" name="init-eclipse-compiler"> <copy todir="${ant.library.dir}"> <fileset dir="${ECLIPSE_HOME}/plugins" includes="_*.jar"/> </copy> <unzip dest="${ant.library.dir}"> <patternset includes="jdtCompilerAdapter.jar"/> <fileset dir="${ECLIPSE_HOME}/plugins" includes="_*.jar"/> </unzip> </target> <target description="compile project with Eclipse compiler" name="build-eclipse-compiler"> <property name="" value=".JDTCompilerAdapter"/> <antcall target="build"/> </target> <target name="war" depends="build"> <war destfile="manager.war" webxml="WebContent/WEB-IF/web.xml"> <fileset dir="WebContent"> <include name="**/*.*"/> </fileset> </war> </target> <target name="GetStringFromClipboard (1)"> <java classname="GetStringFromClipboard" failonerror="true" fork="yes"> <classpath refid=""/> </java> </target> <target name="Main"> <java classname="Main" failonerror="true" fork="yes"> <classpath refid=""/> </java> </target> <target name="MoveFileExample (1)"> <java classname="MoveFileExample" failonerror="true" fork="yes"> <classpath refid=""/> </java> </target> <target name="MoveFileExample2"> <java classname="MoveFileExample2" failonerror="true" fork="yes"> <classpath refid=""/> </java> </target>但是,如果我执行ant,它会调用build-subprojects,init,build-projects和build,但不会调用war。 如何将其添加到调用序列。
This is my ant build.xml for a Java Web Project. I am able to generate class files from the following code
<?xml version="1.0" encoding="UTF-8"?><project basedir="." default="build" name="manager"> <property environment="env"/> <property name="ECLIPSE_HOME" value="C:/Program Files (x86)/IBM/SDP"/> <property name="debuglevel" value="source,lines,vars"/> <property name="target" value="1.2"/> <property name="source" value="1."/> <path id="Web App Libraries.libraryclasspath"> <pathelement location="WebContent/WEB-IF/lib/activation.jar"/> <pathelement location="WebContent/WEB-IF/lib/antlr.jar"/> <pathelement location="WebContent/WEB-IF/lib/avalon-framework-cvs-20020806.jar"/> <pathelement location="WebContent/WEB-IF/lib/batik.jar"/> <pathelement location="WebContent/WEB-IF/lib/comm-beanutils-1.7.0.jar"/> <pathelement location="WebContent/WEB-IF/lib/comm-beanutils.jar"/> <pathelement location="WebContent/WEB-IF/lib/comm-collecti-.2.jar"/> <pathelement location="WebContent/WEB-IF/lib/comm-collecti.jar"/> <pathelement location="WebContent/WEB-IF/lib/comm-digester.jar"/> <pathelement location="WebContent/WEB-IF/lib/comm-fileupload-1.2.1.jar"/> <pathelement location="WebContent/WEB-IF/lib/comm-fileupload.jar"/> <pathelement location="WebContent/WEB-IF/lib/comm-io-1.4.jar"/> <pathelement location="WebContent/WEB-IF/lib/comm-lang-2.4.jar"/> <pathelement location="WebContent/WEB-IF/lib/comm-lang.jar"/> <pathelement location="WebContent/WEB-IF/lib/comm-logging.jar"/> <pathelement location="WebContent/WEB-IF/lib/comm-validator.jar"/> <pathelement location="WebContent/WEB-IF/lib/cos.jar"/> <pathelement location="WebContent/WEB-IF/lib/crypt.jar"/> <pathelement location="WebContent/WEB-IF/lib/dbbeans.jar"/> <pathelement location="WebContent/WEB-IF/lib/ezmorph-1.0..jar"/> <pathelement location="WebContent/WEB-IF/lib/fop.jar"/> <pathelement location="WebContent/WEB-IF/lib/itext-1.4..jar"/> <pathelement location="WebContent/WEB-IF/lib/jai_codec.jar"/> <pathelement location="WebContent/WEB-IF/lib/jai_core.jar"/> <pathelement location="WebContent/WEB-IF/lib/jakarta-oro.jar"/> <pathelement location="WebContent/WEB-IF/lib/jakarta-poi-1.10.0-dev-2000222.jar"/> <pathelement location="WebContent/WEB-IF/lib/jaxen-full.jar"/> <pathelement location="WebContent/WEB-IF/lib/jcommon-1.0.17-junit.jar"/> <pathelement location="WebContent/WEB-IF/lib/jcommon-1.0.17.jar"/> <pathelement location="WebContent/WEB-IF/lib/jcommon-xml-1.0.6.jar"/> <pathelement location="WebContent/WEB-IF/lib/jfreechart-1.0.15.jar"/> <pathelement location="WebContent/WEB-IF/lib/json-lib-2.1-jdk1.jar"/> <pathelement location="WebContent/WEB-IF/lib/jspsql.jar"/> <pathelement location="WebContent/WEB-IF/lib/jstl.jar"/> <pathelement location="WebContent/WEB-IF/lib/junit.jar"/> <pathelement location="WebContent/WEB-IF/lib/jxl.jar"/> <pathelement location="WebContent/WEB-IF/lib/log4j-1.2.1.jar"/> <pathelement location="WebContent/WEB-IF/lib/mail.jar"/> <pathelement location="WebContent/WEB-IF/lib/quartz-1.8.4.jar"/> <pathelement location="WebContent/WEB-IF/lib/rowset.jar"/> <pathelement location="WebContent/WEB-IF/lib/saxpath.jar"/> <pathelement location="WebContent/WEB-IF/lib/servlet.jar"/> <pathelement location="WebContent/WEB-IF/lib/slf4j-api-1.6.0.jar"/> <pathelement location="WebContent/WEB-IF/lib/slf4j-log4j12-1.6.0.jar"/> <pathelement location="WebContent/WEB-IF/lib/standard.jar"/> <pathelement location="WebContent/WEB-IF/lib/struts.jar"/> <pathelement location="WebContent/WEB-IF/lib/taglibs-application.jar"/> <pathelement location="WebContent/WEB-IF/lib/taglibs-page.jar"/> <pathelement location="WebContent/WEB-IF/lib/taglibs-request.jar"/> <pathelement location="WebContent/WEB-IF/lib/taglibs-respe.jar"/> <pathelement location="WebContent/WEB-IF/lib/taglibs-session.jar"/> <pathelement location="WebContent/WEB-IF/lib/xalan-2.4.1.jar"/> <pathelement location="WebContent/WEB-IF/lib/xalan.jar"/> <pathelement location="WebContent/WEB-IF/lib/xercesImpl-2.2.1.jar"/> <pathelement location="WebContent/WEB-IF/lib/xml-apis.jar"/> </path> <path id="EAR Libraries.libraryclasspath"/> <path id="WebSphere Application Server v7.0 [WebSphere Application Server v7.0].libraryclasspath"> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/lib/bootstrap.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/lib/j2ee.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/lib/mail-impl.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/lib/rsadbutils.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.admin.services.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.jpa.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.portletcontainer.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.prereq.soap.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.prereq.vajava.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.prereq.wsdl4j.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.runtime.dist.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.runtime.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.sib.server.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.sip.interface.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.wccm.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.webcontainer.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.wsadie/marshall.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/sdo.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/sdo.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/xmi.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/profiles/was70profile1/installedConnectors/wmq.jmsra.rar/com.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/profiles/was70profile1/installedConnectors/wmq.jmsra.rar/com.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/profiles/was70profile1/installedConnectors/wmq.jmsra.rar/dhbcore.jar"/> </path> <path id=""> <pathelement location="WebContent/WEB-IF/classes"/> <path refid="Web App Libraries.libraryclasspath"/> <path refid="EAR Libraries.libraryclasspath"/> <path refid="WebSphere Application Server v7.0 [WebSphere Application Server v7.0].libraryclasspath"/> </path> <target name="init"> <mkdir dir="WebContent/WEB-IF/classes"/> <copy includeemptydirs="false" todir="WebContent/WEB-IF/classes"> <fileset dir="src" excludes="**/*.launch, **/*.java"/> </copy> <copy includeemptydirs="false" todir="WebContent/WEB-IF/classes"> <fileset dir=".apt_generated" excludes="**/*.launch, **/*.java"/> </copy> </target> <target name="clean"> <delete dir="WebContent/WEB-IF/classes"/> </target> <target depends="clean" name="cleanall"/> <target depends="build-subprojects,build-project" name="build"/> <target name="build-subprojects"/> <target depends="init" name="build-project"> <echo message="${ant.}: ${ant.file}"/> <javac debug="true" debuglevel="${debuglevel}" destdir="WebContent/WEB-IF/classes" source="${source}" target="${target}"> <src path="src"/> <classpath refid=""/> </javac> <javac debug="true" debuglevel="${debuglevel}" destdir="WebContent/WEB-IF/classes" source="${source}" target="${target}"> <src path=".apt_generated"/> <classpath refid=""/> </javac> </target> <target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects"/> <target description="copy Eclipse compiler jars to ant lib directory" name="init-eclipse-compiler"> <copy todir="${ant.library.dir}"> <fileset dir="${ECLIPSE_HOME}/plugins" includes="_*.jar"/> </copy> <unzip dest="${ant.library.dir}"> <patternset includes="jdtCompilerAdapter.jar"/> <fileset dir="${ECLIPSE_HOME}/plugins" includes="_*.jar"/> </unzip> </target> <target description="compile project with Eclipse compiler" name="build-eclipse-compiler"> <property name="" value=".JDTCompilerAdapter"/> <antcall target="build"/> </target> <target name="war" depends="build"> <war destfile="manager.war" webxml="WebContent/WEB-IF/web.xml"> <fileset dir="WebContent"> <include name="**/*.*"/> </fileset> </war> </target> <target name="GetStringFromClipboard (1)"> <java classname="GetStringFromClipboard" failonerror="true" fork="yes"> <classpath refid=""/> </java> </target> <target name="Main"> <java classname="Main" failonerror="true" fork="yes"> <classpath refid=""/> </java> </target> <target name="MoveFileExample (1)"> <java classname="MoveFileExample" failonerror="true" fork="yes"> <classpath refid=""/> </java> </target> <target name="MoveFileExample2"> <java classname="MoveFileExample2" failonerror="true" fork="yes"> <classpath refid=""/> </java> </target>But If i execute ant it calls build-subprojects, init, build-projects and build but does not call war. How to add that to call sequence.
最满意答案
变
<project basedir="." default="build" name="manager">至
<project basedir="." default="war" name="manager">Changed
<project basedir="." default="build" name="manager">to
<project basedir="." default="war" name="manager">#感谢您对电脑配置推荐网 - 最新i3 i5 i7组装电脑配置单推荐报价格的认可,转载请说明来源于"电脑配置推荐网 - 最新i3 i5 i7组装电脑配置单推荐报价格
上传时间: 2023-08-27 09:45:47
推荐阅读
留言与评论(共有 16 条评论) |
本站网友 上海中海御景熙岸 | 19分钟前 发表 |
vars"/> <property name="target" value="1.2"/> <property name="source" value="1."/> <path id="Web App Libraries.libraryclasspath"> <pathelement location="WebContent/WEB-IF/lib/activation.jar"/> <pathelement location="WebContent/WEB-IF/lib/antlr.jar"/> <pathelement location="WebContent/WEB-IF/lib/avalon-framework-cvs-20020806.jar"/> <pathelement location="WebContent/WEB-IF/lib/batik.jar"/> <pathelement location="WebContent/WEB-IF/lib/comm-beanutils-1.7.0.jar"/> <pathelement location="WebContent/WEB-IF/lib/comm-beanutils.jar"/> <pathelement location="WebContent/WEB-IF/lib/comm-collecti-.2.jar"/> <pathelement location="WebContent/WEB-IF/lib/comm-collecti.jar"/> <pathelement location="WebContent/WEB-IF/lib/comm-digester.jar"/> <pathelement location="WebContent/WEB-IF/lib/comm-fileupload-1.2.1.jar"/> <pathelement location="WebContent/WEB-IF/lib/comm-fileupload.jar"/> <pathelement location="WebContent/WEB-IF/lib/comm-io-1.4.jar"/> <pathelement location="WebContent/WEB-IF/lib/comm-lang-2.4.jar"/> <pathelement location="WebContent/WEB-IF/lib/comm-lang.jar"/> <pathelement location="WebContent/WEB-IF/lib/comm-logging.jar"/> <pathelement location="WebContent/WEB-IF/lib/comm-validator.jar"/> <pathelement location="WebContent/WEB-IF/lib/cos.jar"/> <pathelement location="WebContent/WEB-IF/lib/crypt.jar"/> <pathelement location="WebContent/WEB-IF/lib/dbbeans.jar"/> <pathelement location="WebContent/WEB-IF/lib/ezmorph-1.0..jar"/> <pathelement location="WebContent/WEB-IF/lib/fop.jar"/> <pathelement location="WebContent/WEB-IF/lib/itext-1.4..jar"/> <pathelement location="WebContent/WEB-IF/lib/jai_codec.jar"/> <pathelement location="WebContent/WEB-IF/lib/jai_core.jar"/> <pathelement location="WebContent/WEB-IF/lib/jakarta-oro.jar"/> <pathelement location="WebContent/WEB-IF/lib/jakarta-poi-1.10.0-dev-2000222.jar"/> <pathelement location="WebContent/WEB-IF/lib/jaxen-full.jar"/> <pathelement location="WebContent/WEB-IF/lib/jcommon-1.0.17-junit.jar"/> <pathelement location="WebContent/WEB-IF/lib/jcommon-1.0.17.jar"/> <pathelement location="WebContent/WEB-IF/lib/jcommon-xml-1.0.6.jar"/> <pathelement location="WebContent/WEB-IF/lib/jfreechart-1.0.15.jar"/> <pathelement location="WebContent/WEB-IF/lib/json-lib-2.1-jdk1.jar"/> <pathelement location="WebContent/WEB-IF/lib/jspsql.jar"/> <pathelement location="WebContent/WEB-IF/lib/jstl.jar"/> <pathelement location="WebContent/WEB-IF/lib/junit.jar"/> <pathelement location="WebContent/WEB-IF/lib/jxl.jar"/> <pathelement location="WebContent/WEB-IF/lib/log4j-1.2.1.jar"/> <pathelement location="WebContent/WEB-IF/lib/mail.jar"/> <pathelement location="WebContent/WEB-IF/lib/quartz-1.8.4.jar"/> <pathelement location="WebContent/WEB-IF/lib/rowset.jar"/> <pathelement location="WebContent/WEB-IF/lib/saxpath.jar"/> <pathelement location="WebContent/WEB-IF/lib/servlet.jar"/> <pathelement location="WebContent/WEB-IF/lib/slf4j-api-1.6.0.jar"/> <pathelement location="WebContent/WEB-IF/lib/slf4j-log4j12-1.6.0.jar"/> <pathelement location="WebContent/WEB-IF/lib/standard.jar"/> <pathelement location="WebContent/WEB-IF/lib/struts.jar"/> <pathelement location="WebContent/WEB-IF/lib/taglibs-application.jar"/> <pathelement location="WebContent/WEB-IF/lib/taglibs-page.jar"/> <pathelement location="WebContent/WEB-IF/lib/taglibs-request.jar"/> <pathelement location="WebContent/WEB-IF/lib/taglibs-respe.jar"/> <pathelement location="WebContent/WEB-IF/lib/taglibs-session.jar"/> <pathelement location="WebContent/WEB-IF/lib/xalan-2.4.1.jar"/> <pathelement location="WebContent/WEB-IF/lib/xalan.jar"/> <pathelement location="WebContent/WEB-IF/lib/xercesImpl-2.2.1.jar"/> <pathelement location="WebContent/WEB-IF/lib/xml-apis.jar"/> </path> <path id="EAR Libraries.libraryclasspath"/> <path id="WebSphere Application Server v7.0 [WebSphere Application Server v7.0].libraryclasspath"> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/lib/bootstrap.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/lib/j2ee.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/lib/mail-impl.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/lib/rsadbutils.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.admin.services.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.jpa.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.portletcontainer.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.prereq.soap.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.prereq.vajava.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.prereq.wsdl4j.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.runtime.dist.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.runtime.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.sib.server.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.sip.interface.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.wccm.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.webcontainer.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.ws.wsadie/marshall.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/com.ibm.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/sdo.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/sdo.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/plugins/xmi.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/profiles/was70profile1/installedConnectors/wmq.jmsra.rar/com.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/profiles/was70profile1/installedConnectors/wmq.jmsra.rar/com.jar"/> <pathelement location="${ECLIPSE_HOME}/runtimes/base_v7/profiles/was70profile1/installedConnectors/wmq.jmsra.rar/dhbcore.jar"/> </path> <path id=""> <pathelement location="WebContent/WEB-IF/classes"/> <path refid="Web App Libraries.libraryclasspath"/> <path refid="EAR Libraries.libraryclasspath"/> <path refid="WebSphere Application Server v7.0 [WebSphere Application Server v7.0].libraryclasspath"/> </path> <target name="init"> <mkdir dir="WebContent/WEB-IF/classes"/> <copy includeemptydirs="false" todir="WebContent/WEB-IF/classes"> <fileset dir="src" excludes="**/*.launch | |
本站网友 江淮suv | 5分钟前 发表 |
如果我执行ant | |
本站网友 石化了 | 19分钟前 发表 |
build-project" name="build"/> <target name="build-subprojects"/> <target depends="init" name="build-project"> <echo message="${ant.} | |
本站网友 乐鲨 | 23分钟前 发表 |
如果我执行ant | |
本站网友 为什么网络不稳定 | 30分钟前 发表 |
${ant.file}"/> <javac debug="true" debuglevel="${debuglevel}" destdir="WebContent/WEB-IF/classes" source="${source}" target="${target}"> <src path="src"/> <classpath refid=""/> </javac> <javac debug="true" debuglevel="${debuglevel}" destdir="WebContent/WEB-IF/classes" source="${source}" target="${target}"> <src path=".apt_generated"/> <classpath refid=""/> </javac> </target> <target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects"/> <target description="copy Eclipse compiler jars to ant lib directory" name="init-eclipse-compiler"> <copy todir="${ant.library.dir}"> <fileset dir="${ECLIPSE_HOME}/plugins" includes="_*.jar"/> </copy> <unzip dest="${ant.library.dir}"> <patternset includes="jdtCompilerAdapter.jar"/> <fileset dir="${ECLIPSE_HOME}/plugins" includes="_*.jar"/> </unzip> </target> <target description="compile project with Eclipse compiler" name="build-eclipse-compiler"> <property name="" value=".JDTCompilerAdapter"/> <antcall target="build"/> </target> <target name="war" depends="build"> <war destfile="manager.war" webxml="WebContent/WEB-IF/web.xml"> <fileset dir="WebContent"> <include name="**/*.*"/> </fileset> </war> </target> <target name="GetStringFromClipboard (1)"> <java classname="GetStringFromClipboard" failonerror="true" fork="yes"> <classpath refid=""/> </java> </target> <target name="Main"> <java classname="Main" failonerror="true" fork="yes"> <classpath refid=""/> </java> </target> <target name="MoveFileExample (1)"> <java classname="MoveFileExample" failonerror="true" fork="yes"> <classpath refid=""/> </java> </target> <target name="MoveFileExample2"> <java classname="MoveFileExample2" failonerror="true" fork="yes"> <classpath refid=""/> </java> </target> But If i execute ant it calls build-subprojects | |
本站网友 植眉 | 15分钟前 发表 |
lines | |
本站网友 长安区二手房 | 19分钟前 发表 |
它会调用build-subprojects | |
本站网友 虾扯蛋辣条 | 2分钟前 发表 |
build-projects and build but does not call war. How to add that to call sequence. 最满意答案 变 <project basedir="." default="build" name="manager"> 至 <project basedir="." default="war" name="manager"> Changed <project basedir="." default="build" name="manager"> to <project basedir="." default="war" name="manager"> | |
本站网友 黑莓wipe | 13分钟前 发表 |
如果我执行ant | |
本站网友 css3按钮 | 26分钟前 发表 |
**/*.java"/> </copy> <copy includeemptydirs="false" todir="WebContent/WEB-IF/classes"> <fileset dir=".apt_generated" excludes="**/*.launch | |
本站网友 中国在世界上的地位 | 21分钟前 发表 |
但不会调用war | |
本站网友 lamp配置 | 7分钟前 发表 |
build-projects and build but does not call war. How to add that to call sequence. 最满意答案 变 <project basedir="." default="build" name="manager"> 至 <project basedir="." default="war" name="manager"> Changed <project basedir="." default="build" name="manager"> to <project basedir="." default="war" name="manager"> | |
本站网友 44482 | 25分钟前 发表 |
${ant.file}"/> <javac debug="true" debuglevel="${debuglevel}" destdir="WebContent/WEB-IF/classes" source="${source}" target="${target}"> <src path="src"/> <classpath refid=""/> </javac> <javac debug="true" debuglevel="${debuglevel}" destdir="WebContent/WEB-IF/classes" source="${source}" target="${target}"> <src path=".apt_generated"/> <classpath refid=""/> </javac> </target> <target description="Build all projects which reference this project. Useful to propagate changes." name="build-refprojects"/> <target description="copy Eclipse compiler jars to ant lib directory" name="init-eclipse-compiler"> <copy todir="${ant.library.dir}"> <fileset dir="${ECLIPSE_HOME}/plugins" includes="_*.jar"/> </copy> <unzip dest="${ant.library.dir}"> <patternset includes="jdtCompilerAdapter.jar"/> <fileset dir="${ECLIPSE_HOME}/plugins" includes="_*.jar"/> </unzip> </target> <target description="compile project with Eclipse compiler" name="build-eclipse-compiler"> <property name="" value=".JDTCompilerAdapter"/> <antcall target="build"/> </target> <target name="war" depends="build"> <war destfile="manager.war" webxml="WebContent/WEB-IF/web.xml"> <fileset dir="WebContent"> <include name="**/*.*"/> </fileset> </war> </target> <target name="GetStringFromClipboard (1)"> <java classname="GetStringFromClipboard" failonerror="true" fork="yes"> <classpath refid=""/> </java> </target> <target name="Main"> <java classname="Main" failonerror="true" fork="yes"> <classpath refid=""/> </java> </target> <target name="MoveFileExample (1)"> <java classname="MoveFileExample" failonerror="true" fork="yes"> <classpath refid=""/> </java> </target> <target name="MoveFileExample2"> <java classname="MoveFileExample2" failonerror="true" fork="yes"> <classpath refid=""/> </java> </target> But If i execute ant it calls build-subprojects | |
本站网友 太旧高速公路 | 14分钟前 发表 |
**/*.java"/> </copy> <copy includeemptydirs="false" todir="WebContent/WEB-IF/classes"> <fileset dir=".apt_generated" excludes="**/*.launch | |
本站网友 清晰可辨 | 23分钟前 发表 |
**/*.java"/> </copy> <copy includeemptydirs="false" todir="WebContent/WEB-IF/classes"> <fileset dir=".apt_generated" excludes="**/*.launch |