This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 82833 - Cannot resolve path <install>/../../xtest/lib/junit.jar
Summary: Cannot resolve path <install>/../../xtest/lib/junit.jar
Status: RESOLVED WONTFIX
Alias: None
Product: apisupport
Classification: Unclassified
Component: Harness (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jesse Glick
URL: http://issues.apache.org/bugzilla/sho...
Keywords: RELNOTE
Depends on:
Blocks:
 
Reported: 2006-08-16 19:59 UTC by rrochat
Modified: 2006-08-17 21:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rrochat 2006-08-16 19:59:16 UTC
netbeans-5.5beta2

Steps:
1. Create module project.
2. Tools / Create JUnit tests.
3. Compile it. The build fails and the Output window shows:
"Failed to prepare tests"
which means that this is a regression in issue #73397.

The Output window says:
D:\netbeans-5.5beta2\harness\build.xml:115: Cannot resolve path
D:\netbeans-5.5beta2\..\..\xtest\lib\junit.jar

so I manually added a dependency for the "Junit Tests" module.
Then I see:
D:\netbeans-5.5beta2\harness\build.xml:66: The module org.yourorghere.module10
is not a friend of D:\netbeans-5.5beta2\ide7\modules\org-netbeans-modules-junit.jar

I don't know if this the same as issue #77907 (and issue #62325), but if so, I'd
think this would have been fixed in beta2.  If you use a wizard to set up the
tests, it should set everything up for you.
Comment 1 Jesse Glick 2006-08-16 22:56:13 UTC
Works for me in a 5.5 dev build. Please, before filing bug reports, check again
in a development build. I don't know if you're seeing issue #77907 but that was
fixed in the release55 branch at some point and still seems to be working.
Comment 2 Jesse Glick 2006-08-17 20:29:59 UTC
Can reproduce only if IDE is installed into a top-level subdir of the drive.
E.g. on Linux, if IDE installed in /froggle, get

[....]
/froggle/harness/build.xml:133: Cannot resolve path
/froggle/../../xtest/lib/junit.jar
        at org.apache.tools.ant.util.FileUtils.normalize(FileUtils.java:817)
        at org.apache.tools.ant.util.FileUtils.resolveFile(FileUtils.java:684)
        at org.apache.tools.ant.Project.resolveFile(Project.java:1292)
        at
org.apache.tools.ant.IntrospectionHelper$7.set(IntrospectionHelper.java:983)
        at
org.apache.tools.ant.IntrospectionHelper.setAttribute(IntrospectionHelper.java:393)
[....]
Comment 3 Jesse Glick 2006-08-17 21:31:40 UTC
Will fix for Ant 1.7. Then runs with harmless warning

Path element /froggle/../../xtest/lib/junit.jar doesn't exist.

Possible release note:

---%<---
If your IDE is installed in a top-level directory on your disk - e.g. /netbeans
on Unix, or C:\NetBeans on Windows - running unit tests for NetBeans module
projects will fail with the message 'Cannot resolve path
<install>/../../xtest/lib/junit.jar'. Workarounds: use Ant 1.7; or (recommended)
install NetBeans in at least a second-level directory such as C:\NetBeans\5.5;
or override target 'test-lib-init' in your module's build.xml to be a copy of
the original target minus lines containing 'xtest'.
---%<---