On 05/01/11 09:55, 1T3XT BVBA wrote:
> Op 1/05/2011 16:10, Larry Evans schreef:
>> This instruction would be nice to see in a readme.txt file in this 
>> directory (something like the main/itext/readme.txt file).
> 
> Maybe, but those ANT files were mainly meant for personal use.
> 
>> 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;
> 
> Again: these scripts are meant for internal use.
> 
> XMLUtil is a new class that will be available in iText 5.1.
> I guess you didn't download the most recent jars from SVN
> (iText.jar and iText-xtra.jar in the lib directory).

I did do an `svn update` for the book on:
  Tue Apr 26 06:07:03 CDT 2011
as shown here:
  ~/prog_dev/itext/book $ svn update
  U    pom.xml
  Updated to revision 4813.
However, I guess that needs to be repeated.
> 
> Maybe we should move those scripts to a private repository
> (rather then document them).

Yes, however, the examples.xml did have entries such as:

      <target name="part4.chapter15">
        <echo message="PeekABoo" />
        <java fork="yes" classname="part4.chapter15.PeekABoo">
                        <jvmarg value="-Dfile.encoding=windows-1252"/>

and the classname= entry did give me a hint about what to substitute
for com.foo.bar.Main in the command:
  mvn exec:java -Dexec.mainClass="com.foo.bar.Main"
shown in this post:

http://itext-general.2136553.n4.nabble.com/Where-to-find-jar-files-for-iText-examples-tp3466477p3467716.html

This was more helpful than the page:

  http://www.itextpdf.com/examples/iia.php?id=264

which just contains:

  If you compile and execute this example,
  you'll get the following result:

which assumes the reader knows how to compile and execute the
example.  I know that one must use javac to compile and java to
run; however, it's not clear what classpath to supply, and that
is what the ant file or the mvn takes care of, I assume.

BTW, browsing the rups directory shows a readme.txt there containing:

--{--readme.txt--
Running a maven build without profile will just build the jar.
Running the build with profiles:
profile name      build actions
all               generate jar, jar with dependencies in it, sources
jar, javadoc jar
exe               create a windows exe to run Rups
--}--readme.txt--

Which was what I was looking for.  I didn't know what a 'profile' was,
but then looking the the pom.xml showed:

--{--pom.xml part--
                <profile>
                        <id>all</id>
                        <build>
                                <plugins>

--}--pom.xml part--

So, I guess a profile is just a section of a pom.xml file enclosed
in tags, <profile></profile>.  Could there be a profile which
runs all the examples; thereby eliminating the need for examples.xml?


------------------------------------------------------------------------------
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