[QFJ-192] Format generated message source code to adhere to Java indentation standards Created: 06/Jun/07 Updated: 04/Jul/07 Resolved: 11/Jun/07 |
|
Status: | Closed |
Project: | QuickFIX/J |
Component/s: | Build |
Affects Version/s: | 1.1.0 |
Fix Version/s: | 1.2.0 |
Type: | Improvement | Priority: | Default |
Reporter: | Toli Kuznets | Assignee: | Toli Kuznets |
Resolution: | Fixed | Votes: | 0 |
Labels: | None |
Description |
Currently, the XSLT generating the quickfix.fix4x messages doesn't distinguish between inner classes and regular "outer" class when generating the getter/setter methods. as a result, they are all indented the same way, making it harder to distinguish where a particular method lives. Since the same XSLT template is used to generate getter/setter methods for outer and nested classes, it's not that easy to fix this in XSLT itself. May be easier to fix it in the build directly, via a post-generation ANT task (something like Jalopy: http://jalopy.sourceforge.net/existing/plugin-ant.html). Let me know if you know of any other code-formatting tools we can use instead, or if there may be a better way to achieve this, and i'll implement this in the build file. |
Comments |
Comment by Steve Bate [ 09/Jun/07 ] |
Jalopy sounds like a good choice to me. I haven't used it myself but the documentation looks good. |
Comment by Toli Kuznets [ 11/Jun/07 ] |
Jalopy requires its own jar to do the ant task. |
Comment by Toli Kuznets [ 11/Jun/07 ] |
Fix checked in revision 674. |
Comment by Toli Kuznets [ 30/Jun/07 ] |
Steve, I am thinking we should do some more work on this. this step takes about 4-5 minutes, so i wonder if it'd be better if we added a flag to this that disables it. or make it be run only when you do the "final final" release build. that way it wouldn't slow down the "ant clean test" cycles as much as it does now. what do you think? |