Skip to content

Commit 66c9249

Browse files
author
amdegregorio
committed
BAEL-2542 Update system property name
1 parent 2e8ac81 commit 66c9249

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎core-java/src/main/java/com/baeldung/jar/JarExample.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ public class JarExample {
77
private static final String DIMENSION_FILE = "/dimensions.txt";
88

99
public static void main(String[] args) {
10-
String environment = System.getProperty("environment");
11-
if (environment != null && environment.equalsIgnoreCase("prod")) {
10+
String inputType = System.getProperty("input");
11+
if (inputType != null && inputType.equalsIgnoreCase("file")) {
1212
Dimensioner dimensioner = new Dimensioner();
1313
try {
1414
List<Rectangle> rectangles = dimensioner.loadFromFile(DIMENSION_FILE);

0 commit comments

Comments
 (0)