ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Properties files are not properly loaded when testing class under junit task (possible bug)
Date Fri, 14 Nov 2003 14:21:11 GMT
On Fri, 14 Nov 2003, David Leal <achepati67@yahoo.es> wrote:

> I HAVE SET TO THE VALUE:
> 
> SET ANT_OPTS=-Duser.language=en
> 
> AND IT WORKS,

OK, so you have to set it before starting the Java VM that runs
JUnit.  If you fork <junit>, this can be done from inside Ant with
<sysproperty>.  If you don't fork <junit> you must set it before you
start Ant and ANT_OPTS (that you can set in ~/.antrc on Unix or
%HOME%\antrc_pre.bat on Windows).

Or you can explicitly try to (re)set the default locale as Peter
suggests.

If forking fails because of classpath problems, you'll have to make
sure you have everything you need in the classpath.

Stefan

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


Mime
View raw message