Revision 715

tmp/org.txm.tigersearch.rcp/src/org/txm/importer/tigersearch/TSImport.groovy (revision 715)
34 34
	public void start() throws InterruptedException {		
35 35
		File tigerSrcDir = sourceDirectory
36 36
		File tsXSLFile = new File(Toolbox.getTXMHOMEPATH(), "xsl/ts.xsl");
37
		BundleUtils.copyFiles("TIGERSearchRCP", "src", "org/txm/importer/tigersearch", "ts.xml", tsXSLFile.getParentFile());
37
		BundleUtils.copyFiles("TIGERSearchRCP", "src", "org/txm/importer/tigersearch", "ts.xsl", tsXSLFile.getParentFile());
38 38
		
39 39
		File xmltxmSrcDir = new File(binaryDirectory, "src"); // output directory of the TS XSL transformation
40 40
		
tmp/org.txm.groovy.core/src/groovy/org/txm/importer/xtz/XTZImport.groovy (revision 715)
87 87
		if (isSuccessful) {
88 88
			
89 89
			//declare a local KR
90
			List<String> krnames = importParameters.getKnowledgeRepositoryNames();
91
			if (krnames.size() == 0) {
92
				importParameters.createKnowledgeRepositoryElement("DEFAULT"); // set a default KR shared by all XTZ corpus
93
			} else if (krnames.size() == 1 && krnames.get(0).equals("DEFAULT")) {
94
				// nothing to do
95
			} else {
96
				println("Corpus is using custom Knowledge repositories: "+importParameters.getKnowledgeRepositoryNames());
97
			}
90
			//TODO find out how the annotation plugin may hook the import steps
91
//			List<String> krnames = importParameters.getKnowledgeRepositoryNames();
92
//			if (krnames.size() == 0) {
93
//				importParameters.createKnowledgeRepositoryElement("DEFAULT"); // set a default KR shared by all XTZ corpus
94
//			} else if (krnames.size() == 1 && krnames.get(0).equals("DEFAULT")) {
95
//				// nothing to do
96
//			} else {
97
//				println("Corpus is using custom Knowledge repositories: "+importParameters.getKnowledgeRepositoryNames());
98
//			}
98 99
			
99 100
			//copy sub directories
100 101
			if (isUpdatingCorpus()) {

Also available in: Unified diff