Re: Call System.setProperty("java.awt.headless", true)?
On 16 February 2011 23:15, Jesse Glick wrote: > On 02/15/2011 11:35 PM, Stephen Connolly wrote: >> >> there are enough people out there who >> use mvn exec:exec to run their swing apps > > Do you mean exec:java? (exec:exec -Dexec.executable="java" would be Yeah... I was using my phone that it sent at all is a miracle > unaffected.) It's not a very good idea to run an arbitrary app this way, > since there are plenty of opportunities for the result to be subtly > different than running the app in its own JVM, and you have no opportunity > to customize VM options. But it is probably true that a lot of people do it > anyway. Perhaps exec:java should fork unless explicitly requested to run > in-VM. Might be a good idea... but there would need to be tweaks over how and which system properties got passed through > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Call System.setProperty("java.awt.headless", true)?
On 02/15/2011 11:35 PM, Stephen Connolly wrote: there are enough people out there who use mvn exec:exec to run their swing apps Do you mean exec:java? (exec:exec -Dexec.executable="java" would be unaffected.) It's not a very good idea to run an arbitrary app this way, since there are plenty of opportunities for the result to be subtly different than running the app in its own JVM, and you have no opportunity to customize VM options. But it is probably true that a lot of people do it anyway. Perhaps exec:java should fork unless explicitly requested to run in-VM. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Call System.setProperty("java.awt.headless", true)?
That pretty much kills this idea. Too bad AWT doesn't have an *api* for creating a local headless bubble. On Tue, Feb 15, 2011 at 11:35 PM, Stephen Connolly wrote: > stupid phone. stop sending empty messages. > > ok. what i was trying to say us that there are enough people out there who > use mvn exec:exec to run their swing apps > > - Stephen > > --- > Sent from my Android phone, so random spelling mistakes, random nonsense > words and other nonsense are a direct result of using swype to type on the > screen > On 16 Feb 2011 02:53, "Jesse Glick" wrote: >> On 02/13/2011 04:54 PM, Benson Margulies wrote: >>> It seems to me that it might be a legitimate idea for maven itself to >>> just set headless, at least when invoked from the shell. >> >> So long as this is done from the CLI entry point classes, or bin/mvn, and > not in core classes where it could cause problems when running embedded in > some other container >> such as an IDE. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >> For additional commands, e-mail: users-h...@maven.apache.org >> > - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Re: Call System.setProperty("java.awt.headless", true)?
stupid phone. stop sending empty messages. ok. what i was trying to say us that there are enough people out there who use mvn exec:exec to run their swing apps - Stephen --- Sent from my Android phone, so random spelling mistakes, random nonsense words and other nonsense are a direct result of using swype to type on the screen On 16 Feb 2011 02:53, "Jesse Glick" wrote: > On 02/13/2011 04:54 PM, Benson Margulies wrote: >> It seems to me that it might be a legitimate idea for maven itself to >> just set headless, at least when invoked from the shell. > > So long as this is done from the CLI entry point classes, or bin/mvn, and not in core classes where it could cause problems when running embedded in some other container > such as an IDE. > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org >
Re: Call System.setProperty("java.awt.headless", true)?
- Stephen --- Sent from my Android phone, so random spelling mistakes, random nonsense words and other nonsense are a direct result of using swype to type on the screen On 16 Feb 2011 02:53, "Jesse Glick" wrote: > On 02/13/2011 04:54 PM, Benson Margulies wrote: >> It seems to me that it might be a legitimate idea for maven itself to >> just set headless, at least when invoked from the shell. > > So long as this is done from the CLI entry point classes, or bin/mvn, and not in core classes where it could cause problems when running embedded in some other container > such as an IDE. > > > - > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org >
Re: Call System.setProperty("java.awt.headless", true)?
On 02/13/2011 04:54 PM, Benson Margulies wrote: It seems to me that it might be a legitimate idea for maven itself to just set headless, at least when invoked from the shell. So long as this is done from the CLI entry point classes, or bin/mvn, and not in core classes where it could cause problems when running embedded in some other container such as an IDE. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
Call System.setProperty("java.awt.headless", true)?
Arguably, if perhaps impractically, maven should run with a security manager that prevented any one plugin from making some global change to the JVM that could have evil effects on other plugin. For example, from making the call in the subject. On the other, it's hard for me to think of a legitimate reason for any plugin to want non-headless operation. This concerns me because jfreechart, used in code I'm wrapping in a plugin, makes my Mac's GUI flash if headless isn't set. It seems to me that it might be a legitimate idea for maven itself to just set headless, at least when invoked from the shell. Yes, of course, I could put it in MAVEN_OPTS, and I will if this suggesting is met with derision or worse. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org