...
Use the git perspective in Eclipse to clone the following repositories. Detailed screen shots are included in the Appendix.
Repository | URL |
---|---|
erl-ihe-utilitiesxdsi | https://code.imphub.org/scm/ihe/erl-ihe-utilitiesxdsi.git |
erl-ihe-atnaquery | https://code.imphub.org/scm/ihe/erl-ihe-atnaquery.git | restfulATNA-web | https://code.imphub.org/scm/ihe/restfulatna-web.git
Build the Software
- After cloning, switch to the Java EE perspective. There will be no projects visible.
- Import the maven projects into your system.
- erl-ihe-utilities: 2 maven projects, select both
- erl-ihe-atnaquery: 1 maven project
- restfulATNA-webxdsi: 1 maven project
- Right click on one of the projects project in the Project explorer and select Maven => Update Project... from the context menu. On the Update Maven Project dialog, click “Select All” and then “OK”.
- Build the four project with maven in the order and with the goals shown in the table below.
- The war file jarfile should be found in .../git/restfulatnaerl-ihe-webxdsi/target/RESTfulERL-IHE-ATNAXDSI.warjar
- Drop the war jar file in the webapps folder of Tomcat/opt/xdsi/lib. You should now be able to open a web browser to:run the perl scripts for the project
...
Project | Maven Goals |
---|---|
erl-ihe-utilitiesxdsi | clean package install |
erl-ihe-web-utilities | clean package install |
erl-ihe-atnaquery | clean package install | erl-ihe-restfulatna-webapp | clean package install
Running the Project
You run the project by executing perl scripts. Scripts and java code are hard coded to place folders in /opt/xdsi. You should have
- /opt/xdsi/lib (contains ERL-IHE-XDSI.jar)
- /opt/xdsi/tests (a copy of the tests folder from the code repository)
You need to set these two environment variables:
PERL5LIB | /opt/xdsi/tests/common |
XDSI | /opt/xdsi |
Then, you can run the scripts from any folder/directory you happen to be in.
perl $XDSI/tests/ids/ids-single-image-01.pl
will execute and tell you the missing parameters.
Appendix Material
Cloning Repositories
...