mirror of
https://github.com/apache/sqoop.git
synced 2025-05-03 20:40:58 +08:00
SQOOP-3037: Minor convenience feature - add flag to ant test to enable remote debugging
(Anna Szonyi via Attila Szabo)
This commit is contained in:
parent
8e50060849
commit
68f76982a0
14
build.xml
14
build.xml
@ -871,12 +871,19 @@
|
|||||||
<antcall target="checkfailure" inheritRefs="true" />
|
<antcall target="checkfailure" inheritRefs="true" />
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
<property name="remoteDebug" value="false"/>
|
||||||
|
|
||||||
<target name="test-core">
|
<target name="test-core">
|
||||||
<!-- inner target only intended to be used via antcall.
|
<!-- inner target only intended to be used via antcall.
|
||||||
Does not define its dependencies. Should be invoked through the
|
Does not define its dependencies. Should be invoked through the
|
||||||
'test' target. Does not fail the build if tests fail.
|
'test' target. Does not fail the build if tests fail.
|
||||||
-->
|
-->
|
||||||
|
<!-- use ant test -DremoteDebug=true to enable remote debugging -->
|
||||||
|
<condition property="remoteDebugJvmArgs"
|
||||||
|
value="-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=2601"
|
||||||
|
else="-ea">
|
||||||
|
<istrue value="${remoteDebug}"/>
|
||||||
|
</condition>
|
||||||
<delete dir="${test.log.dir}"/>
|
<delete dir="${test.log.dir}"/>
|
||||||
<mkdir dir="${test.log.dir}"/>
|
<mkdir dir="${test.log.dir}"/>
|
||||||
<delete dir="${build.test}/data"/>
|
<delete dir="${build.test}/data"/>
|
||||||
@ -899,10 +906,7 @@
|
|||||||
<!-- enable asserts in tests -->
|
<!-- enable asserts in tests -->
|
||||||
<jvmarg value="-ea" />
|
<jvmarg value="-ea" />
|
||||||
|
|
||||||
<!-- uncomment this if you want to attach a debugger -->
|
<jvmarg value="${remoteDebugJvmArgs}"/>
|
||||||
<!--
|
|
||||||
<jvmarg line="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=2601" />
|
|
||||||
-->
|
|
||||||
|
|
||||||
<sysproperty key="test.build.data" value="${build.test}/data"/>
|
<sysproperty key="test.build.data" value="${build.test}/data"/>
|
||||||
<sysproperty key="build.test" value="${build.test}"/>
|
<sysproperty key="build.test" value="${build.test}"/>
|
||||||
|
Loading…
Reference in New Issue
Block a user