[ 
https://issues.apache.org/jira/browse/GORA-456?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16843409#comment-16843409
 ] 

Lahiru Jayasekara commented on GORA-456:
----------------------------------------

Hi [~lewismc],

I found following cli output in gora tutorial documentation[0] when  
goraCompiler was invoked without any arguments.
{code:java}
$ Usage: GoraCompiler <schema file> <output dir> [-license <id>]
   <schema file>     - individual avsc file to be compiled or a directory path 
containing avsc files
   <output dir>      - output directory for generated Java files
   [-license <id>]   - the preferred license header to add to the
               generated Java file. Current options include; 
      ASLv2   (Apache Software License v2.0) 
      AGPLv3  (GNU Affero General Public License)
      CDDLv1  (Common Development and Distribution License v1.0)
      FDLv13  (GNU Free Documentation License v1.3)
      GPLv1   (GNU General Public License v1.0)
      GPLv2   (GNU General Public License v2.0)
      GPLv3   (GNU General Public License v3.0)
      LGPLv21 (GNU Lesser General Public License v2.1)
      LGPLv3  (GNU Lesser General Public License v2.1)
{code}
 Is this what you are expecting?

 

But when I actually invoke goraCompiler without arguments, this is what I get,
{code:java}
mlpj@mlpj-Inspiron-3543:~/Documents/gora$ bin/gora goracompiler
ERROR cli.GoraCompilerCLI            - Must supply at least one source file and 
an output directory.
INFO  cli.GoraCompilerCLI            - Usage: gora-compiler ( -h | --help ) | 
(<input> [<input>...] <output> [-license <id>])
ERROR cli.GoraCompilerCLI            - License header options include;
                  ASLv2   (Apache Software License v2.0) 
                  AGPLv3  (GNU Affero General Public License) 
                  CDDLv1  (Common Development and Distribution License v1.0) 
                  FDLv13  (GNU Free Documentation License v1.3) 
                  GPLv1   (GNU General Public License v1.0) 
                  GPLv2   (GNU General Public License v2.0) 
                  GPLv3   (GNU General Public License v3.0) 
                  LGPLv21 (GNU Lesser General Public License v2.1) 
                  LGPLv3  (GNU Lesser General Public License v2.1)

{code}
 

Furthermore I get following while compiling PageView.json to PageView.java 
{code}
mlpj@mlpj-Inspiron-3543:~/Documents/gora$ bin/gora goracompiler 
gora-tutorial/src/main/avro/pageview.json gora-tutorial/src/main/java/
INFO  compiler.GoraCompiler          - Compiling: 
/home/mlpj/Documents/gora/gora-tutorial/src/main/avro/pageview.json
INFO  compiler.GoraCompiler          - Compiled into: 
/home/mlpj/Documents/gora/gora-tutorial/src/main/java
INFO  cli.GoraCompilerCLI            - Compiler executed SUCCESSFULL.
{code}
What do you think should be added to these?

[0] [http://gora.apache.org/current/tutorial.html]

> No help when GoraCompilerCli is invoked without parameters
> ----------------------------------------------------------
>
>                 Key: GORA-456
>                 URL: https://issues.apache.org/jira/browse/GORA-456
>             Project: Apache Gora
>          Issue Type: Improvement
>          Components: gora-compiler
>    Affects Versions: 0.7
>            Reporter: Lewis John McGibbney
>            Priority: Major
>             Fix For: 1.0
>
>         Attachments: 1
>
>
> Right now when GoraCompiler is invoked from the bin/gora script e.g. 
> org.apache.gora.compiler.cli.GoraCompilerCLI, no help is provided to the user 
> to indicate what in gods name is meant to be going on.
> We should improve GoraCompilerCLI to help users understand what the input is.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to