發(fā)布時間:2022年04月15日 05:42:57分享人:六弦綠漪來源:互聯(lián)網(wǎng)5
ANT-build.xml文件詳解Ant之build.xml詳解build.xml-----------------------------------------------------------------------------<?xml version="1.0"encoding="UTF-8"?><project basedir=".." default="war"name="struts"><property name="src.dir" value="${basedir}src"/><property name="lib.dir"value="${basedir}webRootWEB-INFlib" /><property name="webapp.dir"value="${basedir}webRoot" /><property name="build.src"value="${basedir}src" /><property name="build.dest"value="${basedir}WebRootWEB-INFclasses" /><property name="buildwar.dest"value="${basedir}webRoot" /><property name="war.file"value="${basedir}buildssh.war" />
<path id="classpath_id"><fileset dir="${lib.dir}"><include name="**/*.jar"/></fileset><pathelementpath="${classpath}"></pathelement></path>
<target name="delete"><echo>"根目錄是:"+${basedir}</echo> <echo>"webapp.dir是:"+${webapp.dir}</echo><echo>刪除Classes目錄下面的無用文件</echo><deletedir="${build.dest}"></delete><echo>清除完畢</echo></target>
<target name="init"depends="delete"><echomessage="開始初使化${src.dir}"></echo></target>

<target name="compile" depends="init"description="compile the source file"><echo>開始編譯java文件</echo><mkdir dir="${build.dest}"/><echo>編譯文件</echo><javac encoding="UTF-8" srcdir="${src.dir}"destdir="${build.dest}"><classpath refid="classpath_id"/></javac><echo>編譯java文件結束,準備轉移后綴不為.jar文件</echo><copytodir="${build.dest}"><fileset dir="${src.dir}"includes="*.properties,*.xml,*.cfg,*.dat"excludes="*.java"></fileset></copy><echo>轉移后綴不為.jar文件結束</echo></target><target name="war"depends="compile"><description> 開始打包</description><war warfile="${war.file}"webxml="${webapp.dir}/WEB-INF/web.xml"><!-- <lib dir="${lib.dir}"/> --><!--classes dir="${WEB.dir}/classes"/--><fileset dir="${buildwar.dest}"/></war></target>
</project>
愛華網(wǎng)本文地址 » http://www.klfzs.com/a/25101016/297154.html
更多閱讀

簡介很多沒有做過網(wǎng)頁的都不知道php文件是什么樣的文件,今天小編過來跟大家說一下php文件是什么樣的文件吧,其實PHP是一個網(wǎng)頁腳本,但不同于html xml 標簽語言,直接可以通過瀏覽器打開,需要有PHP的運行環(huán)境才可以訪問和打開文件,如果只

[Fatal Error] Users.xml:24:9:尾隨節(jié)中不允許有內(nèi)容。org.xml.sax.SAXParseException; systemId:file:///G:/Android/eclipse-java-kepler-R-win32/workspace/QQServer/Users.xml;lineNumber: 24; columnNumber: 9; 尾隨節(jié)中不允許

<?xml version="1.0" encoding="gb2312"standalone="yes"?><aspmaker.language date="2008/09/03"version="7.0.0.1" desc="english template"author="Wangbo"><p

寫的一個XML操作類,包括讀取/插入/修改/刪除。using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebCo

原創(chuàng)作品,允許轉載,轉載時請務必以超鏈接形式標明文章 原始出處 、作者信息和本人聲明。否則將追究法律責任。作者:永恒の_☆ 地址:http://blog.csdn.net/chenghui0317/article/details/11486271一、前言dom4j是一套非常優(yōu)秀的java開源a