ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan Ivanov <rambiusparkisan...@yahoo.com>
Subject Re: Propostion for improving PropertyFileInputHandler
Date Thu, 28 Oct 2004 10:32:10 GMT
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 <rambiusparkisanius@yahoo.com> wrote:

> Hi Stefan, 
> --- Stefan Bodewig <bodewig@apache.org> 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:
> > user-unsubscribe@ant.apache.org
> > For additional commands, e-mail:
> > user-help@ant.apache.org
> > 
> > 
> 
> 
> 
> 		
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail Address AutoComplete - You start. We
> finish.
> http://promotions.yahoo.com/new_mail 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 
> 



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

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


Mime
View raw message