Statistics
| Revision:

root / tmp / org.txm.oriflamms.rcp / groovy / org / txm / macro / oriflamms / prepare / BuildAllProjectsMacro.groovy @ 1094

History | View | Annotate | Download (1 kB)

1
// STANDARD DECLARATIONS
2
package org.txm.macro.oriflamms.prepare
3

    
4
import org.kohsuke.args4j.*
5
import groovy.transform.Field
6
import org.txm.rcp.swt.widget.parameters.*
7

    
8
File projectsDirectory = new File("/home/mdecorde/TEMP/testori/corpus/")
9
File xslDirectory = new File("/home/mdecorde/TXM/scripts/macro/org/txm/macro/oriflamms/prepare")
10

    
11
def todo = [
12
"CHARETTE":["xmlFile":new File(projectsDirectory, "Charrette_Ms_A.xml"),xslFile:new File(projectsDirectory, "oriflamms-convert-mss-dates-oriflammsxml.xsl"),imageDirectory:new File(projectsDirectory, "images"), createArchive:false],
13
"CHARETTEBIS":["xmlFile":new File(projectsDirectory, "Charrette_Ms_A.xml"),xslFile:new File(projectsDirectory, "oriflamms-convert-mss-dates-oriflammsxml.xsl"),imageDirectory:new File(projectsDirectory, "images"), createArchive:false],
14
]
15

    
16
for (def k : todo.keySet()) {
17
        println "*** BUILD $k ***"
18
        try {
19
                gse.runMacro(TEI2ProjectMacro, todo.get(k))
20
        } catch(Exception e) { 
21
                println "ERROR WHILE PROCESSING $k: "+e; 
22
                e.printStackTrace();
23
        }
24
}