關于胖客戶端Swing開發的程序的build.xml配置文件,不是最終版本還會進一步完善
<?xml version="1.0" encoding="UTF-8"?>
<!-- ======================================================================
Dec 26, 2007 4:50:15 PM
project TMonitor 流量預測圖像端
description GIS平臺動態預測監控
zhangh
====================================================================== -->
<project name="project" default="run">
<description>
compile and run TMonitor program
</description>
<property name="src.dir" value="src"/>
<property name="build.dir" value="build/classes"/>
<!--run project such as need another thread -->
<property name="run.forkThread" value="true"> </property>
<path id="compile.classpath">
<fileset dir="lib">
<include name="*.jar" />
</fileset>
</path>
<path id="run.classpath">
<path refid="compile.classpath"/>
<pathelement location="${build.dir}"/>
</path>
<target name="init">
<mkdir dir="build/classes"/>
<mkdir dir="dist/config"/>
<mkdir dir="dist/Data"/>
<mkdir dir="dist/images"/>
<mkdir dir="dist/lib"/>
</target>
<!-- =================================
target: run execute the program
================================= -->
<target name="run" depends="compile" description="run the tmonitor class file">
<java classname="jmapinfoforedit.JMapEdit" classpathref="run.classpath" fork="${run.forkThread}">
</java>
</target>
<!-- - - - - - - - - - - - - - - - - -
target: depends init compile the source code
- - - - - - - - - - - - - - - - - -->
<target name="compile" depends="init" description="compile the tmonitor src code">
<javac srcdir="${src.dir}" destdir="${build.dir}">
<classpath refid="compile.classpath" />
<include name="**/*.java" />
<exclude name="**/*Test*.java"/>
</javac>
</target>
<!--
target: archive
-->
<target name="archive" depends="compile" description="creats the jar file tmonitor.jar">
<jar destfile="dist/lib/tmonitor.jar" basedir="build/classes">
</jar>
</target>
<!-- =================================
target: name
================================= -->
<target name="clean" depends="init" description="remove the tempory libraries used">
<delete dir="build" />
<delete dir="dist" />
</target>
</project>
注意:在target<run>里的fork屬性,是啟動swing的線程必備屬性
posted on 2008-01-14 14:33
如果有一天de 閱讀(233)
評論(0) 編輯 收藏 所屬分類:
JavaDevTool