Author: lewismc
Date: Thu Jun 13 23:26:23 2013
New Revision: 1492905
URL: http://svn.apache.org/r1492905
Log:
CMS commit to gora by lewismc
Modified:
gora/site/trunk/content/current/tutorial.md
Modified: gora/site/trunk/content/current/tutorial.md
URL:
http://svn.apache.org/viewvc/gora/site/trunk/content/current/tutorial.md?rev=1492905&r1=1492904&r2=1492905&view=diff
==============================================================================
--- gora/site/trunk/content/current/tutorial.md (original)
+++ gora/site/trunk/content/current/tutorial.md Thu Jun 13 23:26:23 2013
@@ -173,17 +173,32 @@ The next step after defining the data be
into Java classes. For that we will use GoraCompiler>.
Invoking the Gora compiler by (from Gora top level directory)
- $ bin/gora compile
+ $ bin/gora goracompiler
results in:
- $ Usage: SpecificCompiler <schema file> <output dir>
+ $ 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)
+
so we will issue :
- $ bin/gora compile gora-tutorial/src/main/avro/pageview.json
gora-tutorial/src/main/java/
+ $ bin/gora goracompiler gora-tutorial/src/main/avro/pageview.json
gora-tutorial/src/main/java/
to compile the Pageview class into
gora-tutorial/src/main/java/org/apache/gora/tutorial/log/generated/Pageview.java.
+This will use the default license header which is ASLv2 for licensing the
generated data beans.
However, the tutorial java classes are already committed, so you do not need
to do that now.
Gora compiler extends Avro's SpecificCompiler to convert JSON definition