sp-06/README.md
2023-12-13 11:41:52 +01:00

16 lines
354 B
Markdown

# Agent
### Compile the agent as JAR
```shell
cd agent/src
find . -name '*.java' -print -exec javac -d ../../out/production/agent \{\} \;
cd ..
jar cfm agent.jar manifest.txt -C ../out/production/agent .
```
### Run application with agent
```shell
java -javaagent:agent/agent.jar=hello -cp out/production/application ch.usi.inf.sp.dbi.Application
```