Statistics
| Revision:

root / tmp / org.txm.core.tests / src / org / txm / scripts / tests / test1 / export.groovy @ 1626

History | View | Annotate | Download (556 Bytes)

1 1626 mdecorde
package org.txm.scripts.tests.test1
2 1626 mdecorde
3 1626 mdecorde
import java.util.Calendar
4 1626 mdecorde
import java.util.Locale
5 1626 mdecorde
6 1626 mdecorde
import org.txm.*
7 1626 mdecorde
import org.txm.core.results.TXMResult
8 1626 mdecorde
import org.txm.objects.*
9 1626 mdecorde
import org.txm.searchengine.cqp.corpus.MainCorpus
10 1626 mdecorde
import org.txm.properties.core.functions.*
11 1626 mdecorde
12 1626 mdecorde
try {
13 1626 mdecorde
        println outdir
14 1626 mdecorde
        println results
15 1626 mdecorde
} catch(Exception e) {return false;}
16 1626 mdecorde
17 1626 mdecorde
Project p = results["project"]
18 1626 mdecorde
MainCorpus c = results["corpus"]
19 1626 mdecorde
Properties props = results["properties"]
20 1626 mdecorde
21 1626 mdecorde
22 1626 mdecorde
23 1626 mdecorde
24 1626 mdecorde
File outfile = new File(outdir, "080.txt")
25 1626 mdecorde
outfile.delete()
26 1626 mdecorde
27 1626 mdecorde
props.toTxt(outfile)
28 1626 mdecorde
29 1626 mdecorde
30 1626 mdecorde
31 1626 mdecorde
return outfile.exists()