Skip to content

Commit

Permalink
Drop case for specific user.name
Browse files Browse the repository at this point in the history
  • Loading branch information
pzygielo committed Jan 18, 2025
1 parent cbfc679 commit e06c4a9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 26 deletions.
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;
}
}

0 comments on commit e06c4a9

Please sign in to comment.