ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 34244] - junit.jar required in ANT_HOME\lib directory
Date Wed, 30 Mar 2005 19:56:46 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34244>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34244





------- Additional Comments From ddmcleod@yahoo.com  2005-03-30 21:56 -------
That is not my experience.  I did NOT have to move ant-junit.jar out of the 
ANT_HOME\lib direcory.  I DID have to copy my junit.jar from the 
JUNIT_HOME\lib directory into the ANT_HOME\lib directory.  Having done that, 
my junit task works fine:

<target name="test" depends="compile">
    <echo message="*** Executing JUnit Tests." />
    <junit printsummary="false" haltonfailure="true">
        <classpath>
            <pathelement path="${classes}" />
            <pathelement location="${log4j.jar}" />
        </classpath>
        <formatter type="brief" usefile="false" />
        <test name="myPath.AllTests" />
    </junit>
</target>

My argument is that I should not have to modify the Ant distribution in any 
way, nor should I have to modify my CLASSPATH variable.  There should be some 
way for me to configure Ant so that it knows where to look for my junit.jar 
file.  It seems to me that one of the easiest ways is to have the Ant 
executable look for the "JUNIT_HOME" classpath; however, there are certainly 
other options, including having some kind of ant.properties file in which I 
can declare my dependencies.  In fact, for the general case where there are 
multiple things that Ant may depend on that aren't part of the Ant 
distribution, maybe a properties file is the easiest solution.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message