buildfile实例

类别:Java 点击:0 评论:0 推荐:

<?xml version="1.0" encoding="utf-8"?>

<project name="tdlphase4" default="dist" basedir=".">

<property name="src" value="E:\tdl-phase4\Workspace\TotalJavaSource-JbuilderPJ"/>
<property name="build" value="build"/>
 
<property name="dist" value="C:\Software\weblogic\myserver\servletclasses"/>

<property environment="env"/>
<property name="Name" value="tdlphase4"/>

<path id="java_classpath">
   <pathelement path="${env.classpath}"/>
   <fileset dir="C:\Software\weblogic\myserver\servletclasses">
 <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://com.8s8s.com/it/it11670.htm