Skip to content

Commit

Permalink
Added Windows command-line batch files to build and run GR.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Luc Paour committed Jul 30, 2002
1 parent 6ff3a94 commit 8ddeec0
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
39 changes: 39 additions & 0 deletions make.bat
@@ -0,0 +1,39 @@
@echo off

set CLASSPATH=.

goto make_%1%

:make_
javac com/gallery/GalleryRemote/GalleryRemote.java
goto :EOF

:make_all
javac com/gallery/GalleryRemote/*.java HTTPClient/*.java
goto :EOF

:make_clean
del /S *.class
goto :EOF

:make_jar
call :make_all
jar cvf GalleryRemote.jar com HTTPClient
goto :EOF

:make_clean_jar
call :make_all
jar cvf GalleryRemote.jar com/gallery/GalleryRemote/*.class HTTPClient/*.class
goto :EOF

:make_zip
call :make_clean_jar
zip -0 gallery_remote.zip GalleryRemote.jar default.gif
goto :EOF

:make_source_zip
call :make_jar
rem zip -0 gallery_remote.zip GalleryRemote.jar default.gif (for info-zip)
rem pkzip -e0 gallery_remote.zip GalleryRemote.jar default.gif (for pkzip)
zip -0 gallery_remote.zip GalleryRemote.jar default.gif
goto :EOF
5 changes: 5 additions & 0 deletions run.bat
@@ -0,0 +1,5 @@
@echo off

set CLASSPATH=.

java com.gallery.GalleryRemote.GalleryRemote

0 comments on commit 8ddeec0

Please sign in to comment.