aboutsummaryrefslogtreecommitdiffstats
path: root/sonar/pom.xml
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2018-12-16 14:55:23 +0000
committerAndreas Beeker <kiwiwings@apache.org>2018-12-16 14:55:23 +0000
commitd45ec541cd7a5e0233b21d3995153df501afc6f6 (patch)
treecae86bd86ad4798c10d15f27002f4f2e5139a522 /sonar/pom.xml
parent2a84c1fa16618dc7271f97abf28f0c8e45078d3a (diff)
downloadpoi-d45ec541cd7a5e0233b21d3995153df501afc6f6.tar.gz
poi-d45ec541cd7a5e0233b21d3995153df501afc6f6.zip
#62365 - SVG image support in XSLF
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1849030 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sonar/pom.xml')
-rw-r--r--sonar/pom.xml19
1 files changed, 9 insertions, 10 deletions
diff --git a/sonar/pom.xml b/sonar/pom.xml
index 3fcaf93e5d..c008c3a1c4 100644
--- a/sonar/pom.xml
+++ b/sonar/pom.xml
@@ -268,9 +268,7 @@
</goals>
<configuration>
<target>
- <property name="xmlbean.sources.dir"
- location="${basedir}/target/generated-sources/xmlbeans"/>
-
+ <!-- the space between "public static" is on purpose to prevent double execution -->
<property name="loaderMethod"><![CDATA[
private static java.lang.ref.SoftReference<org.apache.xmlbeans.SchemaTypeLoader> typeLoader;
@@ -283,25 +281,26 @@
return stl;
}
- public static \2 newInstance\(\) \{]]></property>
+ public static \2 newInstance\(\) \{]]></property>
+
+ <fileset id="xsrc" dir="${basedir}/target/generated-sources/xmlbeans" includes="**/*.java" excludes="**/impl/**"/>
<replaceregexp byline="true"
match="(\s*)public static ([^ ]+) newInstance\(\) \{"
replace="${loaderMethod}">
- <fileset dir="${xmlbean.sources.dir}" includes="**/*.java"
- excludes="**/impl/**"/>
+ <fileset refid="xsrc"/>
</replaceregexp>
- <replace dir="${xmlbean.sources.dir}" includes="**/*.java"
- excludes="**/impl/**">
+ <replace>
+ <fileset refid="xsrc"/>
<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/**">
+ <replace>
+ <fileset refid="xsrc"/>
<replacetoken><![CDATA[ * @deprecated
]]></replacetoken>
</replace>