| Author |
fetch.xml in ant 1.6.5
|
Andrew Stallard
Ranch Hand
Joined: Mar 06, 2010
Posts: 33
|
|
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
Joined: Mar 06, 2010
Posts: 33
|
|
|
OOPS! I posted this to the wrong forum--sorry!
|
 |
Aaron Liu
Greenhorn
Joined: Apr 16, 2010
Posts: 15
|
|
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
Joined: Mar 06, 2010
Posts: 33
|
|
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
Joined: Apr 16, 2010
Posts: 15
|
|
|
paste your fetch.xml content
|
 |
Andrew Stallard
Ranch Hand
Joined: Mar 06, 2010
Posts: 33
|
|
Here it is. Except for the first line, it is the same code as in the link I provided.
|
 |
 |
|
|
subject: fetch.xml in ant 1.6.5
|
|
|