Hi Jeff,

 

You can use one of FixCRLF standard ant tasks to correct this.

 

http://ant.apache.org/manual/CoreTasks/fixcrlf.html

 

 

 

   Mark Coffin 
   mcof...@aalsolutions.com 
   Phone: 905.632.0864 
   1.800.668.8486 
   Fax: 905.632.2605 
   www.aalsolutions.com 

________________________________

From: Tresselt, Jeffrey A [mailto:jeffrey.tress...@ca.com] 
Sent: March 10, 2009 1:44 PM
To: xmltask-users@lists.sourceforge.net
Subject: [Xmltask-users] xmltask is putting DOS line endings on every
lineof the output xml file....

 

I am trying to use xmltask to update the version number in an
InstallAnywhere project file (which is in xml format).   

 

The update of the version number is successful, but I have two problems
with the output xml file.

 

1.      The input xml file is in unix file format, but the output file
has '^M' DOS line ending inserted on every line.   Is there an easy way
to prevent this from happening....

 

2.      In the input file, there are a few empty strings that are
getting converted, but they should not be touched.

 

Input file contains:

 

      <property name="splashScreenGUITitle">

            <string><![CDATA[]]></string>

      </property>

 

Output file gets:

 

      <property name="splashScreenGUITitle">

            <string/>

      </property>

 

Is there an easy way to prevent this from happening, so the output xml
is exactly the same as the input xml.....?

 

Thanks for any help,

 -Jeff

 

 

Jeff Tresselt

CA

Senior Software Engineer

jeffrey.tress...@ca.com <mailto:jeffrey.tress...@ca.com> 

 

------------------------------------------------------------------------------
_______________________________________________
Xmltask-users mailing list
Xmltask-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xmltask-users

Reply via email to