claeis / ilivalidator

INTERLIS validator
14 stars 21 forks source link

batch mode: --modeldir %JAR_DIR not recognized #257

Open Pierre-de-la-Verre opened 4 years ago

Pierre-de-la-Verre commented 4 years ago

I tried a batch-call of ilivalidator with something like this:

.... --modeldir \\\\MY_SERVER\\my_folder\\MODELS\\;http://models.interlis.ch/;http://models.geo.admin.ch/BAFU/;%JAR_DIR/ --log ...

The problem is JAR_DIR: I tried it with and without "quotes", at the beginning at the string and at the end, with(out) final semicolon and with(out) percent- it failed always. Either it was ignored or it disturbed the following definition of --log.

Both the server-folders and the web-pages are read fine. What's wrong?

claeis commented 4 years ago

Please paste the log file up to the line Info: validate data...

Pierre-de-la-Verre commented 4 years ago

This is my batch-file with JAR_DIR: java -Xmx7000m -jar "d:/Program Files/ilivalidator/ilivalidator.jar" --modeldir %JAR_DIR;\\\\MY_SERVER\\my_folder\\MODELS23\\;\\\\MY_SERVER\\my_folder\\MODELS\\;http://models.interlis.ch/;http://models.geo.admin.ch/BAFU/ --log "c:/temp/tg12_perimeter.log" "D:/Program Files/ilivalidator/Daten/tg12_perimeter.xtf" pause

This is the log-file: Info: ilivalidator-1.11.6-fdec8ad57adf786b3acffd2a17cd95f65f4b2032 Info: ili2c-5.1.1-20200501 Info: iox-ili-1.21.0-731076775d8b9bd0599802cf5a0324bc3a1c21d8 Info: User <my_name> Info: Start date 2020-06-03 10:38 Info: maxMemory 6371840 KB Info: dataFile <D:/Program Files/ilivalidator/Daten/tg12_perimeter.xtf> Info: pluginFolder <d:\Program Files\ilivalidator\plugins> Info: ilidirs <//models.interlis.ch/;http://models.geo.admin.ch/BAFU/> Info: lookup model <TG12_01_DSS_2015_WI_LV95> 2.3 in repository <//models.interlis.ch/> Warning: Folder \\models.interlis.ch doesn't exist; ignored Info: lookup model <TG12_01_DSS_2015_WI_LV95> 2.3 in repository <http://models.geo.admin.ch/BAFU/> Error: TG12_01_DSS_2015_WI_LV95: model(s) not found

And here the batch and the log without JAR_DIR: java -Xmx7000m -jar "d:/Program Files/ilivalidator/ilivalidator.jar" --modeldir \\\\MY_SERVER\\my_folder\\MODELS23\\;\\\\MY_SERVER\\my_folder\\MODELS\\;http://models.interlis.ch/;http://models.geo.admin.ch/BAFU/ --log "c:/temp/tg12_perimeter.log" "D:/Program Files/ilivalidator/Daten/tg12_perimeter.xtf" pause

Info: ilivalidator-1.11.6-fdec8ad57adf786b3acffd2a17cd95f65f4b2032 Info: ili2c-5.1.1-20200501 Info: iox-ili-1.21.0-731076775d8b9bd0599802cf5a0324bc3a1c21d8 Info: User <my_name> Info: Start date 2020-06-03 10:42 Info: maxMemory 6371840 KB Info: dataFile <D:/Program Files/ilivalidator/Daten/tg12_perimeter.xtf> Info: pluginFolder <d:\Program Files\ilivalidator\plugins> Info: ilidirs <\\\\MY_SERVER\\my_folder\\MODELS23\\;\\\\MY_SERVER\\my_folder\\MODELS\\;http://models.interlis.ch/;http://models.geo.admin.ch/BAFU/> Info: lookup model <TG12_01_DSS_2015_WI_LV95> 2.3 in repository <\\\\MY_SERVER\\my_folder\\MODELS23\\/> Info: lookup model <DSS_2015_LV95> 2.3 in repository <\\\\MY_SERVER\\my_folder\\MODELS23\\/> Info: lookup model <SIA405_Base_LV95> 2.3 in repository <\\\\MY_SERVER\\my_folder\\MODELS23\\/> Info: lookup model <Units> 2.3 in repository <\\\\MY_SERVER\\my_folder\\MODELS23\\/> Info: lookup model <Base_LV95> 2.3 in repository <\\\\MY_SERVER\\my_folder\\MODELS23\\/> Info: ilifile <\\MY_SERVER\iltools\user\MODELS23\Units-20120220.ili> Info: ilifile <\\MY_SERVER\iltools\user\MODELS23\Base_LV95.ili> Info: ilifile <\\MY_SERVER\iltools\user\MODELS23\SIA405_Base_LV95.ili> Info: ilifile <\\MY_SERVER\iltools\user\MODELS23\VSA_DSS_2015_2_d_LV95.ili> Info: ilifile <\\MY_SERVER\iltools\user\MODELS23\TG12_01_DSS_2015_WI_LV95.ili> Info: validate data... Info: assume unknown external objects Info: first validation pass...

claeis commented 4 years ago

The log indicates, that the command line parameters are not seen by the application as expected:

 Info: ilidirs <//models.interlis.ch/;http://models.geo.admin.ch/BAFU/> 
 Warning: Folder \\models.interlis.ch doesn't exist; ignored