@Test public void testDeleteGeneratedFiles() throws Exception { File dir = this.folder.newFolder(); File appDir = new File( dir, "my-app" ); Utils.createDirectory( appDir ); Assert.assertTrue( appDir.exists()); TemplateUtils.deleteGeneratedFiles( new Application( "my-app", null ), dir ); Assert.assertFalse( appDir.exists()); Assert.assertTrue( dir.exists()); }
public static void deleteGeneratedFiles( Application app, File outputDirectory ) { File target = new File( outputDirectory, app.getName()); Utils.deleteFilesRecursivelyAndQuietly( target ); }
TemplateUtils { public static void deleteGeneratedFiles( Application app, File outputDirectory ) { File target = new File( outputDirectory, app.getName()); Utils.deleteFilesRecursivelyAndQuietly( target ); } }
TemplateUtils { public static void deleteGeneratedFiles( Application app, File outputDirectory ) { File target = new File( outputDirectory, app.getName()); Utils.deleteFilesRecursivelyAndQuietly( target ); } private  TemplateUtils(); }
TemplateUtils { public static void deleteGeneratedFiles( Application app, File outputDirectory ) { File target = new File( outputDirectory, app.getName()); Utils.deleteFilesRecursivelyAndQuietly( target ); } private  TemplateUtils(); static String findApplicationName( final File templateDir, final File templateFile ); static void generate( Application app, File outputDirectory, Collection<TemplateEntry> templates, Logger logger ); static void deleteGeneratedFiles( Application app, File outputDirectory ); static Collection<TemplateEntry> findTemplatesForApplication( String appName, Collection<TemplateEntry> templates ); }
TemplateUtils { public static void deleteGeneratedFiles( Application app, File outputDirectory ) { File target = new File( outputDirectory, app.getName()); Utils.deleteFilesRecursivelyAndQuietly( target ); } private  TemplateUtils(); static String findApplicationName( final File templateDir, final File templateFile ); static void generate( Application app, File outputDirectory, Collection<TemplateEntry> templates, Logger logger ); static void deleteGeneratedFiles( Application app, File outputDirectory ); static Collection<TemplateEntry> findTemplatesForApplication( String appName, Collection<TemplateEntry> templates );  }