|
|
<target name="compile" unless="without-xmlimpl"> | <target name="compile" unless="without-xmlimpl"> |
| |
<available property="xbean-present?" file="${xbean.jar}" /> | <available property="xbean-present?" file="${xbean.jar}" /> |
<antcall target="xbean-get" /> |
|
| |
<condition property="xmlimpl-compile?"> | <condition property="xmlimpl-compile?"> |
<and> | <and> |
|
|
</condition> | </condition> |
| |
<antcall target="do-compile" /> | <antcall target="do-compile" /> |
<antcall target="do-not-compile" /> |
|
| |
</target> | </target> |
| |
|
|
deprecation="on" | deprecation="on" |
debug="${debug}" | debug="${debug}" |
target="${target-jvm}" | target="${target-jvm}" |
|
source="${target-jvm}" |
classpathref="xmlimpl.classpath" | classpathref="xmlimpl.classpath" |
failonerror="${xmlimpl.compile.failonerror}" | failonerror="${xmlimpl.compile.failonerror}" |
> | > |
|
|
| |
</target> | </target> |
| |
<target name="do-not-compile" unless="xmlimpl-compile?"> |
|
|
|
<echo> |
|
Skipping compilation of E4X implementation due to lack of |
|
javax.xml.namespace.*, org.apache.xmlbeans.* classes |
|
</echo> |
|
|
|
</target> |
|
|
|
<target name="copy-source"> | <target name="copy-source"> |
<mkdir dir="${dist.dir}/xmlimplsrc"/> | <mkdir dir="${dist.dir}/xmlimplsrc"/> |
<copy todir="${dist.dir}/xmlimplsrc"> | <copy todir="${dist.dir}/xmlimplsrc"> |
|
Lines 79-117
javax.xml.namespace.*, org.apache.xmlbea
|
Link Here
|
|---|
|
includes="org/mozilla/javascript/xmlimpl/**"/> | includes="org/mozilla/javascript/xmlimpl/**"/> |
</delete> | </delete> |
</target> | </target> |
|
|
|
|
<target name="xbean-get" unless="xbean-present?"> |
|
|
|
<property |
|
name="xbean.url" |
|
value="http://www.apache.org/dist/xml/xmlbeans/xmlbeans-current.zip" |
|
/> |
|
|
|
<property name="xbean.tmp" location="${build.dir}/tmp-xbean" /> |
|
<property name="xbean.zip" location="${xbean.tmp}/xbean.zip" /> |
|
|
|
<mkdir dir="${xbean.tmp}"/> |
|
<get src="${xbean.url}" dest="${xbean.zip}" ignoreerrors="true" /> |
|
|
|
<available property="xbean-zip-present?" file="${xbean.zip}" /> |
|
|
|
<antcall target="xbean-unzip" /> |
|
</target> |
|
|
|
<target name="xbean-unzip" if="xbean-zip-present?"> |
|
|
|
<unzip src="${xbean.zip}" dest="${xbean.tmp}"> |
|
<patternset includes="xmlbeans-*/lib/xbean.jar" /> |
|
</unzip> |
|
<mkdir dir="${lib}" /> |
|
<copy tofile="${xbean.jar}"> |
|
<fileset dir="${xbean.tmp}" includes="xmlbeans-*/lib/xbean.jar" /> |
|
</copy> |
|
|
|
<delete dir="${xbean.tmp}" /> |
|
</target> |
|
|
|
|
|
|
|
</project> | </project> |