Revision 1000 tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/importer/xtz/TTAnnotater.groovy

TTAnnotater.groovy (revision 1000)
2 2

  
3 3
import java.io.File;
4 4

  
5
import org.txm.scripts.importer.xmltxm.Annotate
6

  
7

  
5
import org.txm.importer.xmltxm.Annotate
6
import org.txm.importer.xtz.*
7
import org.txm.Toolbox
8
import org.txm.core.engines.*
8 9
/**
9 10
 * Wraps current Annotate class into the import workflow
10 11
 * 
......
33 34
			for (File txmFile : inputDirectory.listFiles()) {
34 35
				hash[txmFile.getName()] = lang;
35 36
			}
36
			if (engine.processDirectory(inputDirectory, module.getBinaryDirectory(), ["langs"=hash])) {
37
			if (engine.processDirectory(inputDirectory, module.getBinaryDirectory(), ["langs":hash])) {
37 38
				isSuccessFul = true;
38 39
			}
39 40
		} else {
40
			if (engine.processDirectory(inputDirectory, module.getBinaryDirectory(), ["lang"=lang])) {
41
			if (engine.processDirectory(inputDirectory, module.getBinaryDirectory(), ["lang":lang])) {
41 42
				isSuccessFul = true;
42 43
			}
43 44
		}

Also available in: Unified diff