1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| public static void main(String[] args) {
try {
Properties configProperties = readConfiguration();
//test traitement pour CSV >>> Si OK ajouter une vérif sur le nb d'arguments donné <<<
int arg[]=;
for(int i=0; i<3;i++){
arg[i]=Integer.parseInt(args[i]);
}
switch (args){
case 1:
{PdfGeneratorCsv executer = new PdfGeneratorCsv();
executer.execute(configProperties);}
case 0:
{ PdfGeneratorArcade executer = new PdfGeneratorArcade();
executer.execute(configProperties);}
default:
LOG.info("Aucun fichier en entrée");
}
}
} |