You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by cw...@apache.org on 2012/01/30 01:20:09 UTC

svn commit: r1237510 - /hive/trunk/build-common.xml

Author: cws
Date: Mon Jan 30 00:20:09 2012
New Revision: 1237510

URL: http://svn.apache.org/viewvc?rev=1237510&view=rev
Log:
HIVE-2662 [jira] Add Ant configuration property for dumping classpath of tests

Summary: HIVE-2662. Add Ant configuration property for dumping classpath of
tests

Test Plan: EMPTY

Reviewers: JIRA, jsichi, ashutoshc

Reviewed By: ashutoshc

CC: ashutoshc

Differential Revision: https://reviews.facebook.net/D903

Modified:
    hive/trunk/build-common.xml

Modified: hive/trunk/build-common.xml
URL: http://svn.apache.org/viewvc/hive/trunk/build-common.xml?rev=1237510&r1=1237509&r2=1237510&view=diff
==============================================================================
--- hive/trunk/build-common.xml (original)
+++ hive/trunk/build-common.xml Mon Jan 30 00:20:09 2012
@@ -63,6 +63,7 @@
   <property name="test.silent" value="true"/>
   <property name="hadoopVersion" value="${hadoop.version.ant-internal}"/>
   <property name="test.serialize.qplan" value="false"/>
+  <property name="test.print.classpath" value="false"/>
 
   <path id="test.classpath">
     <pathelement location="${test.build.classes}" />
@@ -354,8 +355,13 @@
   <target name="test"
   	depends="test-conditions,gen-test,compile-test,test-jar,test-init">
     <echo message="Project: ${ant.project.name}"/>
-    <!--<property name="testcp" refid="test.classpath"/>-->
-    <!--<echo message="test.classpath: ${testcp}"/>-->
+    <if>
+      <equals arg1="${test.print.classpath}" arg2="true" />
+      <then>        
+        <property name="testcp" refid="test.classpath"/>
+        <echo message="Test Classpath: ${testcp}"/>
+      </then>
+    </if>
     <junit showoutput="${test.output}" printsummary="yes" haltonfailure="no"
            fork="yes" maxmemory="512m" dir="${basedir}" timeout="${test.timeout}"
            errorProperty="tests.failed" failureProperty="tests.failed" filtertrace="off">