{"id":118,"date":"2017-11-12T10:52:05","date_gmt":"2017-11-12T09:52:05","guid":{"rendered":"http:\/\/localhost\/wordpress\/?page_id=118"},"modified":"2018-10-07T16:33:53","modified_gmt":"2018-10-07T14:33:53","slug":"mode-ligne-de-commande","status":"publish","type":"page","link":"https:\/\/bssolutionexpertise.com\/index.php\/solutions\/dsn-xls\/mode-ligne-de-commande\/","title":{"rendered":"Mode ligne de commande"},"content":{"rendered":"<div class=\"fusion-fullwidth fullwidth-box fusion-builder-row-1 nonhundred-percent-fullwidth non-hundred-percent-height-scrolling\" style=\"background-color: rgba(255,255,255,0);background-position: center center;background-repeat: no-repeat;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;margin-bottom: 0px;margin-top: 0px;border-width: 0px 0px 0px 0px;border-color:#eae9e9;border-style:solid;\" ><div class=\"fusion-builder-row fusion-row\"><div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-0 fusion_builder_column_1_1 1_1 fusion-one-full fusion-column-first fusion-column-last\" style=\"margin-top:0px;margin-bottom:0px;\"><div class=\"fusion-column-wrapper fusion-flex-column-wrapper-legacy\" style=\"background-position:left top;background-repeat:no-repeat;-webkit-background-size:cover;-moz-background-size:cover;-o-background-size:cover;background-size:cover;padding: 0px 0px 0px 0px;\"><div class=\"fusion-text fusion-text-1\"><h1>Mode ligne de commande pour DSN XLS<\/h1>\n<h2>Installation des composants<\/h2>\n<pre>Cr\u00e9er un r\u00e9pertoire, puis disposer les fichiers comme suit :\r\n+--+ R\u00e9pertoire\r\n   |\r\n   +-- Programme-exe.jar\r\n   +-- log.properties\r\n   +-- ParamVXXXXX.cfg\r\n   +--+ box\r\n      |\r\n      +-- normeVXXXXX.xml\r\n      +-- structureVXXXXX.xml\r\n<\/pre>\n<h2>Lancement en mode ligne de commande<\/h2>\n<pre>Il suffit d'ouvrir une fen\u00eatre ne mode ligne de commande et de lancer le programme comme suit :\r\n\r\n\"java -jar Programme-exe.jar -cmdLine -cfg ParamVXXXXX.cfg\"\r\n\r\nExemple : \r\n\r\n&gt;java -jar N4DS_CSV-1.0-exe.jar -cmdLine -cfg ParamV01X09.cfg\r\n\r\nVous devriez obtenir une log de ce type :\r\n2011-10-01 17:39:30,937 INFO  root - Debut du programme\r\n2011-10-01 17:39:30,937 INFO  root - Initialisation de la log terminee\r\n2011-10-01 17:39:30,937 INFO  root - Mode Ligne de commande (-cmdLine):true;\r\n2011-10-01 17:39:30,937 INFO  root - Fichier de param\u00e9trage (-cfg {X}):ParamV08R10.cfg;\r\n2011-10-01 17:39:30,937 INFO  root - Afficher les lignes sans la structure recherch\u00e9e (-opt1 {X}):true;\r\n2011-10-01 17:39:30,937 INFO  root - Condition (-condition {X}):Toutes les structures;\r\n2011-10-01 17:39:30,937 INFO  root - Sortie au format CSV (-csv {X}):true;\r\n2011-10-01 17:39:30,937 INFO  root - Sortie au format Excel (-excel {X}):true;\r\n2011-10-01 17:39:30,937 INFO  root - Chargement des param\u00e8tres du fichier ParamV08R10.cfg OK\r\n2011-10-01 17:39:30,937 DEBUG root - Lecture du fichier structure:box\\structureV08R10.xml\r\n2011-10-01 17:39:30,937 INFO  root - LectureXML Structure DADS-U- Initialisation - OK\r\n2011-10-01 17:39:31,078 DEBUG root - XMLHandler - Fin du parsing\r\n2011-10-01 17:39:31,078 INFO  root - Chargement de la structure box\\structureV08R10.xml OK\r\n2011-10-01 17:39:31,078 DEBUG root - Lecture du fichier norme:box\\normeV08R10.xml\r\n2011-10-01 17:39:31,078 INFO  root - LectureXML Norme DADS-U - Initialisation - OK\r\n2011-10-01 17:39:31,109 DEBUG root - XMLHandler - Fin du parsing\r\n2011-10-01 17:39:31,109 INFO  root - Chargement de la norme box\\normeV08R10.xml OK\r\n2011-10-01 17:39:31,171 INFO  root - S20.G01.00\r\n2011-10-01 17:39:31,187 DEBUG root - Essai de Lecture du fichier DADSU : \r\n2011-10-01 17:39:31,250 ERROR root - *** FileNotFoundException Class:Analyse - Initialisation:\r\n2011-10-01 17:39:31,250 INFO  root - S30.G01.00\r\n2011-10-01 17:39:31,250 INFO  root - S41.G01.00\r\n2011-10-01 17:39:31,250 INFO  root - S41.G01.01\r\n2011-10-01 17:39:31,250 INFO  root - S41.G01.02\r\n2011-10-01 17:39:31,250 INFO  root - S41.G01.03\r\n2011-10-01 17:39:31,250 INFO  root - S41.G01.04\r\n2011-10-01 17:39:31,250 INFO  root - S41.G01.05\r\n2011-10-01 17:39:31,250 INFO  root - S41.G01.06\r\n2011-10-01 17:39:31,250 INFO  root - S41.G30.10\r\n2011-10-01 17:39:31,250 INFO  root - S41.G30.15\r\n2011-10-01 17:39:31,250 INFO  root - S41.G30.20\r\n2011-10-01 17:39:31,250 INFO  root - S41.G30.25\r\n2011-10-01 17:39:31,250 INFO  root - S41.G30.35\r\n2011-10-01 17:39:31,250 INFO  root - S41.G30.36\r\n2011-10-01 17:39:31,250 INFO  root - S46.G01.00\r\n2011-10-01 17:39:31,250 ERROR root - Le logiciel n'a pu ouvrir le fichier DADS-U indiqu\u00e9 en param\u00e8tre\r\nVeuillez v\u00e9rifier le chemin d'acc\u00e8s (il faut un \"\\\" en fin de r\u00e9pertoire)\r\nLe fichier indiqu\u00e9 en param\u00e8tre n'est il pas d\u00e9j\u00e0 ouvert par une autre application ?\r\n2011-10-01 17:39:31,250 INFO  root - Conversion termin\u00e9e sans anomalie :)\r\n2011-10-01 17:39:31,250 INFO  root - code retour du programme:10\r\n2011-10-01 17:39:31,250 INFO  root - Fin du programme\r\n\r\n<\/pre>\n<h2>Les options<\/h2>\n<p>Plusieurs options existes en mode ligne de commande :<\/p>\n<h3>Obligatoire<\/h3>\n<ul>\n<li>\u00ab\u00a0-cmdLine\u00a0\u00bb Le programme se lance en mode ligne de commande, sinon il va essayer de d\u00e9marrer en mode graphique et certainement \u00e9chouer car les biblioth\u00e8ques *.dll ne sont pas pr\u00e9sentes.<\/li>\n<li>\u00ab\u00a0-cfg [Param*****.cfg]\u00a0\u00bb Cela permet au programme de connaitre le fichier Param*****.cfg \u00e0 utiliser, afin de r\u00e9cup\u00e9rer les options et le param\u00e9trage d\u00e9fini dans celui-ci.<\/li>\n<\/ul>\n<h3>Facultatif<\/h3>\n<p>Les options suivantes peuvent \u00eatre indiqu\u00e9es en param\u00e8tre, mais seront toujours surcharg\u00e9es par le contenu du fichier Param*****.cfg !<\/p>\n<ul>\n<li>Afficher les lignes sans la structure recherch\u00e9e (-opt1 {X})<\/li>\n<li>Condition (-condition {X})<\/li>\n<li>Sortie au format CSV (-csv {X})<\/li>\n<li>Sortie au format Excel (-excel {X})<\/li>\n<\/ul>\n<\/div><div class=\"fusion-clearfix\"><\/div><\/div><\/div><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":54,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"jetpack_post_was_ever_published":false,"footnotes":""},"class_list":["post-118","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/P9vk3y-1U","jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/bssolutionexpertise.com\/index.php\/wp-json\/wp\/v2\/pages\/118","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bssolutionexpertise.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/bssolutionexpertise.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/bssolutionexpertise.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bssolutionexpertise.com\/index.php\/wp-json\/wp\/v2\/comments?post=118"}],"version-history":[{"count":2,"href":"https:\/\/bssolutionexpertise.com\/index.php\/wp-json\/wp\/v2\/pages\/118\/revisions"}],"predecessor-version":[{"id":607,"href":"https:\/\/bssolutionexpertise.com\/index.php\/wp-json\/wp\/v2\/pages\/118\/revisions\/607"}],"up":[{"embeddable":true,"href":"https:\/\/bssolutionexpertise.com\/index.php\/wp-json\/wp\/v2\/pages\/54"}],"wp:attachment":[{"href":"https:\/\/bssolutionexpertise.com\/index.php\/wp-json\/wp\/v2\/media?parent=118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}