• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Ant - exploded (non compressed) war file problem

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm currently using Ant to deploy my (compressed) ear file containing my application and also an associated war file that contains all web resources for the app (javascript, images, css etc).

I want the resources war file to be UNcompressed so I can change it directly on the server without having to recompile, deploy etc a reasonably heavyweight enterprise app.

I thought I'd be able to easily do this by setting the compress attribute of the war tag to false/no/off - but when I do this, the resultant war file is still compressed. Eg


I've also tried using the jar tag Eg


...but to no avail...

Has anyone had any experience or ever wanted to do this? Any advice would be gratefully received - I'm sure this should be easy :-)

Cheers,

Paul
 
Ranch Hand
Posts: 425
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You must be using unwar or unjar ant tasks. jar with compress options will determine whether the files should be compressed and zip/jar'ed and will not extract the files.

See this link
 
Paul Kerr
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your reply...

I appears I was just being daft...What I wanted to accomplish could be done with a simple copy tag Eg:



the crucial bit I was missing was that an exploded war is just a directory with a filename like xxxxx.war - I was trying to create one using a war tag when all I needed to do was copy the directory.....d'oh :-)

Cheers
[ November 01, 2007: Message edited by: Paul Kerr ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic