+1

2010/11/20 Sim IJskes - QCG <s...@qcg.nl>

> On 11/20/2010 11:34 AM, Sim IJskes - QCG wrote:
>
>> Consolidating the keystore and password targets, and providing a
>> create-if-not-exists mechanism? Votes please?
>>
>
> <target name="password" depends="are-passwords-available"
> unless="passwords-available" >
>        <echo>creating passwords</echo>
>        <echo file="${trust.dir}/tester.password" message="testerpw" />
>        <echo file="${trust.dir}/reggie.password" message="reggiepw" />
>        <echo file="${trust.dir}/phoenix.password" message="phoenixpw" />
>        <echo file="${trust.dir}/mercury.password" message="mercurypw" />
>        <echo file="${trust.dir}/norm.password" message="normpw" />
>        <echo file="${trust.dir}/outrigger.password" message="outriggerpw"
> />
>        <echo file="${trust.dir}/mahalo.password" message="mahalopw" />
>        <echo file="${trust.dir}/fiddler.password" message="fiddlerpw" />
>        <echo file="${trust.dir}/group.password" message="grouppw"  />
> </target>
>
> <target name="are-passwords-available" >
>    <condition property="passwords-available" >
>        <and>
>            <available file="${trust.dir}/tester.password" />
>            <available file="${trust.dir}/reggie.password" />
>            <available file="${trust.dir}/phoenix.password" />
>            <available file="${trust.dir}/mercury.password" />
>            <available file="${trust.dir}/norm.password" />
>            <available file="${trust.dir}/outrigger.password" />
>            <available file="${trust.dir}/mahalo.password" />
>            <available file="${trust.dir}/fiddler.password" />
>            <available file="${trust.dir}/group.password" />
>        </and>
>    </condition>
> </target>
>

Reply via email to