Reading multiple property files using wildcards (*.properties)

Jan Matèrne

I don´t think that you can do this with the normal distribution. If you use AntContrib (see at SourceForge) you can do it

<target name="readAllProps">
    <foreach target="readPropFile" param="file">
        <fileset dir="myprops">
            <include name="*.properties" />

<target name="readPropFile">
    <property file="${file}" />
0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.