Skip to content

Commit

Permalink
Update system property if a new value is passed in
Browse files Browse the repository at this point in the history
  • Loading branch information
dougrt committed Mar 31, 2015
1 parent 82fcc14 commit b912a6a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 44 deletions.
7 changes: 4 additions & 3 deletions acmeair-loader/src/main/java/com/acmeair/loader/Loader.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2013 IBM Corp.
* Copyright (c) 2013-2015 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -56,9 +56,10 @@ public Response loadDB(@DefaultValue("-1") @QueryParam("numCustomers") long numC
String message = "";
if(numCustomers == -1)
message = execute();
else
else {
System.setProperty("loader.numCustomers", Long.toString(numCustomers));
message = execute(numCustomers);

}
return Response.ok(message).build();
}

Expand Down

This file was deleted.

This file was deleted.

0 comments on commit b912a6a

Please sign in to comment.