<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:[EMAIL PROTECTED]
>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: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]