Révision 1659
tmp/org.txm.searchengine.cqp.core/src/org/txm/searchengine/cqp/corpus/MainCorpus.java (revision 1659) | ||
---|---|---|
43 | 43 |
import org.txm.Toolbox; |
44 | 44 |
import org.txm.core.messages.TXMCoreMessages; |
45 | 45 |
import org.txm.core.results.TXMParameters; |
46 |
import org.txm.importer.cwb.PatchCwbRegistry; |
|
46 | 47 |
import org.txm.objects.Project; |
47 | 48 |
import org.txm.searchengine.cqp.AbstractCqiClient; |
48 | 49 |
import org.txm.searchengine.cqp.CQPSearchEngine; |
... | ... | |
652 | 653 |
this.registryFile = new File(getProjectDirectory(), "registry/"+getID().toLowerCase()); |
653 | 654 |
|
654 | 655 |
try { |
656 |
|
|
657 |
try { |
|
658 |
PatchCwbRegistry.patch(registryFile, dataDirectory); |
|
659 |
} catch (IOException e) { |
|
660 |
Log.severe(TXMCoreMessages.bind("Error while updating registry file {0}.", registryFile)); |
|
661 |
Log.printStackTrace(e); |
|
662 |
return false; |
|
663 |
} |
|
664 |
|
|
655 | 665 |
CQPSearchEngine.getCqiClient().load_a_system_corpus(this.registryFile.getParent(), this.pID); |
656 | 666 |
corpora.put(this.pID, this); // register the corpus |
657 | 667 |
} catch(Exception e) { |
Formats disponibles : Unified diff