下面图老师小编要跟大家分享buildfile实例,简单的过程中其实暗藏玄机,还是要细心学习,喜欢还请记得收藏哦!
【 tulaoshi.com - 编程语言 】
?xml version="1.0" encoding="utf-8"?(本文来源于图老师网站,更多请访问http://www.tulaoshi.com/bianchengyuyan/)
project name="tdlphase4" default="dist" basedir="."
property name="src" value="E:tdl-phase4WorkspaceTotalJavaSource-JbuilderPJ"/
property name="build" value="build"/
property name="dist" value="C:Softwareweblogicmyserverservletclasses"/
property environment="env"/
property name="Name" value="tdlphase4"/
path id="java_classpath"
pathelement path="${env.classpath}"/
fileset dir="C:Softwareweblogicmyserverservletclasses"
include name="**/*.jar"/
/fileset
/path
target name="init"
tstamp/
/target
target name="compile" depends="init"
javac srcdir="${src}" destdir="${build}" deprecation="yes"
classpath refid="java_classpath"/
/javac
/target
target name="dist" depends="compile"
jar jarfile="${dist}/${Name}-${DSTAMP}.jar" basedir="${build}"/
/target
/project
来源:http://www.tulaoshi.com/n/20160219/1608464.html