Browse Source

Use org.apache.env.Which utility to dump system info if present.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270781 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 23 years ago
parent
commit
198c2364b6
1 changed files with 14 additions and 2 deletions
  1. +14
    -2
      build.xml

+ 14
- 2
build.xml View File

@@ -174,6 +174,9 @@
<available property="xalan.envcheck"
classname="org.apache.xalan.xslt.EnvironmentCheck"
classpathref="classpath" />
<available property="which.present"
classname="org.apache.env.Which"
classpathref="classpath" />

<available property="servlet.present"
classname="javax.servlet.Servlet"
@@ -823,7 +826,10 @@
</javac>
</target>

<target name="dump-info" depends="xml-check">
<target name="dump-info" depends="dump-sys-properties,run-which" />

<target name="dump-sys-properties" unless="which.present"
depends="xml-check">
<echo message="java.vm.info=${java.vm.info}" />
<echo message="java.vm.name=${java.vm.name}" />
<echo message="java.vm.vendor=${java.vm.vendor}" />
@@ -836,10 +842,16 @@
</target>

<!-- helper class from Xalan2 to check for jar versioning of xml/xsl processors -->
<target name="xml-check" depends="check_for_optional_packages" if="xalan.envcheck">
<target name="xml-check" depends="check_for_optional_packages"
if="xalan.envcheck" unless="which.present">
<java classname="org.apache.xalan.xslt.EnvironmentCheck"/>
</target>

<target name="run-which" depends="check_for_optional_packages"
if="which.present">
<java classname="org.apache.env.Which" taskname="which"/>
</target>

<!--
===================================================================
Run testcase


Loading…
Cancel
Save