Révision 878
| tmp/org.txm.groovy.core/src/groovy/org/txm/importer/bvh/importer.groovy (revision 878) | ||
|---|---|---|
| 71 | 71 |
milestones.add("pb");
|
| 72 | 72 |
milestones.add("lb");
|
| 73 | 73 |
|
| 74 |
File binDir = new File(Toolbox.getTXMHOMEPATH(),"corpora/"+basename);
|
|
| 74 |
File binDir = new File(Toolbox.getTxmHomePath(),"corpora/"+basename);
|
|
| 75 | 75 |
binDir.deleteDir(); |
| 76 | 76 |
binDir.mkdir(); |
| 77 | 77 |
new File(binDir,"ptokenized").deleteDir(); |
| tmp/org.txm.groovy.core/src/groovy/org/txm/importer/bvh/bvhLoader.groovy (revision 878) | ||
|---|---|---|
| 80 | 80 |
println "IMPORTER" |
| 81 | 81 |
new importer().run(new File(rootDir), basename); |
| 82 | 82 |
|
| 83 |
File binDir = new File(Toolbox.getTXMHOMEPATH(),"corpora/"+basename);
|
|
| 83 |
File binDir = new File(Toolbox.getTxmHomePath(),"corpora/"+basename);
|
|
| 84 | 84 |
rootDir = binDir.getAbsolutePath(); |
| 85 | 85 |
|
| 86 | 86 |
println "ANNOTATE - fr " |
| ... | ... | |
| 104 | 104 |
//move registry file to cwb registry dir |
| 105 | 105 |
File registryfile = new File(rootDir+"/registry",basename); |
| 106 | 106 |
if(registryfile.exists()) |
| 107 |
org.txm.utils.FileCopy.copy(registryfile,new File(Toolbox.getTXMHOMEPATH(),"registry/"+basename))
|
|
| 107 |
org.txm.utils.FileCopy.copy(registryfile,new File(Toolbox.getTxmHomePath(),"registry/"+basename))
|
|
| 108 | 108 |
|
| 109 | 109 |
Workspace w = org.txm.Toolbox.workspace; |
| 110 | 110 |
Project p = w.getProject("default")
|
| tmp/org.txm.groovy.core/src/groovy/org/txm/importer/xmltxm/xmltxmLoader.groovy (revision 878) | ||
|---|---|---|
| 83 | 83 |
boolean build_edition = params.getDoEdition("default")
|
| 84 | 84 |
|
| 85 | 85 |
File srcDir = new File(rootDir); |
| 86 |
File binDir = new File(Toolbox.getTXMHOMEPATH(),"corpora/"+basename);
|
|
| 86 |
File binDir = new File(Toolbox.getTxmHomePath(),"corpora/"+basename);
|
|
| 87 | 87 |
binDir.deleteDir(); |
| 88 | 88 |
binDir.mkdirs(); |
| 89 | 89 |
if (!binDir.exists()) {
|
| tmp/org.txm.groovy.core/src/groovy/org/txm/importer/fleurs/fleursLoader.groovy (revision 878) | ||
|---|---|---|
| 78 | 78 |
def imp = new importer(); |
| 79 | 79 |
imp.run(homedir, basename); |
| 80 | 80 |
|
| 81 |
File binDir = new File(Toolbox.getTXMHOMEPATH(),"corpora/"+basename);
|
|
| 81 |
File binDir = new File(Toolbox.getTxmHomePath(),"corpora/"+basename);
|
|
| 82 | 82 |
rootDir = binDir.getAbsolutePath()+"/"; |
| 83 | 83 |
|
| 84 | 84 |
println "-- ANNOTATE - Running NLP tools" |
| ... | ... | |
| 95 | 95 |
//move registry file to cwb registry dir |
| 96 | 96 |
File registryfile = new File(rootDir,"registry/"+basename); |
| 97 | 97 |
if(registryfile.exists()) |
| 98 |
FileCopy.copy(registryfile,new File(Toolbox.getTXMHOMEPATH(),"registry/"+basename.toLowerCase()))
|
|
| 98 |
FileCopy.copy(registryfile,new File(Toolbox.getTxmHomePath(),"registry/"+basename.toLowerCase()))
|
|
| 99 | 99 |
|
| 100 | 100 |
Workspace w = org.txm.Toolbox.workspace; |
| 101 | 101 |
|
| tmp/org.txm.groovy.core/src/groovy/org/txm/importer/fleurs/importer.groovy (revision 878) | ||
|---|---|---|
| 59 | 59 |
{
|
| 60 | 60 |
String rootDir = dir.getAbsolutePath()+"/" |
| 61 | 61 |
//cleaning |
| 62 |
File binDir = new File(Toolbox.getTXMHOMEPATH(),"corpora/"+basename);
|
|
| 62 |
File binDir = new File(Toolbox.getTxmHomePath(),"corpora/"+basename);
|
|
| 63 | 63 |
binDir.deleteDir(); |
| 64 | 64 |
binDir.mkdir(); |
| 65 | 65 |
new File(binDir,"txm").deleteDir(); |
| tmp/org.txm.groovy.core/src/groovy/org/txm/importer/doc/docLoader.groovy (revision 878) | ||
|---|---|---|
| 83 | 83 |
boolean build_edition = params.getDoEdition("default")
|
| 84 | 84 |
|
| 85 | 85 |
File srcDir = new File(rootDir); |
| 86 |
File binDir = new File(Toolbox.getTXMHOMEPATH(), "corpora/"+basename);
|
|
| 86 |
File binDir = new File(Toolbox.getTxmHomePath(), "corpora/"+basename);
|
|
| 87 | 87 |
binDir.deleteDir(); |
| 88 | 88 |
binDir.mkdirs(); |
| 89 | 89 |
if (!binDir.exists()) {
|
| ... | ... | |
| 128 | 128 |
if (MONITOR != null && MONITOR.isCanceled()) { return MONITOR.done(); }
|
| 129 | 129 |
if (MONITOR != null) MONITOR.worked(20, "CREATING TEI FILES") |
| 130 | 130 |
println "-- CONVERTER - Converting source files" |
| 131 |
File xsldir = new File(Toolbox.getTXMHOMEPATH(), "xsl")
|
|
| 131 |
File xsldir = new File(Toolbox.getTxmHomePath(), "xsl")
|
|
| 132 | 132 |
if (!DocumentToTei.processFiles(srcfiles, txmDir, xsldir)) {
|
| 133 | 133 |
println "Abord import" |
| 134 | 134 |
return; |
| ... | ... | |
| 333 | 333 |
File newcss = new File(outdir, textname+".css") |
| 334 | 334 |
css.renameTo(newcss) |
| 335 | 335 |
} |
| 336 |
File doc = new File(Toolbox.getTXMHOMEPATH(), "css/doc.css")
|
|
| 336 |
File doc = new File(Toolbox.getTxmHomePath(), "css/doc.css")
|
|
| 337 | 337 |
doc_copy = new File(outdir, "doc.css") |
| 338 | 338 |
FileCopy.copy(doc, doc_copy); |
| 339 | 339 |
|
| tmp/org.txm.groovy.core/src/groovy/org/txm/importer/cqp/cqpLoader.groovy (revision 878) | ||
|---|---|---|
| 52 | 52 |
boolean build_edition = params.getDoEdition("default")
|
| 53 | 53 |
|
| 54 | 54 |
File srcDir = new File(rootDir); |
| 55 |
File binDir = new File(Toolbox.getTXMHOMEPATH(),"corpora/"+basename);
|
|
| 55 |
File binDir = new File(Toolbox.getTxmHomePath(),"corpora/"+basename);
|
|
| 56 | 56 |
binDir.deleteDir(); |
| 57 | 57 |
binDir.mkdirs(); |
| 58 | 58 |
if (!binDir.exists()) {
|
| tmp/org.txm.groovy.core/src/groovy/org/txm/importer/frantext/frantextLoader.groovy (revision 878) | ||
|---|---|---|
| 80 | 80 |
boolean build_edition = params.getDoEdition("default")
|
| 81 | 81 |
|
| 82 | 82 |
File srcDir = new File(rootDir); |
| 83 |
File binDir = new File(Toolbox.getTXMHOMEPATH(),"corpora/"+basename);
|
|
| 83 |
File binDir = new File(Toolbox.getTxmHomePath(),"corpora/"+basename);
|
|
| 84 | 84 |
binDir.deleteDir(); |
| 85 | 85 |
binDir.mkdirs(); |
| 86 | 86 |
if (!binDir.exists()) {
|
| ... | ... | |
| 113 | 113 |
// Apply XSL |
| 114 | 114 |
if (MONITOR != null) MONITOR.worked(5, "APPLYING XSL") |
| 115 | 115 |
if (MONITOR != null && MONITOR.isCanceled()) { return MONITOR.done(); }
|
| 116 |
File xslFile = new File(Toolbox.getTXMHOMEPATH(), "xsl/txm-filter-teifrantext-teibfm.xsl") // force xsl
|
|
| 116 |
File xslFile = new File(Toolbox.getTxmHomePath(), "xsl/txm-filter-teifrantext-teibfm.xsl") // force xsl
|
|
| 117 | 117 |
|
| 118 | 118 |
if (!ApplyXsl2.processImportSources(xslFile, srcDir, new File(binDir, "xsl"))) {
|
| 119 | 119 |
println "Error: failed to apply xsl $xsl. Aborting import." |
| tmp/org.txm.groovy.core/src/groovy/org/txm/importer/xmltxmpara/xmltxmparaLoader.groovy (revision 878) | ||
|---|---|---|
| 61 | 61 |
} |
| 62 | 62 |
|
| 63 | 63 |
File srcDir = new File(rootDir); |
| 64 |
File binDir = new File(Toolbox.getTXMHOMEPATH(),"corpora/"+srcDir.getName());
|
|
| 64 |
File binDir = new File(Toolbox.getTxmHomePath(),"corpora/"+srcDir.getName());
|
|
| 65 | 65 |
binDir.deleteDir(); |
| 66 | 66 |
binDir.mkdirs(); |
| 67 | 67 |
if (!binDir.exists()) {
|
| tmp/org.txm.groovy.core/src/groovy/org/txm/importer/perrault/perraultLoader.groovy (revision 878) | ||
|---|---|---|
| 90 | 90 |
//move registry file to cwb registry dir |
| 91 | 91 |
File registryfile = new File(rootDir+"/registry","perrault"); |
| 92 | 92 |
if(registryfile.exists()) |
| 93 |
org.txm.utils.FileCopy.copy(registryfile,new File(Toolbox.getTXMHOMEPATH(),"registry/perrault"))
|
|
| 93 |
org.txm.utils.FileCopy.copy(registryfile,new File(Toolbox.getTxmHomePath(),"registry/perrault"))
|
|
| 94 | 94 |
|
| 95 | 95 |
|
| 96 | 96 |
Workspace w = org.txm.Toolbox.workspace; |
| tmp/org.txm.groovy.core/src/groovy/org/txm/importer/corptef/importer.groovy (revision 878) | ||
|---|---|---|
| 60 | 60 |
String rootDir = dir.getAbsolutePath()+"/"; |
| 61 | 61 |
|
| 62 | 62 |
//clean directories |
| 63 |
File binDir = new File(Toolbox.getTXMHOMEPATH(),"corpora/corptef");
|
|
| 63 |
File binDir = new File(Toolbox.getTxmHomePath(),"corpora/corptef");
|
|
| 64 | 64 |
binDir.deleteDir(); |
| 65 | 65 |
binDir.mkdir(); |
| 66 | 66 |
new File(binDir,"ptokenized").deleteDir(); |
| tmp/org.txm.groovy.core/src/groovy/org/txm/importer/corptef/corptefLoader.groovy (revision 878) | ||
|---|---|---|
| 73 | 73 |
println "-- IMPORTER - Reading source files" |
| 74 | 74 |
new importer().run(dir); |
| 75 | 75 |
|
| 76 |
File binDir = new File(Toolbox.getTXMHOMEPATH(),"corpora/corptef");
|
|
| 76 |
File binDir = new File(Toolbox.getTxmHomePath(),"corpora/corptef");
|
|
| 77 | 77 |
rootDir = binDir.getAbsolutePath(); |
| 78 | 78 |
dir = new File(rootDir); |
| 79 | 79 |
|
| ... | ... | |
| 91 | 91 |
//move registry file to cwb registry dir |
| 92 | 92 |
File registryfile = new File(rootDir+"/registry","corptef"); |
| 93 | 93 |
if(registryfile.exists()) |
| 94 |
org.txm.utils.FileCopy.copy(registryfile,new File(Toolbox.getTXMHOMEPATH(),"registry/corptef"))
|
|
| 94 |
org.txm.utils.FileCopy.copy(registryfile,new File(Toolbox.getTxmHomePath(),"registry/corptef"))
|
|
| 95 | 95 |
|
| 96 | 96 |
Workspace w = org.txm.Toolbox.workspace; |
| 97 | 97 |
Project p = w.getProject("default")
|
| tmp/org.txm.groovy.core/src/groovy/org/txm/importer/transcriber/pager.groovy (revision 878) | ||
|---|---|---|
| 653 | 653 |
writer.close(); |
| 654 | 654 |
output.close(); |
| 655 | 655 |
|
| 656 |
File txmhome = new File(org.txm.Toolbox.getTXMHOMEPATH());
|
|
| 656 |
File txmhome = new File(org.txm.Toolbox.getTxmHomePath());
|
|
| 657 | 657 |
File xlsDir = new File(txmhome, "xsl"); |
| 658 | 658 |
File xslfile = new File(xlsDir,"breakByMilestone.xsl"); |
| 659 | 659 |
if (!xslfile.exists()) {
|
| tmp/org.txm.groovy.core/src/groovy/org/txm/importer/transcriber/transcriberLoader.groovy (revision 878) | ||
|---|---|---|
| 100 | 100 |
boolean build_edition = params.getDoEdition("default")
|
| 101 | 101 |
|
| 102 | 102 |
File srcDir = new File(rootDir); |
| 103 |
File binDir = new File(Toolbox.getTXMHOMEPATH(),"corpora/"+basename);
|
|
| 103 |
File binDir = new File(Toolbox.getTxmHomePath(),"corpora/"+basename);
|
|
| 104 | 104 |
binDir.deleteDir(); |
| 105 | 105 |
binDir.mkdirs(); |
| 106 | 106 |
if (!binDir.exists()) {
|
| ... | ... | |
| 293 | 293 |
} |
| 294 | 294 |
|
| 295 | 295 |
//copy transcriber.css |
| 296 |
File cssfile = new File(Toolbox.getTXMHOMEPATH(), "css/transcriber.css")
|
|
| 296 |
File cssfile = new File(Toolbox.getTxmHomePath(), "css/transcriber.css")
|
|
| 297 | 297 |
if (cssfile.exists() && htmlDir.exists()) {
|
| 298 | 298 |
FileCopy.copy(cssfile, new File(htmlDir, "transcriber.css")); |
| 299 | 299 |
FileCopy.copy(cssfile, new File(htmlDir, "onepage/transcriber.css")); |
| tmp/org.txm.groovy.core/src/groovy/org/txm/importer/alceste/alcesteLoader.groovy (revision 878) | ||
|---|---|---|
| 75 | 75 |
boolean build_edition = params.getDoEdition("default")
|
| 76 | 76 |
|
| 77 | 77 |
File srcDir = new File(rootDir); |
| 78 |
File binDir = new File(Toolbox.getTXMHOMEPATH(),"corpora/"+basename);
|
|
| 78 |
File binDir = new File(Toolbox.getTxmHomePath(),"corpora/"+basename);
|
|
| 79 | 79 |
binDir.deleteDir(); |
| 80 | 80 |
binDir.mkdirs(); |
| 81 | 81 |
if (!binDir.exists()) {
|
| tmp/org.txm.groovy.core/src/groovy/org/txm/importer/discours/discoursLoader.groovy (revision 878) | ||
|---|---|---|
| 73 | 73 |
boolean build_edition = params.getDoEdition("default")
|
| 74 | 74 |
|
| 75 | 75 |
File srcDir = new File(rootDir); |
| 76 |
File binDir = new File(Toolbox.getTXMHOMEPATH(),"corpora/"+basename);
|
|
| 76 |
File binDir = new File(Toolbox.getTxmHomePath(),"corpora/"+basename);
|
|
| 77 | 77 |
binDir.deleteDir(); |
| 78 | 78 |
binDir.mkdirs(); |
| 79 | 79 |
if (!binDir.exists()) {
|
| tmp/org.txm.groovy.core/src/groovy/org/txm/importer/RGAQCJ/rgaqcjLoader.groovy (revision 878) | ||
|---|---|---|
| 78 | 78 |
return; |
| 79 | 79 |
} |
| 80 | 80 |
|
| 81 |
File binDir = new File(Toolbox.getTXMHOMEPATH(),"corpora/"+basename);
|
|
| 81 |
File binDir = new File(Toolbox.getTxmHomePath(),"corpora/"+basename);
|
|
| 82 | 82 |
rootDir = binDir.getAbsolutePath(); |
| 83 | 83 |
dir = new File(rootDir); |
| 84 | 84 |
|
| ... | ... | |
| 96 | 96 |
//move registry file to cwb registry dir |
| 97 | 97 |
File registryfile = new File(rootDir+"/registry", basename); |
| 98 | 98 |
if(registryfile.exists()) |
| 99 |
FileCopy.copy(registryfile,new File(Toolbox.getTXMHOMEPATH(), "registry/"+basename))
|
|
| 99 |
FileCopy.copy(registryfile,new File(Toolbox.getTxmHomePath(), "registry/"+basename))
|
|
| 100 | 100 |
|
| 101 | 101 |
Workspace w = org.txm.Toolbox.workspace; |
| 102 | 102 |
Project p = w.getProject("default")
|
| tmp/org.txm.groovy.core/src/groovy/org/txm/importer/RGAQCJ/importer.groovy (revision 878) | ||
|---|---|---|
| 108 | 108 |
ArrayList<String> milestones = new ArrayList<String>(); |
| 109 | 109 |
|
| 110 | 110 |
//where the binaries will be created |
| 111 |
File binDir = new File(Toolbox.getTXMHOMEPATH(),"corpora/"+basename);
|
|
| 111 |
File binDir = new File(Toolbox.getTxmHomePath(),"corpora/"+basename);
|
|
| 112 | 112 |
binDir.deleteDir(); |
| 113 | 113 |
binDir.mkdir(); |
| 114 | 114 |
|
| tmp/org.txm.groovy.core/src/groovy/org/txm/importer/limsi/limsiLoader.groovy (revision 878) | ||
|---|---|---|
| 106 | 106 |
def xslParams = params.getXsltParams(corpusElem); |
| 107 | 107 |
|
| 108 | 108 |
File srcDir = new File(rootDir); |
| 109 |
File binDir = new File(Toolbox.getTXMHOMEPATH(),"corpora/"+basename);
|
|
| 109 |
File binDir = new File(Toolbox.getTxmHomePath(),"corpora/"+basename);
|
|
| 110 | 110 |
//binDir.deleteDir(); |
| 111 | 111 |
binDir.mkdirs(); |
| 112 | 112 |
if (!binDir.exists()) {
|
| tmp/org.txm.groovy.core/src/groovy/org/txm/importer/txt/txtLoader.groovy (revision 878) | ||
|---|---|---|
| 74 | 74 |
boolean build_edition = params.getDoEdition("default")
|
| 75 | 75 |
|
| 76 | 76 |
File srcDir = new File(rootDir); |
| 77 |
File binDir = new File(Toolbox.getTXMHOMEPATH(), "corpora/"+basename);
|
|
| 77 |
File binDir = new File(Toolbox.getTxmHomePath(), "corpora/"+basename);
|
|
| 78 | 78 |
binDir.deleteDir(); |
| 79 | 79 |
binDir.mkdirs(); |
| 80 | 80 |
if (!binDir.exists()) {
|
| tmp/org.txm.groovy.core/src/groovy/org/txm/importer/hyperbase/hyperbaseLoader.groovy (revision 878) | ||
|---|---|---|
| 76 | 76 |
boolean build_edition = params.getDoEdition("default")
|
| 77 | 77 |
|
| 78 | 78 |
File srcDir = new File(rootDir); |
| 79 |
File binDir = new File(Toolbox.getTXMHOMEPATH(),"corpora/"+basename);
|
|
| 79 |
File binDir = new File(Toolbox.getTxmHomePath(),"corpora/"+basename);
|
|
| 80 | 80 |
binDir.deleteDir(); |
| 81 | 81 |
binDir.mkdirs(); |
| 82 | 82 |
if (!binDir.exists()) {
|
| tmp/org.txm.groovy.core/src/groovy/org/txm/importer/xtz/ImportModule.java (revision 878) | ||
|---|---|---|
| 85 | 85 |
|
| 86 | 86 |
|
| 87 | 87 |
this.sourceDirectory = importParameters.paramFile.getParentFile(); |
| 88 |
this.binaryDirectory = new File(Toolbox.getTXMHOMEPATH(), "corpora/"+corpusName.toUpperCase());
|
|
| 88 |
this.binaryDirectory = new File(Toolbox.getTxmHomePath(), "corpora/"+corpusName.toUpperCase());
|
|
| 89 | 89 |
|
| 90 | 90 |
if (!updateCorpus) { // clean directories only if it's a new import
|
| 91 | 91 |
DeleteDir.deleteDirectory(binaryDirectory); |
| tmp/org.txm.groovy.core/src/groovy/org/txm/importer/hyperprince/hyperprinceLoader.groovy (revision 878) | ||
|---|---|---|
| 93 | 93 |
//move registry file to cwb registry dir |
| 94 | 94 |
File registryfile = new File(rootDir+"/registry","hyperprince"); |
| 95 | 95 |
if(registryfile.exists()) |
| 96 |
org.txm.utils.FileCopy.copy(registryfile,new File(Toolbox.getTXMHOMEPATH(),"registry/hyperprince"))
|
|
| 96 |
org.txm.utils.FileCopy.copy(registryfile,new File(Toolbox.getTxmHomePath(),"registry/hyperprince"))
|
|
| 97 | 97 |
|
| 98 | 98 |
Workspace w = org.txm.Toolbox.workspace; |
| 99 | 99 |
Project p = w.getProject("default")
|
| tmp/org.txm.groovy.core/src/groovy/org/txm/importer/lasla/importer.groovy (revision 878) | ||
|---|---|---|
| 61 | 61 |
String rootDir = rootDirFile.getAbsolutePath()+"/" |
| 62 | 62 |
|
| 63 | 63 |
//cleaning |
| 64 |
File binDir = new File(Toolbox.getTXMHOMEPATH(),"corpora/"+basename);
|
|
| 64 |
File binDir = new File(Toolbox.getTxmHomePath(),"corpora/"+basename);
|
|
| 65 | 65 |
|
| 66 | 66 |
binDir.deleteDir(); |
| 67 | 67 |
binDir.mkdir(); |
| tmp/org.txm.groovy.core/src/groovy/org/txm/importer/lasla/laslaLoader.groovy (revision 878) | ||
|---|---|---|
| 81 | 81 |
return; |
| 82 | 82 |
} |
| 83 | 83 |
|
| 84 |
File binDir = new File(Toolbox.getTXMHOMEPATH(),"corpora/"+basename);
|
|
| 84 |
File binDir = new File(Toolbox.getTxmHomePath(),"corpora/"+basename);
|
|
| 85 | 85 |
File txmfiles = new File(binDir,"txm"); |
| 86 | 86 |
files = txmfiles.listFiles() |
| 87 | 87 |
|
| ... | ... | |
| 111 | 111 |
//move registry file to cwb registry dir |
| 112 | 112 |
File registryfile = new File(binDir,"registry/"+basename); |
| 113 | 113 |
if(registryfile.exists()) |
| 114 |
FileCopy.copy(registryfile,new File(Toolbox.getTXMHOMEPATH(), "registry/"+basename))
|
|
| 114 |
FileCopy.copy(registryfile,new File(Toolbox.getTxmHomePath(), "registry/"+basename))
|
|
| 115 | 115 |
|
| 116 | 116 |
Workspace w = org.txm.Toolbox.workspace; |
| 117 | 117 |
Project p = w.getProject("default")
|
| tmp/org.txm.groovy.core/src/groovy/org/txm/importer/xml/xmlLoader.groovy (revision 878) | ||
|---|---|---|
| 88 | 88 |
boolean build_edition = params.getDoEdition("default")
|
| 89 | 89 |
|
| 90 | 90 |
File srcDir = new File(rootDir); |
| 91 |
File binDir = new File(Toolbox.getTXMHOMEPATH(), "corpora/"+basename);
|
|
| 91 |
File binDir = new File(Toolbox.getTxmHomePath(), "corpora/"+basename);
|
|
| 92 | 92 |
binDir.deleteDir(); |
| 93 | 93 |
binDir.mkdirs(); |
| 94 | 94 |
if (!binDir.exists()) {
|
| tmp/org.txm.groovy.core/src/groovy/org/txm/importer/bfm/bfmLoader.groovy (revision 878) | ||
|---|---|---|
| 81 | 81 |
boolean build_edition = params.getDoEdition("default")
|
| 82 | 82 |
|
| 83 | 83 |
File srcDir = new File(rootDir); |
| 84 |
File binDir = new File(Toolbox.getTXMHOMEPATH(),"corpora/"+basename);
|
|
| 84 |
File binDir = new File(Toolbox.getTxmHomePath(),"corpora/"+basename);
|
|
| 85 | 85 |
binDir.deleteDir(); |
| 86 | 86 |
binDir.mkdirs(); |
| 87 | 87 |
if (!binDir.exists()) {
|
| tmp/org.txm.groovy.core/src/groovy/org/txm/importer/tmx/tmxLoader.groovy (revision 878) | ||
|---|---|---|
| 77 | 77 |
boolean build_edition = params.getDoEdition("default")
|
| 78 | 78 |
|
| 79 | 79 |
File srcDir = new File(rootDir); |
| 80 |
File binDir = new File(Toolbox.getTXMHOMEPATH(),"corpora/"+basename);
|
|
| 80 |
File binDir = new File(Toolbox.getTxmHomePath(),"corpora/"+basename);
|
|
| 81 | 81 |
binDir.deleteDir(); |
| 82 | 82 |
binDir.mkdirs(); |
| 83 | 83 |
if (!binDir.exists()) {
|
| ... | ... | |
| 175 | 175 |
|
| 176 | 176 |
params.corporaElement.appendChild(paraCorpusElem); |
| 177 | 177 |
|
| 178 |
File cssfile = new File(Toolbox.getTXMHOMEPATH(), "css/tmx.css")
|
|
| 178 |
File cssfile = new File(Toolbox.getTxmHomePath(), "css/tmx.css")
|
|
| 179 | 179 |
if (cssfile.exists()) {
|
| 180 | 180 |
FileCopy.copy(cssfile, new File(outdir, "tmx.css")); |
| 181 | 181 |
} |
| tmp/org.txm.groovy.core/src/groovy/org/txm/importer/factiva/factivamailLoader.groovy (revision 878) | ||
|---|---|---|
| 74 | 74 |
def xslParams = params.getXsltParams(corpusElem); |
| 75 | 75 |
|
| 76 | 76 |
File srcDir = new File(rootDir); |
| 77 |
File binDir = new File(Toolbox.getTXMHOMEPATH(),"corpora/"+basename);
|
|
| 77 |
File binDir = new File(Toolbox.getTxmHomePath(),"corpora/"+basename);
|
|
| 78 | 78 |
binDir.deleteDir(); |
| 79 | 79 |
binDir.mkdirs(); |
| 80 | 80 |
if (!binDir.exists()) {
|
| tmp/org.txm.groovy.core/src/groovy/org/txm/importer/factiva/factivaLoader.groovy (revision 878) | ||
|---|---|---|
| 82 | 82 |
boolean build_edition = params.getDoEdition("default")
|
| 83 | 83 |
|
| 84 | 84 |
File srcDir = new File(rootDir); |
| 85 |
File binDir = new File(Toolbox.getTXMHOMEPATH(),"corpora/"+basename);
|
|
| 85 |
File binDir = new File(Toolbox.getTxmHomePath(),"corpora/"+basename);
|
|
| 86 | 86 |
binDir.deleteDir(); |
| 87 | 87 |
binDir.mkdirs(); |
| 88 | 88 |
if (!binDir.exists()) {
|
| tmp/org.txm.groovy.core/src/groovy/org/txm/macro/oriflamms/prepare/Project2XTZMacro.groovy (revision 878) | ||
|---|---|---|
| 13 | 13 |
import org.txm.utils.xml.UpdateXSLParameters |
| 14 | 14 |
import org.txm.utils.zip.Zip; |
| 15 | 15 |
|
| 16 |
File oriflammsMacroDirectory = new File(Toolbox.getTXMHOMEPATH(), "scripts/macro/org/txm/macro/oriflamms/prepare")
|
|
| 16 |
File oriflammsMacroDirectory = new File(Toolbox.getTxmHomePath(), "scripts/macro/org/txm/macro/oriflamms/prepare")
|
|
| 17 | 17 |
if (!oriflammsMacroDirectory.exists()) {
|
| 18 | 18 |
println "Oriflamms macro directory not found: $oriflammsMacroDirectory. Aborting" |
| 19 | 19 |
return; |
| tmp/org.txm.groovy.core/src/groovy/org/txm/macro/oriflamms/prepare/TEI2ProjectMacro.groovy (revision 878) | ||
|---|---|---|
| 25 | 25 |
return; |
| 26 | 26 |
} |
| 27 | 27 |
|
| 28 |
File oriflammsMacroDirectory = new File(Toolbox.getTXMHOMEPATH(), "scripts/macro/org/txm/macro/oriflamms/prepare")
|
|
| 28 |
File oriflammsMacroDirectory = new File(Toolbox.getTxmHomePath(), "scripts/macro/org/txm/macro/oriflamms/prepare")
|
|
| 29 | 29 |
if (!oriflammsMacroDirectory.exists()) {
|
| 30 | 30 |
println "Oriflamms macro directory not found: "+oriflammsMacroDirectory |
| 31 | 31 |
return; |
| tmp/org.txm.groovy.core/src/groovy/org/txm/macro/edition/EditionUpdaterMacro.groovy (revision 878) | ||
|---|---|---|
| 85 | 85 |
println " editionName = $editionName" |
| 86 | 86 |
println " useTokenizedDirectory = $useTokenizedDirectory" |
| 87 | 87 |
|
| 88 |
File TXMHOME = new File(Toolbox.getTXMHOMEPATH())
|
|
| 88 |
File TXMHOME = new File(Toolbox.getTxmHomePath())
|
|
| 89 | 89 |
File xslDirectory = new File(TXMHOME, "xsl") |
| 90 | 90 |
if (xslEdition == null || xslEdition.getName() == "txm-edition-xtz.xsl") |
| 91 | 91 |
xslEdition = new File(xslDirectory, "txm-edition-xtz.xsl") |
| tmp/org.txm.groovy.core/src/groovy/org/txm/macro/r/Index2barplotMacro.groovy (revision 878) | ||
|---|---|---|
| 28 | 28 |
} |
| 29 | 29 |
|
| 30 | 30 |
def r = RWorkspace.getRWorkspaceInstance() |
| 31 |
def file = File.createTempFile("IndexHist", ".svg", new File(Toolbox.getTXMHOMEPATH(), "results"))
|
|
| 31 |
def file = File.createTempFile("IndexHist", ".svg", new File(Toolbox.getTxmHomePath(), "results"))
|
|
| 32 | 32 |
|
| 33 | 33 |
/// BEGIN SCRIPTS |
| 34 | 34 |
def script =""" |
| tmp/org.txm.groovy.core/src/groovy/org/txm/macro/r/ExecRMacro.groovy (revision 878) | ||
|---|---|---|
| 28 | 28 |
} |
| 29 | 29 |
|
| 30 | 30 |
def r = RWorkspace.getRWorkspaceInstance() |
| 31 |
def file = File.createTempFile("IndexHist", ".svg", new File(Toolbox.getTXMHOMEPATH(), "results"))
|
|
| 31 |
def file = File.createTempFile("IndexHist", ".svg", new File(Toolbox.getTxmHomePath(), "results"))
|
|
| 32 | 32 |
|
| 33 | 33 |
/// BEGIN SCRIPTS |
| 34 | 34 |
def script =""" |
| tmp/org.txm.groovy.core/src/groovy/org/txm/macro/r/PlotSpecifMacro.groovy (revision 878) | ||
|---|---|---|
| 62 | 62 |
// END OF PARAMETERS |
| 63 | 63 |
|
| 64 | 64 |
def r = RWorkspace.getRWorkspaceInstance() |
| 65 |
def file = File.createTempFile("txm", ".svg", new File(Toolbox.getTXMHOMEPATH(), "results"))
|
|
| 65 |
def file = File.createTempFile("txm", ".svg", new File(Toolbox.getTxmHomePath(), "results"))
|
|
| 66 | 66 |
|
| 67 | 67 |
/// BEGIN SCRIPTS |
| 68 | 68 |
def script =""" |
| tmp/org.txm.groovy.core/src/groovy/org/txm/macroproto/importer/XTZImporterMacro.groovy (revision 878) | ||
|---|---|---|
| 120 | 120 |
def xslParams = params.getXsltParams(corpusElem); |
| 121 | 121 |
|
| 122 | 122 |
File srcDir = new File(rootDir); |
| 123 |
File binDir = new File(Toolbox.getTXMHOMEPATH(), "corpora/"+basename);
|
|
| 123 |
File binDir = new File(Toolbox.getTxmHomePath(), "corpora/"+basename);
|
|
| 124 | 124 |
binDir.deleteDir(); |
| 125 | 125 |
binDir.mkdirs(); |
| 126 | 126 |
if (!binDir.exists()) {
|
| tmp/org.txm.groovy.core/src/groovy/org/txm/macroproto/RunImportMacro.groovy (revision 878) | ||
|---|---|---|
| 48 | 48 |
return |
| 49 | 49 |
} |
| 50 | 50 |
|
| 51 |
String txmhome = Toolbox.getTXMHOMEPATH();
|
|
| 51 |
String txmhome = Toolbox.getTxmHomePath();
|
|
| 52 | 52 |
File scriptsdir = new File(txmhome, "scripts/import") |
| 53 | 53 |
File script = new File(scriptsdir, scriptName) |
| 54 | 54 |
|
Formats disponibles : Unified diff