筆頭。。
          實踐啟示
          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 閱讀(235) 評論(0)  編輯  收藏 所屬分類: JavaDevTool

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 阿坝县| 临夏县| 绍兴县| 抚远县| 三台县| 景洪市| 呈贡县| 尼玛县| 安乡县| 集贤县| 河西区| 景洪市| 雷波县| 呼伦贝尔市| 射阳县| 云龙县| 玉门市| 邢台市| 济宁市| 泽普县| 东乌珠穆沁旗| 万安县| 石首市| 武强县| 临西县| 聂荣县| 灵山县| 贺州市| 肃宁县| 秭归县| 漳浦县| 武乡县| 两当县| 宜春市| 和田市| 文水县| 工布江达县| 石门县| 红河县| 南投市| 吉水县|