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 246072

Summary: VM Options not used for JUnit tests
Product: javaee Reporter: ent38 <ent38>
Component: Web ProjectAssignee: David Konecny <dkonecny>
Status: RESOLVED INVALID    
Severity: normal CC: ent38
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description ent38 2014-07-28 19:09:15 UTC
VM Options are used by JUnit tests for Java SE projects (i.e. it append something like "-Drun.jvmargs=...." to the Ant -f call).
For Java Web projects, VM Options are never passed to JUnit tests.
According to the VM Options field's description, these options should be passed.
Thx.


Product Version: NetBeans IDE 8.0 (Build 201403101706)
Updates: Updates available to version NetBeans 8.0 Patch 2
Java: 1.7.0_65; Java HotSpot(TM) 64-Bit Server VM 24.65-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_65-b19
System: Windows 8 version 6.2 running on amd64; Cp1252; en_US (nb)

Nothing relevant in NB logs (no warning, no error, nothing about VM Ooptions).
Comment 1 ent38 2014-11-22 22:37:00 UTC
Sorry, I used he wrong property.
I just discovered that I had to use the "run.jvmargs" for JavaSE project, and a different one for Java Web projects: "runmain.jvmargs".
I don't understand why NetBeans uses two different properties for the same goal, but this is not very important.
Closing this ticket.