Statistics
| Revision:

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

History | View | Annotate | Download (556 Bytes)

1
package org.txm.scripts.tests.test1
2

    
3
import java.util.Calendar
4
import java.util.Locale
5

    
6
import org.txm.*
7
import org.txm.core.results.TXMResult
8
import org.txm.objects.*
9
import org.txm.searchengine.cqp.corpus.MainCorpus
10
import org.txm.properties.core.functions.*
11

    
12
try {
13
        println outdir
14
        println results
15
} catch(Exception e) {return false;}
16

    
17
Project p = results["project"]
18
MainCorpus c = results["corpus"]
19
Properties props = results["properties"]
20

    
21

    
22

    
23

    
24
File outfile = new File(outdir, "080.txt")
25
outfile.delete()
26

    
27
props.toTxt(outfile)
28

    
29

    
30

    
31
return outfile.exists()