Something more,

nothing prevents us from this situation:
<target name="input" description="Enter two names">
    <input message="Enter your name"
addproperty="name.1">
    <input message="Enter your name"
addproperty="name.2">
</target>

So we have same prompts and there is no way
distinguish them as keys in properties file (which are
should be unique) and property names give us more
"uniqueness" as properties are immutable.
In short, using prompt as a key, opens too many traps
and holes.

--- Ivan Ivanov <[EMAIL PROTECTED]> wrote:

> Hi Stefan, 
> --- Stefan Bodewig <[EMAIL PROTECTED]> wrote:
> > 
> > No, you create it as 
> > 
> > #inputp.properties
> > Enter\ Your\ Name=Rambius Parkisanius
> > 
> > At least for JDK > 1.1.
> 
> I didn't knew that. However, I think I will use
> -propertyfile option, because in my custom task (i
> am
> writng ant task for jazzy spell checker) I have
> prompts like this:
> 
> StringBuffer prompt = new StringBuffer();
> prompt.append("Press C/c to correct,\n\t");
> prompt.append("C!/c! to correct and replace all
> occurrences,\n\t");
> prompt.append("I/i or Enter to ignore,\n\t");
> prompt.append("I!/i! or Enter to ignore all
> occurences,\n\t");
> prompt.append("or A/a to add to the dictionary:");
> input.setMessage(prompt.toString());
> String spellChoice =
> "spell.choice"+(spellChoiceId++);
> input.setAddproperty(spellChoice);
> 
> So the prompts contains lots of spaces and lots of 
> new lines "\n" so it is possible but very ugly to
> escape them in tje properties file.
> 
> Regards and thanks
> Ivan
> 
> > 
> > Cheers
> > 
> >         Stefan
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> > 
> 
> 
> 
>               
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail Address AutoComplete - You start. We
> finish.
> http://promotions.yahoo.com/new_mail 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



                
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to