[xep-support] Using XEP with Java

From: IT-projekti FunctionFive <it-projekti.functionfive@jypoly.fi>
Date: Fri Jan 28 2005 - 00:52:43 PST

Hi!

We have been developing a Java program which automatically generates a xml document. After the xml file is generated, program sends paths of the xml and xsl files to XEP. Now what we would like to know is how can we find out when the XEP has finished the translation? Here is a sample of the code:

Process process;
try {
   process = Runtime.getRuntime().exec(xepLocation+"xep.bat -xml "+outLocation+"manual.xml -xsl "+XSLLocation+" -out "+outLocation+" out.pdf -format pdf");
} catch (IOException e) {
   System.out.print("IOException " + e);
}

xepLocation contains the installation path of the XEP
outLocation contains the path where users wants to save the files of the current project
outLocation path contains automatically generated file manual.xml
XSLLocation contains the path to XSL-file user wants to use in PDF translation

Is there some way in Java we could examine this process and when it's finished, to move on to next phase in our program.

Thanks

Perttu Hänninen
functionfive@jypoly.fi

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html
Received on Fri Jan 28 01:27:21 2005

This archive was generated by hypermail 2.1.8 : Fri Jan 28 2005 - 01:27:22 PST