Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

renaming file in the ear

 
kamesh aru
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is there a way to rename a file with in ear with jar command?
ex:-xyz.ear file got a file temp.txt i need to rename the temp.txt to original.txt

thanks in advance
 
Abdulla Mamuwala
Ranch Hand
Posts: 225
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
May be you will need to extract the contents of the ear file. Then rename your file to original.txt and zip it up as an ear. Probably you will have to use the jar utilities to extract your files from the ear and later use your build scripts to create your ear. Not sure what a text file is doing in an ear. An ear is supposed to contain WAR files and JAR files, and is deployed in an application server. Don't really understand your question.
 
kamesh aru
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the text file is used for tracking of the builds info.using jar utilites any way of renaming the file with out extracting ?
thanks for your responce
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic