public void newScript(String scriptAction, String prefixConditions){
ScriptList scripts = lastestScriptDirScripts();
String nextScriptName = scripts.nextScriptName(scriptAction);
File nextScript = assembler.newFile(configuration.getLatestScriptDirectory(), nextScriptName);
if(configuration.getTemplateFile().exists(false)) {
properties.setProperty(UMIGRATE_SCRIPT_NAME_PROPERTY, nextScriptName);
ParameteriserImpl.transferParameteriserProperties(configuration.uMigrateProperties(), properties);
assembler.newFileUtil().copyFile(configuration.getTemplateFile(), nextScript, properties, prefixConditions);
} else {
try {
nextScript.createNewFile();
} catch (IOException e) {
throw new RuntimeException(e);
}
}
System.out.println("***************");
System.out.println("");
System.out.println("Created Script: " + nextScript.getCanonicalPath());
System.out.println("");
}