計算機程序虛擬的人生
          虛擬世界中的游魂
          project
          <project name="" default="" basedir="">
          </project>

          name:工程名稱
          default:構(gòu)建文件中的一個目標(biāo)名,如果在命令行沒有指定目標(biāo),則使用默認的目標(biāo)
          basedir:定義工程的根目錄,一般情況下為"."
          --------------------------------------------------------------------------------------------------------------------------------------------------------------------------
          target
          以下目標(biāo)將編譯一組文件,并將它們打包到一個名為finallib.jar的文件中
          <target name="build-lib">
            <javac srcdir="${src.ejb.dir}:${src.java.dir}"
                       destdir="${build.dir}"
                       debug="on"
                       deprecation="on"
                       includes="**/*.java"
                       excludes="${global.exclude}">
                <classpath>
                   <pathelement location="."/>
                   <pathelemetn location="${lib.dir}/somelib.jar"/>
                </classpath>
             </javac>
             <jar jarfile="${dist}/lib/finallib.jar" basedir="${build.dir}"/>
          </target>
          -------------------------------------------------------------------
          <copy todir="${weblogic.dir}/${weblogic.server.home}/public_html/jsp">
            <fileset dir="${src.www.dir}/jsp"/>
          </copy>
          -------------------------------------------------
          相關(guān)概念:
          特性(property):在構(gòu)建文件中由<property>標(biāo)簽表示的名-值對
          DataType:一類表示復(fù)雜數(shù)據(jù)集合的元素,例如fileset和path
          數(shù)據(jù)元素(data element):這個詞涵蓋了特性和DataType

          property
          <property name="my.first.property" value="ignore me"/>
          <property file="user.properties"/>

          <property name="property.one" value="one"/>
          <property name="property.two" value="${property.one}:two"/>
          --------------------------------------------------------------------
          <path id="classpath">
            <fileset dir="${lib.dir}">
                <include name="**/*.jar"/>
            </fileset>
          </path>
          -------------------------------------------------
          <target name="" depends="bot">
           <mkdir dir="${doc.dir}/api"/>
           <javadoc packagenames="irssibot.*"
                          sourcepath="${src.dir}"
                          destdir="${doc.dir}/api"
                          author="true"
                          version="true"
                          use="true">
                 <classpath refid="classpath"/>
              </javadoc>
          </target>
          ------------------------------------------------------------
          <target name="clean">
              <delete>
                  <fileset dir="${build.classes}" includes="**/*.class"/>
              </delete>
           </target>

          <target name="cleanall" depends="clean">
             <delete dir="${build.dir}"/>
             <delete dir="${dist.dir}"/>
             <delete dir="${doc.dir}/api"/>
          </target>
          posted on 2009-06-19 10:27 小兄弟(Robbins) 閱讀(116) 評論(0)  編輯  收藏

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


          網(wǎng)站導(dǎo)航:
           
           
          主站蜘蛛池模板: 马关县| 宝清县| 雅江县| 维西| 新巴尔虎左旗| 荣昌县| 长宁县| 双辽市| 汕头市| 新疆| 芜湖市| 万宁市| 黄平县| 龙门县| 方城县| 盈江县| 富宁县| 改则县| 万州区| 英德市| 四平市| 微博| 察雅县| 鹰潭市| 黑山县| 石阡县| 河南省| 孙吴县| 白银市| 贵溪市| 特克斯县| 巴南区| 万荣县| 永川市| 麻阳| 济源市| 十堰市| 南漳县| 新津县| 那坡县| 普定县|