@echo off :: NO PARAMATER PASSED. DO COMPILE AND SHOW CLASSES IF ANYTEXT==%1ANYTEXT GOTO COMPILE :: otherwise do everything IF %1 == "-all" GOTO CLEANCLASSES :CLEANCLASSES Echo --REMOVING ALL CLASS FILES-- del *.class :COMPILE Echo --COMPILING ALL JAVA FILES-- javac *.java :: no need to do java doc. this is a compile. IF ANYTEXT==%1ANYTEXT GOTO SHOWCLASSES :JAVADOC Echo --CREATING JAVA DOCS-- javadoc -d ./Docs *.java :SHOWCLASSES Echo --THE FOLLOWING CLASS FILES WERE CREATED-- dir/b *.class :: no need to do run the application. this is a compile. IF ANYTEXT==%1ANYTEXT GOTO END :RUN Echo --RUNNING NOW.....-- java MyApplication :END Echo --END OF MAKE. -- |
My words on: Scrum, Agile, Software Development, Quality Assurance, Architecture, and Analysis...
All without a spall check!!!
Wednesday, January 11, 2012
Simple windows java make file as batch
Simplify your life, create a 'make' file...
here is one...javac, javadoc 'make' file for windows. Save it as .bat ... enjoy.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment