Skip to content

Commit

Permalink
Release 2.6.1 (PR #468)
Browse files Browse the repository at this point in the history
  • Loading branch information
axlbonnet authored Mar 12, 2024
2 parents d7f2893 + e58396b commit cdeda65
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ knowledge of the CeCILL-B license and that you accept its terms.
<properties>
<!-- project version. Only to change it here (and in CoreConstants.java
Follow this practice : https://maven.apache.org/maven-ci-friendly.html-->
<revision>2.6</revision>
<revision>2.6.1</revision>
<changelist/>
<sha1/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
public class CoreConstants implements IsSerializable {


public static final String VERSION = "v2.6";
public static final String VERSION = "v2.6.1";
// Configuration Labels
public static final String VO_NAME = "vo.name";
public static final String VO_ROOT = "vo.root";
Expand Down
16 changes: 13 additions & 3 deletions vip-portal/src/main/webapp/js/macroParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function parseMacFile(macId, parentFolderId) {
} else {
var macFileName = parsedValuesArray["macFilesArray"][fileIndex];
var macFile = getFileByName(macFileName, parentFolderId);
checkAndThrow(macFile, "Macro file " + macFileName + " not found in the mac folder");
checkAndThrow(macFile, "Macro file " + macFileName + " not found in the mac folder.");
var reader = new FileReader();
reader.onload = function (e) {
// Read by lines
Expand Down Expand Up @@ -144,7 +144,7 @@ function getFileByName(fileName, parentFolderId) {
return myFile;
}
}
checkAndThrow(myFile, "Warning: file " + fileName + " not found in parent folder");
checkAndThrow(myFile, "Warning: file " + fileName + " not found in parent folder.");
return myFile;
}

Expand All @@ -157,7 +157,7 @@ function getFilesByNameWithoutExtension(fileName, parentFolderId) {
myFiles.push(listOfFiles[searchIndex]);
}
}
checkAndThrow(myFiles, "Warning: file " + fileName + " not found in parent folder");
checkAndThrow(myFiles, "Warning: file " + fileName + " not found in parent folder.");
return myFiles;
}

Expand Down Expand Up @@ -189,6 +189,16 @@ function getListOfFiles(dataArray, parentFolderId) {
}
}

//Add Materials.xml file needed by default by Gate 9.2 onwards
var materialsFileName = "Materials.xml";
try {
var myMaterialsFile = getFileByName(materialsFileName, parentFolderId);
myListOfFiles.push(myMaterialsFile);
} catch (e) {
alert(e.toString() + " This shouldn't be an issue for Gate version inferior to 9.2. Please add this file to your data folder for Gate 9.2 and above.");
}


//Add Wfl config file containing the name of the main Mac file.
//Note that the created file has a name and a content, but no path
var mainMacFileName = dataArray.macFilesArray[0];
Expand Down

0 comments on commit cdeda65

Please sign in to comment.