BAEL-2542 Update system property name
This commit is contained in:
parent
2e8ac81c2d
commit
66c92495fb
|
@ -7,8 +7,8 @@ public class JarExample {
|
|||
private static final String DIMENSION_FILE = "/dimensions.txt";
|
||||
|
||||
public static void main(String[] args) {
|
||||
String environment = System.getProperty("environment");
|
||||
if (environment != null && environment.equalsIgnoreCase("prod")) {
|
||||
String inputType = System.getProperty("input");
|
||||
if (inputType != null && inputType.equalsIgnoreCase("file")) {
|
||||
Dimensioner dimensioner = new Dimensioner();
|
||||
try {
|
||||
List<Rectangle> rectangles = dimensioner.loadFromFile(DIMENSION_FILE);
|
||||
|
|
Loading…
Reference in New Issue