You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2004/01/18 23:07:58 UTC

[jira] Commented: (MPECLIPSE-6) junit dependency should be added to classpath even when tests do not exist

The following comment has been added to this issue:

     Author: Martin van den Bemt
    Created: Sun, 18 Jan 2004 5:07 PM
       Body:
Patch attached to MPECLIPSE-2. 
It checks if it has a junit entry in the pom and adds junit to the cp.
A nice use of this is eg writing an extension to junit :)
---------------------------------------------------------------------
View this comment:
  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MPECLIPSE-6&page=comments#action_15964

---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MPECLIPSE-6

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MPECLIPSE-6
    Summary: junit dependency should be added to classpath even when tests do not exist
       Type: Bug

     Status: Unassigned
   Priority: Trivial

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven-eclipse-plugin

   Assignee: 
   Reporter: Karl Kyck

    Created: Wed, 22 Oct 2003 5:19 AM
    Updated: Sun, 18 Jan 2004 5:07 PM
Environment: Windows XP SP1, P4 2.6GHz, 512Mb DDR 400

Description:
Created a fresh project.xml with a junit dependency so tests could be written immediately after the .project and .classpath entries were generated, however the junit dependency had not been added to the classpath.

As a test/fix this code

<j:if test="${pom.getDependency('junit') != null}">
  <j:set var="depVersion" value="${pom.getDependency('junit').getVersion()}"/>
</j:if>

was moved outside of the 

<j:if test="${unitTestSourcesPresent}">

if block, and it worked fine.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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