You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@etch.apache.org by "Michael Fitzner (Created) (JIRA)" <ji...@apache.org> on 2011/11/29 14:23:39 UTC

[jira] [Created] (ETCH-199) Add config option "java package name" to binding-java compiler

Add config option "java package name" to binding-java compiler
--------------------------------------------------------------

                 Key: ETCH-199
                 URL: https://issues.apache.org/jira/browse/ETCH-199
             Project: Etch
          Issue Type: New Feature
          Components: java-binding
    Affects Versions: 1.1
            Reporter: Michael Fitzner
            Priority: Minor
             Fix For: 1.3


- Extend compiler
- Extend Ant Task
<etch home="${etch.home}"
              binding="java"
              quiet="false"
              what="INTF,CLIENT,SERVER"
              outputDir="${dir.gen}"
              file="src/Helklo.etch">
              <params>
                <param name="packageName">org.apache.example</param>
              </params>
</etch>

--
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

        

[jira] [Commented] (ETCH-199) Add config option "java package name" to binding-java compiler

Posted by "Michael Fitzner (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ETCH-199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13162710#comment-13162710 ] 

Michael Fitzner commented on ETCH-199:
--------------------------------------

The package name from the IDL and the generated java code can’t be different at the moment. If a service was published; all the names have been bound for ever. This is a big disadvantage if you would like to refactor and restructure your java client code. It is possible to do this by hand and change the package structure, but the next time you generate your sources; all changes are gone. It would be quite helpful to introduce an optional parameter to the java compiler which allows to set an individual java package name. If you don’t think so, let me know it. Currently it is just proposal!
                
> Add config option "java package name" to binding-java compiler
> --------------------------------------------------------------
>
>                 Key: ETCH-199
>                 URL: https://issues.apache.org/jira/browse/ETCH-199
>             Project: Etch
>          Issue Type: New Feature
>          Components: java-binding
>    Affects Versions: 1.1
>            Reporter: Michael Fitzner
>            Priority: Minor
>             Fix For: 1.3
>
>
> - Extend compiler
> - Extend Ant Task
> <etch home="${etch.home}"
>               binding="java"
>               quiet="false"
>               what="INTF,CLIENT,SERVER"
>               outputDir="${dir.gen}"
>               file="src/Helklo.etch">
>               <params>
>                 <param name="packageName">org.apache.example</param>
>               </params>
> </etch>

--
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

       

[jira] [Commented] (ETCH-199) Add config option "java package name" to binding-java compiler

Posted by "scott comer (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ETCH-199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13159256#comment-13159256 ] 

scott comer commented on ETCH-199:
----------------------------------

eh, what's this about? i'm pretty strongly against having the package name and the service name be disjoint...
                
> Add config option "java package name" to binding-java compiler
> --------------------------------------------------------------
>
>                 Key: ETCH-199
>                 URL: https://issues.apache.org/jira/browse/ETCH-199
>             Project: Etch
>          Issue Type: New Feature
>          Components: java-binding
>    Affects Versions: 1.1
>            Reporter: Michael Fitzner
>            Priority: Minor
>             Fix For: 1.3
>
>
> - Extend compiler
> - Extend Ant Task
> <etch home="${etch.home}"
>               binding="java"
>               quiet="false"
>               what="INTF,CLIENT,SERVER"
>               outputDir="${dir.gen}"
>               file="src/Helklo.etch">
>               <params>
>                 <param name="packageName">org.apache.example</param>
>               </params>
> </etch>

--
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

        

[jira] [Commented] (ETCH-199) Add config option "java package name" to binding-java compiler

Posted by "scott comer (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ETCH-199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13162854#comment-13162854 ] 

scott comer commented on ETCH-199:
----------------------------------

ok, but the same could be said anytime you publish a jar file. once published, the name is as much part of the api as anything else. for instance, as we are able to standardize some apis enough to build interesting libraries around them, changing the api's name would be disastrous.

that said, those of us that are purists can avoid doing that.

if the feature is going to be added for java, please consider doing it for csharp, c, etc.
                
> Add config option "java package name" to binding-java compiler
> --------------------------------------------------------------
>
>                 Key: ETCH-199
>                 URL: https://issues.apache.org/jira/browse/ETCH-199
>             Project: Etch
>          Issue Type: New Feature
>          Components: java-binding
>    Affects Versions: 1.1
>            Reporter: Michael Fitzner
>            Priority: Minor
>             Fix For: 1.3
>
>
> - Extend compiler
> - Extend Ant Task
> <etch home="${etch.home}"
>               binding="java"
>               quiet="false"
>               what="INTF,CLIENT,SERVER"
>               outputDir="${dir.gen}"
>               file="src/Helklo.etch">
>               <params>
>                 <param name="packageName">org.apache.example</param>
>               </params>
> </etch>

--
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