That may be a little overly complex.  You can just use the for task from
ant-contrib directly.

<for param="file">
        <path>
                <fileset dir="${you.files.dir}" includes="**/*.jj"/>
        </path>
        <sequential>
                <javacc target="@{file}" javacchome="c:/program
files/JavaCC"/>
        </sequential>
</for>

Ben

-----Original Message-----
From: Bill Rich [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 22, 2005 2:48 PM
To: 'Ant Users List'
Subject: RE: javacc on multiple files

This is untested --

You can use <filelist> to generate a list of your *.jj files, then use
<pathconvert> to place the list in a property, then use the ant-contrib
<for> to iterate over the property passing each file in the list to
javacc.

HTH Bill

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Friday, July 22, 2005 11:25 AM
To: [email protected]
Subject: javacc on multiple files

Hi,
    I have a directory of files to compile with javacc (note the extra
"c"),
but it looks like the javacc optional task only lets you specify one
file.
I would like to be able to specify the parent directory, and have ant
run
javacc on all of the *.jj files in that directory.  Is there any way to
do
that?  (I am trying to avoid having to explicitly specify each .jj
file.)
Thanks,
           --Paul Lynch (eph1v3t8 at mailblocks.com)

----------------------------------------------
Mailblocks - A Better Way to Do Email
http://about.mailblocks.com/info


---------------------------------------------------------------------
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]



**************************************************************
This message, including any attachments, contains confidential information 
intended for a specific individual and purpose, and is protected by law.  If 
you are not the intended recipient, please contact sender immediately by reply 
e-mail and destroy all copies.  You are hereby notified that any disclosure, 
copying, or distribution of this message, or the taking of any action based on 
it, is strictly prohibited.
TIAA-CREF
**************************************************************


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

Reply via email to