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] New: - junit.jar required in ANT_HOME\lib directory
Date Wed, 30 Mar 2005 19:17:27 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

           Summary: junit.jar required in ANT_HOME\lib directory
           Product: Ant
           Version: 1.6.2
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: ddmcleod@yahoo.com


Currently, if I want to run a junit task within an Ant build file, I must 
declare junit.jar in my CLASSPATH variable or I must copy junit.jar into the 
ANT_HOME\lib directory.

I classify this as a design flaw, for the following reason:

The Ant distribution includes an ant-junit.jar file, which suggests that Ant 
fully supports the execution of JUnit test cases.  I understand that you don't 
want to include a full JUnit distribution within the Ant distribution, but I 
think that, just as Ant looks for the "JAVA_HOME" environment variable, it 
should also look for a "JUNIT_HOME" variable.  This way, if I decide to 
upgrade my version of JUnit, all I have to do is adjust the contents of 
my "JUNIT_HOME", and I don't have to remember to copy the new version of 
junit.jar into the ANT_HOME\lib directory (which is absolutely the WRONG thing 
for me to be doing anyway).  Nor do I have to remember to update a "CLASSPATH" 
variable (which I also believe is the wrong thing for me to be doing).

Clearly, there is a way for me to work around this problem, but I'd like to 
suggest the enhancement of looking for "JUNIT_HOME" as part of the execution 
process when handling the junit task.

Thanks,

David McLeod

-- 
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