Setting play id in Intellij Idea

82 views
Skip to first unread message

Ben Rometsch

unread,
Oct 28, 2010, 10:20:48 AM10/28/10
to play-framework
I run my play app in idea with:


A run configuration with "play.server.Server" as the main class.

Then in the VM parameters:

-Dapplication.path=<the path to your app directory> -Djavaagent=<path
to play.jar>

But I can't figure out how to supply the ID to play, and it seems to
ignore the default id? Anyone know how to do this or if there is a
better way to run play in Idea?

Guillaume Bort

unread,
Oct 28, 2010, 12:44:09 PM10/28/10
to play-fr...@googlegroups.com
Just add -Dplay.id=yop

> --
> You received this message because you are subscribed to the Google Groups "play-framework" group.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
>
>

--
Guillaume Bort, http://guillaume.bort.fr

For anything work-related, use g...@zenexity.fr; for everything else,
write guillau...@gmail.com

ryank

unread,
Oct 29, 2010, 1:58:09 AM10/29/10
to play-framework
All of the defs in ScalaController.scala are not recognized by
IntelliJ. For example when I load the YABE scala sample in intellij
it compiles fine, but IntelliJ doesn't recognize Template and Action
in application.scala.

Thank you,
Ryan

On Oct 28, 10:44 am, Guillaume Bort <guillaume.b...@gmail.com> wrote:
> Just add -Dplay.id=yop
>
>
>
> On Thu, Oct 28, 2010 at 4:20 PM, Ben Rometsch <b...@solidstategroup.com> wrote:
> > I run my play app in idea with:
>
> > A run configuration with "play.server.Server" as the main class.
>
> > Then in the VM parameters:
>
> > -Dapplication.path=<the path to your app directory> -Djavaagent=<path
> > to play.jar>
>
> > But I can't figure out how to supply the ID to play, and it seems to
> > ignore the default id? Anyone know how to do this or if there is a
> > better way to run play in Idea?
>
> > --
> > You received this message because you are subscribed to the Google Groups "play-framework" group.
> > To post to this group, send email to play-fr...@googlegroups.com.
> > To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/play-framework?hl=en.
>
> --
> Guillaume Bort,http://guillaume.bort.fr
>
> For anything work-related, use g...@zenexity.fr; for everything else,
> write guillaume.b...@gmail.com

Ben Rometsch

unread,
Oct 29, 2010, 9:34:38 AM10/29/10
to play-framework
Great, thanks. Maybe add to the documentation?

On Oct 28, 5:44 pm, Guillaume Bort <guillaume.b...@gmail.com> wrote:
> Just add -Dplay.id=yop
>
>
>
>
>
>
>
>
>
> On Thu, Oct 28, 2010 at 4:20 PM, Ben Rometsch <b...@solidstategroup.com> wrote:
> > I run my play app in idea with:
>
> > A run configuration with "play.server.Server" as the main class.
>
> > Then in the VM parameters:
>
> > -Dapplication.path=<the path to your app directory> -Djavaagent=<path
> > to play.jar>
>
> > But I can't figure out how to supply the ID to play, and it seems to
> > ignore the default id? Anyone know how to do this or if there is a
> > better way to run play in Idea?
>
> > --
> > You received this message because you are subscribed to the Google Groups "play-framework" group.
> > To post to this group, send email to play-fr...@googlegroups.com.
> > To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/play-framework?hl=en.
>
> --
> Guillaume Bort,http://guillaume.bort.fr
>
> For anything work-related, use g...@zenexity.fr; for everything else,
> write guillaume.b...@gmail.com
Reply all
Reply to author
Forward
0 new messages