NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

how do I get a log of system info and module info when starting maven netbeans app

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users
View previous topic :: View next topic  
Author Message
jbentonOR



Joined: 21 Oct 2009
Posts: 3

PostPosted: 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 Reply with quote

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

PostPosted: 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 Reply with quote

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.





PostPosted: 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 Reply with quote

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

PostPosted: 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 Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo