Mark,
Can I make a suggestion related to the ant build script. Can we add two
properties to set the values of ` -Duser.language` and `-Duser.country`,
because in the course of my testing I found that some of the unit test
assertions are in English, but there may be cases where the values are
converted by sm, e.g. Chinese.
Just like this:
Assert.assertEquals("ok”,x);
The variable x becomes "好" after passing through the StringManager.
So this makes it a bit inconvenient for non-English speaking developers to
test. I avoid this problem by adding a statement to build.xml each time I run a
test.
<jvmarg value="-Duser.language=en"/>
<jvmarg value="-Duser.country=US"/>
So I was wondering if we could dynamically set these two values via
build.properties
Thanks,
Han
> 2022年8月10日 18:02,Mark Thomas <[email protected]> 写道:
>
> On 09/08/2022 20:19, Christopher Schultz wrote:
>> On 8/9/22 14:09, Mark Thomas wrote:
>
> <snip/>
>
>>> This issue is the zip files. Time stamps in zip files use local (yes, local
>>> - I didn't mistype that) time. Hence you need to use the same time zone to
>>> get a repeatable build.
>>>
>>> We have a few options here:
>>>
>>> 1. Document the time zone in use for the build and require the same
>>> timezone to be used for repeatable builds.
>> We might want to do this anyway, regardless.
>
> Agreed. I also spotted that adding "do.codesigning=true" would help
> repeatable builds. I'll get both of those added.
>
>>> 2. Require UTC.
>> Can that be done on the CLI for a single process on Windows? It will likely
>> work for *NIX no problem. I use a semi-dedicated Windows VM for building
>> releases, so I have no problem just switching it to UTC.
>
> I'm not sure. Figuring that out is next on my TODO list. I'd really like to
> make this part of the Ant build script if I can though.
>
>> I also really need to switch to building natively on my Mac because the
>> whole VM thing is really cramping my style. :)
>
> That should be doable. From memory, wine required a little hoop jumping to
> get working but it didn't take too long.
>
>>> 3. Find a way to force Ant to use a specific timezone.
>> -Duser.timezone?
>
> That should work. We could require that to be used on the command line. I was
> hoping to find a way to set that within the script so the release manager
> still just has to do a "ant release".
>
> I was thinking about a custom Ant task that set the global time zone (if
> there isn't anything built into Any that does that).
>
> Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]