Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jar Structure - Right ?

 
Rajesh Matti
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My assignment instructions say "All elements of your submission must be packaged into a single JAR file for submission. It is permitted to nest JAR files inside the main JAR."
Here is how I approach the objective for jar.
I have a directory structure like this :
JavaDevExam
- Readme.txt
- Design.txt
JavaDevExam\client
- client.jar
- db.db
- *.gif
- clientHelp.html
JavaDevExam\server
- server.jar
- db.db
- *.gif
- serverHelp.html
- policy file
JavaDevExam\source
Just an empty directory
JavaDevExam\source\suncertify
All the latest source code for the assignment
JavaDevExam\source\doc
Javadoc htmls.

What do you guys think (especially one who are already SCJDs) ?.
Few questions:
1. I have to submit one jar, so I will be jarring all these in to a jar, how will I provide the marker the unjar instructions ? as readme.txt is a part of the �big� jar.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't need to include directions on how to unjar a jar file. So you need to be sure that any directory they will unjar the file from will work.
Your layout looks fine, just test to make sure everything works before you upload. Take your jar file to another machine and unjar it and test your app.
Mark
 
Rajesh Matti
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mark - Thanks a lot for your input. Is my thinking on including seperate db.db in client and server directtories correct ?. I would appreciate a reply.
Thanks again,
-Rajesh
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well basically yes. I only used one db.db file in the base directory. But I can't think off hand why sending one in each directory will make an impact on points.
Mark
 
Rajesh Matti
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mark-
README.txt needs to have the names of the files you have submitted, with a note of their location in the directory structure, and a high level description of the purpose of each.
Does this mean that I need to list and document even the java source files, class files and also javadoc files for each of the classes ?
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, I took it as that, and listed everything. That way they had no excuse to donwgrade me. Included Javadoc files et al.
Mark
 
Rajesh Matti
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mark - This means that the README.txt file will be a lenghty one. I have 400 files including javadoc files, java source files and java class files. Is that how oyu had it ?. Please let me know.
Thanks,
-Rajesh
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well I only had 133 files including class, java javadoc, jpgs and User Doc html, and I listed every single one of them.
Mark
 
Rajesh Matti
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Mark. I will start my long ride today..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic