2010-05-02 10 views
11
<target name="compile" description="Compile the File"> 
     <echo>Compile the File </echo> 
     <mkdir dir="${compilation-dir}" /> 
     <javac srcdir="." classpath="another2" destdir="${compilation-dir}" /> 
    </target> 

में लक्ष्य लक्ष्य विवरण इको लक्ष्य लक्ष्य का विवरण गूंजना चाहता हूं। क्या इसे डुप्लिकेट करने के अलावा इसे करने का कोई बेहतर तरीका है?एंट

उत्तर

2

मुझे लगता है कि यह एक सही समाधान नहीं है, लेकिन कम से कम आप डुप्लिकेट विवरण से बचें।

<property name="testing.desc" value="this is the desc" /> 

<target name="testing" description="${testing.desc}"> 
    <echo message="${testing.desc}" /> 
</target> 
+2

यदि मैं ऐसा करता हूं तो संपत्ति -प्रोजेक्टेलप के साथ विस्तार नहीं होती .. (चींटी 1.8.2) – ShoeLace

संबंधित मुद्दे