4. First Execution of our application |
![]() |
4.2. The options "archive" and "clean"
At this point I want to introduce you the other options “archive” and "clean". Type at your console “build.bat archive”. ANT will create a jar-file which will be stored in the /lib directory. Look in your /lib directory! You should find a file named “myworld_sample_application.jar”, the name we have arranged in “build.xml”. Of course there are only one class file included. At your console should be written something like this.
Now type at your console “build.bat clean”. All class-files and directories corresponding to our project in /build and the jar-file in /lib will be deleted. Try it! At your console should be written something like this.
Notice: If you want to compile your files you have to type “build.bat” at your console. It is also possible to type “build.bat compile” but not necessary, because “compile” is the default value.
|
|
Copyright (c) 1999-2002. Dirk Behrendt All rights reserved. GNU FDL license. Last Update: 10.07.2002 |