1
0
Fork 0
mirror of https://github.com/graphhopper/jsprit.git synced 2020-01-24 07:45:05 +01:00

modify examples according to issue #24, i.e. if output-folder does not

exist, it is created.
This commit is contained in:
oblonski 2013-07-17 11:55:20 +02:00
parent 8950d49e5a
commit 03e95c74a9
6 changed files with 66 additions and 4 deletions

View file

@ -155,6 +155,16 @@ public class RefuseCollectionExample {
* @throws IOException
*/
public static void main(String[] args) throws IOException {
/*
* some preparation - create output folder
*/
File dir = new File("output");
// if the directory does not exist, create it
if (!dir.exists()){
System.out.println("creating directory ./output");
boolean result = dir.mkdir();
if(result) System.out.println("./output created");
}
/*
* create vehicle-type and vehicle