File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Placing a xml file in META-INF using <metainf>

 
Bala Gangadhar
Ranch Hand
Posts: 98
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am creating a jar file using ant jar task
I want place something.xml file in META-INF of the jar.

But its giving error saying: Problem opening app/configuration/xmlsfiles/something.xml.
The specified xml file is existing at the specified location. Still its throwing the error.
What can be the problem...

Regards,
Bala.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you know the path then just add the single file specifically.

I would urge *much* caution if you're placing configuration information in a publicly-accessible location, though--this strikes me as a Bad Idea.
 
Bala Gangadhar
Ranch Hand
Posts: 98
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you know the path then just add the single file specifically.
?

 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Specify the entire path: http://ant.apache.org/manual/CoreTypes/fileset.html

I'm not convinced the file exists where you say it does, however, but it could be a different file reading issue.
 
Dennis Coffeemaster
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I faced the same problem and solved it:

Just try this:

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic