笔头。。
实践启示
posts - 14,comments - 3,trackbacks - 0
关于胖客户端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 阅读(221) 评论(0)  编辑  收藏 所属分类: JavaDevTool

只有注册用户登录后才能发表评论。


网站导航: