2006-09-25 23:22:05 +00:00
|
|
|
//#
|
2007-09-12 17:30:35 +00:00
|
|
|
//#*******************************************************************************
|
2014-01-21 15:40:01 +00:00
|
|
|
//#* Copyright (C) 1997-2014, International Business Machines Corporation and *
|
2006-09-25 23:22:05 +00:00
|
|
|
//#* others. All Rights Reserved. *
|
|
|
|
//#*******************************************************************************
|
|
|
|
//#* This is the ant build file for ICU4J. See readme.html for more information.
|
|
|
|
//#*
|
2004-02-06 21:54:06 +00:00
|
|
|
// policies needed to run tests
|
2009-06-18 22:29:33 +00:00
|
|
|
grant
|
2004-02-06 21:54:06 +00:00
|
|
|
{
|
2007-09-12 17:30:35 +00:00
|
|
|
// temporary for debugging
|
|
|
|
// permission java.lang.RuntimePermission "getProtectionDomain";
|
2003-11-14 21:56:54 +00:00
|
|
|
|
2007-09-12 17:30:35 +00:00
|
|
|
permission java.lang.RuntimePermission "accessDeclaredMembers";
|
2004-11-22 18:11:02 +00:00
|
|
|
|
2007-09-12 17:30:35 +00:00
|
|
|
// needed for Locale.setDefault, only used in tests and demos
|
|
|
|
permission java.util.PropertyPermission "user.language", "write";
|
2003-11-14 21:56:54 +00:00
|
|
|
|
2009-06-18 22:29:33 +00:00
|
|
|
// for charsets
|
2006-09-25 23:22:05 +00:00
|
|
|
permission java.lang.RuntimePermission "charsetProvider", "read";
|
|
|
|
|
2009-01-19 20:10:15 +00:00
|
|
|
// IBM 1.6 on Windows does not allow to use reflection to access
|
|
|
|
// getDSTSavings in TimeZone implementation class in sun.util.clanedar.
|
|
|
|
permission java.lang.RuntimePermission "accessClassInPackage.sun.util.calendar";
|
2010-01-20 17:50:58 +00:00
|
|
|
|
|
|
|
// for testing lenient decimal/group separator parsing
|
|
|
|
permission java.util.PropertyPermission "com.ibm.icu.text.DecimalFormat.SkipExtendedSeparatorParsing", "write";
|
2014-01-21 15:40:01 +00:00
|
|
|
|
|
|
|
// for setting the default time zone by the test framework
|
|
|
|
permission java.util.PropertyPermission "user.timezone", "write";
|
2003-11-14 21:56:54 +00:00
|
|
|
};
|
|
|
|
|
2005-05-24 00:38:11 +00:00
|
|
|
// there must be a way for code in one jar file to call code in another jar
|
|
|
|
// file and give the called code permission to read the calling code's
|
|
|
|
// jar. they're in different protection domains despite being on the
|
|
|
|
// same classpath and being loaded by the same class loader, so the class
|
|
|
|
// loader doesn't disambiguate which protection domain we're using. it's
|
|
|
|
// not easy to figure out the security docs, sigh.
|
|
|
|
//
|
2009-06-18 22:29:33 +00:00
|
|
|
// this is so ICUData (in icu4j.jar), called from test code (in core/charset tests jar)
|
|
|
|
// can read test resource files (in core/charset tests jar)
|
2005-05-24 00:38:11 +00:00
|
|
|
//
|
2009-07-22 01:32:09 +00:00
|
|
|
grant codebase "file:${user.dir}/icu4j.jar"
|
2005-05-24 00:38:11 +00:00
|
|
|
{
|
2009-07-22 01:32:09 +00:00
|
|
|
permission java.io.FilePermission "${/}${user.dir}${/}icu4jtests.jar", "read";
|
2011-03-01 07:48:43 +00:00
|
|
|
permission java.io.FilePermission "${/}${user.dir}${/}icu4j-charset.jar", "read";
|
2010-01-20 17:50:58 +00:00
|
|
|
|
|
|
|
permission java.util.PropertyPermission "com.ibm.icu.util.TimeZone.DefaultTimeZoneType", "read";
|
|
|
|
permission java.util.PropertyPermission "com.ibm.icu.text.DecimalFormat.SkipExtendedSeparatorParsing", "read";
|
2009-01-19 20:10:15 +00:00
|
|
|
};
|
2009-06-18 22:29:33 +00:00
|
|
|
|
2009-07-22 01:32:09 +00:00
|
|
|
grant codebase "file:${user.dir}/icu4jtests.jar"
|
2009-06-18 22:29:33 +00:00
|
|
|
{
|
2009-07-22 01:32:09 +00:00
|
|
|
permission java.io.FilePermission "${/}${user.dir}${/}icu4j.jar", "read";
|
2009-06-18 22:29:33 +00:00
|
|
|
};
|