• 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

Extracting jars: Maven

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi I wanna know how to write a plugin using maven to extract a specified file from a jar. For example consider a jar file called "abstract", and inside that there's file called "abs.mdx". I wanna know how to write a plugin to extract that mdx file to a specific folder, using maven. Hurry

[ March 18, 2005: Message edited by: Menik Nimalaratne ]
[ March 20, 2005: Message edited by: Menik Nimalaratne ]
 
drifter
Posts: 1364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Perhaps you could slow down and provide a few more details about what kind of help you need.

Where do you need help to get started? maven in general? Writing a maven plugin? Extracting a file from a jar? Something else?

Are you stuck on something in particular?
[ March 20, 2005: Message edited by: Carol Enderlin ]
 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you tried using the Ant unjar task (http://ant.apache.org/manual/CoreTasks/unzip.html) in your maven.xml file?

It should extract specific files, using the correct fileset, without too much difficulty.
 
Montana has cold dark nights. Perfect for the heat from incandescent light. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic