preslavrachev / maven-play-plugin

Automatically exported from code.google.com/p/maven-play-plugin
0 stars 0 forks source link

Set "application.path" and "play.id" system properties when initializing Play engine in Surefire #120

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Now initialization looks like:

        Play.frameworkPath = playHome;
        Play.init( applicationPath, playId );
        if ( !Play.started )
        {
            Play.start();
        }

Although "applicationPath" is initialized, when I want to use it in 
"log4j.properties" configuration file like this:

log4j.appender.Rolling.File=${application.path}/logs/application.log

it does not work.

It works in pure Play!, because Play's Python scripts add "application.path" 
and "play.id" System property setting parameters ("-D" JVM options) to Java 
invocation.

The same behavior is implemented in Play! server starting mojos of this Maven 
plugin from long time, but it's not implemented in Play! Surefire provider.

Original issue reported on code.google.com by gslowiko...@gmail.com on 19 Mar 2013 at 2:32

GoogleCodeExporter commented 9 years ago
Implemented in svn rev.11554.

Original comment by gslowiko...@gmail.com on 19 Mar 2013 at 2:33

GoogleCodeExporter commented 9 years ago
Snapshot deployed

Original comment by gslowiko...@gmail.com on 19 Mar 2013 at 2:34