logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Newbie Question: Can you have more than on input file on the java command l: msg#00009

Subject: Newbie Question: Can you have more than on input file on the java command line?


I have three xml files that I  transform individually using the bat file below and put the results in a single file.
-----------------transform1.bat------
java -cp c:\xmlapps\xalan-j\xml-apis.jar;c:\xmlapps\xalan-j\xercesImpl.jar;c:\xmlapps\xalan-j\xalan.jar org.apache.xalan.xslt.Process -IN scans\SCANS_~3.XML  -XSL discov.xsl -OUT discov3.txt

java -cp c:\xmlapps\xalan-j\xml-apis.jar;c:\xmlapps\xalan-j\xercesImpl.jar;c:\xmlapps\xalan-j\xalan.jar org.apache.xalan.xslt.Process -IN scans\SCANS_~2.XML  -XSL discov.xsl -OUT discov2.txt

java -cp c:\xmlapps\xalan-j\xml-apis.jar;c:\xmlapps\xalan-j\xercesImpl.jar;c:\xmlapps\xalan-j\xalan.jar org.apache.xalan.xslt.Process -IN scans\SCANS_~1.XML -XSL discov.xsl -OUT  discov1.txt

copy discov1.txt+discov2.txt+discov3.txt discov.txt
----------------------------------------------

I would like to know how or if it is possible to do this on one line?
I tried:
java -cp c:\xmlapps\xalan-j\... -IN scans\SCANS_~1.XML -IN scans\SCANS_~2.XML -IN scans\SCANS_~3.XML  -XSL discov.xsl -OUT discov3.txt

 and it did not work.

Thank you,
Raymond

<Prev in Thread] Current Thread [Next in Thread>