Re: Windows Batch file for XMLc-2.1

Jacob Kjome <[email protected]>
Newsgroups gmane.comp.java.enhydra.xmlc
Message-ID <[email protected]>
Here's a batch script that I dug up from a while back.  It might do the job 
for you...

@echo off
rem xmlc.bat -- Script for running enhydra's xmlc
rem $Id: xmlc.bat,v 1.3.2.2 2000/11/27 22:45:57 hoju Exp $

set _CP=%CP%

rem Identify the custom class path components we need
set CP=%XMLC_HOME%\lib\xmlc.jar
set CP=%CP%;%JAVA_HOME%\lib\tools.jar

rem Execute XMLC
java -classpath %CP% org.enhydra.xml.xmlc.commands.xmlc.XMLC %1 %2 %3 %4 %5 
%6 %7 %8 %9

set CP=%_CP%
set _CP=


Example usage...
xmlc -d ./src/ -class photo.presentation.AdvPhotoHTML -keep -sourceout 
./src/ ./templates/AdvPhoto.html


Note that you'll have to add the other jars such as gnu-regexp, jtidy, 
xerces (and maybe xhtml and wireless) to the classpath above.  The script 
was made for XMLC-2.0.1, I believe, and I haven't used it in ages.

Jake

At 11:30 AM 5/29/2003 -0500, you wrote:

>Has anyone written a Bat file for XMLC-2.1? I have the one forXMLC2.0.1 
>and I thought I could tweak it and get it to work but no luck..
>
>Any ideas what the differences are? I am getting the dreadful 
>NoClassDefFound error.
>
>
>
>Sanjay
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.