Tony CHEMIT pushed to branch develop at ultreiaio / ird-t3 Commits: 1eb6d9d2 by Tony CHEMIT at 2018-03-12T23:54:12Z [IMPORT] Sélectionner le driver AVDTH 3.5 par défaut (Closes #291) - - - - - 4 changed files: - t3-domain/src/main/config/T3.ini - t3-domain/src/main/resources/i18n/t3-domain_en_GB.properties - t3-domain/src/main/resources/i18n/t3-domain_fr_FR.properties - t3-web/src/main/java/fr/ird/t3/web/actions/io/input/ConfigureImportDataAction.java Changes: ===================================== t3-domain/src/main/config/T3.ini ===================================== --- a/t3-domain/src/main/config/T3.ini +++ b/t3-domain/src/main/config/T3.ini @@ -56,6 +56,12 @@ defaultValue = ${data.directory}/treatments transient = true final = true +[option defaultInputPilotId] +description = t3.config.defaultInputPilotId.description +key = defaultInputPilotId +type = String +defaultValue = AVDTH__3.5 + [option stratumWeightRatio] description = t3.config.stratum.weightRatio.description key = stratum.weightRatio ===================================== t3-domain/src/main/resources/i18n/t3-domain_en_GB.properties ===================================== --- a/t3-domain/src/main/resources/i18n/t3-domain_en_GB.properties +++ b/t3-domain/src/main/resources/i18n/t3-domain_en_GB.properties @@ -147,6 +147,7 @@ t3.common.zoneVersion=Version of zone t3.config.context.path.description=Context path t3.config.data.directory.description=Data directory of T3+ t3.config.data.version.description=Data version +t3.config.defaultInputPilotId.description=Default AVDTH Input pilot name to use t3.config.internal.db.directory.description=Path of T3+ internal database t3.config.level0.weightedSetWeight.description=Weighted set weight (used to split mixed sets) t3.config.level2.defaultSpecies.description=Codes of selected species by default for level 2 ===================================== t3-domain/src/main/resources/i18n/t3-domain_fr_FR.properties ===================================== --- a/t3-domain/src/main/resources/i18n/t3-domain_fr_FR.properties +++ b/t3-domain/src/main/resources/i18n/t3-domain_fr_FR.properties @@ -147,6 +147,7 @@ t3.common.zoneVersion=Version de zone t3.config.context.path.description=Contexte applicatif t3.config.data.directory.description=Répertoire par défaut où mettre toutes les données de t3 (logs, fichier de configuration de db, ...) t3.config.data.version.description=Version des données +t3.config.defaultInputPilotId.description=Nom du pilote AVDTH à utiliser par défaut t3.config.internal.db.directory.description=Chemin de la base interne de T3+ t3.config.level0.weightedSetWeight.description=Poids moyen d'une calée t3.config.level2.defaultSpecies.description=Code des espèces sélectionnées par défaut pour le niveau 2 ===================================== t3-web/src/main/java/fr/ird/t3/web/actions/io/input/ConfigureImportDataAction.java ===================================== --- a/t3-web/src/main/java/fr/ird/t3/web/actions/io/input/ConfigureImportDataAction.java +++ b/t3-web/src/main/java/fr/ird/t3/web/actions/io/input/ConfigureImportDataAction.java @@ -135,6 +135,9 @@ public class ConfigureImportDataAction extends AbstractConfigureAction<AnalyzeIn } else { log.info(String.format("Use existing treatment directory %s", getTreatmentDirectoryPath())); } + if (getConfiguration().getInputProvider() == null) { + inputProviderId = getApplicationConfig().getDefaultInputPilotId(); + } } public String doAddSource() throws Exception { View it on GitLab: https://gitlab.com/ultreiaio/ird-t3/commit/1eb6d9d2b4de50b940bbe1e29af88d8c8... --- View it on GitLab: https://gitlab.com/ultreiaio/ird-t3/commit/1eb6d9d2b4de50b940bbe1e29af88d8c8... You're receiving this email because of your account on gitlab.com.