• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Ant generation script

 
Ranch Hand
Posts: 30
Hibernate jQuery Google App Engine
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello guys,

I'm almost finish my assignment and trying to package it. I'm using ANT to compile generate the stub and group the docs. But when i create runme.jar the MANIFEST.MF is created inside it. And it contains an line like this



I couldn't remove this line. The specification says that you cannot submit any code that is not your own work.
Anybody did this way? How do you package your application?

Another question: Can i put classes in suncertify package? Like the startup class.

Thanks,
Gabirel

EDITED: I put the post in wrong forum(Certification Result ), some moderator can erase that post?
 
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you take a look at ScjdFaq you'll see I used an Ant generation script too (which I added to this forum so it could be helpful for other ranchers try to package their assignment). And it's normal that ant adds this line (my runme.jar has also such a line), so not to worry about that extra line (it's not actual code, just a line of plain text)

Why would you not be able to put classes in suncertify package? As long as you don't violate the must requirements (e.g. put Data class in suncertify.db package) you are free to do what you want.

Good luck!

ps. I deleted the thread in the certification results forum.
 
Ranch Hand
Posts: 590
Eclipse IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It looks like there is no option in manifest task to turn off the creation of the Ant-Version: Apache Ant 1.8.1 entry.
 
Roel De Nijs
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you really would get rid of this line, I think you can simply delete this after generating the jar file
 
Gabriel Ozeas
Ranch Hand
Posts: 30
Hibernate jQuery Google App Engine
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Roel De Nijs wrote:If you really would get rid of this line, I think you can simply delete this after generating the jar file


Good solution auhauh so simple....

Thanks everybody
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
See here:

http://stackoverflow.com/questions/1598229/is-it-possible-to-add-a-custom-manifest-to-a-java-library-compiled-in-netbeans-6

 
Without subsidies, chem-ag food costs four times more than organic. Or this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic