You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/09/04 21:05:21 UTC
[jira] [Commented] (AVRO-1884) Add set source file suffix function
for generate non-java file #90
[ https://issues.apache.org/jira/browse/AVRO-1884?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15463505#comment-15463505 ]
ASF subversion and git services commented on AVRO-1884:
-------------------------------------------------------
Commit e6d2c4d864222290e6e24039365476c8eeb2ea1e in avro's branch refs/heads/master from [~shijinkui]
[ https://git-wip-us.apache.org/repos/asf?p=avro.git;h=e6d2c4d ]
AVRO-1884: Java: Add method to set the compiler output suffix.
Use when generating non-Java files with custom templates. For example:
```
compiler.setSuffix(".scala")
compiler.setTemplateDir(scalaTemplatePath)
compiler.compileToDestination(file, new File("src/main/scala/"))
```
Closes #90.
> Add set source file suffix function for generate non-java file #90
> ------------------------------------------------------------------
>
> Key: AVRO-1884
> URL: https://issues.apache.org/jira/browse/AVRO-1884
> Project: Avro
> Issue Type: Wish
> Components: java
> Reporter: shijinkui
> Assignee: shijinkui
> Fix For: 1.9.0, 1.8.2
>
>
> support generate non-java source file, example:
> compiler.setSuffix(".scala")
> compiler.setTemplateDir(templatePath)
> compiler.compileToDestination(file, new File("src/main/scala/"))
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)