Return to Snippet

Revision: 27064
at May 21, 2010 07:59 by philkav


Initial Code
::-------------------::
::  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

Initial URL

                                

Initial Description

                                

Initial Title
Portable Java SDK Batch File

Initial Tags

                                

Initial Language
Other