xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mathieu Malaterre <mathieu.malate...@gmail.com>
Subject running fop tests (Re: Building fop from source using qdox 1.11)
Date Fri, 16 Sep 2011 12:47:56 GMT
Hi Simon,

On Mon, Aug 29, 2011 at 1:37 PM, Simon Pepping <spepping@leverkruid.eu> wrote:
> It would be good if alternative builds of fop would run a number of
> our junit tests. The fop team should look into this to formulate a
> recommendation.

AFAIK running fop tests simply involved running the 'junit' ant target
? Right ? In this case the code does not compile for me:

    [javac]
/home/mathieu/debian/pkg-java/trunk/fop/fop-1.0/src/java/org/apache/fop/util/text/LocatorFormatter.java
    [javac] /home/mathieu/debian/pkg-java/trunk/fop/fop-1.0/src/java/org/apache/fop/fonts/type1/AFMFile.java:64:
generics are not supported in -source 1.4
    [javac] (use -source 5 or higher to enable generics)
    [javac]     private List<AFMCharMetrics> charMetrics = new
java.util.ArrayList<AFMCharMetrics>();
    [javac]                 ^
    [javac] /home/mathieu/debian/pkg-java/trunk/fop/fop-1.0/src/java/org/apache/fop/fonts/type1/AFMFile.java:418:
for-each loops are not supported in -source 1.4
    [javac] (use -source 5 or higher to enable for-each loops)
    [javac]         for (Map.Entry<String, Map<String, Dimension2D>>
entryFrom : this.kerningMap.entrySet()) {
    [javac]                                                                    ^
    [javac] /home/mathieu/debian/pkg-java/trunk/fop/fop-1.0/src/java/org/apache/fop/fonts/type1/AFMFile.java:500:
annotations are not supported in -source 1.4
    [javac] (use -source 5 or higher to enable annotations)
    [javac]     @Override
    [javac]      ^
    [javac] 3 errors


Can I switch the target version ?

Thanks
-- 
Mathieu

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message