Révision 2955
tmp/org.txm.groovy.core/src/groovy/org/txm/macro/projects/antract/PrepareAFVOIXOFFCorpusMacro.groovy (revision 2955) | ||
---|---|---|
1 |
import org.txm.utils.io.IOUtils |
|
2 |
|
|
1 | 3 |
package org.txm.macro.projects.antract |
2 | 4 |
|
3 | 5 |
import groovy.transform.Field |
... | ... | |
43 | 45 |
//copy the emissions file in the source directory |
44 | 46 |
FileCopy.copy(emissionsFile, new File(new File(trsDirectory, "out"), "metadata.xlsx")) |
45 | 47 |
|
48 |
File paramFile = new File(trsDirectory, ".settings/CorpusCommandPreferences.prefs") |
|
49 |
paramFile.getParentFile().mkdirs() |
|
50 |
|
|
51 |
// create the corpus parameters file |
|
52 |
String content = """backtomedia/backtomedia_endproperty=endtime |
|
53 |
backtomedia/backtomedia_startproperty=starttime |
|
54 |
backtomedia/backtomedia_structure=sp |
|
55 |
backtomedia/backtomedia_time_property=time |
|
56 |
backtomedia/media_auth=true |
|
57 |
backtomedia/media_auth_login= |
|
58 |
backtomedia/media_extension=mp4 |
|
59 |
backtomedia/media_path_prefix=https\://{0}\:{1}@okapi.ina.fr/antract/Media/AF/ |
|
60 |
backtomedia/name=backtomedia |
|
61 |
backtomedia/secured_media_login=okapi_reader |
|
62 |
backtomedia/secured_media_path_prefix=https\://{0}\:{1}@okapi.ina.fr/antract/Media/AF/ |
|
63 |
backtomedia/sync_mode=Structure |
|
64 |
concordance/context_limits=text |
|
65 |
concordance/context_limits_type=list |
|
66 |
concordance/view_pattern=div_datedediffusion\ttext_id\tu_time\t\t%s, %s, %s |
|
67 |
concordance/name=concordance |
|
68 |
eclipse.preferences.version=1""" |
|
69 |
|
|
70 |
IOUtils.write(paramFile, content); |
|
71 |
|
|
46 | 72 |
//done \o/ |
47 |
println "Done: import to finalize using the "+new File(trsDirectory, "out")+" directory."
|
|
73 |
println "Done: finalize the corpus using the "+new File(trsDirectory, "out")+" source directory and the XML-TRS import module."
|
|
48 | 74 |
|
Formats disponibles : Unified diff