Java开发网 |
注册 |
登录 |
帮助 |
搜索 |
排行榜 |
发帖统计
|
您没有登录 |
» Java开发网 » Java EE 综合讨论区
打印话题 寄给朋友 订阅主题 |
作者 | 请教Ant的问题... (Target 'build.xml' does not exist in this project.) |
momocha
发贴: 98 积分: 10 |
于 2003-07-24 13:28
-------------------------------------------------------------------------------- build.xml在当前目录,内容如下.. <project name="Professional JSP Site Design, Chapter 2" default="war" basedir="." > <property file="../build.properties" /> <property name="build.dir" value="build" /> <target name="prepare"> <mkdir dir="${build.dir}"/> <copy todir="${build.dir}"> <fileset dir="web" /> </copy> <mkdir dir="${build.dir}/WEB-INF"/> <copy todir="${build.dir}/WEB-INF"> <fileset dir="etc" /> </copy> <mkdir dir="${build.dir}/WEB-INF/classes" /> <copy todir="${build.dir}/WEB-INF/classes"> <fileset dir="src" > <include name="**/*.class" /> <include name="**/*.properties" /> </fileset> </copy> <mkdir dir="${build.dir}/WEB-INF/lib" /> <copy todir="${build.dir}/WEB-INF/lib"> <fileset dir="lib" > <include name="*.jar" /> </fileset> </copy> <copy file="${xerces.jar}" todir="${build.dir}/WEB-INF/lib" /> <copy file="${jdom.jar}" todir="${build.dir}/WEB-INF/lib" /> <copy file="${mm-mysql.jar}" todir="${build.dir}/WEB-INF/lib" /> <copy file="${struts.jar}" todir="${build.dir}/WEB-INF/lib" /> <copy file="${pop3.jar}" todir="${build.dir}/WEB-INF/lib" /> <copy file="../descriptors/struts-bean.tld" todir="${build.dir}/WEB-INF" /> <copy file="../descriptors/struts-html.tld" todir="${build.dir}/WEB-INF" /> <copy file="../descriptors/struts-logic.tld" todir="${build.dir}/WEB-INF" /> <copy file="../descriptors/struts-template.tld" todir="${build.dir}/WEB-INF" /> </target> <target name="compile"> <javac srcdir="src" destdir="${build.dir}/WEB-INF/classes" nowarn="on"> <classpath> <pathelement path="${servlet.jar}" /> <pathelement path="${mail.jar}" /> <pathelement path="${pop3.jar}" /> <pathelement path="${activation.jar}" /> <pathelement path="${jdbc-ext.jar}" /> <fileset dir="${build.dir}/WEB-INF/lib"> <include name="**/*.jar" /> </fileset> <pathelement path="${build.dir}/WEB-INF/classes" /> <fileset dir="../lib"> <include name="**/*.jar" /> </fileset> </classpath> </javac> </target> <target name="war" depends="prepare, compile"> <jar jarfile="${war.dir}/diagnosis.war" basedir="${build.dir}"/> </target> <target name="clean"> <delete dir="${build.dir}"/> </target> </project> build.properties在build.xml的上一级目录.内容如下: catalina.home=c:\tools\tomcat jboss.home=c:\tools\jboss activation.jar=${catalina.home}/common/lib/activation.jar crimson.jar=${catalina.home}/common/lib/crimson.jar jaxp.jar=${catalina.home}/common/lib/jaxp.jar jdbc-ext.jar=${catalina.home}/common/lib/jdbc2_0-stdext.jar jms.jar=${jboss.home}/client/jboss-j2ee.jar mail.jar=${catalina.home}/common/lib/mail.jar servlet.jar=${catalina.home}/common/lib/servlet.jar pop3.jar=${catalina.home}/common/lib/pop3.jar browscap.ini=${catalina.home}/common/lib/browscap.ini beanutils.jar=${basedir}/lib/commons-beanutils.jar collections.jar=${basedir}/lib/commons-collections.jar dbtags.jar=${basedir}/lib/dbtags.jar digester.jar=${basedir}/lib/commons-digester.jar dom4j-full.jar=${basedir}/lib/dom4j-full.jar input.jar=${basedir}/lib/input.jar io.jar=${basedir}/lib/io.jar jdom.jar=${basedir}/lib/jdom.jar jetspeed.zip=${basedir}/lib/jetspeed-1a2.zip jsptl.jar=${basedir}/lib/jsptl.jar log4j.jar=${basedir}/lib/log4j.jar lucene.jar=${basedir}/lib/lucene.jar mm-mysql.jar=${basedir}/lib/mm-mysql.jar oro.jar=${basedir}/lib/jakarta-oro-2.0.4.jar oscache.jar=${basedir}/lib/oscache.jar poolman.jar=${basedir}/lib/poolman.jar request.jar=${basedir}/lib/request.jar response.jar=${basedir}/lib/response.jar sitemesh.jar=${basedir}/lib/sitemesh.jar sitemesh.zip=${basedir}/lib/sitemesh_1_3.zip soap.jar=${basedir}/lib/soap.jar struts.jar=${basedir}/lib/struts.jar tiles.jar=${basedir}/lib/tiles.jar utils.jar=${basedir}/lib/commons-util-0.1-dev.jar xerces.jar=${basedir}/lib/xerces.jar xalan.jar=${basedir}/lib/xalan.jar xtags.jar=${basedir}/lib/xtags.jar war.dir=${basedir}/output 但是我ant build.xml时出现如下错误: Buildfile: build.xml BUILD FAILED Target `build.xml' does not exist in this project. 这是jsp site design的例子,环境变量,所需的包我都设置好了,对ant不会用,上面的错误不知道是那里的问题...请指教~~~~~
why edited on 2003-08-04 21:20
CJSDNer6月14日北京聚会花絮 |
话题树型展开 |
人气 | 标题 | 作者 | 字数 | 发贴时间 |
12015 | 请教Ant的问题... (Target 'build.xml' does not exist in this project.) | momocha | 4367 | 2003-07-24 13:28 |
6817 | Re:请教Ant的问题...... | menzy | 34 | 2003-07-24 15:27 |
6706 | Re:请教Ant的问题...... | zhongyijie | 166 | 2003-07-24 16:03 |
6269 | Re:请教Ant的问题...... | rreeaall | 29 | 2003-07-29 18:02 |
6404 | Re:请教Ant的问题... (Target 'build.xml' does not exist in this project.) | zwzapple | 79 | 2003-08-11 17:58 |
已读帖子 新的帖子 被删除的帖子 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |