Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

question about the submission structure

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,I have a question regarding the structure of the submission.

The instruction says:

All elements of your submission must be packaged in a single JAR file. The JAR file must have the following layout and contents in its root:
The executable JAR containing the programs. This must be called runme.jar.
The original, unchanged database file that was supplied to you. Note that you must keep a copy of the original database file supplied to you, and this must be the file you submit.
.......
.......

I don't understand what do they mean by "the following layout and contents in its root".Should I package all the files within the very top(i.e.No project folder involved) or
should package them within a project folder?

Should it be 1 or 2??Any help would be appreciated.
 
weiliang liang
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry it doesn't display corrently:

1.submission.jar
|
|
|---------runme.jar
|
|---------database file
|
|---------etc


2.submission.jar
|
|
|----------project folder
nothing here |
nothing here |
nothing here |-----runme.jar
nothing here |
nothing here |-----database file
nothing here |
nothing here |-----etc

Should it be 1 or 2??
 
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi weiliang,

The first one! So when you open the submission jar, you should see: runme.jar, database file, version.txt, code directory and other needed files and directories.

Kind regards,
Roel
 
weiliang liang
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you sure?Anymore opinions??
 
Ranch Hand
Posts: 59
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi weiliang,

i agree with Roel, because in my assignment instructions (under paragraph "Packaging of Submissions") it is described as in your first proposal.

Kind regards,
Bernd
 
Bartender
Posts: 2292
3
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy, Weiliang!

Are you sure?



Oh, you bet, champion! He's passed this exam! And I agree with him: the first format is correct.
 
Roel De Nijs
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

weiliang liang wrote:Are you sure?Anymore opinions??

Of course I am sure! And to prove it, here is a (snippet of the) listing of my submission jar created with the jar tool:And of course the ... indicates a lot of other files in directories code and docs.

And I also created a ant file to build your submission jar and a test case to test your submission jar (and check if it meets all the must requirements), which are both successfully used by other ranchers. Both can be found here.

Kind regards,
Roel
 
Bernd Wollny
Ranch Hand
Posts: 59
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Roel De Nijs wrote:And of course the ... indicates a lot of other files in directories code and docs.
Roel


Roel, what do you mean? In my opinion that's all in the root directory. Isn't it?
Do you have additional stuff in yours?

Regards
Bernd

.... read too fast..
 
He was giving me directions and I was powerless to resist. I cannot resist this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic