Zitat von "Dixon, Shane" <[email protected]>:
I actually am using your scripts, but on Windows XP and that's where I'm having the troubles. Everything works except that last step. I print out the XSL_TRANSFORM_COMMAND right before add_custom_command:

-- XSL_TRANSFORM_COMMAND = C:/WINDOWS/system32/java.exe;-cp;:C:/opt/saxon6-5-5/saxon.jar:C:/opt/docbook-xsl-saxon-1.00/docbook-xsl-saxon_1.00.jar;com.icl.saxon.StyleSheet;C:/workspace/SIS/docs/SIS.xml;http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk.xsl

Here is the add_custom_command:

  add_custom_command (
    OUTPUT ${ARGN}
    COMMAND ${XSL_TRANSFORM_COMMAND}
    DEPENDS "${infile}"
    VERBATIM
  )

Here is the resulting command:
C:\WINDOWS\system32\java.exe -cp :C:/opt/saxon6-5-5/saxon.jar:C:/opt/docbook-xsl-saxon-1.00/docbook-xsl-saxon_1.00.jar com.icl.saxon.StyleSheet C:/workspace/SIS/docs/SIS.xml http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk.xsl

Any suggestions on how you got this working in Windows XP? Don't you get parsing errors from java.exe? If I change the ":" to ";" in the above command for the -cp argument, everything works.

Interesting. On Windows, the classpath may have to use ';' as seperator. This also works on Linux but it needs quotes. I'll change that and send you an update for testing...

Thanks.

HS



_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to