[#1196] Document required fork="true" when using jooq-codegen with ant

This commit is contained in:
Lukas Eder 2012-03-16 15:32:31 +00:00
parent fd60c8ad1f
commit 61dba0c2f8
5 changed files with 44 additions and 0 deletions

View File

@ -2842,7 +2842,18 @@ public void bind(BindContext context) throws DataAccessException;</fo:block>
generatortargetdirectory="${basedir}/src"/>
</target>]]></fo:block>
<fo:block font-size="11pt">
Note that when running code generation with ant's &lt;java/&gt; task,
you may have to set fork="true":
</fo:block>
<fo:block font-family="Courier" linefeed-treatment="preserve" white-space-collapse="false" white-space-treatment="preserve" font-size="6pt" margin="12pt" padding="4pt" border="2px solid #882222" background-color="#FFEEDD" page-break-inside="avoid"><![CDATA[<!-- Run the code generation task -->
<target name="generate-test-classes">
<java fork="true" classname="org.jooq.util.GenerationTool">
[...]
</java>
</target>
]]></fo:block>
<fo:block font-family="Georgia" font-size="16pt" padding-top="10pt" padding-bottom="10pt" page-break-after="avoid">Integrate generation with Maven</fo:block>
<fo:block font-size="11pt">Using the official jOOQ-codegen-maven plugin, you can integrate
source code generation in your Maven build process: </fo:block>

View File

@ -1813,7 +1813,18 @@ public void bind(BindContext context) throws DataAccessException;</pre>
generatortargetdirectory="${basedir}/src"/&gt;
&lt;/target&gt;</pre>
<p>
Note that when running code generation with ant's &lt;java/&gt; task,
you may have to set fork="true":
</p>
<pre class="prettyprint lang-xml">&lt;!-- Run the code generation task --&gt;
&lt;target name="generate-test-classes"&gt;
&lt;java fork="true" classname="org.jooq.util.GenerationTool"&gt;
[...]
&lt;/java&gt;
&lt;/target&gt;
</pre>
<h3>Integrate generation with Maven</h3>
<p>Using the official jOOQ-codegen-maven plugin, you can integrate
source code generation in your Maven build process: </p>

View File

@ -241,7 +241,18 @@ function printContent() {
generatortargetdirectory="${basedir}/src"/&gt;
&lt;/target&gt;</pre>
<p>
Note that when running code generation with ant's &lt;java/&gt; task,
you may have to set fork="true":
</p>
<pre class="prettyprint lang-xml">&lt;!-- Run the code generation task --&gt;
&lt;target name="generate-test-classes"&gt;
&lt;java fork="true" classname="org.jooq.util.GenerationTool"&gt;
[...]
&lt;/java&gt;
&lt;/target&gt;
</pre>
<h3>Integrate generation with Maven</h3>
<p>Using the official jOOQ-codegen-maven plugin, you can integrate
source code generation in your Maven build process: </p>

View File

@ -1590,7 +1590,18 @@ public void bind(BindContext context) throws DataAccessException;</java>
generatortargetdirectory="${basedir}/src"/>
</target>]]></xml>
<p>
Note that when running code generation with ant's &lt;java/&gt; task,
you may have to set fork="true":
</p>
<xml><![CDATA[<!-- Run the code generation task -->
<target name="generate-test-classes">
<java fork="true" classname="org.jooq.util.GenerationTool">
[...]
</java>
</target>
]]></xml>
<h3>Integrate generation with Maven</h3>
<p>Using the official jOOQ-codegen-maven plugin, you can integrate
source code generation in your Maven build process: </p>