B
Bali Bali
I have a ant build file:
<project name="test" default="run">
<target name="run">
<echo message="hello" />
</target>
</project>
it needs to be changed to:
<?xml version="1.0" encoding="UTF-8" ?>
<!--
***********************
* My license goes here
***********************
-->
<project name="test" default="run">
<target name="run">
<echo message="hello" />
</target>
</project>
After processed, ant complains:
--
D:\googlecode\balionweb\test>ant compile
Buildfile: build.xml
BUILD FAILED
D:\googlecode\balionweb\test\build.xml:12: Content is not allowed in
prolog.
Total time: 0 seconds
--
I have problem in handling new line. Tried "\r", "\n" and "\r\n", but no
luck.
It looks like the first line of xml file is pretty special.
How to do this? Better provide a working code.
Thanks.
<project name="test" default="run">
<target name="run">
<echo message="hello" />
</target>
</project>
it needs to be changed to:
<?xml version="1.0" encoding="UTF-8" ?>
<!--
***********************
* My license goes here
***********************
-->
<project name="test" default="run">
<target name="run">
<echo message="hello" />
</target>
</project>
After processed, ant complains:
--
D:\googlecode\balionweb\test>ant compile
Buildfile: build.xml
BUILD FAILED
D:\googlecode\balionweb\test\build.xml:12: Content is not allowed in
prolog.
Total time: 0 seconds
--
I have problem in handling new line. Tried "\r", "\n" and "\r\n", but no
luck.
It looks like the first line of xml file is pretty special.
How to do this? Better provide a working code.
Thanks.