core library dependency query

2 views
Skip to first unread message

tomgibara

unread,
May 6, 2008, 4:14:51 PM5/6/08
to zxing
I've just spent a little time incorporating zxing 0.6 into my
Moseycode android application. The library has been great - very
straightforward to use.

I've just checked out the source from SVN with the intention of
delving more deeply. At this time, I'm primarily interested in the
core library so I imported it as a separate project into Eclipse.
However, AbstractBlackBoxTestCase references
BufferedImageMonochromeBitmapSource from javase, generating a circular
reference between the projects.

The dependency difficulty you have is clear given your comments on
Issue 27. So is this a fixed decision or should I log it as an issue
(possibly resolvable by supplying the test cases with their own
implementation compiled against a different bootclasspath)?

Tom.

srowen

unread,
May 6, 2008, 5:01:03 PM5/6/08
to zxing
Yeah this deserves explanation... really "core/test" is a different
module from "core". The test code doesn't need to run in JavaME only,
so can and does depend on, say, Java 5 in all its glory, JUnit, and
javase classes.

Does it present a problem in practice? I think all the scripts work,
and heh, my personal IntelliJ setup is quite satisfied with it. I
think it would be a bit clearer if I had made a "core-test" versus
"core/test" directory for it, but maybe not quite worth fixing now.

tomgibara

unread,
May 6, 2008, 5:17:37 PM5/6/08
to zxing
No, it's not a problem.

I overlooked the build-test target in the core/build.xml ant file and
assumed that core/test was not a module in its own right because it
doesn't have its own build script.

Tom.
Reply all
Reply to author
Forward
0 new messages