NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
jbentonOR
Joined: 21 Oct 2009 Posts: 3
|
Posted: Fri Jan 28, 2011 1:56 am Post subject: how do I get a log of system info and module info when starting maven netbeans app |
|
|
When I run a netbeans application built in ant, I get a nice log of system information:
>Log Session: Thursday, January 27, 2011 7:40:39 PM CST
>System Info:
Product Version = nb-ant-app 201010151251
Operating System = Windows XP version 5.2 running on amd64
...
and module information:
INFO [org.netbeans.core.startup.NbEvents]: Turning on modules:
org.openide.util.lookup [8.5 201010151251]
org.openide.util [8.9 201010151251]
org.openide.modules [7.21 201010151251]
org.openide.filesystems [7.42 201010151251]
...
Is there a way to get the same output when running a maven based netbeans app? |
|
| Back to top |
|
 |
Monezz
Joined: 18 Feb 2009 Posts: 254
|
Posted: Fri Jan 28, 2011 9:17 am Post subject: [platform-dev] Re: how do I get a log of system info and module info when starting maven netbeans app |
|
|
| Quote: |
Is there a way to get the same output when running a maven based netbeans app?
| running your application from netbeans should give you the same
information in an output window.
Alternatively you can also run your application from the command line,
from the application folder: mvn nbm:run-platform
This should give the information in the console.
If you still get no log information, check if
-J-Dnetbeans.logger.console=true is used in the run command |
|
| Back to top |
|
 |
Timothy Sparg Posted via mailing list.
|
Posted: Fri Jan 28, 2011 10:26 am Post subject: [platform-dev] Re: how do I get a log of system info and module info when starting maven netbeans app |
|
|
This didn't seem to work for me.
My run command looks like this
--- nbm-maven-plugin:3.3:run-platform (default-cli) @ application ---
Executing: cmd.exe /X /C
"C:\Temp\myApp-UI\application\target\foo\bin\foo.exe --userdir
C:\Temp\myApp-UI\application\target\userdir
-J-Dnetbeans.logger.console=true -J-ea --branding foo --jdkhome
"C:\Program Files\Java\jdk1.6.0_12""
Does the ordering of the arguments matter?
And If so is there another place to set them? I currently go Project >
properties > Actions > Run Project > Set Properties
and added -J-Dnetbeans.logger.console=true there
My workaround is to do add this to my class declaration
private IOProvider debug = IOProvider.get("DEBUG");
private InputOutput iO = debug.getIO("DEBUG", false);
private OutputWriter out = iO.getOut();
and then to output to the output window in my application
out.println("Whatever I want to output.");
-----Original Message-----
From: Timon Veenstra [mailto:address-removed]
Sent: 28 January 2011 11:16 AM
To: address-removed
Subject: [platform-dev] Re: how do I get a log of system info and module
info when starting maven netbeans app
| Quote: |
Is there a way to get the same output when running a maven based
| netbeans app?
running your application from netbeans should give you the same
information in an output window.
Alternatively you can also run your application from the command line,
from the application folder: mvn nbm:run-platform
This should give the information in the console.
If you still get no log information, check if
-J-Dnetbeans.logger.console=true is used in the run command |
|
| Back to top |
|
 |
jbentonOR
Joined: 21 Oct 2009 Posts: 3
|
Posted: Fri Jan 28, 2011 2:12 pm Post subject: Re: [platform-dev] Re: how do I get a log of system info and module info when starting maven netbeans app |
|
|
| Monezz wrote: | | Quote: |
Is there a way to get the same output when running a maven based netbeans app?
| running your application from netbeans should give you the same
information in an output window.
|
My issue is not about just getting output, I am getting that. What I am looking for is the content of the output. Somewhere in netbeans there is something that will print out the system information and module information. I don't think this information is maven or ant specific. It is either the way the app is run or it is the command line arguments. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|