BAEL-2542 Update system property name

This commit is contained in:
amdegregorio 2019-01-28 06:53:52 -05:00
parent 2e8ac81c2d
commit 66c92495fb
1 changed files with 2 additions and 2 deletions

View File

@ -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);