• 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
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

including xml file in .ear file

 
Ranch Hand
Posts: 418
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am preparing .ear file of a java file through servicegen script and in that i am using service tag to add my java class which i need to call from my web service ,but in one of those files,i want to read data from xml file but i am not able to add my own xml file in the ear file.I am including java files other that required web sevice file through javaClassComponents tag.Kindly tell me how i can add my xml file in the ear file.
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I havent used the servicegen task, just had a look at it on the BEA site. Even though you cant add those xmls to the ear file through the servicegen task, you can still write a ant task which does this for you. That ant task can take the ear file, generated by servicegen task, as an input, unzip it and add the xml file and then zip it back to ear. There are ant tasks which allow you to zip/unzip archives and add contents to the archives.
 
Do not threaten THIS beaver! Not even with this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic