gora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r865609 - in /websites/staging/gora/trunk/content: ./ current/tutorial.html
Date Thu, 13 Jun 2013 23:26:36 GMT
Author: buildbot
Date: Thu Jun 13 23:26:36 2013
New Revision: 865609

Log:
Staging update by buildbot for gora

Modified:
    websites/staging/gora/trunk/content/   (props changed)
    websites/staging/gora/trunk/content/current/tutorial.html

Propchange: websites/staging/gora/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Thu Jun 13 23:26:36 2013
@@ -1 +1 @@
-1492511
+1492905

Modified: websites/staging/gora/trunk/content/current/tutorial.html
==============================================================================
--- websites/staging/gora/trunk/content/current/tutorial.html (original)
+++ websites/staging/gora/trunk/content/current/tutorial.html Thu Jun 13 23:26:36 2013
@@ -293,21 +293,35 @@ are listed in the "fields" element. Each
 <p>The next step after defining the data beans is to compile the schemas 
 into Java classes. For that we will use GoraCompiler&gt;. 
 Invoking the Gora compiler by (from Gora top level directory)</p>
-<div class="codehilite"><pre>$ <span class="n">bin</span><span
class="o">/</span><span class="n">gora</span> <span class="n">compile</span>
+<div class="codehilite"><pre>$ <span class="n">bin</span><span
class="o">/</span><span class="n">gora</span> <span class="n">goracompiler</span>
 </pre></div>
 
 
 <p>results in:</p>
-<div class="codehilite"><pre>$ <span class="n">Usage</span><span
class="p">:</span> <span class="n">SpecificCompiler</span> <span class="o">&amp;</span><span
class="n">lt</span><span class="p">;</span><span class="n">schema</span>
<span class="n">file</span><span class="o">&amp;</span><span
class="n">gt</span><span class="p">;</span> <span class="o">&amp;</span><span
class="n">lt</span><span class="p">;</span><span class="n">output</span>
<span class="n">dir</span><span class="o">&amp;</span><span
class="n">gt</span><span class="p">;</span>
+<div class="codehilite"><pre>$ <span class="n">Usage</span><span
class="p">:</span> <span class="n">GoraCompiler</span> <span class="o">&lt;</span><span
class="n">schema</span> <span class="n">file</span><span class="o">&gt;</span>
<span class="o">&lt;</span><span class="n">output</span> <span
class="n">dir</span><span class="o">&gt;</span> <span class="p">[</span><span
class="o">-</span><span class="n">license</span> <span class="o">&lt;</span><span
class="n">id</span><span class="o">&gt;</span><span class="p">]</span>
+   <span class="o">&lt;</span><span class="n">schema</span> <span
class="n">file</span><span class="o">&gt;</span>     <span class="o">-</span>
<span class="n">individual</span> <span class="n">avsc</span> <span
class="n">file</span> <span class="n">to</span> <span class="n">be</span>
<span class="n">compiled</span> <span class="n">or</span> <span
class="n">a</span> <span class="n">directory</span> <span class="n">path</span>
<span class="n">containing</span> <span class="n">avsc</span> <span
class="n">files</span>
+   <span class="o">&lt;</span><span class="n">output</span> <span
class="n">dir</span><span class="o">&gt;</span>      <span class="o">-</span>
<span class="n">output</span> <span class="n">directory</span> <span
class="k">for</span> <span class="n">generated</span> <span class="n">Java</span>
<span class="n">files</span>
+   <span class="p">[</span><span class="o">-</span><span class="n">license</span>
<span class="o">&lt;</span><span class="n">id</span><span class="o">&gt;</span><span
class="p">]</span>   <span class="o">-</span> <span class="n">the</span>
<span class="n">preferred</span> <span class="n">license</span> <span
class="n">header</span> <span class="n">to</span> <span class="n">add</span>
<span class="n">to</span> <span class="n">the</span>
+               <span class="n">generated</span> <span class="n">Java</span>
<span class="n">file</span><span class="p">.</span> <span class="n">Current</span>
<span class="n">options</span> <span class="n">include</span><span
class="p">;</span> 
+      <span class="n">ASLv2</span>   <span class="p">(</span><span
class="n">Apache</span> <span class="n">Software</span> <span class="n">License</span>
<span class="n">v2</span><span class="p">.</span>0<span class="p">)</span>

+      <span class="n">AGPLv3</span>  <span class="p">(</span><span
class="n">GNU</span> <span class="n">Affero</span> <span class="n">General</span>
<span class="n">Public</span> <span class="n">License</span><span
class="p">)</span>
+      <span class="n">CDDLv1</span>  <span class="p">(</span><span
class="n">Common</span> <span class="n">Development</span> <span class="n">and</span>
<span class="n">Distribution</span> <span class="n">License</span>
<span class="n">v1</span><span class="p">.</span>0<span class="p">)</span>
+      <span class="n">FDLv13</span>  <span class="p">(</span><span
class="n">GNU</span> <span class="n">Free</span> <span class="n">Documentation</span>
<span class="n">License</span> <span class="n">v1</span><span class="p">.</span>3<span
class="p">)</span>
+      <span class="n">GPLv1</span>   <span class="p">(</span><span
class="n">GNU</span> <span class="n">General</span> <span class="n">Public</span>
<span class="n">License</span> <span class="n">v1</span><span class="p">.</span>0<span
class="p">)</span>
+      <span class="n">GPLv2</span>   <span class="p">(</span><span
class="n">GNU</span> <span class="n">General</span> <span class="n">Public</span>
<span class="n">License</span> <span class="n">v2</span><span class="p">.</span>0<span
class="p">)</span>
+      <span class="n">GPLv3</span>   <span class="p">(</span><span
class="n">GNU</span> <span class="n">General</span> <span class="n">Public</span>
<span class="n">License</span> <span class="n">v3</span><span class="p">.</span>0<span
class="p">)</span>
+      <span class="n">LGPLv21</span> <span class="p">(</span><span
class="n">GNU</span> <span class="n">Lesser</span> <span class="n">General</span>
<span class="n">Public</span> <span class="n">License</span> <span
class="n">v2</span><span class="p">.</span>1<span class="p">)</span>
+      <span class="n">LGPLv3</span>  <span class="p">(</span><span
class="n">GNU</span> <span class="n">Lesser</span> <span class="n">General</span>
<span class="n">Public</span> <span class="n">License</span> <span
class="n">v2</span><span class="p">.</span>1<span class="p">)</span>
 </pre></div>
 
 
 <p>so we will issue :</p>
-<div class="codehilite"><pre>$ <span class="n">bin</span><span
class="o">/</span><span class="n">gora</span> <span class="n">compile</span>
<span class="n">gora</span><span class="o">-</span><span class="n">tutorial</span><span
class="o">/</span><span class="n">src</span><span class="o">/</span><span
class="n">main</span><span class="o">/</span><span class="n">avro</span><span
class="o">/</span><span class="n">pageview</span><span class="p">.</span><span
class="n">json</span> <span class="n">gora</span><span class="o">-</span><span
class="n">tutorial</span><span class="o">/</span><span class="n">src</span><span
class="o">/</span><span class="n">main</span><span class="o">/</span><span
class="n">java</span><span class="o">/</span>
+<div class="codehilite"><pre>$ <span class="n">bin</span><span
class="o">/</span><span class="n">gora</span> <span class="n">goracompiler</span>
<span class="n">gora</span><span class="o">-</span><span class="n">tutorial</span><span
class="o">/</span><span class="n">src</span><span class="o">/</span><span
class="n">main</span><span class="o">/</span><span class="n">avro</span><span
class="o">/</span><span class="n">pageview</span><span class="p">.</span><span
class="n">json</span> <span class="n">gora</span><span class="o">-</span><span
class="n">tutorial</span><span class="o">/</span><span class="n">src</span><span
class="o">/</span><span class="n">main</span><span class="o">/</span><span
class="n">java</span><span class="o">/</span>
 </pre></div>
 
 
 <p>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.</p>
 <p>Gora compiler extends Avro's SpecificCompiler to convert JSON definition 
 into a Java class. Generated classes extend the Persistent interface. 



Mime
View raw message