Commit 926a093f authored by LAVENIER's avatar LAVENIER
Browse files

Initial import

parents
/lib/
.idea/
# SAR Documentation
## Table of content
- [Data model](model/index.md) (Class diagram)
- [Functional use case (FR)](use-case/index.md)
- [User manual](user-manual/index.md)
## License
All documents and source code are under [License GPL v3](./LICENSE), except user manual that use a CC-by-SA license.
## Links
- SAR technical web site: http://doc.e-is.pro/sar/
@echo off
echo Converting all PlatUML files from %~dp0 into SVG...
java -jar lib/plantuml.jar -tsvg "./**.puml" -charset UTF-8 -progress -duration -nometadata
echo Done
\ No newline at end of file
#!/bin/bash
PROJECT_DIR=`pwd`
JAR_DIR="${PROJECT_DIR}/lib"
JAR_FILE="${JAR_DIR}/plantuml.jar"
JAR_VERSION="1.2019.12"
JAR_URL="https://repo1.maven.org/maven2/net/sourceforge/plantuml/plantuml/${JAR_VERSION}/plantuml-${JAR_VERSION}.jar"
# Download the jar if need
if [[ ! -f "${JAR_FILE}" ]]; then
echo "Downloading PlantUML jar file: ${JAR_URL}..."
mkdir -p $JAR_DIR
wget -O $JAR_FILE ${JAR_URL}
if [[ $? -ne 0 ]]; then
echo "ERROR - Missing PlantUML JAR file at: $JAR_FILE"
echo " Please download it manually: ${JAR_URL}"
echo " and save it into the directory: ${JAR_DIR}"
exit 1
fi
fi;
echo Converting all PlatUML files from `pwd` into SVG...
java -jar lib/plantuml.jar -tsvg "./**.puml" -charset UTF-8 -progress -duration
echo "Done"
# Title 1
## Title 2
UML Diagramme :
![example](example.svg)
@startuml
class CoastalConstructionClassification {
+id: integer
+label: string
+name: string
+creationDate: Timestamp
+updateDate: Timestamp
}
class CoastalConstructionType {
+id: integer
+label: string
+name: string
+creationDate: Timestamp
+updateDate: Timestamp
}
class CoastalConstruction {
+id: integer
+label: string
+name: string
+creationDate: Timestamp
+updateDate: Timestamp
}
CoastalConstructionClassification "1" *-> "*" CoastalConstructionType
CoastalConstructionType "1" *-> "*" CoastalConstruction
CoastalConstructionClassification --> "1" ValidityStatus
CoastalConstructionType --> "1" ValidityStatus
CoastalConstruction --> "1" ValidityStatus
class ValidityStatus {
}
enum ValidityStatusEnum {
+ENABLED: 1
+DISABLED: 2
}
@enduml
# SAR Data Model
## Typologie d'ouvrages
TODO
#!/bin/bash
PROJECT_DIR=`pwd`
JAR_DIR="${PROJECT_DIR}/lib"
JAR_FILE="${JAR_DIR}/plantuml.jar"
JAR_VERSION="1.2019.12"
JAR_URL="https://repo1.maven.org/maven2/net/sourceforge/plantuml/plantuml/${JAR_VERSION}/plantuml-${JAR_VERSION}.jar"
# Make sure jar exists
checkJarExists() {
# Download the jar if need
if [[ ! -f "${JAR_FILE}" ]]; then
echo "Downloading PlantUML jar file: ${JAR_URL}..."
mkdir -p $JAR_DIR
wget -O $JAR_FILE ${JAR_URL}
if [[ $? -ne 0 ]]; then
echo "ERROR - Missing PlantUML JAR file at: $JAR_FILE"
echo " Please download it manually: ${JAR_URL}"
echo " and save it into the directory: ${JAR_DIR}"
exit 1
fi
fi;
}
generateSvg() {
echo Converting all PlatUML files from `pwd` into SVG...
java -jar ${JAR_FILE} -tsvg "./**.puml" -charset UTF-8 -progress -duration -nometadata
echo "Done"
}
generatePng() {
echo Converting all PlatUML files from `pwd` into PNG...
java -jar ${JAR_FILE} -tpng "./**.puml" -charset UTF-8 -progress -duration -nometadata
echo "Done"
}
case "$1" in
svg)
checkJarExists
generateSvg
exit 0
;;
png)
checkJarExists
generatePng
exit 0
;;
version)
java -jar ${JAR_FILE} -version
exit 0
;;
help)
echo "Usage: $0 {svg|png|version|help}"
exit 0
;;
*)
$0 help
exit 0
esac
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment