ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Optional <entry/> if and only if properties file exists?
Date Thu, 13 Nov 2008 10:38:15 GMT
<rapc>, <jdp> and <entry> arent provided by Ant.
Where do they come from?


What you could do is defining a makro:
<macrodef name="my.rapc">
    <element name="entries" implicit="true"/>
    <sequential>
        <rapc output="${cod.name}" srcdir="${src.dir}" destdir="${build.dir}">
            <jdp file="project.properties">
                <entries/>
            </jdp>
        </rapc>
    </sequential>
</macrodef>


<my.rapc>
    <entry file="entryGUI.properties" />
</my.rapc>

So the subprojects could place that <entry> element under <my.rapc> or dont.


Jan


>-----Urspr√ľngliche Nachricht-----
>Von: Patrick Waugh [mailto:ptwaugh@gmail.com] 
>Gesendet: Donnerstag, 13. November 2008 10:59
>An: Ant Users List
>Betreff: Optional <entry/> if and only if properties file exists?
>
>Currently, I use this:
>
>		<rapc output="${cod.name}" srcdir="${src.dir}" 
>destdir="${build.dir}">
>			<jdp file="project.properties">
>				<entry file="entryGUI.properties" />
>			</jdp>
>		...<snip>...
>                </rapc>
>
>and this is in a "common" build.xml.  However, there are some projects
>that do not require the <entry /> as they have only one entry point.
>
>How can I use this entry ONLY if the entryGUI.properties file exists?
>
>Patrick
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>

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


Mime
View raw message