proguard there were 5 instances of library classes depending on program classes

1,345 views
Skip to first unread message

karsten

unread,
Dec 27, 2008, 7:21:53 PM12/27/08
to pyx4me-users
Since today I get during the proguard processing:

[proguard] Warning: library class
cldcunit.runner.ReflectionTestCaseHelper exte
nds or implements program class cldcunit.runner.BaseTestCaseHelper
[proguard] Warning: library class
cldcunit.runner.ReflectionTestCaseHelper depe
nds on program class junit.framework.TestMethod
[proguard] Warning: library class
cldcunit.runner.ReflectionTestCaseHelper depe
nds on program class junit.framework.TestMethod
[proguard] Warning: library class
cldcunit.runner.ReflectionTestCaseHelper depe
nds on program class junit.framework.TestMethod
[proguard] Warning: library class
cldcunit.runner.ReflectionTestCaseHelper depe
nds on program class junit.framework.Test
[proguard] Warning: there were 5 instances of library classes
depending on prog
ram classes.
[proguard] You must avoid such dependencies, since the
program classes
will
[proguard] be processed, while the library classes will
remain unchang
ed.
[proguard] Error: Please correct the above warnings first.

Vlad Skarzhevskyy

unread,
Dec 27, 2008, 8:03:09 PM12/27/08
to pyx4me...@googlegroups.com
Hi Karsten
Do you have scope 'provided' for cldcunit-se in your maven pom?
Also exclude library cldcunit-se from proguard processing for J2ME application.
See the build for module 'bluecove-tester' in bluecove as example how
to do this.

So you have only one warning:
Note: junit.framework.TestCase: can't find dynamically referenced
class cldcunit.runner.ReflectionTestCaseHelper

--
Vlad

karsten

unread,
Dec 27, 2008, 8:21:25 PM12/27/08
to pyx4me-users
On 28 Dez., 02:03, "Vlad Skarzhevskyy" <skarzhevs...@gmail.com> wrote:
> Hi Karsten
>  Do you have scope 'provided' for cldcunit-se in your maven pom?

Yes.

>  Also exclude library cldcunit-se from proguard processing for J2ME application.
>  See the build for module 'bluecove-tester' in bluecove as example how

OK.
Reply all
Reply to author
Forward
0 new messages