hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r1237510 - /hive/trunk/build-common.xml
Date Mon, 30 Jan 2012 00:20:09 GMT
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">



Mime
View raw message