develog

[ant] for 본문

카테고리 없음

[ant] for

냐옴 2019. 10. 10. 14:16

ant xml

<?xml version="1.0" encoding="UTF-8"?>
<project name="bms-global" default="target1" xmlns:ac="antlib:net.sf.antcontrib">

    <taskdef uri="antlib:net.sf.antcontrib
        resource="net/sf/antcontrib/antlib.xml
        classpath="./lib/ant-contrib-1.0b3.jar" />

    <target name="target1">
        <echo message="The first five letters of the alphabet are:" />
        <ac:for list="a,b,c,d,e" param="letter">
            <sequential>
                <echo>Letter @{letter}</echo>
            </sequential>
        </ac:for>
    </target>

</project>

 

필요한 파일

ant-contrib-1.0b3.jar

 

http://ant-contrib.sourceforge.net/

 

Ant-Contrib Tasks

Contents The Ant-Contrib project is a collection of tasks (and at one point maybe types and other tools) for Apache Ant. This Software is distributed under the Apache Software License. First you must install Apache Ant itself, most of the Ant-Contrib tasks

ant-contrib.sourceforge.net

 

Comments