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 - VM Options not used for JUnit tests
Summary: VM Options not used for JUnit tests
Status: RESOLVED INVALID
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Project (show other bugs)
Version: 8.0
Hardware: PC All
: P3 normal (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-28 19:09 UTC by ent38
Modified: 2014-11-22 22:37 UTC (History)
1 user (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 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.