[CF-Devel] CFJavaEditor
pstolarc at theperlguru.com
pstolarc at theperlguru.com
Fri Oct 25 19:37:36 CDT 2002
The .jar file for CFJavaEditor in CVS appears to be corrupt.
Also, attached is a win32 batch file to build the project. I built it, and
everything appeared fine. (Actually, it appeared to run a bit quicker.)
-Philip
-------------- next part --------------
@echo off
REM Run this from the root directory of the project, as checked out from CVS.
REM To configure the script, you only need to set CF_JAVAPATH, (unless something changes dramatically.)
REM Set this to the directory java is installed in
SET CF_JAVAPATH=C:\Progra~1\Java\j2sdk1.4.0_02
mkdir class
echo Compiling...
%CF_JAVAPATH%\bin\javac -d class -classpath lib\png.jar;lib\visualtek.jar src\cfeditor\*.java
REM The **** The following line is optional. Use it to test your compiled code****
REM %CF_JAVAPATH%\bin\java -classpath class/:lib/png.jar:lib/visualtek.jar cfeditor.CFJavaEditor
echo Preparing to build .jar file...
xcopy resource\HelpFiles\*.* class\resource\HelpFiles /s /i
xcopy resource\conf\*.* class\resource\conf /s /i
xcopy resource\icons\*.* class\resource\icons /s /i
xcopy resource\system\*.* class\resource\system /s /i
Echo Deleting all CVS directories in the class directory...
REM If there are any new subdirectories here in the future, make sure to get rid of them too.
deltree /Y resource\HelpFiles\CVS
deltree /Y resource\conf\CVS
deltree /Y resource\icons\CVS
deltree /Y resource\system\CVS
cd class
echo Extracting .jars...
%CF_JAVAPATH%\bin\jar xvf ..\lib\png.jar
echo Extracting .jars...
%CF_JAVAPATH%\bin\jar xvf ..\lib\visualtek.jar
echo Cleaning...
deltree /Y META-INF
echo Building .jar...
%CF_JAVAPATH%\bin\jar cfm ..\CFJavaEditor.jar ..\manifest.txt .\*.*
cd ..
echo Done.
echo Press any key to test your .jar file...
pause > NUL
REM The **** The following line is optional. Use it to test your jar file****
%CF_JAVAPATH%\bin\java -jar CFJavaEditor.jar
More information about the crossfire
mailing list