Revision 479 tmp/org.txm.groovy.core/src/groovy/org/txm/macro/txt/TXT2XMLMacro.groovy

TXT2XMLMacro.groovy (revision 479)
3 3
import org.kohsuke.args4j.*
4 4
import groovy.transform.Field
5 5
import java.nio.charset.Charset
6
import org.txm.rcp.swt.widget.parameters.*
6
import org.txm.rcpapplication.swt.widget.parameters.*
7 7
import org.txm.utils.*
8 8
import javax.xml.stream.*
9 9
import java.net.URL
......
29 29
	println " file: "+inputfile
30 30
	
31 31
	String name = inputfile.getName()
32
	int idx = name.indexOf(".")
32
	int idx = name.lastIndexOf(".")
33 33
	if (idx > 0) name = name.substring(0, idx)
34 34
	File outputfile = new File(outputDirectory, name+".xml")
35 35
	

Also available in: Unified diff