Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Gazelle Objects Checker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gazelle
Library
Gazelle Objects Checker
Commits
921915da
Commit
921915da
authored
3 years ago
by
Achraf Achkari
Browse files
Options
Downloads
Patches
Plain Diff
Adapt generation utility for DGSANTE
parent
3efee039
No related branches found
No related tags found
2 merge requests
!2
Release GOC
,
!1
Release GOC
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hl7templates/hl7templates-packager-jar/src/main/resources/assemble-scripts/eHDSIGeneration.sh
+53
-2
53 additions, 2 deletions
...ar/src/main/resources/assemble-scripts/eHDSIGeneration.sh
with
53 additions
and
2 deletions
hl7templates/hl7templates-packager-jar/src/main/resources/assemble-scripts/eHDSIGeneration.sh
+
53
−
2
View file @
921915da
...
...
@@ -6,6 +6,44 @@ GREEN='\033[0;32m'
ORANGE
=
'\033[0;33m'
NC
=
'\033[0m'
# Try to get the jar of GOC automatically
jarPath
=
`
ls
-l
|
grep
-oh
-e
"[^ ]*-jar-with-dependencies
\.
jar"
`
if
[
-z
$jarPath
]
;
then
echo
-e
"
${
RED
}
Could not detect the JAR of GOC, please provide the path manually"
read
-r
jarPath
else
absJarPath
=
`
realpath
$jarPath
`
echo
-e
"
${
NC
}
A GOC JAR has been detected at: (
${
jarPath
}
) want you to use it?"
printf
"hit enter for yes, enter an other path to change it: "
read
-r
newJarPath
if
[
!
-z
$newJarPath
]
;
then
isAbsPath
=
`
echo
"
${
newJarPath
}
"
|
grep
^/.
*
|
wc
-l
`
if
[
$isAbsPath
-eq
0
]
;
then
echo
-e
"
${
RED
}
[
${
newJarPath
}
] is not an absolute path"
exit
0
fi
absJarPath
=
$newJarPath
fi
fi
#Try to get maven path automatically
mavenPath
=
`
mvn
-v
|
sed
-n
2p |
grep
-oh
-e
"/.*"
`
if
[
-z
$mavenPath
]
;
then
echo
-e
"
${
NC
}
Could not detect a maven installation, please enter the absolute to the binary file of maven: "
read
-r
mavenPath
testMaven
=
`
${
mavenPath
}
-v
`
if
[
-z
$testMaven
]
;
then
echo
-e
"
${
NC
}
Wrong maven executable..."
exit
1
fi
else
mavenPath
=
"
${
mavenPath
}
/bin/mvn"
fi
echo
-e
"
${
NC
}
Using maven at:
${
mavenPath
}
"
printf
"Please enter a path to your BBR (Absolute Path) : "
read
-r
bbrPath
echo
-e
$bbrPath
...
...
@@ -47,6 +85,19 @@ case $choice in
;;
esac
printf
"Please enter when you want to generate the validator: "
read
-r
workspaceDir
if
[
!
-d
$workspaceDir
]
;
then
echo
"
${
RED
}
The provided workspace is not a valid directory"
exit
0
fi
isAbsPath
=
`
echo
"
${
workspaceDir
}
"
|
grep
^/.
*
|
wc
-l
`
if
[
$isAbsPath
-eq
0
]
;
then
echo
-e
"
${
RED
}
[
${
workspaceDir
}
] is not an absolute path"
exit
0
fi
_currDate
=
`
date
+%Y-%m-%d-%H-%M-%S
`
printf
"Please enter the folder name of your validator: (output-
${
validator
}
-
${
_currDate
}
)?"
read
-r
folderName
...
...
@@ -54,8 +105,8 @@ if [ -z $folderName ]; then
folderName
=
"output-
${
validator
}
-
${
_currDate
}
"
fi
;
/bin/bash generateValidator.sh
--BBR_LINK
=
$bbrPath
--OUTPUT_FOLDER
=
$folderName
--VALIDATOR_NAME
=
$validator
--IGNORE_TEMPLATEID_REQUIREMENTS
=
"false"
--ROOT_CLASS_NAME
=
"net.ihe.gazelle.cdaepsos3.POCDMT000040ClinicalDocument"
--HL7TEMP_CDACONFFOLDERNAME
=
"cdaepsos
"
echo
"your validator will be generated in:
${
workspaceDir
}
/
${
folderName
}
"
java
-jar
$jarPath
-bbr
$bbrPath
-out
"
${
workspaceDir
}
/
${
folderName
}
"
-mvn
$mavenPath
-serviceName
$validator
-HL7TEMP_CDACONFFOLDERNAME
cdaepsos
#/bin/bash generateValidator.sh
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment