2018-03-15 19:45:11 +01:00
|
|
|
# Graph & Algorithm project — INSA Toulouse
|
2018-03-12 17:58:32 +01:00
|
|
|
|
2024-03-25 08:41:41 +01:00
|
|
|
## Building
|
|
|
|
|
|
|
|
The instructions below are an attempt at using java from the command line.
|
|
|
|
These efforts were in vain (~3 man-hours + help from 2 teachers). The
|
|
|
|
"solution" was to use [VScode][vscode]. The instructions are left below for
|
|
|
|
posterity.
|
|
|
|
|
|
|
|
[vscode]: https://code.visualstudio.com/docs/setup/linux
|
|
|
|
|
|
|
|
### Prerequisites
|
|
|
|
|
|
|
|
This project makes use of [Maven][maven]. On a debian-like system, install Maven :
|
|
|
|
|
|
|
|
```
|
|
|
|
sudo apt-get install maven
|
|
|
|
```
|
|
|
|
|
|
|
|
[maven]: https://maven.apache.org/guides/getting-started/maven-in-five-minutes.html
|
|
|
|
|
|
|
|
### Compiling
|
|
|
|
|
|
|
|
In the project root directory :
|
|
|
|
|
|
|
|
```
|
|
|
|
mvn compile
|
|
|
|
```
|
|
|
|
|
|
|
|
### Packaging
|
|
|
|
|
|
|
|
In the project root directory :
|
|
|
|
|
|
|
|
```
|
|
|
|
mvn package
|
|
|
|
```
|
|
|
|
|
|
|
|
Or skip tests :
|
|
|
|
|
|
|
|
```
|
|
|
|
mvn package -Dmaven.test.skip=true
|
|
|
|
```
|
|
|
|
|
|
|
|
The output jar files will be in the `<project>/target/` directory of each project.
|
|
|
|
|
|
|
|
### Testing
|
|
|
|
|
|
|
|
In the root directory, start all tests :
|
|
|
|
|
|
|
|
```
|
|
|
|
mvn test
|
|
|
|
```
|