wiflish
          Loving Life! Loving Coding!
          posts - 98,comments - 98,trackbacks - 0

          Property設置屬性的7種方法:

          1、設置name和value屬性值,比如:<property name="srcdir" value="${basedir}/src"/>
          2、設置name和refid屬性值,比如:<property name="srcpath" refid="dao.compile.classpath"/>,其中??? dao.compile.classpath在別的地方定義。
          3、設置name和location屬性值,比如:<property name="srcdir" location="src"/>,即將srcdir的值設??? 置為:當前項目根目錄的/src目錄。
          4、設置file屬性值,比如:<property file="build.properties"/>, 導入build.properties屬性文件中??? 的屬性值
          5、設置resource屬性值,比如:<propety resource="build.properties"/>,導入build.properties屬性文??? 件中的屬性值
          6、設置url屬性值,比如:<property url="http://www.aygfsteel.com/wiflish/build.properties"/>,導??? 入http://www.aygfsteel.com/wiflish/build.properties屬性文件中的屬性值。
          7、設置環境變量,比如:<property environment="env"/>,設置系統的環境變量為前綴env.
          ? ?? <property name="tomcat.home" value="${env.CATALINA_HOME}"/> 將系統的tomcat安裝目錄設置到??? tomcat.home屬性中。
          posted on 2006-05-12 11:49 想飛的魚 閱讀(6112) 評論(1)  編輯  收藏 所屬分類: java

          FeedBack:
          # re: ant property標簽粗解
          2011-05-11 06:57 | bu haiqing
          great!! thanks for sharing  回復  更多評論
            
          主站蜘蛛池模板: 甘肃省| 蛟河市| 长寿区| 桓台县| 黑水县| 河南省| 哈密市| 钟祥市| 朝阳区| 连城县| 仪陇县| 留坝县| 新乡市| 土默特右旗| 连平县| 静安区| 周宁县| 东平县| 环江| 额尔古纳市| 苗栗县| 江西省| 太湖县| 浠水县| 海安县| 虎林市| 勃利县| 金溪县| 军事| 东海县| 深水埗区| 宽甸| 宜君县| 池州市| 定襄县| 民县| 宜宾市| 正镶白旗| 九寨沟县| 安新县| 吉安县|