MAJ V4.4.3

This commit is contained in:
pablo rodriguez 2023-03-03 18:54:53 +01:00
parent a7f9d2d231
commit 8233c15455
7 changed files with 8 additions and 6 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -257,7 +257,7 @@ public class commandes {
System.exit(0);
}
public static void clotureWithErrorFile(String filename) {
public static void ErrorFile(String filename) {
int nbespace = 30-filename.length();
if (nbespace<0) nbespace=1;
System.out.println();
@ -276,7 +276,6 @@ public class commandes {
commandes.message.append("\n*************************");
commandes.message.append("\n");
if(commandes.console) System.exit(0);
}

View File

@ -2189,6 +2189,7 @@ public class meptl {
* @throws IOException
*/
public static node chargementFichierCSV() {
node nodeCVS = null;
String targetString = "";
String cheminVersLeFichierCSV = "";
@ -2212,13 +2213,14 @@ public class meptl {
br.close();
} catch (IOException e) {
commandes.clotureWithErrorFile(cheminVersLeFichierCSV);
commandes.ErrorFile(cheminVersLeFichierCSV);
e.printStackTrace();
return nodeCVS;
}
String[] target = targetString.split("\\n");
node nodeCVS = new node();
nodeCVS = new node();
nodeCVS.setNomElt("fileCSV");
String[] line1 = target[0].split(";");
for(int i = 1 ; i < target.length ; i++) {
@ -2257,7 +2259,7 @@ public class meptl {
br.close();
} catch (IOException e) {
commandes.clotureWithErrorFile(commandes.nameSVG);
commandes.ErrorFile(commandes.nameSVG);
e.printStackTrace();
}
return targetString;

View File

@ -75,7 +75,8 @@ public class evaluerLesFichiersEtudiants implements Runnable{
//** Chargement et verification du CVS fourni **
//**********************************************
if(commandes.fourniCSV) {
commandes.nodeCSV = meptl.chargementFichierCSV();
node A = meptl.chargementFichierCSV();
if(A!=null) commandes.nodeCSV = A;
}