make_keps.bat DOS batch file that automates tasks for the DTD file in Listing 2.

Power Java
DXML—A Second Generation XML Toolkit

Kevin Wittmer
Listing 4. make_keps.bat DOS batch file that automates tasks for the DTD file in Listing 2.


SET WKDIR=keplerian_elements
REM
*********************************************************
REM   Prepare DOS shell environment for build with DXML.
REM
SET CLASSPATH=%CLASSPATH%;C:\xml\ObjectSpace\lib\dxml.jar
SET CLASSPATH=%CLASSPATH%;C:\xml\IBM\xml4j.jar
SET PATH=%PATH%;C:\xml\Object~1\bin
REM
REM
*********************************************************
REM   Remove previously generated files.
REM
DELTREE /y %WKDIR%\doc
ERASE %WKDIR%\keplerian_elements.jar
REM
REM
*********************************************************
REM   Generate the Java source files using the DTD file.
REM   Note: The -m command line switch can be used here to
REM   specify a metafile containing element type mappings.
REM
XGEN %WKDIR%\keplerian_elements.dtd
REM
REM
*********************************************************
REM   Compile the newly generated source files.
REM
JAVAC -verbose %WKDIR%\*.java
REM
REM
*********************************************************
REM   Archive the newly generated class files into a JAR.
REM
JAR -cvf keplerian_elements.jar %WKDIR%\*.class
REM
REM
*********************************************************
REM  Generate JavaDoc API documentation
REM
MKDIR %WKDIR%\doc
JAVADOC -d %WKDIR%\doc %WKDIR%\*.java
REM
REM
*********************************************************
REM   Clean up intermediate files from the build.
REM
ERASE %WKDIR%\*.java
ERASE %WKDIR%\*.class
MOVE keplerian_elements.jar %WKDIR%

Featured

Upcoming Events

AppTrends

Sign up for our newsletter.

I agree to this site's Privacy Policy.