I ran into a similiar issue. The solution I used was to copy (preserving the date/time) the .JJ file into another directory, and used <uptodate> to determine if the file had been modified. If so, I ran the <javacc> task.
brian peterson | -----Original Message----- | From: Andreas Gruenhagen | [mailto:[EMAIL PROTECTED]] | Sent: Monday, May 13, 2002 11:20 AM | To: Ant Users List | Subject: JavaCC dependencies | | | Hello, | I'm using JavaCC to generate a small parser but unfortunatly | ant does make a | correct timestamp comparison. As a result the parser is build | every time I | call ant. | My target looks like: | | <target name="parser" depends="init" > | <echo message="Building the parser ..."/> | <javacc target="${javaccwd.dir}/XL-grammar.jj" | outputdirectory="${javaccwd.dir}/" | javacchome="${javacc.dir}" | static="false"/> | </target> | | If I use an additional target which is supposed to check | whether the parser | has to be rebuild (I used the uptodate-tag). It does not work either. | | Thanks in advance | | Andreas Gruenhagen | | | | -- | To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
