Tony CHEMIT pushed to branch master at ultreiaio / ird-t3
Commits:
-
bf17b0af
by Tony CHEMIT at 2018-05-04T14:24:06Z
-
d202d42d
by Tony CHEMIT at 2018-05-04T14:55:11Z
-
0ebc8295
by Tony CHEMIT at 2018-05-04T14:55:12Z
-
07893feb
by Tony CHEMIT at 2018-05-04T14:55:12Z
-
44fb5654
by Tony CHEMIT at 2018-05-04T15:52:26Z
-
147c1b60
by Tony CHEMIT at 2018-05-18T08:12:00Z
-
77987e46
by Tony CHEMIT at 2018-05-18T08:49:34Z
-
52cee643
by Tony CHEMIT at 2018-05-18T09:51:12Z
-
5309c44e
by Tony CHEMIT at 2018-05-18T10:18:20Z
19 changed files:
- pom.xml
- src/site/markdown/installer.md.vm
- t3-actions/pom.xml
- t3-domain/pom.xml
- t3-input-avdthv33/pom.xml
- t3-input-avdthv35/pom.xml
- t3-input-avdthv36/pom.xml
- t3-installer/pom.xml
- t3-installer/src/main/assembly/dist/README.md
- t3-installer/src/main/assembly/dist/create-db.bat
- t3-installer/src/main/assembly/dist/create-db.sh
- t3-installer/src/main/assembly/dist/fill-db.bat
- t3-installer/src/main/assembly/dist/fill-db.sh
- t3-installer/src/main/config/T3Installer.ini
- t3-installer/src/main/java/fr/ird/t3/console/T3Console.java
- t3-msaccess-importer/pom.xml
- t3-output-balbayav32/pom.xml
- t3-web/pom.xml
- t3/pom.xml
Changes:
| ... | ... | @@ -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>
|
| ... | ... | @@ -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 |
```
|
| ... | ... | @@ -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>
|
| ... | ... | @@ -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>
|
| ... | ... | @@ -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>
|
| ... | ... | @@ -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>
|
| ... | ... | @@ -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>
|
| ... | ... | @@ -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>
|
| 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 |
+```
|
| 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 |
| 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"
|
| 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 |
| 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"
|
| ... | ... | @@ -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)
|
| ... | ... | @@ -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();
|
| ... | ... | @@ -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>
|
| ... | ... | @@ -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>
|
| ... | ... | @@ -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>
|
| ... | ... | @@ -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>
|