run.args.extra= -J-D....

View: New views
3 Messages — Rating Filter:   Alert me  

run.args.extra= -J-D....

by Ernie Rael :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In a module suite's nbproject/project.properties file there is
    run.args.extra=
-J-Dcom.raelity.jvi.motd=file:///c:/a/src/jvi-docs/htdocs/motd
and in a module there is
    String s = System.getProperty("com.raelity.jvi.motd");
The variable 's' is always null when I run NB from NB. I have tried
quoting the run.args.extra in various ways, but no luck. I'm working on
windows.

Any idea what dumb thing I'm doing?

-ernie

Re: run.args.extra= -J-D....

by Wade Chandler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Should work. Have you tried a clean and build maybe? If you had built prior to adding this that could be it I think.

Wade

 ==================
Wade Chandler, CCE
Software Engineer and Developer
Certified Forensic Computer Examiner
NetBeans Dream Team Member and Contributor


http://www.certified-computer-examiner.com
http://wiki.netbeans.org/wiki/view/NetBeansDreamTeam
http://www.netbeans.org



----- Original Message ----

> From: Ernie Rael <err@...>
> To: dev@...
> Sent: Saturday, July 4, 2009 1:59:47 PM
> Subject: [openide-dev] run.args.extra= -J-D....
>
> In a module suite's nbproject/project.properties file there is
>    run.args.extra=
> -J-Dcom.raelity.jvi.motd=file:///c:/a/src/jvi-docs/htdocs/motd
> and in a module there is
>    String s = System.getProperty("com.raelity.jvi.motd");
> The variable 's' is always null when I run NB from NB. I have tried quoting the
> run.args.extra in various ways, but no luck. I'm working on windows.
>
> Any idea what dumb thing I'm doing?
>
> -ernie


Re: run.args.extra= -J-D....

by Ernie Rael :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Filed issue http://www.netbeans.org/issues/show_bug.cgi?id=168126

If I run the "debug" target from the context menu over suite>ImportantFiles>BuildScript then it works ok, as opposed to using the toolbar button "Debug Main Project".

-ernie

Wade Chandler wrote:
Should work. Have you tried a clean and build maybe? If you had built prior to adding this that could be it I think.

Wade

 ==================
Wade Chandler, CCE
Software Engineer and Developer
Certified Forensic Computer Examiner
NetBeans Dream Team Member and Contributor


http://www.certified-computer-examiner.com
http://wiki.netbeans.org/wiki/view/NetBeansDreamTeam
http://www.netbeans.org



----- Original Message ----
  
From: Ernie Rael err@...
To: dev@...
Sent: Saturday, July 4, 2009 1:59:47 PM
Subject: [openide-dev] run.args.extra= -J-D....

In a module suite's nbproject/project.properties file there is
   run.args.extra= 
-J-Dcom.raelity.jvi.motd=file:///c:/a/src/jvi-docs/htdocs/motd
and in a module there is
   String s = System.getProperty("com.raelity.jvi.motd");
The variable 's' is always null when I run NB from NB. I have tried quoting the 
run.args.extra in various ways, but no luck. I'm working on windows.

Any idea what dumb thing I'm doing?

-ernie