Revision 2246 tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/importer/xtz/XTZImporter.groovy

XTZImporter.groovy (revision 2246)
115 115
					Toolbox.getPreference(TBXPreferences.METADATA_TXTSEPARATOR), 1)
116 116
		}
117 117

  
118
		String cleanDirectories = project.getCleanAfterBuild();
118
		// remove previous Text if any
119
		project.deleteChildren(Text.class);
120
		
121
		
122
		// main workflow of XTZ importer step
123
		
119 124

  
120 125
		if (!doFixSurrogates()) return;
121 126
		if (!doSplitMergeXSLStep()) return;
......
126 131
		if (!doEncodeMileStonesStep()) return;
127 132
		if (!doToXMLTXMStep()) return;
128 133
		if (!doInjectMetadataStep()) return;
129

  
134
		
130 135
		isSuccessFul = filesToProcess.size() > 0
131 136

  
137
		String cleanDirectories = project.getCleanAfterBuild();
132 138
		if ("true".equals(cleanDirectories)) {
133 139
			new File(module.getBinaryDirectory(), "tokenized").deleteDir()
134 140
			new File(module.getBinaryDirectory(), "src").deleteDir()

Also available in: Unified diff