[
http://jira.codehaus.org/browse/MJAVACC-35?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_112874
]
Tim Pizey commented on MJAVACC-35:
----------------------------------
Unfortunately I cannot find an elegant way to use both jjtree and javacc and
override generated files in both :( This is not MY requirement but I am
trying to use the
plugin with javacc itself.
The problem that this patch faces is that sourceDirectory has already been made
canonical, but
outputDirectory is only a string, so they are not equal. Hence I made them
files,
but the equals method on file did not find File("src/main/javacc") to be equal
to File("C:/javacc/src/main/javacc"), so I used getAbsolutePath.
This would be improved by adding an INFO so that why it was failing was
obvious,
the patch is certainly better than the current situation, as it would only fail
sometime ;)
> If input and output directory are equal then input files are emptied
> --------------------------------------------------------------------
>
> Key: MJAVACC-35
> URL: http://jira.codehaus.org/browse/MJAVACC-35
> Project: Maven 2.x JavaCC Plugin
> Issue Type: Bug
> Affects Versions: 2.3
> Environment: WinXP
> Reporter: Tim Pizey
> Attachments: JavaCCMojo.patch
>
>
> If the inputDirectory is the same as the outputDirectory, a situation which
> no doubt should not happen, but has to in javacc itself,
> then the input files are replaced with zero byte size files.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email