Tony CHEMIT pushed to branch master at ultreiaio / ird-t3

Commits:

19 changed files:

Changes:

  • pom.xml
    ... ... @@ -28,7 +28,7 @@
    28 28
     
    
    29 29
       <groupId>fr.ird.t3</groupId>
    
    30 30
       <artifactId>ird-t3</artifactId>
    
    31
    -  <version>2.8</version>
    
    31
    +  <version>2.9</version>
    
    32 32
       <packaging>pom</packaging>
    
    33 33
     
    
    34 34
       <name>T3 :: Pom</name>
    

  • src/site/markdown/installer.md.vm
    ... ... @@ -67,7 +67,7 @@ Son contenu est relu à chaque nouveau lancement.
    67 67
     
    
    68 68
     # Remplir une nouvelle base
    
    69 69
     
    
    70
    -**Il faut que la base soit créée (mais sans schéma) et que l'extension postgis soit installée**.
    
    70
    +**Il faut que la base soit créée (mais sans schéma)**.
    
    71 71
     
    
    72 72
     Sous Linux, Mac
    
    73 73
     ```
    

  • t3-actions/pom.xml
    ... ... @@ -24,7 +24,7 @@
    24 24
       <parent>
    
    25 25
         <groupId>fr.ird.t3</groupId>
    
    26 26
         <artifactId>ird-t3</artifactId>
    
    27
    -    <version>2.8</version>
    
    27
    +    <version>2.9</version>
    
    28 28
       </parent>
    
    29 29
     
    
    30 30
       <artifactId>t3-actions</artifactId>
    

  • t3-domain/pom.xml
    ... ... @@ -24,7 +24,7 @@
    24 24
       <parent>
    
    25 25
         <groupId>fr.ird.t3</groupId>
    
    26 26
         <artifactId>ird-t3</artifactId>
    
    27
    -    <version>2.8</version>
    
    27
    +    <version>2.9</version>
    
    28 28
       </parent>
    
    29 29
     
    
    30 30
       <artifactId>t3-domain</artifactId>
    

  • t3-input-avdthv33/pom.xml
    ... ... @@ -24,7 +24,7 @@
    24 24
       <parent>
    
    25 25
         <groupId>fr.ird.t3</groupId>
    
    26 26
         <artifactId>ird-t3</artifactId>
    
    27
    -    <version>2.8</version>
    
    27
    +    <version>2.9</version>
    
    28 28
       </parent>
    
    29 29
     
    
    30 30
       <artifactId>t3-input-avdthv33</artifactId>
    

  • t3-input-avdthv35/pom.xml
    ... ... @@ -24,7 +24,7 @@
    24 24
       <parent>
    
    25 25
         <groupId>fr.ird.t3</groupId>
    
    26 26
         <artifactId>ird-t3</artifactId>
    
    27
    -    <version>2.8</version>
    
    27
    +    <version>2.9</version>
    
    28 28
       </parent>
    
    29 29
     
    
    30 30
       <artifactId>t3-input-avdthv35</artifactId>
    

  • t3-input-avdthv36/pom.xml
    ... ... @@ -24,7 +24,7 @@
    24 24
       <parent>
    
    25 25
         <groupId>fr.ird.t3</groupId>
    
    26 26
         <artifactId>ird-t3</artifactId>
    
    27
    -    <version>2.8</version>
    
    27
    +    <version>2.9</version>
    
    28 28
       </parent>
    
    29 29
     
    
    30 30
       <artifactId>t3-input-avdthv36</artifactId>
    

  • t3-installer/pom.xml
    ... ... @@ -24,7 +24,7 @@
    24 24
       <parent>
    
    25 25
         <groupId>fr.ird.t3</groupId>
    
    26 26
         <artifactId>ird-t3</artifactId>
    
    27
    -    <version>2.8</version>
    
    27
    +    <version>2.9</version>
    
    28 28
       </parent>
    
    29 29
     
    
    30 30
       <artifactId>t3-installer</artifactId>
    

  • t3-installer/src/main/assembly/dist/README.md
    1 1
     # T3 Console
    
    2 2
     
    
    3
    -### Before using database commands
    
    4
    -
    
    5
    -First fill the **db.properties** file with correct values.
    
    6
    -
    
    7
    -Then use the command you need :).
    
    8
    -
    
    9 3
     ## Create a database
    
    10 4
     This will create the database on postgres server, then fill it.
    
    11 5
     ```
    
    ... ... @@ -16,6 +10,8 @@ or
    16 10
     create-db.bat dbName
    
    17 11
     ```
    
    18 12
     
    
    13
    +**Please see Notes section for more details.**
    
    14
    +
    
    19 15
     ## Fill a database
    
    20 16
     This will just fill a database on postgres server.
    
    21 17
      
    
    ... ... @@ -28,6 +24,8 @@ or
    28 24
     fill-db.bat dbName
    
    29 25
     ```
    
    30 26
     
    
    27
    +**Please see Notes section for more details.**
    
    28
    +
    
    31 29
     ## Translate application
    
    32 30
     This will open a GUI to translate application.
    
    33 31
     ```
    
    ... ... @@ -37,3 +35,39 @@ or
    37 35
     ```
    
    38 36
     translate.bat
    
    39 37
     ```
    
    38
    +
    
    39
    +## Notes
    
    40
    +
    
    41
    +For ```create-db``` or ```fill-db``` commands, the software will ask you three questions:
    
    42
    +
    
    43
    + * login to connect to database
    
    44
    + * password to connect to database
    
    45
    + * url pattern to use
    
    46
    +
    
    47
    +Those values will be stored in a file named ```t3-installer.conf``` and reused at next launch.
    
    48
    +
    
    49
    +If stored value is ok with you, just press enter.
    
    50
    +
    
    51
    +Note also that the url pattern must ends with %s (which represents the db name you have given on command line).
    
    52
    +
    
    53
    +Example on a first launch:
    
    54
    +```
    
    55
    +sh create-db.sh myT3Db
    
    56
    +Listening for transport dt_socket at address: 8000
    
    57
    +Starting T3 Console with arguments: [--create-db, myT3Db] at Fri May 18 10:40:10 CEST 2018 
    
    58
    +Login [Not defined]: t3-admin
    
    59
    +Password [Not defined]: pass
    
    60
    +Url [jdbc:postgresql:%s]: 
    
    61
    +INFO [main] (fr.ird.t3.console.T3DatabaseTool:95) createOrFill - 1/5 - Setup and connect to database...
    
    62
    +```
    
    63
    +
    
    64
    +Next launch:
    
    65
    +```
    
    66
    +sh create-db.sh myT3Db
    
    67
    +Listening for transport dt_socket at address: 8000
    
    68
    +Starting T3 Console with arguments: [--create-db, myT3Db] at Fri May 18 10:40:10 CEST 2018 
    
    69
    +Login [t3-admin]:
    
    70
    +Password [pass]:
    
    71
    +Url [jdbc:postgresql:%s]: 
    
    72
    +INFO [main] (fr.ird.t3.console.T3DatabaseTool:95) createOrFill - 1/5 - Setup and connect to database...
    
    73
    +```

  • t3-installer/src/main/assembly/dist/create-db.bat
    1
    -java  -Xmx2048M -Xms512M -jar ${project.build.finalName}.jar --create-db "db.properties" "%1"
    \ No newline at end of file
    1
    +java  -Xmx2048M -Xms512M -jar ${project.build.finalName}.jar --create-db "%1"
    \ No newline at end of file

  • t3-installer/src/main/assembly/dist/create-db.sh
    1 1
     #!/bin/sh
    
    2 2
     
    
    3
    -java -Xmx2048M -Xms512M -jar ${project.build.finalName}.jar --create-db "db.properties" "$1"
    3
    +java -Xmx2048M -Xms512M -jar ${project.build.finalName}.jar --create-db "$1"

  • t3-installer/src/main/assembly/dist/fill-db.bat
    1
    -java  -Xmx2048M -Xms512M -jar ${project.build.finalName}.jar --fill-db "db.properties" "%1"
    \ No newline at end of file
    1
    +java  -Xmx2048M -Xms512M -jar ${project.build.finalName}.jar --fill-db "%1"
    \ No newline at end of file

  • t3-installer/src/main/assembly/dist/fill-db.sh
    1 1
     #!/bin/sh
    
    2 2
     
    
    3
    -java  -Xmx2048M -Xms512M -jar ${project.build.finalName}.jar --fill-db "db.properties" "$1"
    3
    +java  -Xmx2048M -Xms512M -jar ${project.build.finalName}.jar --fill-db "$1"

  • t3-installer/src/main/config/T3Installer.ini
    ... ... @@ -26,7 +26,7 @@ type = string
    26 26
     description = Jdbc connection url
    
    27 27
     key = url
    
    28 28
     type = string
    
    29
    -defaultValue = jdbc:postgresql:${dbName}
    
    29
    +defaultValue = jdbc:postgresql:%s
    
    30 30
     
    
    31 31
     [action createDb]
    
    32 32
     description = To create a new database (requires one argument: dbName)
    

  • t3-installer/src/main/java/fr/ird/t3/console/T3Console.java
    ... ... @@ -55,7 +55,7 @@ public class T3Console {
    55 55
                     throw new IllegalArgumentException(String.format("Need one arguments for command %s. Try with --help to get details.", action));
    
    56 56
                 }
    
    57 57
     
    
    58
    -            installerConfig = new T3InstallerConfig(ApplicationConfigInit.forAllScopesWithout(ApplicationConfigScope.HOME, ApplicationConfigScope.SYSTEM).setConfigFileName(args[1]));
    
    58
    +            installerConfig = new T3InstallerConfig(ApplicationConfigInit.forAllScopesWithout(ApplicationConfigScope.HOME, ApplicationConfigScope.SYSTEM));
    
    59 59
                 installerConfig.get().parse(args);
    
    60 60
     
    
    61 61
                 Console console = System.console();
    

  • t3-msaccess-importer/pom.xml
    ... ... @@ -24,7 +24,7 @@
    24 24
       <parent>
    
    25 25
         <groupId>fr.ird.t3</groupId>
    
    26 26
         <artifactId>ird-t3</artifactId>
    
    27
    -    <version>2.8</version>
    
    27
    +    <version>2.9</version>
    
    28 28
       </parent>
    
    29 29
     
    
    30 30
       <artifactId>t3-msaccess-importer</artifactId>
    

  • t3-output-balbayav32/pom.xml
    ... ... @@ -24,7 +24,7 @@
    24 24
       <parent>
    
    25 25
         <groupId>fr.ird.t3</groupId>
    
    26 26
         <artifactId>ird-t3</artifactId>
    
    27
    -    <version>2.8</version>
    
    27
    +    <version>2.9</version>
    
    28 28
       </parent>
    
    29 29
     
    
    30 30
       <artifactId>t3-output-balbayav32</artifactId>
    

  • t3-web/pom.xml
    ... ... @@ -24,7 +24,7 @@
    24 24
       <parent>
    
    25 25
         <groupId>fr.ird.t3</groupId>
    
    26 26
         <artifactId>ird-t3</artifactId>
    
    27
    -    <version>2.8</version>
    
    27
    +    <version>2.9</version>
    
    28 28
       </parent>
    
    29 29
     
    
    30 30
       <artifactId>t3-web</artifactId>
    

  • t3/pom.xml
    ... ... @@ -26,7 +26,7 @@
    26 26
       <parent>
    
    27 27
         <groupId>fr.ird.t3</groupId>
    
    28 28
         <artifactId>ird-t3</artifactId>
    
    29
    -    <version>2.8</version>
    
    29
    +    <version>2.9</version>
    
    30 30
       </parent>
    
    31 31
       
    
    32 32
       <artifactId>t3</artifactId>