From: <jbo...@li...> - 2006-07-10 01:47:24
|
Author: mar...@jb... Date: 2006-07-09 21:47:20 -0400 (Sun, 09 Jul 2006) New Revision: 4961 Modified: labs/jbossrules/trunk/documentation/manual/en/Chapter-Rule_Engine/Section-The_Drools_Rule_Engine.xml labs/jbossrules/trunk/documentation/manual/en/master.xml Log: -Updated docs for PackageBuilderConfiguration and langauge level -updated manual version to 3.0.2 Modified: labs/jbossrules/trunk/documentation/manual/en/Chapter-Rule_Engine/Section-The_Drools_Rule_Engine.xml =================================================================== --- labs/jbossrules/trunk/documentation/manual/en/Chapter-Rule_Engine/Section-The_Drools_Rule_Engine.xml 2006-07-10 01:36:04 UTC (rev 4960) +++ labs/jbossrules/trunk/documentation/manual/en/Chapter-Rule_Engine/Section-The_Drools_Rule_Engine.xml 2006-07-10 01:47:20 UTC (rev 4961) @@ -84,7 +84,7 @@ package namespace for the current PackageBuilder instance.</para> <example> - <title></title> + <title>Building a Package from multiple sources</title> <programlisting>PackageBuilder builder = new PackageBuilder(); builder.addPackageFromDrl( new InputStreamReader( getClass().getResourceAsStream( "package1.drl" ) ) ); @@ -100,12 +100,32 @@ is Eclipse JDT Core at source level "1.4" with the parent class loader set to "Thread.currentThread().getContextClassLoader()".</para> - <para>The following show how to specify the JANINO compiler</para> + <para>The following show how to specify the JANINO compiler + programmatically:</para> - <programlisting>PackageBuilderConfiguration conf = new PackageBuilderConfiguration(); + <example> + <title>Configuring the PackageBuilder to use JANINO</title> + + <programlisting>PackageBuilderConfiguration conf = new PackageBuilderConfiguration(); conf.setCompiler( PackageBuilderConfiguration.JANINO ); PackageBuilder builder = new PackageBuilder( conf );</programlisting> + </example> + <para>This could also be done with a property file setting + "drools.compiler=JANINO".</para> + + <example> + <title>Configuring the PackageBuilder to build with JDk 1.5 + compatability</title> + + <programlisting>PackageBuilderConfiguration conf = new PackageBuilderConfiguration(); +conf.setJavaLanguageLevel( "1.5" ); +PackageBuilder builder = new PackageBuilder( conf );</programlisting> + </example> + + <para>This could also be done with a property file setting + "drools.compiler.languagelevel=1.5".</para> + <figure> <title>PackageBuilderConfiguration</title> Modified: labs/jbossrules/trunk/documentation/manual/en/master.xml =================================================================== --- labs/jbossrules/trunk/documentation/manual/en/master.xml 2006-07-10 01:36:04 UTC (rev 4960) +++ labs/jbossrules/trunk/documentation/manual/en/master.xml 2006-07-10 01:47:20 UTC (rev 4961) @@ -5,7 +5,7 @@ <subtitle>Drools Documentation</subtitle> - <releaseinfo>3.0</releaseinfo> + <releaseinfo>3.0.2</releaseinfo> <author> <firstname>Mark</firstname> @@ -24,7 +24,7 @@ <surname>Lin</surname> </author> - + <author> <firstname>Michael</firstname> @@ -60,10 +60,10 @@ <xi:include href="Chapter-Rule_Engine/Section-Rules.xml" /> - <xi:include href="Chapter-Rule_Engine/Section-Rete_Algorithm.xml" /> - + <xi:include href="Chapter-Rule_Engine/Section-Rete_Algorithm.xml" /> + <xi:include href="Chapter-Rule_Engine/Section-Leaps_Algorithm.xml" /> - + <xi:include href="Chapter-Rule_Engine/Section-The_Drools_Rule_Engine.xml" /> <!--xi:include href="Chapter-Rule_Engine/Section-Rule_Base.xml" /> @@ -104,9 +104,9 @@ <xi:include href="Chapter-Rule_Language/Section-Query.xml" /> - <xi:include href="Chapter-Rule_Language/Section-DSL.xml" /> + <xi:include href="Chapter-Rule_Language/Section-DSL.xml" /> - <xi:include href="Chapter-Rule_Language/Section-XML.xml" /> + <xi:include href="Chapter-Rule_Language/Section-XML.xml" /> <!--xi:include href="Chapter-Rule_Language/Section-Column.xml" /> @@ -115,11 +115,12 @@ <xi:include href="Chapter-Rule_Language/Section-Conditional_Elements.xml" /--> </chapter> - <chapter> - <title>Decision Tables</title> - <xi:include href="Chapter-Decision_Tables/Section-Spreadsheet.xml" /> - </chapter> + <chapter> + <title>Decision Tables</title> + <xi:include href="Chapter-Decision_Tables/Section-Spreadsheet.xml" /> + </chapter> + <chapter> <title>The Rule Workbench (IDE)</title> @@ -128,42 +129,44 @@ <chapter> <title>The Java Rule Engine API</title> - + <xi:include href="Chapter-JSR94/Section-Introduction.xml" /> <!-- Removed till it can be completed --> + <!-- include href="Chapter-JSR94/Section-Specification.xml" /--> - + <xi:include href="Chapter-JSR94/Section-How_To_Use.xml" /> - + <xi:include href="Chapter-JSR94/Section-References.xml" /> - </chapter> - <chapter> - <title>Performance tuning</title> - <xi:include href="Chapter-Performance_Tuning/Section-Performance.xml" /> - </chapter> + <chapter> + <title>Performance tuning</title> + <xi:include href="Chapter-Performance_Tuning/Section-Performance.xml" /> + </chapter> + <chapter> <title>Examples</title> <xi:include href="Chapter-Examples/Section-Examples.xml" /> </chapter> - <chapter> - <title>Deployment and Testing</title> - <xi:include href="Chapter-Deployment/Section-Deployment.xml" /> - <xi:include href="Chapter-Deployment/Section-Testing.xml" /> - </chapter> - <chapter> + <title>Deployment and Testing</title> + + <xi:include href="Chapter-Deployment/Section-Deployment.xml" /> + + <xi:include href="Chapter-Deployment/Section-Testing.xml" /> + </chapter> + + <chapter> <title>Papers</title> <xi:include href="Chapter-Papers/Section-Manners.xml" /> - </chapter> + </chapter> + </part> - - </part> <index /> -</book> +</book> \ No newline at end of file |