Mentions légales du service

Skip to content
Snippets Groups Projects
Commit f014227f authored by Achraf Achkari's avatar Achraf Achkari
Browse files

Merge branch 'develop' into 'master'

Develop

See merge request !40
parents b0ed9f45 2deeb380
No related branches found
No related tags found
2 merge requests!41Master,!40Develop
Pipeline #686473 failed
package net.ihe.gazelle.lib.hl7templatespackager.peripherals.scripts;
package net.ihe.gazelle.lib.hl7templatespackager.adapters.scripts;
import net.ihe.gazelle.tempgen.ehdsi.scripts.EHDSIFriendlyTransformer;
import org.junit.Ignore;
import org.junit.Test;
import javax.xml.bind.JAXBException;
import java.io.IOException;
/**
* All methods in this class are ignored, as they are executed as scripts and not tests
*/
public class EHDSITransformers {
@Test
@Ignore
public static void main(String[] args) throws JAXBException, IOException {
//Set required system properties for log4j to avoid errors (not used)
System.setProperty("workspaceRoot","/tmp");
System.setProperty("generationDate","tmp");
EHDSITransformers e = new EHDSITransformers();
e.transformBBRToFriendly();
}
public void transformBBRToFriendly() throws IOException, JAXBException {
String bbrPath = System.getProperty("bbrPath");
String bbrOutput = System.getProperty("bbrOutput");
......
......@@ -36,7 +36,7 @@ function friendly_trannsform {
packagerPath=`realpath ..`
packagerFolder=${packagerPath##*/}
if [ $packagerFolder == "hl7templates-packager-jar" ]; then
$mavenPath -f "$packagerPath/pom.xml" -Dtest=EHDSITransformers#transformBBRToFriendly test -DbbrPath="$bbrPath" -DbbrOutput="$bbrFriendlyOutput"
$mavenPath -f "$packagerPath/pom.xml" compile exec:java -Dexec.mainClass="net.ihe.gazelle.lib.hl7templatespackager.adapters.scripts.EHDSITransformers" -DbbrPath="$bbrPath" -DbbrOutput="$bbrFriendlyOutput"
if [ $? == 0 ]; then
bbrPath=$bbrFriendlyOutput
echo -e "${GREEN}BBR Transformed to friendly at: ${bbrFriendlyOutput}${NC}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment