Revision 479 tmp/org.txm.groovy.core/src/groovy/org/txm/macro/annotation/InjectWordPropTableMacro.groovy

InjectWordPropTableMacro.groovy (revision 479)
1 1
package org.txm.macro.annotation;
2 2

  
3 3
import org.txm.utils.*
4
import org.txm.utils.io.FileCopy;
5 4

  
6 5
import java.nio.charset.Charset
7 6

  
......
9 8

  
10 9
import groovy.transform.Field
11 10

  
12
import org.txm.rcp.swt.widget.parameters.*
11
import org.txm.rcpapplication.swt.widget.parameters.*
13 12

  
14 13
@Field @Option(name="inputDirectory", usage="The XML-TXM folder", widget="Folder", required=true, def="")
15 14
def inputDirectory = new File(System.getProperty("user.home"), "xml/anapovoas/HELPTXM-02-131124/ite02")
......
82 81
println "Injecting..."
83 82
//for (String textid : injections.keySet()) {
84 83
for (File currentXMLFile : inputDirectory.listFiles()) {
84
	if (currentXMLFile.isDirectory()) continue;
85
	if (currentXMLFile.isHidden()) continue;
86
	
85 87
	String textid = currentXMLFile.getName();
86 88
	int idx = textid.indexOf(".")
87 89
	if (idx > 0) textid = textid.substring(0, idx);

Also available in: Unified diff