|
|
@@ -0,0 +1,17 @@ |
|
|
|
<?xml version="1.0"?>
|
|
|
|
<project name="test-input" default="antunit" xmlns:au="antlib:org.apache.ant.antunit">
|
|
|
|
|
|
|
|
<import file="../antunit-base.xml"/>
|
|
|
|
|
|
|
|
<target name="setUp">
|
|
|
|
<available property="jdk1.6+" classname="java.util.ServiceLoader"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="test-secure-input" if="jdk1.6+">
|
|
|
|
<input message="secure-input:>" addproperty="the.password">
|
|
|
|
<handler classname="org.apache.tools.ant.input.SecureInputHandler"/>
|
|
|
|
</input>
|
|
|
|
<au:assertPropertySet name="the.password"/>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
</project> |