99 lines
2.5 KiB
Java
Executable File
99 lines
2.5 KiB
Java
Executable File
package org.gcube.dataanalysis.dataminer.poolmanager.util.impl;
|
|
|
|
import java.io.File;
|
|
|
|
import org.gcube.dataanalysis.dataminer.poolmanager.clients.configuration.DMPMClientConfiguratorManager;
|
|
import org.gcube.dataanalysis.dataminer.poolmanager.util.CheckMethod;
|
|
|
|
public class CheckMethodStaging extends CheckMethod{
|
|
|
|
|
|
public CheckMethodStaging()
|
|
{
|
|
super (DMPMClientConfiguratorManager.getInstance().getStagingConfiguration());
|
|
}
|
|
|
|
@Override
|
|
protected void copyFromDmToSVN(File a) throws Exception{
|
|
super.copyFromDmToSVN(a, new SVNUpdaterStaging());
|
|
|
|
}
|
|
|
|
|
|
public static void main(String[] args) throws Exception {
|
|
// ServiceConfiguration a = new ServiceConfiguration();
|
|
// System.out.println(a.getStagingHost());
|
|
|
|
CheckMethodStaging a = new CheckMethodStaging();
|
|
|
|
//a.getFiles("/trunk/data-analysis/RConfiguration/RPackagesManagement/r_deb_pkgs.txt, /trunk/data-analysis/RConfiguration/RPackagesManagement/r_cran_pkgs.txt, /trunk/data-analysis/RConfiguration/RPackagesManagement/r_github_pkgs.txt");
|
|
|
|
// File aa = new File("OCTAVEBLACKBOX.jar");
|
|
// System.out.println(aa.getName());
|
|
// System.out.println(aa.getPath());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//a.copyFromDmToSVN(aa);
|
|
// if (a.checkMethod("dataminer-ghost-d.dev.d4science.org", "xxxx-xxxx-xxx-xxx")){
|
|
// System.out.println("AAA"); }
|
|
//
|
|
// if (a.doesExist("/home/gcube/wps_algorithms/algorithms/WINDOWS_BLACK_BOX_EXAMPLE.jar")){
|
|
// System.out.println("BBBB");
|
|
//
|
|
// }
|
|
// if (a.doesExist("/home/gcube/wps_algorithms/algorithms/WINDOWS_BLACK_BOX_EXAMPLE_interface.jar")){
|
|
// System.out.println("CCCC");}
|
|
//
|
|
// File aa = new File("/home/gcube/wps_algorithms/algorithms/RBLACKBOX_interface.jar");
|
|
// a.copyFromDmToSVN(aa, "Dev");
|
|
|
|
//
|
|
|
|
|
|
//System.out.println(a.checkMethod("dataminer-ghost-t.pre.d4science.org",
|
|
// "xxxx-xxx-xxx-xxx"));
|
|
|
|
//System.out.println(a.checkMethod("dataminer-proto-ghost.d4science.org",
|
|
// "xxx-xxx-xxx-xxx"));
|
|
|
|
try
|
|
{
|
|
a.checkMethod("dataminer-ghost-d.dev.d4science.org",
|
|
"xxxx-xxxx-xxxx-xxxx");
|
|
} catch (Exception e)
|
|
{
|
|
e.printStackTrace();
|
|
}
|
|
|
|
|
|
|
|
//Algorithm aa = new Algorithm();
|
|
//aa.setName("UDPIPE_WRAPPER");
|
|
//System.out.println(a.algoExists(aa));
|
|
////
|
|
//ServiceConfiguration bp = new ServiceConfiguration();
|
|
////
|
|
//SecurityTokenProvider.instance.set("xxx-xxx-xxx-xxx");
|
|
|
|
////
|
|
//if (a.checkMethod(bp.getStagingHost(), SecurityTokenProvider.instance.get())&&a.algoExists(aa)); {
|
|
//System.out.println("ciao");
|
|
//
|
|
//}
|
|
|
|
//
|
|
//Algorithm al = new Algorithm();
|
|
// al.setName("UDPIPE_WRAPPER");
|
|
// a.deleteFiles(al);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|