/ Published in: Other
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
::-------------------:: :: Philip Kavanagh :: :: C06412882 DT228/4 :: ::-------------------:: @echo off cls echo Running... :: Create Directories echo "Status : |- |" echo -- Creating Directories mkdir src mkdir bin mkdir res mkdir docs move *.java src ::set up something to move images, audio, folders etc echo -- Compiling Source Code :: Set Path cls echo "Status : |- |" set path=%path%;C:\Program Files\Java\jdk1.6.0_18\bin :: Set Classpath set classpath=%classpath%;. :: Compiler set up, now clean up directories cls echo "Status : |- |" cd bin rem *.class :: Compile source files cls echo "Status : |-- |" cd .. cd src javac *.java -d ../bin ::Generate Javadocs cls echo "Status : |--- |" echo -- Generating Javadocs javadoc *.java -d ../docs cd .. cls echo "Status : |----|" ::Adding to JAR [NEEDS TO BE CHANGED] cd bin jar cf Program.jar *.class move *.jar .. cd .. echo Complete pause