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 252548 - Warning about {test.unit.lib.cp} on a new platform application
Summary: Warning about {test.unit.lib.cp} on a new platform application
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: JUnit (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Theofanis Oikonomou
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-22 11:12 UTC by cezariusz
Modified: 2016-03-16 13:25 UTC (History)
3 users (show)

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 cezariusz 2015-05-22 11:12:00 UTC
Product Version: NetBeans IDE Dev (Build 201505160001)
Java: 1.8.0_45; Java HotSpot(TM) 64-Bit Server VM 25.45-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_45-b14
System: Windows 7 version 6.1 running on amd64; UTF-8; pl_PL (nb)

Create a new Platform Application, add a module, build using JDK 1.8, and you will get the following warning:

warning: [options] bootstrap class path not set in conjunction with -source 1.6

Well, change the source level of the module to 1.8 and the warning is gone, ok. Now add a test case to the module, select JUnit 4.0. Clean, build and run module test, and you will get another warning:

warning: [path] bad path element "R:\Work\DemoApp\SomeCode\${test.unit.lib.cp}": no such file or directory

I have no idea how to avoid that warning.
Comment 1 cezariusz 2015-05-25 11:59:59 UTC
Our continuous integration server checks for any warnings in the build process, so we have to avoid them as much as possible. After some analysis of ANT files I've found out, that I can avoid this warning by adding the following line to platform.properties:
test.unit.lib.cp=test
I'm not sure if that's the best solution, but at least it works. Anyway I think, that IDE should do it's best to avoid such warnings by default.