ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Burgess, Benjamin" <BBurg...@tiaa-cref.org>
Subject RE: javacc on multiple files
Date Fri, 22 Jul 2005 18:54:56 GMT
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:bill@wilandra.com] 
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: eph1v3t8-antu5112@mailblocks.com
[mailto:eph1v3t8-antu5112@mailblocks.com] 
Sent: Friday, July 22, 2005 11:25 AM
To: user@ant.apache.org
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: 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



**************************************************************
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message