Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop case for specific user.name #25332

Merged
merged 1 commit into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright (c) 2025 Contributors to the Eclipse Foundation. All rights reserved.
* Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
Expand Down Expand Up @@ -287,12 +288,7 @@ static void printf(String fmt, Object... args) {
protected final static boolean isHudson = Boolean.parseBoolean(System.getenv("HUDSON"));

static {
String name = System.getProperty("user.name");

if (name != null && name.equals("bnevins")) {
DEBUG = true;
}
else if (isHudson) {
if (isHudson) {
DEBUG = true;
}
else if (Boolean.parseBoolean(System.getenv("AS_DEBUG"))) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright (c) 2025 Contributors to the Eclipse Foundation. All rights reserved.
* Copyright (c) 2009, 2018 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
Expand Down Expand Up @@ -177,11 +178,7 @@ public static void printf(String fmt, Object... args) {
protected final static boolean isHudson = Boolean.parseBoolean(System.getenv("HUDSON"));

static {
String name = System.getProperty("user.name");

if (name != null && name.equals("bnevins"))
DEBUG = true;
else if (isHudson)
if (isHudson)
DEBUG = true;
else if (Boolean.parseBoolean(System.getenv("AS_DEBUG")))
DEBUG = true;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*
* Copyright (c) 2025 Contributors to the Eclipse Foundation. All rights reserved.
* Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
Expand Down Expand Up @@ -30,12 +31,7 @@ public DeploymentTestsUI()
{
System.setProperty(Env.USE_TLS_SYSTEM_PROPERTY, "true");

File f = getPersistenceFile();

if(f != null)
persist = new SimplePersistence(f, true);
else
persist = new SimplePersistence(this);
persist = new SimplePersistence(this);
getArgs();
setPort();
getSamplesDir();
Expand Down Expand Up @@ -281,14 +277,5 @@ public boolean accept(File f)
return name.endsWith(".ear") || name.endsWith(".jar") || name.endsWith(".rar") || name.endsWith(".war");
}
}
private File getPersistenceFile()
{
String s = System.getProperty("user.name");

if(s != null && s.equals("bnevins"))
return new File("C:/tmp/DeploymentTestsUI.persist.properties");

return null;
}
}

Loading