mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
AppCode: Build Settings: taking 'userBuildSettings' from '*.pbxuser' files into account (OC-926)
This commit is contained in:
@@ -15,6 +15,8 @@
|
||||
*/
|
||||
package com.intellij.util;
|
||||
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
/**
|
||||
* Utility wrappers for accessing system properties.
|
||||
*
|
||||
@@ -23,6 +25,8 @@ package com.intellij.util;
|
||||
|
||||
@SuppressWarnings({"HardCodedStringLiteral"})
|
||||
public class SystemProperties {
|
||||
private static String ourTestUserName;
|
||||
|
||||
private SystemProperties() {
|
||||
}
|
||||
|
||||
@@ -36,7 +40,11 @@ public class SystemProperties {
|
||||
}
|
||||
|
||||
public static String getUserName() {
|
||||
return System.getProperty("user.name");
|
||||
return ourTestUserName != null ? ourTestUserName : System.getProperty("user.name");
|
||||
}
|
||||
|
||||
public static void setTestUserName(@Nullable String name) {
|
||||
ourTestUserName = name;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user