Java Reference
In-Depth Information
Packaging Your Submission
We now have to check our instructions to determine what needs to be packaged up and sent
to the assessor. Since we don't have any instructions in our assignment, we are going to follow
something that will be similar to your instructions—namely we are going to create a JAR file
that contains the executable runtime, the database, the source code in a directory called src ,
and the API documentation for our project in a subdirectory of the docs directory. What we
will end up with is a JAR file containing a JAR file, several directories, and our database file, as
shown in Figure 9-15.
â– 
Caution The Sun assignment instructions are likely to have a few other requirements as well (such as
requiring a design decisions document), and may require slightly different directory structures. You must
read the instructions you received from Sun carefully, and follow them to the letter. If you get one part of the
packaging incorrect, the assessor could fail you on the spot.
Figure 9-15. Submission contents
We have already created our executable JAR file, and since we created it prior to compiling
the test classes, we know it does not contain anything we do not want to submit. If we were
unsure, or if there's a chance we might go through this sequence more than once, we could
just delete the contents of the classes directory, then recompile the source in the src direc-
tory, and we could be certain we have a clean code base. This is where having separate
directories for the main project source and the test programs source comes in handy.
Search WWH ::




Custom Search