Statistics
| Revision:

root / tmp / org.txm.core / src / groovy / org / txm / ant / AntTest.groovy @ 187

History | View | Annotate | Download (705 Bytes)

1
package org.txm.ant;
2

    
3
String userdir = System.getProperty("user.home");
4
File libdir = new File(userdir, "Bureau/exportRCP/linux.gtk.x86/TXM/plugins");
5
File srcdir = new File(userdir, "TXM/scripts/test")
6
File destdir = new File(userdir, "TXM/scripts/bin")
7
def ant = new AntBuilder().sequential {
8
        //webinf = libdir.getAbsolutePath()
9
        taskdef name: "groovyc", classname: "org.codehaus.groovy.ant.Groovyc"
10
        groovyc srcdir: srcdir.getAbsolutePath(), destdir: destdir.getAbsolutePath(), {
11
                classpath {
12
                        fileset dir: libdir.getAbsolutePath(), {
13
                            include name: "*.jar"
14
                        }
15
                        pathelement path: libdir.getAbsolutePath()+"/classes"
16
                }
17
                javac source: "1.5", target: "1.5", debug: "on"
18
        }
19
}
20
println "fin"