home *** CD-ROM | disk | FTP | other *** search
- ::
- :: Part of JDEX - Java Development Environment using Explorer
- ::
- :: Copyright (c) 1998, by J. Brian Coyle
- :: mailto:brianc@magicnet.net
- :: http://www.magicnet.net/~brianc
- ::
- :: Refer to JDEX\copyright.txt for additional information.
- ::
- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
- @echo off
- ::
- :: Java Compile.bat 03/20/98
- :: compiles a .java file
- ::
- if "%1"=="" goto usage
- if NOT EXIST "%1" goto usage
- lfnfor on
- for %%f in (%1*) do set filename=%%f
- echo compiling %1 (%filename%)
- javac -J-Djavac.pipe.output=true %filename% > %filename%.txt
- if errorlevel 1 goto error
- echo Compile completed OK.
- erase %filename%.txt
- goto exit
-
- :error
- echo Compile has errors!!!
- type %filename%.txt | more
- goto exit
-
- :usage
- echo ERROR! missing filename to compile
- echo Usage is- %0 filename
- :exit
- pause
-