This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

fetch.xml in ant 1.6.5

 
Andrew Stallard
Ranch Hand
Posts: 33
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to use fetch.xml with ant 1.6.5? Building this file is supposed to install all of the optional libraries in ant 1.7.0. Can it work in ant 1.6.5 at all? Can it be tweaked so it will work?

In addition, I may not even have put it in the correct directory. I use Linux (Red Hat) and I attempted to put it in /usr/share/ant. Is that the right place or should I attempt to place it somewhere else?

At any rate, I got this error when I tried to build it:

ant -f fetch.xml

BUILD FAILED
/usr/share/ant/fetch.xml:2: The processing instruction target matching "[xX][mM][lL]" is not allowed.


Thank you for Responding
 
Andrew Stallard
Ranch Hand
Posts: 33
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OOPS! I posted this to the wrong forum--sorry!
 
Aaron Liu
Greenhorn
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Edit your xml file using a text editor. At the very beginning of the first line, look for and delete any leading spaces.

The following first line of the xml must not have any spaces or characters before the first "><" in the line.

<?xml version="1.0" encoding="UTF-8"?>

Try the import again.

I hope it's useful to you.
 
Andrew Stallard
Ranch Hand
Posts: 33
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Aaron Liu wrote:Edit your xml file using a text editor. At the very beginning of the first line, look for and delete any leading spaces.

The following first line of the xml must not have any spaces or characters before the first "><" in the line.

<?xml version="1.0" encoding="UTF-8"?>

Try the import again.

I hope it's useful to you.


No, that's not the problem.

Thanks anyway!
 
Aaron Liu
Greenhorn
Posts: 15
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
paste your fetch.xml content
 
Andrew Stallard
Ranch Hand
Posts: 33
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here it is. Except for the first line, it is the same code as in the link I provided.

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