You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ce...@apache.org on 2019/03/03 14:41:24 UTC

svn commit: r1854724 - in /xmlbeans/trunk: CHANGES.txt docs/guide/antXmlbean.html src/xmlcomp/org/apache/xmlbeans/impl/tool/XMLBean.java

Author: centic
Date: Sun Mar  3 14:41:24 2019
New Revision: 1854724

URL: http://svn.apache.org/viewvc?rev=1854724&view=rev
Log:
XMLBEANS-503: Apply patch to allow -nowarn in the Ant task

Modified:
    xmlbeans/trunk/CHANGES.txt
    xmlbeans/trunk/docs/guide/antXmlbean.html
    xmlbeans/trunk/src/xmlcomp/org/apache/xmlbeans/impl/tool/XMLBean.java

Modified: xmlbeans/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/xmlbeans/trunk/CHANGES.txt?rev=1854724&r1=1854723&r2=1854724&view=diff
==============================================================================
--- xmlbeans/trunk/CHANGES.txt (original)
+++ xmlbeans/trunk/CHANGES.txt Sun Mar  3 14:41:24 2019
@@ -1,5 +1,6 @@
 Changes in V3.0.3 since V3.0.2
 
+* XMLBEANS-503: Allow to specify -nowarn in the Ant task
 * XMLBEANS-537: Add missing StscState.end() to avoid memory leaks
 * XMLBEANS-532: Streamline build.xml and update tests to Junit4
 * XMLBEANS-531: Fix schema gen of attributes

Modified: xmlbeans/trunk/docs/guide/antXmlbean.html
URL: http://svn.apache.org/viewvc/xmlbeans/trunk/docs/guide/antXmlbean.html?rev=1854724&r1=1854723&r2=1854724&view=diff
==============================================================================
--- xmlbeans/trunk/docs/guide/antXmlbean.html (original)
+++ xmlbeans/trunk/docs/guide/antXmlbean.html Sun Mar  3 14:41:24 2019
@@ -216,6 +216,12 @@
         <td align="center" valign="top">No</td>
       </tr>
       <tr>
+        <td valign="top">nowarn</td>
+        <td valign="top">Whether the <code>-nowarn</code> switch should be passed to
+          the JDK compiler; defaults to <code>no</code>.</td>
+        <td align="center" valign="top">No</td>
+      </tr>
+      <tr>
         <td valign="top">fork</td>
         <td valign="top">Whether to execute <code>javac</code> using the JDK compiler
           externally; defaults to <code>yes</code>.</td>

Modified: xmlbeans/trunk/src/xmlcomp/org/apache/xmlbeans/impl/tool/XMLBean.java
URL: http://svn.apache.org/viewvc/xmlbeans/trunk/src/xmlcomp/org/apache/xmlbeans/impl/tool/XMLBean.java?rev=1854724&r1=1854723&r2=1854724&view=diff
==============================================================================
--- xmlbeans/trunk/src/xmlcomp/org/apache/xmlbeans/impl/tool/XMLBean.java (original)
+++ xmlbeans/trunk/src/xmlcomp/org/apache/xmlbeans/impl/tool/XMLBean.java Sun Mar  3 14:41:24 2019
@@ -74,7 +74,8 @@ public class XMLBean extends MatchingTas
                         fork = true,
                         includeAntRuntime = true,
                         noSrcRegen,
-                        includeJavaRuntime = false;
+                        includeJavaRuntime = false,
+                        nowarn = false;
 
     private String      typesystemname,
                         forkedExecutable,
@@ -266,6 +267,7 @@ public class XMLBean extends MatchingTas
                 }
                 javac.setIncludeantruntime(includeAntRuntime);
                 javac.setIncludejavaruntime(includeJavaRuntime);
+                javac.setNowarn(nowarn);
                 javac.setSrcdir(new Path(project, srcgendir.getAbsolutePath()));
                 if (memoryInitialSize != null) javac.setMemoryInitialSize(memoryInitialSize);
                 if (memoryMaximumSize != null) javac.setMemoryMaximumSize(memoryMaximumSize);
@@ -674,6 +676,16 @@ public class XMLBean extends MatchingTas
         this.includeJavaRuntime = includeJavaRuntime;
     }
 
+    public boolean isNowarn()
+    {
+        return nowarn;
+    }
+
+    public void setNowarn(boolean nowarn)
+    {
+        this.nowarn = nowarn;
+    }
+
     public boolean isNoSrcRegen()
     {
         return noSrcRegen;



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org