ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Magesh Umasankar" <umag...@rediffmail.com>
Subject Re: [SUBMIT] Translate - a useful task for i18n
Date Sun, 21 Oct 2001 02:14:10 GMT

On Sun, 21 Oct 2001 Peter Donald wrote :
> I would also like to repackage it 
> into .taskdefs.optional.i18n.*

No worries, mate.

In the execute method, please add these two checks too as
this task currently does not support start tokens and end
tokens longer than one character in length.  I consider
a token as a single character, but if the need arises
for the tokens to be more than 1 character in length,
I would be happy to provide a patch.  

Meanwhile, please  add these extra checks to the task's 
execute() method:

//This goes right after the startToken == null check.
        if (startToken.length() != 1) {
            throw new BuildException(
                "The starttoken attribute must be a single character.",
                                         location);
        }

//This goes right after the endToken == null check.
        if (endToken.length() != 1) {
            throw new BuildException(
                "The endtoken attribute must be a single character.",
                                         location);
        }

Thanks,
Magesh
 


Mime
View raw message