Kaynağa Gözat

HADOOP-6131. A sysproperty should not be set unless the property is set on the ant command line in build.xml (hong tang via mahadev)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@792302 13f79535-47bb-0310-9956-ffa450edef68
Mahadev Konar 16 yıl önce
ebeveyn
işleme
da8cf6702a
2 değiştirilmiş dosya ile 7 ekleme ve 2 silme
  1. 3 0
      CHANGES.txt
  2. 4 2
      build.xml

+ 3 - 0
CHANGES.txt

@@ -868,6 +868,9 @@ Trunk (unreleased changes)
     HADOOP-6114. Fix javadoc documentation for FileStatus.getLen.
     (Dmitry Rzhevskiy via dhruba)
 
+    HADOOP-6131. A sysproperty should not be set unless the property 
+    is set on the ant command line in build.xml (hong tang via mahadev)
+
 Release 0.20.1 - Unreleased
 
   INCOMPATIBLE CHANGES

+ 4 - 2
build.xml

@@ -507,8 +507,10 @@
       <sysproperty key="java.library.path"
        value="${build.native}/lib:${lib.dir}/native/${build.platform}"/>
       <sysproperty key="install.c++.examples" value="${install.c++.examples}"/>
-      <sysproperty key="io.compression.codec.lzo.class"
-		  value="${io.compression.codec.lzo.class}"/>
+      <!-- set io.compression.codec.lzo.class in the child jvm only if it is set -->
+      <syspropertyset dynamic="no">
+         <propertyref name="io.compression.codec.lzo.class"/>
+      </syspropertyset>
       <!-- set compile.c++ in the child jvm only if it is set -->
       <syspropertyset dynamic="no">
          <propertyref name="compile.c++"/>