MAJ V4.4.3
This commit is contained in:
parent
a7f9d2d231
commit
8233c15455
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user