--- Ilja_Preu� <[EMAIL PROTECTED]> wrote:
> The problem I am facing is that that target should be executed
> automatically from some other targets [...] but
> *only* if the fileset is defined (obviously...).
If by "defined" you mean contains files:
<fileset id="fs" dir="${basedir}">
<include name="*.txt"/>
</fileset>
<target name="doit" if="hasFiles" depends="checkFS">
<echo>fs = ${fs}</echo>
</target>
<target name="checkFS">
<pathconvert pathsep=" " refid="fs" property="fs"/>
<condition property="hasFiles">
<contains string="${fs}" substring="${basedir}"/>
</condition>
</target>
Diane
=====
([EMAIL PROTECTED])
__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>