git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-analysis/dataminer-pool-manager@148815 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
04c9b93715
commit
cd23218da4
|
@ -76,25 +76,3 @@ public abstract class DMPMJob {
|
|||
***REMOVED***
|
||||
|
||||
***REMOVED***
|
||||
***REMOVED*** protected void updateSVNDependencies(Algorithm algo, boolean stagingVRE) throws IOException, SVNException {
|
||||
***REMOVED*** for (Dependency d : algo.getDependencies()) {
|
||||
***REMOVED***
|
||||
***REMOVED*** if (d.getType().equals("os")) {
|
||||
***REMOVED*** List<String> ls = new LinkedList<String>();
|
||||
***REMOVED*** ls.add(d.getName());
|
||||
***REMOVED*** this.svnUpdater.updateSVN((stagingVRE ? "test_": "") + "r_deb_pkgs.txt", ls);
|
||||
***REMOVED*** ***REMOVED***
|
||||
***REMOVED*** if (d.getType().equals("cran")) {
|
||||
***REMOVED*** List<String> ls = new LinkedList<String>();
|
||||
***REMOVED*** ls.add(d.getName());
|
||||
***REMOVED*** this.svnUpdater.updateSVN((stagingVRE ? "test_": "") + "r_cran_pkgs.txt", ls);
|
||||
***REMOVED*** ***REMOVED***
|
||||
***REMOVED*** if (d.getType().equals("github")) {
|
||||
***REMOVED*** List<String> ls = new LinkedList<String>();
|
||||
***REMOVED*** ls.add(d.getName());
|
||||
***REMOVED*** this.svnUpdater.updateSVN((stagingVRE ? "test_": "") + "r_github_pkgs.txt", ls);
|
||||
***REMOVED*** ***REMOVED***
|
||||
***REMOVED*** ***REMOVED***
|
||||
***REMOVED******REMOVED***
|
||||
|
||||
***REMOVED***
|
||||
|
|
|
@ -67,6 +67,7 @@ public class SVNUpdater {
|
|||
***REMOVED***check if the algorithm is already in the list (match the class name)
|
||||
for(String l: lines){
|
||||
if(l.contains(algorithm.getClazz())){
|
||||
System.out.println("Not updating algorithm list beacuse already present");
|
||||
return;
|
||||
***REMOVED***
|
||||
***REMOVED***
|
||||
|
@ -74,14 +75,14 @@ public class SVNUpdater {
|
|||
***REMOVED***the algorithm is not in the list. Add it
|
||||
List<String> newContent = new LinkedList<>(Arrays.asList(lines));
|
||||
newContent.add(this.generateAlgorithmEntry(algorithm, targetVRE, user, env));
|
||||
Collections.sort(newContent);
|
||||
***REMOVED***Collections.sort(newContent);
|
||||
|
||||
|
||||
final SVNDeltaGenerator deltaGenerator = new SVNDeltaGenerator();
|
||||
|
||||
byte[] originalContents = byteArrayOutputStream.toByteArray();
|
||||
|
||||
final ISVNEditor commitEditor = svnRepository.getCommitEditor("update dependencies", null);
|
||||
final ISVNEditor commitEditor = svnRepository.getCommitEditor("update algorithm list", null);
|
||||
commitEditor.openRoot(-1);
|
||||
commitEditor.openFile(file, -1);
|
||||
|
||||
|
|
|
@ -20,7 +20,8 @@ public class SVNTests {
|
|||
SVNUpdater svnUpdater = new SVNUpdater(new ServiceConfiguration("/home/ggiammat/tmp/dmpm.properties"));
|
||||
Algorithm algo = AlgorithmBuilder.create("http:***REMOVED***data.d4science.org/dENQTTMxdjNZcGRpK0NHd2pvU0owMFFzN0VWemw3Zy9HbWJQNStIS0N6Yz0", "ICHTHYOP_MODEL");
|
||||
|
||||
algo.setClazz(algo.getClazz() + "TEST");
|
||||
|
||||
svnUpdater.updateRPRotoDeps(algo);
|
||||
svnUpdater.updateSVNRProtoAlgorithmList(algo, "/d4science.research-infrastructures.eu/gCubeApps/RPrototypingLab", "Dataminer Pool Manager", "Proto");
|
||||
***REMOVED***
|
||||
***REMOVED***
|
||||
|
|
Loading…
Reference in New Issue