• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

build.xml: jar tag

 
Mariam A. Shamsi
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello there,

I need to create a jar for some java package, and I need to have the following:

Include all the classes and resources


How to do this? And how to use jar options using jar tag in build.xml?

Please, I don't know why when I create jar file using eclipse it works fine,
but doing so using build.xml is not working.

Not working mean: when selfsigning the jar (created by build.xml)
the Certificate doesn't appear, but using eclipse it does.

Any help?

Mariam
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34074
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mariam,
Have you seen the Jar doc page with examples? Please post your build.xml snippet that "doesn't work" so you can get more concrete advice.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you will be doing a lot of work (or even a little work) with Ant, I recommend that you get a copy of Ant in Action. I have a copy of the earlier edition of this book and it is worth it's weight in gold.
 
Mariam A. Shamsi
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeanne Boyarsky wrote:Mariam,
Have you seen the Jar doc page with examples? Please post your build.xml snippet that "doesn't work" so you can get more concrete advice.


Hello there,
Thanks a lot for your response. I did follow what is written in ant documentation, but
still suffering:



I have some classes with warning, how to enforce jarring them? I need to jar
all resources with warning or errors. How?
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like you are working within a WAR file structure. Based on that, I would say that the com.jar file should be built using something like this:



If that gets you the correct JAR file contents, do the other two JARs in a similar fashion.
 
Mariam A. Shamsi
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Peter Johnson wrote:Looks like you are working within a WAR file structure. Based on that, I would say that the com.jar file should be built using something like this:



If that gets you the correct JAR file contents, do the other two JARs in a similar fashion.


I am really happy! It works now! Thanks very very much.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic