• 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

jaring an images folder

 
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i'm experimenting with a very simple setup:

i have this frame that displays an icon in the title bar

then i have these folders:

img

jars - where i want to store the generated jars

source



so far i can run the application and jar it

i'd like to jar the img folder too, but i just cant - it includes all the stuff i'v got inside my project ... lol

another byas is that everytime i make a jar i'v to previously delete the former, because it says it cant contain a zip...

i guess i'm doing something wrong in creating the jar in the jars folder, but dont know...

here's my build file: (the Teste.jar is ok, but i cant jar only the images inside the img file, when creating the img.jar file - that's where i need help)



 
miguel lisboa
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i just realized a mistake, so now i can properly jar the images folder:



also, i strangely stopped receiving those messages related with zips

so, for now, its case solved
 
miguel lisboa
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
oops

after all the imgjar isnt updated

i read from the ant documentation:

update indicates whether to update or overwrite the destination file if it already exists. Default is "false". No



so i'm using it without any result:



what is wrong now?
 
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 the date of the JAR file is more recent that the date of the prospective contents (the image in this case), Ant will not recreate the JAR file, even though you changed the build.xml to build the JAR differently. You will need to delete the JAR file and run Ant again. Hopefully your 'clean' target will do that.
 
miguel lisboa
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Peter Johnson wrote:If the date of the JAR file is more recent that the date of the prospective contents (the image in this case), Ant will not recreate the JAR file, even though you changed the build.xml to build the JAR differently. You will need to delete the JAR file and run Ant again. Hopefully your 'clean' target will do that.



thank you for the idea: i'll include a delete jars folder in the clean and make it dependable for jaring
 
Do not meddle in the affairs of dragons - for you are crunchy and good with ketchup. Crunchy tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic