Hi Christian,

On Windows things seem a bit different as there're *two* prince.exe files.
So if you install it under the path:

C:\dev\prince

Then you've got two prince.exe

C:\dev\prince\Prince.exe
C:\dev\prince\Engine\bin\prince.exe

The first one is just the GUI of prince and the second one is the
command-line tool of it, so that you should add the second one into your
PATH:

set PATH=%PATH%;C:\dev\prince\Engine\bin

ONE EXTRA REMARK
Another point is that since prince 6.0 version, according to it's
documentation it expects an "-o" option between the input and output
argument and that is *still* missing in HtmlToPdfMojo.java (see the lines
between 214 ... 219 in that class) however this doesn't seem to cause any
problem as verrsion 8.0 seem to be backward compatible to version 5.1 which
did *not* expect that "-o" option.
END OF ONE EXTRA REMARK

I verified it again both on my iMac & Windows-Vista box, and following the
output of my run under Windows, see also the html & pdf sizes at the end:

c:\dev\workspace\camel\tooling\camel-manual>mvn clean install
[INFO] Scanning for projects...
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building Camel :: Manual 2.10-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ camel-manual ---
[INFO] Deleting c:\dev\workspace\camel\tooling\camel-manual\target
[INFO]
[INFO] --- maven-antrun-plugin:1.6:run (create-prop) @ camel-manual ---
[INFO] Executing tasks

main:
     [echo] Maven version: 2.10-SNAPSHOT
     [echo] OSGi version: 2.10.0.SNAPSHOT
[INFO] Executed tasks
[INFO]
[INFO] --- properties-maven-plugin:1.0-alpha-2:read-project-properties
(default) @ camel-manual ---
[INFO]
[INFO] --- maven-remote-resources-plugin:1.1:process (default) @
camel-manual ---
[INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO]
[INFO] --- maven-html-to-pdf:2.10-SNAPSHOT:compile (default) @ camel-manual
---
[INFO] Set the XSL transformer factory class name to be
'org.apache.xalan.xsltc.trax.TransformerFactoryImpl'
[INFO] Downloading: http://camel.apache.org/book-in-one-page.html
[INFO] Removed the set XSL transformer factory class name
'org.apache.xalan.xsltc.trax.TransformerFactoryImpl' from the system
properties
[INFO] Stored:
c:\dev\workspace\camel\tooling\camel-manual\target/site/manual/camel-manual-2.10-SNAPSHOT.html
[INFO] Converting to PDF with prince...
[INFO] About to execute PrinceXml (see www.princexml.com)
[INFO]  prince
c:\dev\workspace\camel\tooling\camel-manual\target/site/manual/camel-manual-2.10-SNAPSHOT.html
c:\dev\workspace\camel\tooling\camel-manual\target/site/manual/camel-manual-2.10-SNAPSHOT.pdf
[INFO] Stored:
c:\dev\workspace\camel\tooling\camel-manual\target/site/manual/camel-manual-2.10-SNAPSHOT.pdf
[INFO]
[INFO] --- build-helper-maven-plugin:1.5:attach-artifact (attach-artifacts)
@ camel-manual ---
[INFO]
[INFO] --- ianal-maven-plugin:1.0-alpha-1:verify-legal-files (default) @
camel-manual ---
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @
camel-manual ---
[INFO] Installing c:\dev\workspace\camel\tooling\camel-manual\pom.xml to
C:\Users\Babak\.m2\repository\org\apache\camel\camel-manual\2.10-SNAPSHOT\camel-manual-2.10-SNAPSHOT.pom
[INFO] Installing
c:\dev\workspace\camel\tooling\camel-manual\target\site\manual\camel-manual-2.10-SNAPSHOT.pdf
to
C:\Users\Babak\.m2\repository\org\apache\camel\camel-manual\2.10-SNAPSHOT\camel-manual-2.10-SNAPSHOT.pdf
[INFO] Installing
c:\dev\workspace\camel\tooling\camel-manual\target\site\manual\camel-manual-2.10-SNAPSHOT.html
to
C:\Users\Babak\.m2\repository\org\apache\camel\camel-manual\2.10-SNAPSHOT\camel-manual-2.10-SNAPSHOT.html
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1:45.831s
[INFO] Finished at: Fri Jan 13 00:20:32 CET 2012
[INFO] Final Memory: 27M/494M
[INFO]
------------------------------------------------------------------------
c:\dev\workspace\camel\tooling\camel-manual>dir target\site\manual
 Volume in Laufwerk C: hat keine Bezeichnung.
 Volumeseriennummer: 400C-50BC

 Verzeichnis von
c:\dev\workspace\camel\tooling\camel-manual\target\site\manual

13.01.2012  00:20    <DIR>          .
13.01.2012  00:20    <DIR>          ..
13.01.2012  00:19         3'436'370 camel-manual-2.10-SNAPSHOT.html
13.01.2012  00:20         4'287'258 camel-manual-2.10-SNAPSHOT.pdf
               2 Datei(en),      7'723'628 Bytes
               2 Verzeichnis(se), 225'183'076'352 Bytes frei

Babak
 

--
View this message in context: 
http://camel.465427.n5.nabble.com/VOTE-Release-Apache-Camel-2-7-5-tp5137720p5141367.html
Sent from the Camel Development mailing list archive at Nabble.com.

Reply via email to