ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Allen" <all...@spawar.navy.mil>
Subject Passing files to a java target
Date Thu, 06 May 2004 22:58:08 GMT
I would like to send a list of filenames to a java target. i.e.

java myProgram c:\root c:\root\test\bean.properties
c:\root\test\bean.properties c:\root\boat\try2\bean.properties
c:\root\fish\bean.properties

Below is as close as I cen get. The problem is that it won't recognize
codeGen.path.

C:\ksa_dev\build.xml:435: Reference ${codeGen.path} not found.

Jonathan Allen

********************
<path id="codeGen.path">
    <fileset dir="${src.dir}" casesensitive="yes">
        <include name="**/bean.properties"/>
    </fileset>
</path>

<target name="codeGen"
            description="Regenerate code">
        <java classname="myProgram">
            <classpath refid="classpath" />
            <arg path="${src.dir}"/>
            <arg pathref="${codeGen.path}"/>
        </java>
</target>
**********************


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message