[
https://issues.apache.org/jira/browse/THRIFT-3535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15092062#comment-15092062
]
ASF GitHub Bot commented on THRIFT-3535:
----------------------------------------
GitHub user markerickson-wf opened a pull request:
https://github.com/apache/thrift/pull/789
THRIFT-3535 library_prefix generator argument
Add a library_prefix argument to the Dart generator to generate files and
imports that are usable in an existing Dart library.
This produces a file structure like:
```
gen-dart/
tutorial.dart
tutorial/
calculator.dart
invalid_operation.dart
operation.dart
tutorial_constants.dart
work.dart
```
https://issues.apache.org/jira/browse/THRIFT-3535
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/markerickson-wf/thrift library_prefix
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/thrift/pull/789.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #789
----
commit 089c09d701bef066788090c78171822c0359cfe1
Author: Mark Erickson <[email protected]>
Date: 2016-01-09T20:30:45Z
Add an argument to generate files and imports that are usable in an
existing Dart library.
https://issues.apache.org/jira/browse/THRIFT-3535
----
> Dart generator argument to produce a file structure usable in parent library
> ----------------------------------------------------------------------------
>
> Key: THRIFT-3535
> URL: https://issues.apache.org/jira/browse/THRIFT-3535
> Project: Thrift
> Issue Type: Improvement
> Components: Dart - Compiler
> Reporter: Mark Erickson
> Assignee: Mark Erickson
>
> The default Dart compiler behavior is to generate a new library for each
> thrift file. Add an argument to generate files and imports that are usable
> in an existing library.
> This produces a file structure like:
> {code}
> gen-dart/
> tutorial.dart
> tutorial/
> calculator.dart
> invalid_operation.dart
> operation.dart
> tutorial_constants.dart
> work.dart
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)