/src folder in play module ?

79 views
Skip to first unread message

orefalo

unread,
Nov 11, 2010, 11:51:54 PM11/11/10
to play-framework
Can someone explain what this folder is made for ? should we use it
for module development ?

Guillaume Bort

unread,
Nov 12, 2010, 4:02:06 AM11/12/10
to play-fr...@googlegroups.com
It can contains simple Java source that will be compiler in a jar in
the lib/ directory when you run the ant script.

On Fri, Nov 12, 2010 at 5:51 AM, orefalo <ore...@yahoo.com> wrote:
> Can someone explain what this folder is made for ? should we use it
> for module development ?
>

> --
> 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

orefalo

unread,
Nov 12, 2010, 9:45:21 AM11/12/10
to play-framework
Interesting, this is not documented either.

So in my recatcha module, I have the FastTag defined in app/com/
crionics/recaptcha/TestFastTag.java

I should really move these java file to the src folder right ?


On Nov 12, 4:02 am, Guillaume Bort <guillaume.b...@gmail.com> wrote:
> It can contains simple Java source that will be compiler in a jar in
> the lib/ directory when you run the ant script.
>
> On Fri, Nov 12, 2010 at 5:51 AM, orefalo <oref...@yahoo.com> wrote:
> > Can someone explain what this folder is made for ? should we use it
> > for module development ?
>
> > --
> > 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

Pascal Voitot Dev

unread,
Nov 12, 2010, 9:53:10 AM11/12/10
to play-fr...@googlegroups.com
something I found useful to know when you develop:
java files in app dir are recompiled automatically at runtime (even the one in your local modules).
java files in src imply to rebuild the jar and stop/run play

Pascal

Guillaume Bort

unread,
Nov 12, 2010, 12:02:39 PM11/12/10
to play-fr...@googlegroups.com
No sorry, FastTag classes are discovered at runtime and must live in
the app/ folder. But utility classes that have nothing to do with
Play, and Play plugin should be statically compiled and packaged in a
jar file.

On Fri, Nov 12, 2010 at 3:45 PM, orefalo <ore...@yahoo.com> wrote:

> 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

orefalo

unread,
Nov 12, 2010, 1:32:17 PM11/12/10
to play-framework
Guillaume, Pascal,

I am writing an FAQ and will surely include this information in it.

Guillaume Bort

unread,
Nov 12, 2010, 1:53:18 PM11/12/10
to play-fr...@googlegroups.com
Thank you, feel free to send us a pull request with changes of the
modules.textile file.

> 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

Daniel Guryca

unread,
Nov 12, 2010, 3:03:31 PM11/12/10
to play-fr...@googlegroups.com
Yes that's it atleast I think so.

Daniel

Reply all
Reply to author
Forward
0 new messages