Skip to content

Commit

Permalink
Ajout dossier Librairies, Modif Principale.java -> identification
Browse files Browse the repository at this point in the history
  • Loading branch information
RaphaelJ-S committed May 27, 2020
1 parent 8a51ea4 commit 47364f3
Show file tree
Hide file tree
Showing 13 changed files with 11 additions and 2 deletions.
Binary file added Librairies/commons-beanutils-1.8.0.jar
Binary file not shown.
Binary file added Librairies/commons-collections-3.2.1.jar
Binary file not shown.
Binary file added Librairies/commons-io-2.4.jar
Binary file not shown.
Binary file added Librairies/commons-io-2.6-javadoc.jar
Binary file not shown.
Binary file added Librairies/commons-io-2.6-sources.jar
Binary file not shown.
Binary file added Librairies/commons-io-2.6-test-sources.jar
Binary file not shown.
Binary file added Librairies/commons-io-2.6-tests.jar
Binary file not shown.
Binary file added Librairies/commons-io-2.6.jar
Binary file not shown.
Binary file added Librairies/commons-lang-2.5.jar
Binary file not shown.
Binary file added Librairies/commons-logging-1.1.1.jar
Binary file not shown.
Binary file added Librairies/ezmorph-1.0.6.jar
Binary file not shown.
Binary file added Librairies/json-lib-2.4-jdk15.jar
Binary file not shown.
13 changes: 11 additions & 2 deletions src/TP1/Principale.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
import java.io.FileNotFoundException;
import java.io.IOException;

/**
* Nom: Raphaël Jacob-Simard
* Code Permanant: JACR26038907
* Cours: INF2050
* Groupe: 20
* Professeur: Jacques Berger
*/
public class Principale {
public static final String MSG_ERR_CAST = "Probleme de cast. \n" +
"Le fichier de sortie n'a pas ete cree.";
Expand All @@ -11,13 +18,13 @@ public class Principale {
public static final String MSG_ERR_FILENOTFOUND = "Ce fichier n'existe pas." +
"\nLe fichier de sortie n'a pas ete cree.";
public static final String MSG_ERR_PARAM = "Probleme dans les parametres." +
"\nLe fichier de sortie n'a pas ete cree." +
" Il doit y avoir exactement 2 parametres: fichier d'entree, " +
"\nIl doit y avoir exactement 2 parametres: fichier d'entree, " +
"fichier sortie." +
"\nLe fichier de sortie n'a pas ete cree.";
public static final String MSG_ERR_EXCEPTION = "Probleme general. \n" +
"Le fichier de sortie n'a pas ete cree.";
public static final String MSG_FIN_NORMALE = "Fin normale du programme";

public static void main(String[] args) {

try {
Expand All @@ -26,9 +33,11 @@ public static void main(String[] args) {
}
String cheminEntree = args[0];
String cheminSortie = args[1];

Soumission.reponseEligibilite(cheminSortie, Soumission.
evalEligibilite(cheminEntree));
System.out.println(MSG_FIN_NORMALE);

} catch (ParamException pe) {
System.err.println(MSG_ERR_PARAM);
} catch (FileNotFoundException fnfe) {
Expand Down

0 comments on commit 47364f3

Please sign in to comment.