  | |  | Newbie Question: Can you have more than on input file on the java command line? | Newbie Question: Can you have more than on input file on the java command line? 2006-12-05 - By Jacob, Raymond A Jr
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:\xml apps\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:\xml apps\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:\xml apps\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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.47"> <TITLE>Newbie Question: Can you have more than on input file on the java command line?</TITLE> </HEAD> <BODY> <!-- Converted from text/rtf format --> <BR> <BR>
<P><FONT SIZE=2 FACE="Arial">I have three xml files that I transform individually using the bat file below and put the results in a single file.< /FONT>
<BR><FONT SIZE=2 FACE="Arial">-----------------transform1.bat------</FONT>
<BR><FONT SIZE=2 FACE="Arial">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< /FONT></P>
<P><FONT SIZE=2 FACE="Arial">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< /FONT></P>
<P><FONT SIZE=2 FACE="Arial">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< /FONT></P>
<P><FONT SIZE=2 FACE="Arial">copy discov1.txt+discov2.txt+discov3.txt discov .txt</FONT>
<BR><FONT SIZE=2 FACE="Arial">----------------------------------------------< /FONT> </P>
<P><FONT SIZE=2 FACE="Arial">I would like to know how or if it is possible to do this on one line?</FONT>
<BR><FONT SIZE=2 FACE="Arial">I tried:</FONT>
<BR><FONT SIZE=2 FACE="Arial">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</FONT></P>
<P><FONT SIZE=2 FACE="Arial"> and it did not work.</FONT> </P>
<P><FONT SIZE=2 FACE="Arial">Thank you,</FONT>
<BR><FONT SIZE=2 FACE="Arial">Raymond</FONT> </P>
</BODY> </HTML>
|
|
 |