Browse Source

Move GetLibrariesTest to make tests compile without httpclient

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276958 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 20 years ago
parent
commit
d2ceff2d4e
2 changed files with 8 additions and 8 deletions
  1. +7
    -6
      build.xml
  2. +1
    -2
      src/testcases/org/apache/tools/ant/taskdefs/optional/repository/GetLibrariesTest.java

+ 7
- 6
build.xml View File

@@ -328,7 +328,7 @@
<filename name="${ant.package}/launch/**/*"/> <filename name="${ant.package}/launch/**/*"/>
</selector> </selector>


<selector id="needs.commons.httpclient">
<selector id="needs.apache-httpclient">
<filename name="${optional.package}/repository/**/*"/> <filename name="${optional.package}/repository/**/*"/>
</selector> </selector>


@@ -568,10 +568,10 @@
</condition> </condition>


<!-- http client needs commons logging --> <!-- http client needs commons logging -->
<condition property="commons.httpclient.present">
<condition property="apache-httpclient.present">
<and> <and>
<available <available
classname="org.apache.commons.httpclient.HttpClient"
classname="org.apache.apache-httpclient.HttpClient"
classpathref="classpath"/> classpathref="classpath"/>
<isset property="commons.logging.present"/> <isset property="commons.logging.present"/>
</and> </and>
@@ -695,7 +695,8 @@
<selector refid="needs.jdepend" unless="jdepend.present"/> <selector refid="needs.jdepend" unless="jdepend.present"/>
<selector refid="needs.swing" unless="swing.present"/> <selector refid="needs.swing" unless="swing.present"/>
<selector refid="needs.jsch" unless="jsch.present"/> <selector refid="needs.jsch" unless="jsch.present"/>
<selector refid="needs.commons.httpclient" unless="commons.httpclient.present"/>
<selector refid="needs.apache-httpclient"
unless="apache-httpclient.present"/>
</or> </or>
</not> </not>
</selector> </selector>
@@ -870,7 +871,7 @@
<selector refid="needs.jdepend"/> <selector refid="needs.jdepend"/>
<selector refid="needs.swing"/> <selector refid="needs.swing"/>
<selector refid="needs.jsch"/> <selector refid="needs.jsch"/>
<selector refid="needs.commons.httpclient"/>
<selector refid="needs.apache-httpclient"/>
</or> </or>
</not> </not>
</and> </and>
@@ -915,7 +916,7 @@
<optional-jar dep="swing"/> <optional-jar dep="swing"/>
<optional-jar dep="jsch"/> <optional-jar dep="jsch"/>
<optional-jar dep="jdepend"/> <optional-jar dep="jdepend"/>
<optional-jar dep="commons.httpclient"/>
<optional-jar dep="apache-httpclient"/>


<jar destfile="${build.lib}/${optional.jars.prefix}-weblogic.jar" <jar destfile="${build.lib}/${optional.jars.prefix}-weblogic.jar"
basedir="${build.classes}" basedir="${build.classes}"


src/testcases/org/apache/tools/ant/taskdefs/optional/GetLibrariesTest.java → src/testcases/org/apache/tools/ant/taskdefs/optional/repository/GetLibrariesTest.java View File

@@ -14,10 +14,9 @@
* limitations under the License. * limitations under the License.
* *
*/ */
package org.apache.tools.ant.taskdefs.optional;
package org.apache.tools.ant.taskdefs.optional.repository;


import org.apache.tools.ant.BuildFileTest; import org.apache.tools.ant.BuildFileTest;
import org.apache.tools.ant.taskdefs.optional.repository.GetLibraries;


/** /**
* test the test libraries stuff. * test the test libraries stuff.

Loading…
Cancel
Save