Will fetch updates in ADE and publish AMQP message.
Last run is stored as timestamp in output_file. If not present, the script will fetch updates during the last 72 hours.
The script will use a configuration file. This is an example :
{
"ade": {
"server": "1.2.3.4",
"port": 3099,
"username": "ade_user",
"password": "grillade",
"project_id": 10
},
"sync": {
"output_file": "/tmp/ade-run.txt"
},
"rabbitmq": {
"server": "4.3.2.1",
"port": 5672,
"username": "rabbit",
"password": "carrot",
"queue": "pompom"
}
}
In order to install dependencies :
mvn install:install-file -Dfile=lib/ADEAde.jar -DgroupId=com.adesoft -DartifactId=ade -Dversion=6.8.0 -Dpackaging=jar -DgeneratePom=true
mvn install:install-file -Dfile=lib/ADEConfig.jar -DgroupId=com.adesoft -DartifactId=config -Dversion=6.8.0 -Dpackaging=jar -DgeneratePom=true
mvn install:install-file -Dfile=lib/ADEJDom.jar -DgroupId=com.adesoft -DartifactId=jdom -Dversion=6.8.0 -Dpackaging=jar -DgeneratePom=true
mvn install:install-file -Dfile=lib/ADEMisc.jar -DgroupId=com.adesoft -DartifactId=misc -Dversion=6.8.0 -Dpackaging=jar -DgeneratePom=true
Build with maven
mvn package
You can run script with :
java -Djdk.crypto.KeyAgreement.legacyKDF=true -jar ade-sync.jar -c config_file.json