On 05/01/11 04:49, 1T3XT BVBA wrote:
> Op 30/04/2011 0:37, Larry Evans schreef:
>> ant -f examples.xml part1.chapter01
> I never do it that way.
> I always do:
> 
> ant execute
> 
> execute is a targer in build.xml
> This works for me.
> 

This instruction would be nice to see in a readme.txt
file in this directory (something like the
main/itext/readme.txt file).

However, there must be something wrong with my
setup because when I tried that, I got:

--{--cut here--
~/prog_dev/itext/book $ ant execute
Buildfile: build.xml

execute:

compile:

compile:
    [javac] Compiling 300 source files to
/home/evansl/prog_dev/itext/book/bin
    [javac]
/home/evansl/prog_dev/itext/book/src/part4/chapter16/KubrickDocumentary.java:28:
cannot find symbol
    [javac] symbol  : class XMLUtil
    [javac] location: package com.itextpdf.text.xml
    [javac] import com.itextpdf.text.xml.XMLUtil;
    [javac]                             ^
    [javac]
/home/evansl/prog_dev/itext/book/src/part3/chapter09/HtmlMovies2.java:40: 
part3.chapter09.HtmlMovies2.MyImageFactory
is not abstract and does not override abstract method
getImage(java.lang.String,java.util.HashMap<java.lang.String,java.lang.String>,com.itextpdf.text.html.simpleparser.ChainedProperties,com.itextpdf.text.DocListener)
in com.itextpdf.text.html.simpleparser.ImageProvider
    [javac]     public static class MyImageFactory implements
ImageProvider {
    [javac]                   ^
    [javac]
/home/evansl/prog_dev/itext/book/src/part3/chapter09/HtmlMovies2.java:104:
cannot find symbol
    [javac] symbol  : variable FONT_PROVIDER
    [javac] location: class com.itextpdf.text.html.simpleparser.HTMLWorker
    [javac]         map.put(HTMLWorker.FONT_PROVIDER, new MyFontFactory());
    [javac]                           ^
    [javac]
/home/evansl/prog_dev/itext/book/src/part3/chapter09/HtmlMovies2.java:105:
cannot find symbol
    [javac] symbol  : variable IMG_PROVIDER
    [javac] location: class com.itextpdf.text.html.simpleparser.HTMLWorker
    [javac]         map.put(HTMLWorker.IMG_PROVIDER, new MyImageFactory());
    [javac]                           ^
    [javac]
/home/evansl/prog_dev/itext/book/src/part4/chapter16/KubrickDocumentary.java:72:
cannot find symbol
    [javac] symbol  : variable XMLUtil
    [javac] location: class part4.chapter16.KubrickDocumentary
    [javac]                 String.format("<title>%s</title>",
XMLUtil.escapeXML(movie.getMovieTitle(), true)));
    [javac]                                                    ^
    [javac] Note:
/home/evansl/prog_dev/itext/book/src/part4/chapter15/SvgToPdf.java uses
or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 5 errors

BUILD FAILED
/home/evansl/prog_dev/itext/book/build.xml:51: The following error
occurred while executing this line:
/home/evansl/prog_dev/itext/book/examples.xml:3: The following error
occurred while executing this line:
/home/evansl/prog_dev/itext/book/build.xml:45: Compile failed; see the
compiler error output for details.

Total time: 9 seconds
~/prog_dev/itext/book $
--}--cut here--

Any ideas what I've done wrong.  I remember trying something like
this before I'd run the `mvn install`, but I've no idea if that
may have messed things up.

TIA.

-Larry


------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to