code: private static void createDirectory(final File directory) throws MojoExecutionException
    {
  
      try {
        com.sap.prd.mobile.ios.mios.FileUtils.deleteDirectory(directory);
      }
      catch (IOException ex) {
        throw new MojoExecutionException("", ex);
      }
  
      if (!directory.mkdirs())
        throw new MojoExecutionException("Cannot create directory (" + directory + ")");
    }
docs: Creates a directory. If the directory already exists the directory is deleted beforehand.
  
  @param directory
  @throws MojoExecutionException