Revision 3038 tmp/org.txm.groovy.core/src/groovy/org/txm/macro/projects/nov13/PrepareTranscriptionsMacro.groovy

PrepareTranscriptionsMacro.groovy (revision 3038)
27 27
@Field @Option(name="debug", usage="speaker ID of the primary speaker", widget="Boolean", required=false, def="false")
28 28
		Boolean debug
29 29
		
30
@Field @Option(name="cleanWorkingDirectories", usage="Clean working directories is selected", widget="Boolean", required=false, def="true")
31
		Boolean cleanWorkingDirectories
32
		
30 33
if (!ParametersDialog.open(this)) return;
31 34

  
32 35
if (resultDirectory.equals(vocapiaDirectory)) {
......
103 106
}
104 107
cpb.done()
105 108

  
106
if (!debug) {
109
if (!cleanWorkingDirectories) {
107 110
	otherDirectory.deleteDir()
108 111
	trsDirectory.deleteDir()
112
	sectionsDirectory.deleteDir()
109 113
}
110 114

  
111 115
println "Done: "+trsFiles.size()+" files processed. Result files in $resultDirectory"

Also available in: Unified diff