在ant腳本里面使用操作系統環境變量

   例子:

 

<?xml version="1.0"?>  
<project name="project_name" default="init">  
    <property environment="env"/>  
    <property name="gwt.home" value="${env.GWT_HOME}" />  
    <target name="init">  
        <echo message="init..."/>  
        <echo message="gwt.home is set to = ${gwt.home}"/>  
    </target>  
</project> 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章