You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by xa...@apache.org on 2009/01/25 18:47:24 UTC
svn commit: r737546 - in /ant/ivy/core/trunk: CHANGES.txt
src/java/org/apache/ivy/core/settings/IvySettings.java
Author: xavier
Date: Sun Jan 25 17:47:24 2009
New Revision: 737546
URL: http://svn.apache.org/viewvc?rev=737546&view=rev
Log:
IMPROVEMENT: catch AccessControlException on System.getProperties() (IVY-1015)
Modified:
ant/ivy/core/trunk/CHANGES.txt
ant/ivy/core/trunk/src/java/org/apache/ivy/core/settings/IvySettings.java
Modified: ant/ivy/core/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/CHANGES.txt?rev=737546&r1=737545&r2=737546&view=diff
==============================================================================
--- ant/ivy/core/trunk/CHANGES.txt (original)
+++ ant/ivy/core/trunk/CHANGES.txt Sun Jan 25 17:47:24 2009
@@ -89,6 +89,7 @@
- IMPROVEMENT: add -version option on command line (IVY-1014)
- IMPROVEMENT: support resolve refresh in command line (IVY-1013)
- IMPROVEMENT: Error message is not clear when specifying an invalid value for checksums (IVY-977)
+- IMPROVEMENT: catch AccessControlException on System.getProperties() (IVY-1015)
- FIX: TTL does not work as expected (IVY-1012)
- FIX: Listing of URL's under a given URL does not handle fully specified URL's (IVY-959) (thanks to Randy Nott)
Modified: ant/ivy/core/trunk/src/java/org/apache/ivy/core/settings/IvySettings.java
URL: http://svn.apache.org/viewvc/ant/ivy/core/trunk/src/java/org/apache/ivy/core/settings/IvySettings.java?rev=737546&r1=737545&r2=737546&view=diff
==============================================================================
--- ant/ivy/core/trunk/src/java/org/apache/ivy/core/settings/IvySettings.java (original)
+++ ant/ivy/core/trunk/src/java/org/apache/ivy/core/settings/IvySettings.java Sun Jan 25 17:47:24 2009
@@ -26,6 +26,7 @@
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLClassLoader;
+import java.security.AccessControlException;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.Collection;
@@ -291,7 +292,13 @@
}
private void addSystemProperties() {
- addAllVariables(System.getProperties());
+ try {
+ addAllVariables(System.getProperties());
+ } catch (AccessControlException ex) {
+ Message.verbose(
+ "access denied to getting all system properties: they won't be available as Ivy variables."
+ + "\nset " + ex.getPermission() + " permission if you want to access them");
+ }
}
/**