AVRO-2038 fix extra characters in build.xml

Strip the extra characters presented by VERSION.txt to build.xml in the doc 
creation.

This closes #228

Signed-off-by: sacharya <[email protected]>
(cherry picked from commit ddfcabcee064d137fb0b9082e8c522ab900433c2)


Project: http://git-wip-us.apache.org/repos/asf/avro/repo
Commit: http://git-wip-us.apache.org/repos/asf/avro/commit/9d781e65
Tree: http://git-wip-us.apache.org/repos/asf/avro/tree/9d781e65
Diff: http://git-wip-us.apache.org/repos/asf/avro/diff/9d781e65

Branch: refs/heads/branch-1.7
Commit: 9d781e6507709656565822a52c61cc5980e0b7ba
Parents: 54408b6
Author: rodcoelho <[email protected]>
Authored: Wed May 31 15:02:57 2017 -0500
Committer: sacharya <[email protected]>
Committed: Thu Oct 12 17:52:54 2017 -0700

----------------------------------------------------------------------
 doc/build.xml | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/avro/blob/9d781e65/doc/build.xml
----------------------------------------------------------------------
diff --git a/doc/build.xml b/doc/build.xml
index fe21c96..32d74f5 100644
--- a/doc/build.xml
+++ b/doc/build.xml
@@ -21,10 +21,12 @@
   
   <!-- Load user's default properties. -->
   <property file="${user.home}/build.properties" />
-  
-  <loadresource property="version">
-    <file file="${basedir}/../share/VERSION.txt"/>
-  </loadresource>
+
+  <loadfile srcFile="${basedir}/../share/VERSION.txt" property="version">
+    <filterchain>
+      <striplinebreaks/>
+    </filterchain>
+  </loadfile>
 
   <property name="build.dir" value="../build/avro-doc-${version}"/>
 

Reply via email to