[
https://issues.apache.org/jira/browse/THRIFT-1069?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jake Farrell updated THRIFT-1069:
---------------------------------
Attachment: thrift_1069.patch
Adds a -out option which will set the specified directory as an absolute path
for generated files without creating the gen-* folder
Options:
-o dir Set the output directory for gen-* packages
(default: current directory)
-out dir Set the ouput location for generated files.
(no gen-* folder will be created)
Example:
[jfarrell]$ mkdir src src_orig
[jfarrell]$ thrift -o src_orig --gen java scribe.thrift
[jfarrell]$ tree src_orig/
src_orig/
`-- gen-java
`-- scribe
`-- thrift
|-- LogEntry.java
|-- ResultCode.java
`-- scribe.java
[jfarrell]$ thrift -out src --gen java scribe.thrift
[jfarrell]$ tree src/
src/
`-- scribe
`-- thrift
|-- LogEntry.java
|-- ResultCode.java
`-- scribe.java
> Add command line option to prevent thrift from inserting gen-* directories
> --------------------------------------------------------------------------
>
> Key: THRIFT-1069
> URL: https://issues.apache.org/jira/browse/THRIFT-1069
> Project: Thrift
> Issue Type: Improvement
> Components: Java - Compiler
> Affects Versions: 0.5
> Environment: OSX
> Reporter: David Trott
> Attachments: thrift_1069.patch
>
>
> I maintain a plug-in to execute thrift under maven:
> https://github.com/dtrott/maven-thrift-plugin
> The gen-* directories do not add any value for me (I have to add additional
> code to move the files back up one level after generation - for IDE
> integration).
> Would it be possible to add an additional command line option to either:
> * Suppress the insertion of the gen- directory
> * or, Allow me to specify the full path to the output directory (without the
> gen- postfix)
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira