This commit is contained in:
Nunzio Andrea Galante 2017-09-01 15:50:01 +00:00
parent b29cce9580
commit 079ba2faeb
1 changed files with 6 additions and 4 deletions

View File

@ -430,8 +430,9 @@ public class SVNUpdater ***REMOVED***
***REMOVED***
public String generateAlgorithmEntry(Algorithm algorithm, String targetVRE, String category, String algorithm_type,String env) ***REMOVED***
Timestamp timestamp = new Timestamp(System.currentTimeMillis());
***REMOVED***Timestamp timestamp = new Timestamp(System.currentTimeMillis());
long unixTime = System.currentTimeMillis() / 1000L;
StringBuffer sb = new StringBuffer("| ");
sb.append(algorithm.getName() + " | ");
sb.append(algorithm.getFullname() + " | ");
@ -441,7 +442,7 @@ public class SVNUpdater ***REMOVED***
+ algorithm.getClazz() + " " + targetVRE + " " + algorithm_type + " N "
+ algorithm.getPackageURL() + " \"" + algorithm.getDescription() + "\" </notextile> | ");
sb.append("none | ");
sb.append(timestamp + " | ");
sb.append(unixTime + " | ");
return sb.toString();
***REMOVED***
@ -647,7 +648,8 @@ public class SVNUpdater ***REMOVED***
***REMOVED***File a = new File("/home/ngalante/Desktop/testCiro");
***REMOVED***File b = new File ("/home/ngalante/Desktop/testB");
long unixTime = System.currentTimeMillis() / 1000L;
System.out.println(unixTime);
***REMOVED***c.updateAlgorithmFiles(a);
***REMOVED***c.updateAlgorithmFiles(b);