Tweak depends lines relating to compile-ooxml-xsds, so that the schema files are correctly downloaded if missing
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@938120 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a3899a57d8
commit
22b4d5d593
@ -358,6 +358,7 @@ under the License.
|
|||||||
</condition>
|
</condition>
|
||||||
</target>
|
</target>
|
||||||
<target name="fetch-ooxml-xsds" unless="ooxml-xsds.present"
|
<target name="fetch-ooxml-xsds" unless="ooxml-xsds.present"
|
||||||
|
depends="check-ooxml-xsds"
|
||||||
description="Fetches needed OOXML xsd files from the Internet">
|
description="Fetches needed OOXML xsd files from the Internet">
|
||||||
<get src="${ooxml.xsds.url}" dest="${ooxml.xsds.ozip}"/>
|
<get src="${ooxml.xsds.url}" dest="${ooxml.xsds.ozip}"/>
|
||||||
<unzip src="${ooxml.xsds.ozip}" dest="${ooxml.lib}">
|
<unzip src="${ooxml.xsds.ozip}" dest="${ooxml.lib}">
|
||||||
@ -366,7 +367,7 @@ under the License.
|
|||||||
</patternset>
|
</patternset>
|
||||||
</unzip>
|
</unzip>
|
||||||
</target>
|
</target>
|
||||||
<target name="check-compiled-ooxml-xsds">
|
<target name="check-compiled-ooxml-xsds" depends="fetch-ooxml-xsds">
|
||||||
<condition property="ooxml-compiled-xsds.present">
|
<condition property="ooxml-compiled-xsds.present">
|
||||||
<or>
|
<or>
|
||||||
<and>
|
<and>
|
||||||
@ -377,7 +378,7 @@ under the License.
|
|||||||
</condition>
|
</condition>
|
||||||
</target>
|
</target>
|
||||||
<target name="compile-ooxml-xsds" unless="ooxml-compiled-xsds.present"
|
<target name="compile-ooxml-xsds" unless="ooxml-compiled-xsds.present"
|
||||||
depends="check-jars,fetch-jars"
|
depends="check-jars,fetch-jars,check-compiled-ooxml-xsds"
|
||||||
description="Unpacks the OOXML xsd files, and compiles them into XmlBeans">
|
description="Unpacks the OOXML xsd files, and compiles them into XmlBeans">
|
||||||
<property name="ooxml.xsds.tmp.dir" location="build/ooxml-xsds"/>
|
<property name="ooxml.xsds.tmp.dir" location="build/ooxml-xsds"/>
|
||||||
<mkdir dir="${ooxml.xsds.tmp.dir}"/>
|
<mkdir dir="${ooxml.xsds.tmp.dir}"/>
|
||||||
|
Loading…
Reference in New Issue
Block a user