logo separator

[mkgmap-dev] ant test supposed to work?

From Simon Josefsson simon at josefsson.org on Tue Aug 25 23:18:54 BST 2009

In building other java applications, I'm used to checking that the build
is sane by invoking 'ant test'.  This fails for me with mkgmap.  Is this
a known problem, or something I can fix?

/Simon

jas at mocca:~/src/mkgmap$ ant
Buildfile: build.xml

prepare:
    [mkdir] Created dir: /home/jas/src/mkgmap/build/classes

compile:
    [javac] Compiling 271 source files to /home/jas/src/mkgmap/build/classes
    [javac] Note: /home/jas/src/mkgmap/src/uk/me/parabola/mkgmap/general/RoadNetwork.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.

build:
     [copy] Copying 35 files to /home/jas/src/mkgmap/build/classes

dist:
    [mkdir] Created dir: /home/jas/src/mkgmap/dist
    [mkdir] Created dir: /home/jas/src/mkgmap/dist/doc/api
      [jar] Building jar: /home/jas/src/mkgmap/dist/mkgmap.jar
     [copy] Copying 8 files to /home/jas/src/mkgmap/dist/doc
     [copy] Copying 34 files to /home/jas/src/mkgmap/dist

BUILD SUCCESSFUL
Total time: 3 seconds
jas at mocca:~/src/mkgmap$ ant test
Buildfile: build.xml

prepare:

compile:

build:

build-test:
    [mkdir] Created dir: /home/jas/src/mkgmap/build/test
    [javac] Compiling 28 source files to /home/jas/src/mkgmap/build/test
    [javac] /home/jas/src/mkgmap/test/func/lib/RangeMatcher.java:16: package org.hamcrest does not exist
    [javac] import org.hamcrest.BaseMatcher;
    [javac]                    ^
    [javac] /home/jas/src/mkgmap/test/func/lib/RangeMatcher.java:17: package org.hamcrest does not exist
    [javac] import org.hamcrest.Description;
    [javac]                    ^
    [javac] /home/jas/src/mkgmap/test/func/lib/RangeMatcher.java:26: cannot find symbol
    [javac] symbol: class BaseMatcher
    [javac] public class RangeMatcher extends BaseMatcher<Integer> {
    [javac]                                   ^
    [javac] /home/jas/src/mkgmap/test/func/lib/RangeMatcher.java:46: cannot find symbol
    [javac] symbol  : class Description
    [javac] location: class func.lib.RangeMatcher
    [javac] 	public void describeTo(Description description) {
    [javac] 	                       ^
    [javac] /home/jas/src/mkgmap/test/func/SimpleTest.java:70: cannot access org.hamcrest.Matcher
    [javac] class file for org.hamcrest.Matcher not found
    [javac] 				assertThat("RGN size", size, new RangeMatcher(138300));
    [javac] 				^
    [javac] /home/jas/src/mkgmap/test/func/SimpleTest.java:108: cannot find symbol
    [javac] symbol  : method assertThat(java.lang.String,int,func.lib.RangeMatcher)
    [javac] location: class func.SimpleTest
    [javac] 				assertThat("RGN size", size, new RangeMatcher(2762));
    [javac] 				^
    [javac] /home/jas/src/mkgmap/test/func/route/SimpleRoute.java:56: cannot find symbol
    [javac] symbol  : method assertThat(java.lang.String,int,func.lib.RangeMatcher)
    [javac] location: class func.route.SimpleRoute
    [javac] 				assertThat("RGN size", size, new RangeMatcher(141999));
    [javac] 				^
    [javac] /home/jas/src/mkgmap/test/func/route/SimpleRoute.java:84: cannot find symbol
    [javac] symbol  : method assertThat(java.lang.String,int,func.lib.RangeMatcher)
    [javac] location: class func.route.SimpleRoute
    [javac] 				assertThat("RGN size", size, new RangeMatcher(2787));
    [javac] 				^
    [javac] 8 errors

BUILD FAILED
/home/jas/src/mkgmap/build.xml:100: Compile failed; see the compiler error output for details.

Total time: 1 second
jas at mocca:~/src/mkgmap$ 



More information about the mkgmap-dev mailing list