Package org.djunits.generator
Class GenerateDJUNIT
java.lang.Object
org.djunits.generator.GenerateDJUNIT
public class GenerateDJUNIT extends Object
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License
- Author:
- Alexander Verbraeck, Peter Knoppers
-
Constructor Summary
Constructors Constructor Description GenerateDJUNIT()
-
Method Summary
Modifier and Type Method Description static boolean
deleteRecursive(File path)
By default File#delete fails for non-empty directories, it works like "rm".static void
main(String[] args)
-
Constructor Details
-
GenerateDJUNIT
public GenerateDJUNIT()
-
-
Method Details
-
deleteRecursive
By default File#delete fails for non-empty directories, it works like "rm". We need something a little more brutal - this does the equivalent of "rm -r". From: http://stackoverflow.com/questions/779519/delete-files-recursively-in-java. Note: USE CAREFULLY.- Parameters:
path
- File; Root File Path- Returns:
- true iff the file and all sub files/directories have been removed
- Throws:
FileNotFoundException
- on error (e.g., locked file)
-
main
- Parameters:
args
- String[]; args, should be blank- Throws:
IOException
- on I/O errorURISyntaxException
- when file could not be found on the file system
-