Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Use the git perspective in Eclipse to clone the following repositories. Detailed screen shots are included in the Appendix.

 

https://code.imphub.org/scm/ihe/restfulatna-web.git
Repository
URL
erl-ihe-utilitiesxdsihttps://code.imphub.org/scm/ihe/erl-ihe-utilitiesxdsi.git
erl-ihe-atnaqueryhttps://code.imphub.org/scm/ihe/erl-ihe-atnaquery.git
restfulATNA-web

 

 

Build the Software

  1. After cloning, switch to the Java EE perspective. There will be no projects visible.
  2. Import the maven projects into your system.
    1. erl-ihe-utilities: 2 maven projects, select both
    2. erl-ihe-atnaquery: 1 maven project
    3. restfulATNA-webxdsi: 1 maven project
  3. 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”.
  4. Build the four project with maven in the order and with the goals shown in the table below.
  5. The war file jarfile should be found in .../git/restfulatnaerl-ihe-webxdsi/target/RESTfulERL-IHE-ATNAXDSI.warjar
  6. 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
    1. http://localhost:8080/RESTful-ATNA

...

clean package install
Project
Maven Goals
erl-ihe-utilitiesxdsiclean package install
erl-ihe-web-utilitiesclean package install
erl-ihe-atnaqueryclean package install
erl-ihe-restfulatna-webapp

 

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

...