@echo off
@echo ----------------------------------------------------
@echo --- Compiling ariadne from compileTimNet.bat       |
@echo ---
@echo --- !!! creates ariadne.jar not aegean.jar     !!! |
@echo ----------------------------------------------------
@echo
if defined PRGDIR goto :runbatch
@echo Defining standard directory locations
call c:\bin\setenv
:runbatch
@echo making list of java soutrce files
dir src\*.java /b /s >src\ariadnemacsrclist.txt
@echo making necessary directories
mkdir build
mkdir dist
@echo making class files - java compilation - using older JAVA compatibility option
rem *** WINDOWS TO UNIX/MAC CONVENTIONS ***
rem NOTE that you must change backwards to forward slashes and semicolons to colons on UNIX systems
rem -g:none no debugging info
rem -target 1.4  Generate class files that will run on VMs in the Java 2 SDK, v 1.4 and later, but will not run on 1.1 or 1.2 VMs.
"C:\Program Files\Java\jdk1.5.0_22\bin\javac" -target 1.5   -classpath .\dist\lib\colt.jar;.\dist\lib\commons-collections-3.2.1.jar;.\dist\lib\jung-1.7.6.jar;.\build\;. -sourcepath .\src\ -d .\build\ @.\src\ariadnemacsrclist.txt
rem "C:\Program Files\Java\jdk1.5.0_22\bin\javac"  -classpath .\lib\*.jar;. -sourcepath .\src -d .\build\ .\src\IslandNetworks\run\*.java
@echo making jar file
"C:\Program Files\Java\jdk1.5.0_22\bin\jar" cvf .\dist\ariadne.jar -C build .
rem DataAnalysis IslandNetworks JavaNotes org TimGraph TimUtilities
@echo tidying up
%CMDZIP% -r -p -m ariadnemacsrc.zip src\*.java
%CMDZIP% -r -p -m ariadnemacbuild.zip build\*.class
