Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

including xml file in .ear file

 
Raj Kumar Bindal
Ranch Hand
Posts: 418
  • Mark post as helpful
  • send pies
  • 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.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic