Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (19 sloc) 0.613 kb
def files = [];
def delClos
delClos = { it.eachDir( delClos );
it.eachFile {
if (it.getName().endsWith(".xml")) {
files.add(it);
}
}
}
delClos( new File(".") )
def fw = new FileWriter("alltables.env");
files.each {
def name = it.toString().substring(2);
def tablename = name.substring(0, name.length()-4).substring(name.lastIndexOf("/") + 1);
fw.write("use 'http://www.datatables.org/${name}' as ${tablename};\n")
}
fw.flush();
fw.close();
Runtime.runtime.exec(["sh", "-c", "scp -r * buildandtest.com:/opt/sites/javarants"].toArray(new String[0]));
Jump to Line
Something went wrong with that request. Please try again.