You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlbeans.apache.org by kk...@apache.org on 2005/02/01 06:36:59 UTC
svn commit: r149372 - in xmlbeans/branches/1.x: docs/guide/antXmlbean.html
src/xmlcomp/org/apache/xmlbeans/impl/tool/XMLBean.java
Author: kkrouse
Date: Mon Jan 31 21:36:55 2005
New Revision: 149372
URL: http://svn.apache.org/viewcvs?view=rev&rev=149372
Log:
bringing XMLBean ant task and docs up to date
copy of r149369
Modified:
xmlbeans/branches/1.x/docs/guide/antXmlbean.html
xmlbeans/branches/1.x/src/xmlcomp/org/apache/xmlbeans/impl/tool/XMLBean.java
Modified: xmlbeans/branches/1.x/docs/guide/antXmlbean.html
URL: http://svn.apache.org/viewcvs/xmlbeans/branches/1.x/docs/guide/antXmlbean.html?view=diff&r1=149371&r2=149372
==============================================================================
--- xmlbeans/branches/1.x/docs/guide/antXmlbean.html (original)
+++ xmlbeans/branches/1.x/docs/guide/antXmlbean.html Mon Jan 31 21:36:55 2005
@@ -109,25 +109,6 @@
<td align="center" valign="top">No, default is false.</td>
</tr>
<tr>
- <td valign="top">failonerror</td>
- <td valign="top"> Determines whether or not the ant target will continue
- if the XMLBean creation encounters a build error.<br> </td>
- <td align="center" valign="top">No, default is true.</td>
- </tr>
- <tr>
- <td valign="top">verbose<br> </td>
- <td valign="top">Controls the amount of build message output.<br> </td>
- <td valign="top" align="center">No, default is true.</td>
- </tr>
- <tr>
- <td valign="top">typesystemname<br> </td>
- <td valign="top">The name of the package that the TypeSystemHolder class
- should be generated in. Normally this should be left unspecified.
- None of the XMLBeans are generated in this package. Use .xsdconfig files
- to modify XMLBean package or class names.<br> </td>
- <td valign="top" align="center">No<br> </td>
- </tr>
- <tr>
<td valign="top">classgendir<br> </td>
<td valign="top">Set a location to generate CLASS files into.<br> </td>
<td valign="top" align="center">No<br> </td>
@@ -266,6 +247,39 @@
<td align="center" valign="top">No</td>
</tr>
<tr>
+ <td valign="top">failonerror</td>
+ <td valign="top"> Determines whether or not the ant target will continue
+ if the XMLBean creation encounters a build error.<br> </td>
+ <td align="center" valign="top">No, default is true.</td>
+ </tr>
+ <tr>
+ <td valign="top">verbose<br> </td>
+ <td valign="top">Controls the amount of build message output.<br> </td>
+ <td valign="top" align="center">No, default is true.</td>
+ </tr>
+ <tr>
+ <td valign="top">quiet<br> </td>
+ <td valign="top">Controls the amount of build message output.<br> </td>
+ <td valign="top" align="center">No, default is false.</td>
+ </tr>
+ <tr>
+ <td valign="top">typesystemname<br> </td>
+ <td valign="top">The name of the package that the TypeSystemHolder class
+ should be generated in. Normally this should be left unspecified.
+ None of the XMLBeans are generated in this package. Use .xsdconfig files
+ to modify XMLBean package or class names.<br> </td>
+ <td valign="top" align="center">No<br> </td>
+ </tr>
+ <tr>
+ <td valign="top">noupa</td>
+ <td valign="top">Do not enforce the unique particle attribution rule.<br> </td>
+ <td align="center" valign="top">No, default is false.</td>
+ </tr>
+ <td valign="top">nopvr</td>
+ <td valign="top">Do not enforce the particle valid (restriction) rule.<br> </td>
+ <td align="center" valign="top">No, default is false.</td>
+ </tr>
+ <tr>
<td valign="top">ignoreDuplicatesInNamespaces</td>
<td valign="top">Comma separated list of one or more namespaces
in which duplicate definitions are to be ignored.
@@ -278,7 +292,7 @@
</div>
<div id=topictext> Be sure to define the task in your script, like this:</div>
<div>
- <pre><taskdef name="xmlbean" classname="org.apache.xmlbeans.impl.tool.XMLBean" classpath="path/to/xbean.jar"</pre>
+ <pre><taskdef name="xmlbean" classname="org.apache.xmlbeans.impl.tool.XMLBean" classpath="path/to/xbean.jar" /></pre>
<p>The following builds all the schemas in the schemas directory and creates
a jar called "Schemas.jar".</p>
</div>
Modified: xmlbeans/branches/1.x/src/xmlcomp/org/apache/xmlbeans/impl/tool/XMLBean.java
URL: http://svn.apache.org/viewcvs/xmlbeans/branches/1.x/src/xmlcomp/org/apache/xmlbeans/impl/tool/XMLBean.java?view=diff&r1=149371&r2=149372
==============================================================================
--- xmlbeans/branches/1.x/src/xmlcomp/org/apache/xmlbeans/impl/tool/XMLBean.java (original)
+++ xmlbeans/branches/1.x/src/xmlcomp/org/apache/xmlbeans/impl/tool/XMLBean.java Mon Jan 31 21:36:55 2005
@@ -64,6 +64,8 @@
optimize,
download,
srconly,
+ noupa,
+ nopvr,
failonerror = true,
fork = true,
includeAntRuntime = true,
@@ -221,6 +223,8 @@
params.setExtensions(extensions);
params.setErrorListener(err);
params.setMdefNamespaces(mdefnamespaces);
+ params.setNoUpa(noupa);
+ params.setNoPvr(nopvr);
success = SchemaCompiler.compile(params);
if (success && !srconly) {
@@ -672,6 +676,32 @@
public void setMemoryMaximumSize(String memoryMaximumSize)
{
this.memoryMaximumSize = memoryMaximumSize;
+ }
+
+ /**
+ * Do not enforce the unique particle attribution rule.
+ */
+ public void setNoUpa(boolean noupa)
+ {
+ this.noupa = noupa;
+ }
+
+ public boolean isNoUpa()
+ {
+ return noupa;
+ }
+
+ /**
+ * Do not enforce the particle valid (restriction) rule.
+ */
+ public void setNoPvr(boolean nopvr)
+ {
+ this.nopvr = nopvr;
+ }
+
+ public boolean isNoPvr()
+ {
+ return nopvr;
}
private static URI uriFromFile(File f)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: commits-help@xmlbeans.apache.org