Revision 715 tmp/org.txm.groovy.core/src/groovy/org/txm/importer/xtz/XTZImport.groovy

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