--- Kyle Adams <[EMAIL PROTECTED]> wrote:
> I'd like to be able to set a property based on a
> condition that recursively searches for *.java files
> (much the way a "find ./src -name *.java" would) and
> then use <target ... unless="${src.found}"> to
> control execution of the javadocs target.  That
> said, I'm not coming up with any good ways to do
> this in Ant.
> 
> Any ideas?

Yeah, easiest way is:

<target name="javadoc" if="src.found">
  ...
</target>
<target name="checkjava">
  <pathconvert property="src.found"
               pathsep=" " setonempty="false">
    <path>
      <fileset dir="src" includes="**/*.java" />
    </path>
  </pathconvert>
</target>

HTH,
Matt
> 
> Thanks,
> Kyle
> 
> _____
> 
> Kyle Adams | Java Developer  |  Gordon Food Service 
> |  616-717-6162
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


                
__________________________________ 
Yahoo! Messenger 
Show us what our next emoticon should look like. Join the fun. 
http://www.advision.webevents.yahoo.com/emoticontest

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to