The following co:
~/prog_dev/itext $ svn co
https://itext.svn.sourceforge.net/svnroot/itext/book book
produces output which includes:
A book/pom.xml
A book/examples.xml
A book/build.xml
After which, I did this:
mvn clean install
which, accordig to maven docs, used the pom.xml to produce output
which includes:
[INFO] Installing /home/evansl/prog_dev/itext/book/target/book.war to
/home/evansl/.m2/repository/com/itextpdf/book/5.0.7-SNAPSHOT/book-5.0.7-SNAPSHOT.war
However, after that, the book/results directory just contained
directories but no files.
Just from looking at the examples.xml, it appears that maybe that is
used, somehow, to produce the files for the examples. I say this
just based on this portion of the examples.xml:
> <target name="part1.chapter01">
> <echo message="HelloWorld" />
> <java fork="yes" classname="part1.chapter01.HelloWorld">
> <jvmarg value="-Dfile.encoding=windows-1252"/>
> <classpath>
> <pathelement path="bin/" />
> <pathelement location="lib/iText.jar" />
> </classpath>
> </java>
> <echo message="HelloWorldNarrow" />
> <java fork="yes" classname="part1.chapter01.HelloWorldNarrow">
> <jvmarg value="-Dfile.encoding=windows-1252"/>
> <classpath>
> <pathelement path="bin/" />
> <pathelement location="lib/iText.jar" />
> </classpath>
> </java>
The build.xml file also has the following portion:
> <target name="compile" description="--> compiles all the examples">
> <mkdir dir="bin" />
> <javac source="1.5" target="1.5" srcdir="src" destdir="bin">
> <classpath refid="book.classpath"/>
> </javac>
> </target>
>
> <target name="execute">
> <ant antfile="examples.xml" target="execute" />
> </target>
which suggests to me that maybe it is used to compile the examples.
So, naturally, my question is
How are book/examples.xml and book/build.xml used?
I know almost nothing about maven and just reading the maven man pages
mentions something about profiles invoked with -P option. Is either
examples.xml or build.xml a profile?
I did read the post:
http://thread.gmane.org/gmane.comp.java.lib.itext.general/57086/focus=57098
but that made no mention of either examples.xml or build.xml.
TIA.
Kind Regards,
-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