Before beginning, you’ll need to handle configuration of the command line tools.
The host and port configuration is handled in the configuration files.
The easiest way to get started is to copy
this file and name it application.conf
in
the same folder (please don’t check this file in).
In application.conf
, update the host and port to hit whatever service you’re
looking to link up with.
Example: you have a summary service running on localhost:44422
:
cp src/main/resources/reference.conf src/main/resources/application.conf
emacs src/main/resources/application.conf
### edit the 'summary' block to host = localhost, port = 44422
Placing the file in the src/main/resources
means that upon building
the executable jar, it will be the “first” configuration (priority
wise) in the program. Those familiar with java classpaths can include
the application.conf
file anywhere on the classpath when launching
the program.
Alternatively, environment variables can be set to override anything inside the configuration files. Example:
CONCRETE_SERVICE_SUMMARIZATION_HOST='172.17.0.3' CONCRETE_SERVICE_SUMMARIZATION_PORT=44422 ./summarize.sh --with-communication --type DOCUMENT
to target a summarization server on host 172.17.0.3:44422
You need maven.
Start from the root project directory.
mvn install
cd services
mvn clean package
The SummarizeTool
is exposed via summarize.sh
### after buld step above
./summarize.sh --help