]> source.dussan.org Git - poi.git/commitdiff
XmlBeans now generates the beans including the modifications which were applied by...
authorAndreas Beeker <kiwiwings@apache.org>
Tue, 23 Jun 2020 22:16:03 +0000 (22:16 +0000)
committerAndreas Beeker <kiwiwings@apache.org>
Tue, 23 Jun 2020 22:16:03 +0000 (22:16 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1879131 13f79535-47bb-0310-9956-ffa450edef68

build.xml

index 84a4fd68d9b32992664aaca2dfecae4650e29d4c..3bcab115db89135947b9753c41f3d79d14482be9 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -821,28 +821,6 @@ under the License.
                     <path location="${ooxml.xmlbeans.jar}"/>
                 </classpath>
             </xmlbean>
-            <local name="loaderMethod"/>
-            <!-- the space between "public  static" is on purpose to prevent double execution -->
-            <property name="loaderMethod"><![CDATA[
-        private static synchronized org.apache.poi.schemas.@{typesystemname}.system.@{typesystemname}.TypeSystemHolder getTypeLoader() {
-            return org.apache.poi.schemas.@{typesystemname}.system.@{typesystemname}.TypeSystemHolder.typeSystem;
-        }
-
-        public  static \2 newInstance\(\) \{]]></property>
-            <replaceregexp byline="true" match="(\s*)public static ([^ ]+) newInstance\(\) \{" replace="${loaderMethod}">
-                <fileset dir="${xmlbean.sources.dir}" includes="**/*.java" excludes="**/impl/**"/>
-            </replaceregexp>
-
-            <replace dir="${xmlbean.sources.dir}" includes="**/*.java" excludes="**/impl/**">
-                <replacetoken>org.apache.xmlbeans.XmlBeans.getContextTypeLoader</replacetoken>
-                <replacevalue>getTypeLoader</replacevalue>
-            </replace>
-
-            <!-- remove deprecated warnings, as we prefer the array methods - see #56854 -->
-            <replace dir="${xmlbean.sources.dir}" includes="**/*.java" excludes="**/impl/**">
-                <replacetoken><![CDATA[     * @deprecated
-]]></replacetoken>
-            </replace>
 
             <echo>Forking javac with max heap size ${ooxml.memory}</echo>