I meed help

71 views
Skip to first unread message

张维

unread,
Jan 25, 2010, 1:47:42 AM1/25/10
to play-fr...@googlegroups.com
Hi,all
    I met a problem when I was going to measuring code coverage by Play!framework. I added "%test.module.cobertura=${play.path}/modules/cobertura" to the application.conf file, and restarted the application in test mode, but I didn't find code-coverage/index.html under the test-result folder after auto-test. Why? Could you help me?
    Thanks.
 
--
David

julien bille

unread,
Jan 25, 2010, 3:57:48 AM1/25/10
to play-fr...@googlegroups.com
Hi,

You must run play in test mode ( play test yourApp). Make test at http://localhost:9000/@tests .
And finally, for watch result, make "ctrl+c" for stop the play server, that launch coverage generation on yourApp/test-result/code-coverage/index.html.

2010/1/25 张维 <davi...@gmail.com>

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

张维

unread,
Jan 25, 2010, 4:40:02 AM1/25/10
to play-fr...@googlegroups.com
Thank you for your reply, julien!
I followed the steps such as you described, but I still failed  :(
After my making "ctrl+c" to stop the server process, I still haven't seen the code-coverage report file.
ps: Sorry, my English is poor.

2010/1/25 julien bille <julien...@gmail.com>



--
David

julien bille

unread,
Jan 25, 2010, 6:59:38 AM1/25/10
to play-fr...@googlegroups.com
You're right won't works on main repo, apologize !

I commit fix here https://code.launchpad.net/play-cobertura/trunk. Test it and send me if that's ok for you




2010/1/25 张维 <davi...@gmail.com>

张维

unread,
Jan 25, 2010, 9:43:31 AM1/25/10
to play-fr...@googlegroups.com
Thank you all the same. But could you tell me how I test it ? Check out the fixed code first? cvs or svn?Sorry if I make you discouraged. :)

2010/1/25 julien bille <julien...@gmail.com>



--
David

julien bille

unread,
Jan 25, 2010, 10:25:57 AM1/25/10
to play-fr...@googlegroups.com
No problem :)

check out this code
put it on module directory on playframework  => module/cobertura
write in yourApp/conf/application.conf : module.cobertura=${play.path}/modules/cobertura

./play test yourApp

If that's works, you have message like  => INFO  ~ Module cobertura is available (/opt/play/modules/cobertura)
and => INFO  ~ Cobertura plugin: saved coverage data for 126 classes


Go on web interface (probably http://localhost:9000/@tests )
Select all your test, start it
When is finish, make "ctrl+c" on your terminal
If that's work you have a message like =>

INFO  ~ Cobertura plugin: generating test coverage report
Cobertura: Loaded information on 126 classes.
Cobertura: Saved information on 126 classes.
Cobertura 1.9.2 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
Cobertura: Loaded information on 126 classes.
Report time: 1495ms
Cobertura 1.9.2 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
Cobertura: Loaded information on 126 classes.
Report time: 876ms
INFO  ~ Test coverage report has been generated: file:/yourApp/test-result/code-coverage/index.html

张维

unread,
Jan 26, 2010, 12:30:44 AM1/26/10
to play-fr...@googlegroups.com
Thank you for your detailed reply, but could you tell me how to check out the code? use Tortoisesvn? and type https://code.launchpad.net/play-cobertura/trunk as "url of repository"?
I met error:
Server sent unexpected return value (405 Method Not Allowed) in response to OPTIONS request for 'https://code.launchpad.net/play-cobertura/trunk'

2010/1/25 julien bille <julien...@gmail.com>



--
David

julien bille

unread,
Jan 26, 2010, 4:00:07 AM1/26/10
to play-fr...@googlegroups.com
bzr branch lp:play-cobertura/1.0


2010/1/26 张维 <davi...@gmail.com>

张维

unread,
Jan 26, 2010, 9:09:44 AM1/26/10
to play-fr...@googlegroups.com
Very glad! I succeed to check out the fixed code and update play! module, and eclipsify the project.
But after my making “ctrl+c” on my terminal,there is no information such as:

INFO  ~ Cobertura plugin: generating test coverage report
Cobertura: Loaded information on 126 classes.
Cobertura: Saved information on 126 classes.
Cobertura 1.9.2 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
Cobertura: Loaded information on 126 classes.
Report time: 1495ms
Cobertura 1.9.2 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
Cobertura: Loaded information on 126 classes.
Report time: 876ms
INFO  ~ Test coverage report has been generated: file:/yourApp/test-result/
code-coverage/index.html
 
I failed to fetch cobertura report again!
ps: I worked in windows DOS, not Linux shell.


2010/1/26 julien bille <julien...@gmail.com>



--
David

julien bille

unread,
Jan 26, 2010, 10:12:37 AM1/26/10
to play-fr...@googlegroups.com
I commit fix, but I not have  windows environnement for test. Do you confirm that fix problem ?

2010/1/26 张维 <davi...@gmail.com>

张维

unread,
Jan 26, 2010, 9:46:55 PM1/26/10
to play-fr...@googlegroups.com
Yes, I'm sure. Below is the terminal information,

...
10:35:40,250 INFO  ~ Module secure is available (D:\play-1.0.1\modules\secure)
10:35:40,250 INFO  ~ Module cobertura is available (D:\play-1.0.1\modules\cobertura)
10:35:40,250 INFO  ~ Module crud is available (D:\play-1.0.1\modules\crud)
10:35:40,250 INFO  ~ Module test-runner is available (D:\play-1.0.1\modules\test-runner)
10:35:41,406 INFO  ~
10:35:41,406 INFO  ~ Go to http://localhost:9000/@tests to run the tests
10:35:41,406 INFO  ~
10:35:41,406 WARN  ~ You're running Play! in DEV mode
10:35:41,750 INFO  ~ Listening for HTTP on port 9000 (Waiting a first request to start) ...
10:35:50,718 INFO  ~ Connected to jdbc:hsqldb:mem:playembed
10:35:52,546 INFO  ~ Application 'Yet Another Blog Engine' is now started !
~ ...
Terminate batch job(Y/N)?


I guess the reason may be that there is a confirmation before terminal in DOS, but no in Linux environment? Only guess.


2010/1/26 julien bille <julien...@gmail.com>



--
David

Ivan Meredith

unread,
Jan 27, 2010, 4:38:39 AM1/27/10
to play-fr...@googlegroups.com
In linux ctrl-c generates a SIGINT(?) signal. scripts and programs
are free to intercept it to run shutdown procedures etc. In windows
batch files i guess this is not the case. It might have to be done in
vbs or python for windows. (unless someone knows how to get around it)

2010/1/27 张维 <davi...@gmail.com>:

张维

unread,
Jan 27, 2010, 4:51:41 AM1/27/10
to play-fr...@googlegroups.com
Okey, thanks, but I hope this problem could be solved as soon as possible.

2010/1/27 Ivan Meredith <iv...@ivan.net.nz>



--
David

Philippe Gauthier

unread,
Jan 27, 2010, 10:02:00 AM1/27/10
to play-framework
Cobertura works fine on my windows XP.
It triggers itself on ctfl+c, even even if I have the confirmation
question.
I use Play 1.0.1
Regards

On 27 jan, 10:51, 张维 <davidz...@gmail.com> wrote:
> Okey, thanks, but I hope this problem could be solved as soon as possible.
>

> 2010/1/27 Ivan Meredith <i...@ivan.net.nz>


>
> > In linux ctrl-c generates a SIGINT(?) signal. scripts and programs
> > are free to intercept it to run shutdown procedures etc. In windows
> > batch files i guess this is not the case. It might have to be done in
> > vbs or python for windows. (unless someone knows how to get around it)
>

> > 2010/1/27 张维 <davidz...@gmail.com>:


> > > Yes, I'm sure. Below is the terminal information,
>
> > > ...
> > > 10:35:40,250 INFO ~ Module secure is available
> > > (D:\play-1.0.1\modules\secure)
> > > 10:35:40,250 INFO ~ Module cobertura is available
> > > (D:\play-1.0.1\modules\cobertura)
> > > 10:35:40,250 INFO ~ Module crud is available
> > (D:\play-1.0.1\modules\crud)
> > > 10:35:40,250 INFO ~ Module test-runner is available
> > > (D:\play-1.0.1\modules\test-runner)
> > > 10:35:41,406 INFO ~

> > > 10:35:41,406 INFO ~ Go tohttp://localhost:9000/@teststo run the tests


> > > 10:35:41,406 INFO ~
> > > 10:35:41,406 WARN ~ You're running Play! in DEV mode
> > > 10:35:41,750 INFO ~ Listening for HTTP on port 9000 (Waiting a first
> > > request to start) ...
> > > 10:35:50,718 INFO ~ Connected to jdbc:hsqldb:mem:playembed
> > > 10:35:52,546 INFO ~ Application 'Yet Another Blog Engine' is now started
> > !
> > > ~ ...
> > > Terminate batch job(Y/N)?
>
> > > I guess the reason may be that there is a confirmation before terminal in
> > > DOS, but no in Linux environment? Only guess.
>

> > > 2010/1/26 julien bille <julien.bi...@gmail.com>


>
> > >> I commit fix, but I not have windows environnement for test. Do you
> > >> confirm that fix problem ?
>

> > >> 2010/1/26 张维 <davidz...@gmail.com>


>
> > >>> Very glad! I succeed to check out the fixed code and update play!
> > module,
> > >>> and eclipsify the project.
> > >>> But after my making "ctrl+c" on my terminal,there is no information
> > such
> > >>> as:
> > >>> INFO ~ Cobertura plugin: generating test coverage report
> > >>> Cobertura: Loaded information on 126 classes.
> > >>> Cobertura: Saved information on 126 classes.
> > >>> Cobertura 1.9.2 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
> > >>> Cobertura: Loaded information on 126 classes.
> > >>> Report time: 1495ms
> > >>> Cobertura 1.9.2 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
> > >>> Cobertura: Loaded information on 126 classes.
> > >>> Report time: 876ms
> > >>> INFO ~ Test coverage report has been generated:
> > >>> file:/yourApp/test-result/
>
> > >>>> code-coverage/index.html
>
> > >>> I failed to fetch cobertura report again!
> > >>> ps: I worked in windows DOS, not Linux shell.
>

> > >>> 2010/1/26 julien bille <julien.bi...@gmail.com>
>
> > >>>> bzr branch lp:play-cobertura/1.0
>
> > >>>> 2010/1/26 张维 <davidz...@gmail.com>


>
> > >>>>> Thank you for your detailed reply, but could you tell me how to check
> > >>>>> out the code? use Tortoisesvn? and type

> > >>>>>https://code.launchpad.net/play-cobertura/trunkas "url of


> > repository"?
> > >>>>> I met error:
> > >>>>> Server sent unexpected return value (405 Method Not Allowed) in
> > >>>>> response to OPTIONS request for
> > >>>>> 'https://code.launchpad.net/play-cobertura/trunk'
>

> > >>>>> 2010/1/25 julien bille <julien.bi...@gmail.com>

> > >>>>>> 2010/1/25 张维 <davidz...@gmail.com>


>
> > >>>>>>> Thank you all the same. But could you tell me how I test it ? Check
> > >>>>>>> out the fixed code first? cvs or svn?Sorry if I make you
> > discouraged. :)
>

> > >>>>>>> 2010/1/25 julien bille <julien.bi...@gmail.com>


>
> > >>>>>>>> You're right won't works on main repo, apologize !
> > >>>>>>>> I commit fix herehttps://code.launchpad.net/play-cobertura/trunk
> > .
> > >>>>>>>> Test it and send me if that's ok for you
>

> > >>>>>>>> 2010/1/25 张维 <davidz...@gmail.com>


>
> > >>>>>>>>> Thank you for your reply, julien!
> > >>>>>>>>> I followed the steps such as you described, but I still failed
> > :(
> > >>>>>>>>> After my making "ctrl+c" to stop the server process, I still
> > >>>>>>>>> haven't seen the code-coverage report file.
> > >>>>>>>>> ps: Sorry, my English is poor.
>

> > >>>>>>>>> 2010/1/25 julien bille <julien.bi...@gmail.com>


>
> > >>>>>>>>>> Hi,
> > >>>>>>>>>> You must run play in test mode ( play test yourApp). Make test
> > >>>>>>>>>> athttp://localhost:9000/@tests.
> > >>>>>>>>>> And finally, for watch result, make "ctrl+c" for stop the play
> > >>>>>>>>>> server, that launch coverage generation on
> > >>>>>>>>>> yourApp/test-result/code-coverage/index.html.
>

> > >>>>>>>>>> 2010/1/25 张维 <davidz...@gmail.com>


>
> > >>>>>>>>>>> Hi,all
> > >>>>>>>>>>> I met a problem when I was going to measuring code coverage
> > >>>>>>>>>>> by Play!framework. I added
> > >>>>>>>>>>> "%test.module.cobertura=${play.path}/modules/cobertura" to the
> > >>>>>>>>>>> application.conf file, and restarted the application in test
> > mode, but I
> > >>>>>>>>>>> didn't find code-coverage/index.html under the test-result
> > folder after
> > >>>>>>>>>>> auto-test. Why? Could you help me?
> > >>>>>>>>>>> Thanks.
>
> > >>>>>>>>>>> --
> > >>>>>>>>>>> David
>
> > >>>>>>>>>>> --
> > >>>>>>>>>>> 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<play-framework%2Bunsu...@googlegroups.com>


> > .
> > >>>>>>>>>>> For more options, visit this group at
> > >>>>>>>>>>>http://groups.google.com/group/play-framework?hl=en.
>
> > >>>>>>>>>> --
> > >>>>>>>>>> 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<play-framework%2Bunsu...@googlegroups.com>


> > .
> > >>>>>>>>>> For more options, visit this group at
> > >>>>>>>>>>http://groups.google.com/group/play-framework?hl=en.
>
> > >>>>>>>>> --
> > >>>>>>>>> David
>
> > >>>>>>>>> --
> > >>>>>>>>> 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<play-framework%2Bunsu...@googlegroups.com>


> > .
> > >>>>>>>>> For more options, visit this group at
> > >>>>>>>>>http://groups.google.com/group/play-framework?hl=en.
>
> > >>>>>>>> --
> > >>>>>>>> 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<play-framework%2Bunsu...@googlegroups.com>


> > .
> > >>>>>>>> For more options, visit this group at
> > >>>>>>>>http://groups.google.com/group/play-framework?hl=en.
>
> > >>>>>>> --
> > >>>>>>> David
>
> > >>>>>>> --
> > >>>>>>> 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<play-framework%2Bunsu...@googlegroups.com>


> > .
> > >>>>>>> For more options, visit this group at
> > >>>>>>>http://groups.google.com/group/play-framework?hl=en.
>
> > >>>>>> --
> > >>>>>> 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<play-framework%2Bunsu...@googlegroups.com>


> > .
> > >>>>>> For more options, visit this group at
> > >>>>>>http://groups.google.com/group/play-framework?hl=en.
>
> > >>>>> --
> > >>>>> David
>
> > >>>>> --
> > >>>>> You received this message because you are subscribed to the Google
> > >>>>> Groups "play-framework" group.
> > >>>>> To
>

> ...
>
> plus de détails >>

Marcin Cetnarski

unread,
Feb 7, 2010, 2:51:52 PM2/7/10
to play-framework
Does anyone have problems with this module? On my windows XP it
doesn't work - neither in version from distribution (1.0.1) nor from
branch lp:play-cobertura/1.0.

Is there a open issue for this bug?

On 27 Sty, 16:02, Philippe Gauthier <gauthier.p...@gmail.com> wrote:
> Coberturaworks fine on my windows XP.


> It triggers itself on ctfl+c, even even if I have the confirmation
> question.
> I use Play 1.0.1
> Regards
>

Best Regards
Marcin Cetnarski

Jimmy Larsson

unread,
Feb 21, 2010, 4:27:58 AM2/21/10
to play-framework
Yes, I have the same issue on OSX (10.6.2).

Ctrl-C does not dump the cobertura result, neither does doing a "kill -
INT" on the server process.

It outputs this on startup:
10:16:58,437 INFO ~ Module cobertura is available (/Users/jimmy/bin/
play-1.0.1/modules/cobertura)

So I expect that the module is loaded fine. (Working my way through
the blog tutorial)

/BR,
Jimmy


On Feb 7, 8:51 pm, Marcin Cetnarski <marcin.cetnar...@gmail.com>
wrote:

Andrew Louth

unread,
Mar 4, 2010, 6:20:12 PM3/4/10
to play-framework
I'm also experiencing this problem on Windows XP.

Here's what I'm doing.

run command "play test"
run the tests via the web interface
ctrl-c

but no code-coverage file is generated.

I also tried play auto-test but still no joy.

It would be nice if that information could be generated without
needing to stop the application, by having a link appear after running
the tests.

p.s. this framework is awesome!

Guillaume Bort

unread,
Mar 5, 2010, 3:32:37 AM3/5/10
to play-fr...@googlegroups.com
The cobertura module is now a standalone project:

https://launchpad.net/play-cobertura

You should report the bug here.

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

julien bille

unread,
Mar 5, 2010, 4:15:41 AM3/5/10
to play-fr...@googlegroups.com
Yes, you can try latest source for launchpad and make me a return please. 
Actually coberbutra module wait play shutdown for generate report.

I open a bug for generate report without stop application ( https://bugs.launchpad.net/play-cobertura/+bug/532494 )


2010/3/5 Guillaume Bort <guillau...@gmail.com>

Andre Desroches

unread,
Apr 8, 2010, 5:21:53 PM4/8/10
to play-framework
Is this supposed to be working in 1.0.2 ? I have play 1.0.2 and
installed the cobertura module 1.1, enabled it in my configuration but
now I get this error when I do a play test :

14:19:54,210 INFO ~ Module cobertura is available (/play-1.0.2/
modules/cobertura-1.1)
14:19:54,210 INFO ~ Module crud is available (/play-1.0.2/modules/
crud)
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad
version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:676)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:
124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:317)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:375)
at play.modules.cobertura.CoberturaPlugin.initCobertura(Unknown
Source)
at play.modules.cobertura.CoberturaPlugin.onLoad(Unknown Source)
at play.Play.loadPlugins(Play.java:526)
at play.Play.init(Play.java:241)
at play.server.Server.main(Server.java:85)

Anyone else see this error or have any idea how to fix it?


On Mar 5, 2:15 am, julien bille <julien.bi...@gmail.com> wrote:
> Yes, you can try latest source for launchpad and make me a return please.
> Actually coberbutra module wait play shutdown for generate report.
>
> I open a bug for generate report without stop application (https://bugs.launchpad.net/play-cobertura/+bug/532494)
>
> 2010/3/5 Guillaume Bort <guillaume.b...@gmail.com>
>
> > The cobertura module is now a standalone project:
>
> >https://launchpad.net/play-cobertura
>
> > You should report the bug here.
>
> > On Fri, Mar 5, 2010 at 12:20 AM, Andrew Louth <andrew.lo...@gmail.com>
> > wrote:
> > > I'm also experiencing this problem on Windows XP.
>
> > > Here's what I'm doing.
>
> > > run command "play test"
> > > run the tests via the web interface
> > > ctrl-c
>
> > > but no code-coverage file is generated.
>
> > > I also tried play auto-test but still no joy.
>
> > > It would be nice if that information could be generated without
> > > needing to stop the application, by having a link appear after running
> > > the tests.
>
> > > p.s. this framework is awesome!
>
> > > --
> > > 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<play-framework%2Bunsu...@googlegroups.com>
> > .
> > > For more options, visit this group at
> >http://groups.google.com/group/play-framework?hl=en.
>
> > --
> > 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<play-framework%2Bunsu...@googlegroups.com>
> > .

julien bille

unread,
Apr 8, 2010, 5:52:17 PM4/8/10
to play-fr...@googlegroups.com
What is your jdk version ?

2010/4/8 Andre Desroches <andredesr...@gmail.com>

Andre Desroches

unread,
Apr 9, 2010, 10:56:41 AM4/9/10
to play-framework
1.5.0_22

Do I need a newer version?

On Apr 8, 2:52 pm, julien bille <julien.bi...@gmail.com> wrote:
> What is your jdk version ?
>

> 2010/4/8 Andre Desroches <andredesroches2...@gmail.com>

> > <play-framework%2Bunsu...@googlegroups.com<play-framework%252Buns...@googlegroups.com>


>
> > > > .
> > > > > For more options, visit this group at
> > > >http://groups.google.com/group/play-framework?hl=en.
>
> > > > --
> > > > 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<play-framework%2Bunsu...@googlegroups.com>

> > <play-framework%2Bunsu...@googlegroups.com<play-framework%252Buns...@googlegroups.com>

Andre Desroches

unread,
Apr 9, 2010, 10:57:12 AM4/9/10
to play-framework
Also, I'm running on OS X 10.5.8

On Apr 8, 2:52 pm, julien bille <julien.bi...@gmail.com> wrote:

> What is your jdk version ?
>

> 2010/4/8 Andre Desroches <andredesroches2...@gmail.com>

> > <play-framework%2Bunsu...@googlegroups.com<play-framework%252Buns...@googlegroups.com>


>
> > > > .
> > > > > For more options, visit this group at
> > > >http://groups.google.com/group/play-framework?hl=en.
>
> > > > --
> > > > 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<play-framework%2Bunsu...@googlegroups.com>

> > <play-framework%2Bunsu...@googlegroups.com<play-framework%252Buns...@googlegroups.com>

julien bille

unread,
Apr 9, 2010, 12:03:20 PM4/9/10
to play-fr...@googlegroups.com
That did not require special version. I never try with jdk 1.5 but that should work because I precise target 1.5 in ant task. But your error make me think it's not the case.

You can try to recompile module with ant -Dplay.path=/your/play/path, or if you not have reason for use jdk 1.5, updage it. I will try with your jdk

2010/4/9 Andre Desroches <andredesr...@gmail.com>

Andre Desroches

unread,
Apr 9, 2010, 4:59:52 PM4/9/10
to play-framework
Tried recompiling, but it wouldn't compile, got a rather long compiler
dump (30 errors), but here's the first one:
[mkdir] Created dir: /play-1.0.2/modules/cobertura-1.1/tmp/classes
[javac] Compiling 1 source file to /play-1.0.2/modules/
cobertura-1.1/tmp/classes
[javac] /play-1.0.2/modules/cobertura-1.1/src/play/modules/
cobertura/CoberturaPlugin.java:39: cannot find symbol
[javac] symbol : class Logger
[javac] location: package play
[javac] import play.Logger;
[javac] ^

Everthing was a cannot find symbol, but i passed in ant -Dplay.path=/
play-1.0.2 which is my path to play. Didn't seem to find the play
framework at all though. Also tried compiling against play 1.0.1 but
got the same errors.


On Apr 9, 9:03 am, julien bille <julien.bi...@gmail.com> wrote:
> That did not require special version. I never try with jdk 1.5 but that
> should work because I precise target 1.5 in ant task. But your error make me
> think it's not the case.
>
> You can try to recompile module with ant -Dplay.path=/your/play/path, or if
> you not have reason for use jdk 1.5, updage it. I will try with your jdk
>

> 2010/4/9 Andre Desroches <andredesroches2...@gmail.com>

> > > > <play-framework%2Bunsu...@googlegroups.com<play-framework%252Buns...@googlegroups.com>
> > <play-framework%252Buns...@googlegroups.com<play-framework%25252Bun...@googlegroups.com>


>
> > > > > > .
> > > > > > > For more options, visit this group at
> > > > > >http://groups.google.com/group/play-framework?hl=en.
>
> > > > > > --
> > > > > > 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<play-framework%2Bunsu...@googlegroups.com>
> > <play-framework%2Bunsu...@googlegroups.com<play-framework%252Buns...@googlegroups.com>
>

> > > > <play-framework%2Bunsu...@googlegroups.com<play-framework%252Buns...@googlegroups.com>
> > <play-framework%252Buns...@googlegroups.com<play-framework%25252Bun...@googlegroups.com>

julien bille

unread,
Apr 11, 2010, 9:03:57 AM4/11/10
to play-fr...@googlegroups.com
For recompile module it's necessary to recompile framework.

Funny bug! I success to reproduce your error with jdk5 and  I solve it by adding "source=1.5" in ant task. For some unknown reason target option is not sufficient in this case.

I publish new version with this fix, please make me a return.

2010/4/9 Andre Desroches <andredesr...@gmail.com>
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.

Andre Desroches

unread,
Apr 13, 2010, 1:06:13 PM4/13/10
to play-framework
It didn't give an error this time after installing 1.2 when I run it
in eclipse, but it also doesn't generate any reports after I run the
tests and stop the execution (I'm running on OS X).

Then I tried running from the command line and it gave the same Bad
version number error.

On Apr 11, 6:03 am, julien bille <julien.bi...@gmail.com> wrote:
> For recompile module it's necessary to recompile framework.
>
> Funny bug! I success to reproduce your error with jdk5 and  I solve it by
> adding "source=1.5" in ant task. For some unknown reason target option is
> not sufficient in this case.
>
> I publish new version with this fix, please make me a return.
>

> 2010/4/9 Andre Desroches <andredesroches2...@gmail.com>

> > > > > > <play-framework%2Bunsu...@googlegroups.com<play-framework%252Buns...@googlegroups.com>
> > <play-framework%252Buns...@googlegroups.com<play-framework%25252Bun...@googlegroups.com>
>
> > > > <play-framework%252Buns...@googlegroups.com<play-framework%25252Bun...@googlegroups.com>
> > <play-framework%25252Bun...@googlegroups.com<play-framework%2525252Bu...@googlegroups.com>


>
> > > > > > > > .
> > > > > > > > > For more options, visit this group at
> > > > > > > >http://groups.google.com/group/play-framework?hl=en.
>
> > > > > > > > --
> > > > > > > > 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<play-framework%2Bunsu...@googlegroups.com>
> > <play-framework%2Bunsu...@googlegroups.com<play-framework%252Buns...@googlegroups.com>
>
> > > > <play-framework%2Bunsu...@googlegroups.com<play-framework%252Buns...@googlegroups.com>
> > <play-framework%252Buns...@googlegroups.com<play-framework%25252Bun...@googlegroups.com>
>

> > > > > > <play-framework%2Bunsu...@googlegroups.com<play-framework%252Buns...@googlegroups.com>
> > <play-framework%252Buns...@googlegroups.com<play-framework%25252Bun...@googlegroups.com>
>
> > > > <play-framework%252Buns...@googlegroups.com<play-framework%25252Bun...@googlegroups.com>
> > <play-framework%25252Bun...@googlegroups.com<play-framework%2525252Bu...@googlegroups.com>


>
> > > > > > > > .
> > > > > > > > For more options, visit this group at
> > > > > > > >http://groups.google.com/group/play-framework?hl=en.
>
> > > > > > --
> > > > > > 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<play-framework%2Bunsu...@googlegroups.com>
> > <play-framework%2Bunsu...@googlegroups.com<play-framework%252Buns...@googlegroups.com>
>
> > > > <play-framework%2Bunsu...@googlegroups.com<play-framework%252Buns...@googlegroups.com>
> > <play-framework%252Buns...@googlegroups.com<play-framework%25252Bun...@googlegroups.com>
>
> > > > > > .
> > > > > > For more options, visit this group at
> > > > > >http://groups.google.com/group/play-framework?hl=en.
>
> > > > > --
> > > > > 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

julien bille

unread,
Apr 19, 2010, 4:15:20 PM4/19/10
to play-fr...@googlegroups.com
I works on version without Shutdown hooks for help person that have some troubles with that.

2010/4/13 Andre Desroches <andredesr...@gmail.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.


--
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.
Reply all
Reply to author
Forward
0 new messages