MAJ
This commit is contained in:
parent
a62053834d
commit
5a98ba1fa1
Binary file not shown.
@ -125,7 +125,110 @@ public class commandes {
|
|||||||
public static int analyse_index_Fichier_Student = 0;
|
public static int analyse_index_Fichier_Student = 0;
|
||||||
public static StringBuilder message = new StringBuilder();
|
public static StringBuilder message = new StringBuilder();
|
||||||
|
|
||||||
|
public static void initialise() {
|
||||||
|
//** Application console par défaut.
|
||||||
|
//** Si la valeur ets false alors c'est une application avec inteface graphique.
|
||||||
|
console = true;
|
||||||
|
|
||||||
|
//** Le node du fichier d'analyse
|
||||||
|
sujet = new node();
|
||||||
|
sujetSauvegarde = new node();
|
||||||
|
tree = new JTree();
|
||||||
|
nodeCSV = null;
|
||||||
|
|
||||||
|
//**version
|
||||||
|
version ="V4.2.2"; // La version actuelle
|
||||||
|
branch = "Origin";
|
||||||
|
Annee ="2022";
|
||||||
|
|
||||||
|
//***************************************************
|
||||||
|
//** Les commandes par défaut à travers la console **
|
||||||
|
//***************************************************
|
||||||
|
nameSujet = ""; //sujet par défaut
|
||||||
|
analyse = false; //analyse des fichiers étudiants
|
||||||
|
ecritCode = false; // -write : ecriture du code du sujet
|
||||||
|
ecritSujet = false; // -sujet : ecriture 2 du code du sujet, uniquement les nodes évalués
|
||||||
|
ecritNodeAnalyse = false;
|
||||||
|
ecritNoteCSV = false; // ecriture note.csv
|
||||||
|
writefiles = false; // -writefiles permet d'écrire tous les fichiers XML après la lecture en node
|
||||||
|
calculLeHashDuFichier = false; // -hash retourne le hash du fichier d'analyse
|
||||||
|
sansFeeback = false; // pas de feedback étudiant
|
||||||
|
verifHisto = false; // vérification des historiques correspond à la commande -verif
|
||||||
|
verifHisto2 = false; // vérification des historiques lorsqu'il y a aussi analyse
|
||||||
|
fourniCSV = false; // fourni le fichier CSV contenant la liste des étudiants
|
||||||
|
badCommand = false ; //erreur dans les commandes
|
||||||
|
noNote =false; // pas de note dans les feedbacks
|
||||||
|
noLogo =false; // pas de logo dans les feedbacks
|
||||||
|
newLogo=false; // un nouveau logo dans le feedback
|
||||||
|
licence = false; // affiche la licence
|
||||||
|
zipfeedback = false; // Les feedback dans une archive ZIP
|
||||||
|
fichierStudentMoodle = false; // Les fichiers étudiants sont directement dans le dossier courant de l'application.
|
||||||
|
Profil = cXML.Run.UserStatus.TEACHER ; //Le profil TEACHER permet de lire dans les dossiers contenus dans le répertoire courant de l'application. Le profil STUDENT permet de lire au niveau du répertoire courant de l'application.
|
||||||
|
fourniDossierDestination = false; //répertoire de destination des feedbacks et CSV;
|
||||||
|
nameCSV = ""; //le nom du fichier contenant la liste des étudiants
|
||||||
|
nameSVG =""; //le nom du nouveau logo
|
||||||
|
contenuFichierSVG =""; // Le nouveau logo
|
||||||
|
path ="";
|
||||||
|
pathDestination =""; //Pour le mode console uniquement
|
||||||
|
nomDeLaBranch = "Origin"; //Branche de développement
|
||||||
|
Command =""; //récupère le texte de la commande dans la console
|
||||||
|
|
||||||
|
//** setting valeur par défaut
|
||||||
|
culture = "FR";
|
||||||
|
tolerance_characters = 5;
|
||||||
|
tolerance_text = 0.79;
|
||||||
|
number_match = 2;
|
||||||
|
mini_number_modification = 0;
|
||||||
|
nombres_modifications_simultané_maxi = 100;
|
||||||
|
tolerance_rouge = 30;
|
||||||
|
tolerance_vert = 30;
|
||||||
|
tolerance_bleu = 30;
|
||||||
|
|
||||||
|
//** Variables de mise à jour du fichier d'analyse
|
||||||
|
MAJnameAnalysisFile =false;
|
||||||
|
MAJFichierAnalyse = false;
|
||||||
|
hash ="0";
|
||||||
|
|
||||||
|
//** Variables du fichier d'analyse
|
||||||
|
analyse_culture = "FR";
|
||||||
|
analyse_metaSujet="";
|
||||||
|
analyse_auteur="";
|
||||||
|
analyse_Initial_Creator="";
|
||||||
|
analyse_version="";
|
||||||
|
analyse_creationDate="";
|
||||||
|
analyse_titre="";
|
||||||
|
analyse_link_sujet="";
|
||||||
|
analyse_link_help="";
|
||||||
|
analyse_date="";
|
||||||
|
analyse_historiquePresent=false;
|
||||||
|
analyse_presenceMetaSujet=false;
|
||||||
|
analyse_controleDateCreation=false;
|
||||||
|
analyse_controle_Initial_Creator=false;
|
||||||
|
analyse_baremeABC=false;
|
||||||
|
analyse_progression=1;
|
||||||
|
analyse_notefrom=20;
|
||||||
|
analyse_tolerance_characters = 5;
|
||||||
|
analyse_tolerance_text = 0.79;
|
||||||
|
analyse_number_match = 2;
|
||||||
|
analyse_mini_number_modification = 0;
|
||||||
|
analyse_nombres_modifications_simultané_maxi = 100;
|
||||||
|
analyse_tolerance_rouge = 30;
|
||||||
|
analyse_tolerance_vert = 30;
|
||||||
|
analyse_tolerance_bleu = 30;
|
||||||
|
analyse_size = 48000000;
|
||||||
|
analyse_nameZip = "feedbackMoodle";
|
||||||
|
analyse_hash = "";
|
||||||
|
analysis_filename = "";
|
||||||
|
|
||||||
|
|
||||||
|
//** Variables pour l'interface du logiciel
|
||||||
|
Titre = "analyseWriter";
|
||||||
|
PathFilenameAnalysis="";
|
||||||
|
fichierAnalyseValide = false; //mise à jour de la valeur dans MEPTL.verificationFichierAnalyse
|
||||||
|
analyse_Nbre_Fichier_Student = 0;
|
||||||
|
analyse_index_Fichier_Student = 0;
|
||||||
|
message = new StringBuilder();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -50,7 +50,8 @@ public class actNewFichierAnalyse extends AbstractAction{
|
|||||||
if (chooser.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) {
|
if (chooser.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) {
|
||||||
System.out.println("getCurrentDirectory(): " + chooser.getCurrentDirectory());
|
System.out.println("getCurrentDirectory(): " + chooser.getCurrentDirectory());
|
||||||
System.out.println("getSelectedFile() : " + chooser.getSelectedFile().getAbsolutePath());
|
System.out.println("getSelectedFile() : " + chooser.getSelectedFile().getAbsolutePath());
|
||||||
|
commandes.initialise();
|
||||||
|
|
||||||
commandes.path = chooser.getCurrentDirectory().getAbsolutePath();
|
commandes.path = chooser.getCurrentDirectory().getAbsolutePath();
|
||||||
commandes.PathFilenameAnalysis = chooser.getCurrentDirectory().getAbsolutePath();
|
commandes.PathFilenameAnalysis = chooser.getCurrentDirectory().getAbsolutePath();
|
||||||
String cheminVersFichier = chooser.getSelectedFile().getAbsolutePath();
|
String cheminVersFichier = chooser.getSelectedFile().getAbsolutePath();
|
||||||
|
@ -41,7 +41,7 @@ public class filechooserXML extends JFileChooser {
|
|||||||
|
|
||||||
int response = showOpenDialog(null);
|
int response = showOpenDialog(null);
|
||||||
if(response == JFileChooser.APPROVE_OPTION) {
|
if(response == JFileChooser.APPROVE_OPTION) {
|
||||||
commandes.message = new StringBuilder();
|
commandes.initialise();
|
||||||
|
|
||||||
File file = new File(getSelectedFile().getAbsolutePath());
|
File file = new File(getSelectedFile().getAbsolutePath());
|
||||||
System.out.println(file.getPath() + "\n" + file.getName());
|
System.out.println(file.getPath() + "\n" + file.getName());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user