« Return to Thread: [jira] [Created] (VELOCITY-819) Maven pom.xml which uses JavaCC to generate Parser files for Velocity

[jira] [Updated] (VELOCITY-819) Maven pom.xml which uses JavaCC to generate Parser files for Velocity

by Velocity - Dev mailing list-2 :: Rate this Message:

| View in Thread


     [ https://issues.apache.org/jira/browse/VELOCITY-819?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jarkko Viinamäki updated VELOCITY-819:
--------------------------------------

    Attachment: velocity-mvn-generated-parser.patch
   

> Maven pom.xml which uses JavaCC to generate Parser files for Velocity
> ---------------------------------------------------------------------
>
>                 Key: VELOCITY-819
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-819
>             Project: Velocity
>          Issue Type: Improvement
>          Components: Engine
>    Affects Versions: 2.x
>            Reporter: Jarkko Viinamäki
>         Attachments: velocity-mvn-generated-parser.patch
>
>
> This patch is meant for the new Velocity 2.0 Maven based build. Currently the problem is that it is difficult to generate new Parser source files if the Parser.jjt files is changed. This patch automates the whole process.
> The patch adds support for two command line arguments:
> To generate new Parser source files after you have changed the main/parser/Parser.jjt, use command line switch:
> mvn -Dparser.create=true package
> To generate new AST Node source files after you have done major changes to the parser (new nodes/directives), use command line switch:
> mvn -Dparser.create=true -Dparser.nodefiles=true package
> The Maven build will give instructions how to handle the generated AST Node files.
> This patch also removes many generated files from version control. It is not necessary to store them in SVN as the Maven build can now automatically generate them when needed. If the parser source has not changed, the parser generation step is skipped.
> As a bonus, I added support for switch -Dmaven.test.skip=false. In current pom.xml revision it was hardcoded that tests are always skipped.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...

 « Return to Thread: [jira] [Created] (VELOCITY-819) Maven pom.xml which uses JavaCC to generate Parser files for Velocity