• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

build.xml: jar tag

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Without subsidies, chem-ag food costs four times more than organic. Or this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic