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 Details

  • Method Details

    • deleteRecursive

      public static boolean deleteRecursive​(File path) throws FileNotFoundException
      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

      public static void main​(String[] args) throws IOException, URISyntaxException
      Parameters:
      args - String[]; args, should be blank
      Throws:
      IOException - on I/O error
      URISyntaxException - when file could not be found on the file system