筆頭。。
          實踐啟示
          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

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


          網站導航:
           
          主站蜘蛛池模板: 阿图什市| 锡林浩特市| 湟源县| 长春市| 安溪县| 石林| 泰来县| 平昌县| 兰州市| 天水市| 东台市| 商河县| 竹山县| 文昌市| 梅州市| 蓝山县| 全州县| 安义县| 青冈县| 策勒县| 保山市| 金乡县| 朝阳县| 普定县| 郓城县| 乐都县| 安阳市| 金塔县| 襄城县| 白朗县| 高平市| 永平县| 饶河县| 娄底市| 新龙县| 张家口市| 崇阳县| 华亭县| 博湖县| 博客| 泰顺县|