git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-analysis/dataminer-pool-manager@146689 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
ae1019f4f0
commit
1d004af37d
|
@ -193,7 +193,8 @@ public class RestPoolManager implements PoolManager {
|
|||
@QueryParam("category") String category,
|
||||
@DefaultValue("transducerers") @QueryParam("algorithmType") String algorithmType,
|
||||
@DefaultValue("N") @QueryParam("skipJava") String skipJava,
|
||||
@DefaultValue("false") @QueryParam("publish") boolean publish)
|
||||
@DefaultValue("false") @QueryParam("publish") boolean publish,
|
||||
@DefaultValue("false") @QueryParam("updateSVN") boolean updateSVN)
|
||||
throws IOException, InterruptedException, SVNException {
|
||||
Algorithm algo = this.getAlgorithm(algorithm, /*vre*/null, null, name, description, category, algorithmType, skipJava);
|
||||
|
||||
|
@ -201,8 +202,8 @@ public class RestPoolManager implements PoolManager {
|
|||
if (publish) {
|
||||
service.addAlgToIs(algo);
|
||||
}
|
||||
|
||||
// update svn
|
||||
if (updateSVN){
|
||||
for (Dependency d : algo.getDependencies()) {
|
||||
|
||||
if (d.getType().equals("os")) {
|
||||
|
@ -221,6 +222,7 @@ public class RestPoolManager implements PoolManager {
|
|||
service.updateSVN("r_github_pkgs.txt", ls);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return service.addAlgorithmToVRE(algo, ScopeProvider.instance.get());
|
||||
}
|
||||
|
@ -236,16 +238,19 @@ public class RestPoolManager implements PoolManager {
|
|||
@QueryParam("category") String category,
|
||||
@DefaultValue("transducerers") @QueryParam("algorithmType") String algorithmType,
|
||||
@DefaultValue("N") @QueryParam("skipJava") String skipJava,
|
||||
@DefaultValue("false") @QueryParam("publish") boolean publish)
|
||||
@DefaultValue("false") @QueryParam("publish") boolean publish,
|
||||
@DefaultValue("false") @QueryParam("updateSVN") boolean updateSVN)
|
||||
throws IOException, InterruptedException, SVNException {
|
||||
Algorithm algo = this.getAlgorithm(algorithm, null, hostname, name, description, category, algorithmType,
|
||||
skipJava);
|
||||
// publish algo
|
||||
|
||||
if (publish) {
|
||||
service.addAlgToIs(algo);
|
||||
}
|
||||
|
||||
// update svn
|
||||
if (updateSVN){
|
||||
for (Dependency d : algo.getDependencies()) {
|
||||
|
||||
if (d.getType().equals("os")) {
|
||||
|
@ -264,6 +269,7 @@ public class RestPoolManager implements PoolManager {
|
|||
service.updateSVN("r_github_pkgs.txt", ls);
|
||||
}
|
||||
}
|
||||
}
|
||||
return service.addAlgorithmToHost(algo, hostname);
|
||||
}
|
||||
|
||||
|
@ -332,7 +338,7 @@ public class RestPoolManager implements PoolManager {
|
|||
a.addAlgorithmToVRE(
|
||||
"http://data.d4science.org/TVc0TW9Ud1FjYlppK0NHd2pvU0owNmRFWHE4OW4xSGNHbWJQNStIS0N6Yz0",
|
||||
"test",
|
||||
null, null, "N", "transducerers", false);
|
||||
null, null, "N", "transducerers", true, false);
|
||||
|
||||
// a.addAlgorithmToHost(
|
||||
// "http://data.d4science.org/dENQTTMxdjNZcGRpK0NHd2pvU0owMFFzN0VWemw3Zy9HbWJQNStIS0N6Yz0",
|
||||
|
@ -392,7 +398,6 @@ public class RestPoolManager implements PoolManager {
|
|||
return null;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public List<String> updateSVN(String file, List<String> ldep) throws SVNException {
|
||||
|
|
Loading…
Reference in New Issue