Statistics
| Revision:

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

History | View | Annotate | Download (591 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.utils.Diff
11 1626 mdecorde
import org.txm.properties.core.functions.*
12 1626 mdecorde
13 1626 mdecorde
try {
14 1626 mdecorde
        println outdir
15 1626 mdecorde
} catch(Exception e) {return false;}
16 1626 mdecorde
17 1626 mdecorde
File previous_export = new File(outdir, "079.txt")
18 1626 mdecorde
File export = new File(outdir, "080.txt")
19 1626 mdecorde
20 1626 mdecorde
if (previous_export.exists() && export.exists()) {
21 1626 mdecorde
        return false;
22 1626 mdecorde
}
23 1626 mdecorde
24 1626 mdecorde
String diff = Diff.diffFile(previous_export, export)
25 1626 mdecorde
26 1626 mdecorde
return diff.length() == 0;