Browse Source

tests.are.on.system.classpath check didn't work on cygwin. Replaced

calculation of build\testcases on CLASSPATH with a 1.7 <intersect> for
better portability and dogfood consumption rate.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@447549 13f79535-47bb-0310-9956-ffa450edef68
master
Matthew Jason Benson 19 years ago
parent
commit
d1b5b46d1f
1 changed files with 9 additions and 10 deletions
  1. +9
    -10
      build.xml

+ 9
- 10
build.xml View File

@@ -497,19 +497,20 @@
</and>
</condition>

<property name="build.tests.resolved" location="${build.tests}"/>
<condition property="tests.are.on.system.classpath">
<or>
<!-- relative paths in CLASSPATH -->
<contains string="${java.class.path}"
substring="${build.tests}"/>
<!-- absolute paths in CLASSPATH -->
<contains string="${java.class.path}"
substring="${build.tests.resolved}"/>
<resourcecount count="1">
<intersect>
<path path="${java.class.path}" />
<file file="${build.tests}" />
</intersect>
</resourcecount>
<istrue value="${junit.fork}"/>
</or>
</condition>

<echo level="verbose">$${tests.are.on.system.classpath}=${tests.are.on.system.classpath}</echo>

<condition property="jasper.present">
<and>
<available classname="org.apache.jasper.compiler.Compiler"/>
@@ -592,7 +593,6 @@
</or>
</condition>


</target>


@@ -1557,8 +1557,7 @@
forkmode="${junit.forkmode}"
failureproperty="tests.failed"
errorproperty="tests.failed"
filtertrace="${junit.filtertrace}"
>
filtertrace="${junit.filtertrace}">
<sysproperty key="ant.home" value="${ant.home}"/>
<sysproperty key="build.tests" file="${build.tests}"/>
<sysproperty key="build.tests.value" value="${build.tests.value}"/>


Loading…
Cancel
Save