ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dale Anson <dan...@germane-software.com>
Subject Re: <input> with timeout?
Date Wed, 08 Oct 2003 15:29:29 GMT
Look at the <limit> task in antelope. Docs are at 
http://antelope.sourceforge.net/manual/bk03ch10.html. You would do 
something like this:

<limit maxwait="10">
    <input message="enter password for keystore:"
       addproperty="storepass" />
    <!-- etc... -->
</limit>

Dale


Pedro Salazar wrote:

> On Wed, 2003-10-08 at 15:32, Rob van Oostrum wrote:
> 
>>what about providing the password as a command-line property?
>>
> 
> 
> It could be a solution, however it's annoying to do it in every build
> and could be missed...
> 
> *But* maybe a _warning_message_ alerting the password wasn't passed by
> argument could be sufficient. Ok, I'll try that... And it has an
> advantage on it: no timeout is needed!
> 
> BTW: I was thinking in a <parallel> task with 2 tasks inside. One for
> the input and other for <waitfor>. But unfortunately the parallel task
> *always* waits for *all* tasks to end.
> 
> See below the tried task just for your discussion. For me, it's enough
> the command line argument.
> 
> <target name="check-sign-env">
>     <parallel >
>         <waitfor maxwait="10" maxwaitunit="second"
> timeoutproperty="timeout" >
>             <isset property="storepass" />
>         </waitfor>
>         <input message="enter password for keystore:"
>             addproperty="storepass" />
>     </parallel>
>     <condition property="sign?">
>         <and>
>             <isset property="keystore" />
>             <isset property="storetype" />
>             <isset property="storepass" />
>             <isset property="alias" />
>         </and>
>     </condition>
> </target>
> 
> regards,
> Pedro Salazar


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message