Launch app from IDEA got system property problem

Hi, I'm facing some difficulties with IDEA and system properties.

My app running under OSGi framework (in my case Apache Felix).
And I don't use any OSGi plugin, I just launch felix as a standard java application.

Basically it works well.
But in OSGi, all the system properties can be loaded from a file, in felix it's the "./conf/system.properties" file.

It not works when launch from IDEA, the property value is not what I set.
But it DO WORKS when launching from IDEA in debug mode, or launching from command line.

I noticed the difference between debug/run is:
The app is invoked by com.intellij.rt.execution.application.AppMain when running(not debug).

I'm not sure this is the problem.

Is there any settings I can tweak?

Regards
LongkerDandy

1 comment
Comment actions Permalink

Hello,

AppMain class is used to provide 'thread dump' and 'exit' actions. You can switch it off by using idea.no.launcher=true option in
IDEA_HOME/bin/idea.properties file.

Hi, I'm facing some difficulties with IDEA and system properties.

>

My app running under OSGi framework (in my case Apache Felix).
And I don't use any OSGi plugin, I just launch felix as a standard java application.

>

Basically it works well.
But in OSGi, all the system properties can be loaded from a file, in felix it's the "./conf/system.properties" file.

>

It not works when launch from IDEA, the property value is not what I set.
But it DO WORKS when launching from IDEA in debug mode, or launching from command line.

>

I noticed the difference between debug/run is:
The app is invoked by com.intellij.rt.execution.application.AppMain when running(not debug).

>

I'm not sure this is the problem.

>

Is there any settings I can tweak?



--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0

Please sign in to leave a comment.