Meaningless Drivel is fun!*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Ant generation script Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Ant generation script" Watch "Ant generation script" New topic
Author

Ant generation script

Gabriel Ozeas
Ranch Hand

Joined: Jul 04, 2008
Posts: 30

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?
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5126
    
  12

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.

SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
Sean Keane
Ranch Hand

Joined: Nov 03, 2010
Posts: 581

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.


SCJP (1.4 | 5.0), OCJP (6.0), OCMJD
Roel De Nijs
Bartender

Joined: Jul 19, 2004
Posts: 5126
    
  12

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

Joined: Jul 04, 2008
Posts: 30

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
Dejan Stojadinovic
Greenhorn

Joined: Jul 13, 2009
Posts: 5
See here:

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

 
 
subject: Ant generation script
 
Similar Threads
Compiling package by package in Maven
Let us start this project
ant instalation help
Ant?
Where to run the saved ant script of Deployable plug-ins and fragments