From 8cbbbe628eab5893c428a8cc39a700d02ad99773 Mon Sep 17 00:00:00 2001 From: Martin Goik <goik@hdm-stuttgart.de> Date: Tue, 16 Dec 2014 20:21:00 +0100 Subject: [PATCH] Building both examination and solution archives --- .../SaxMemo2Hhtml_solution/build.sh | 20 ++++++++++++++++--- .../SaxMemo2Hhtml_solution/pom.xml | 6 ++++++ 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/Sda1/Etest/SaxMemo2Html/SaxMemo2Hhtml_solution/build.sh b/Sda1/Etest/SaxMemo2Html/SaxMemo2Hhtml_solution/build.sh index a7c6a8cd8..56ef0b21d 100755 --- a/Sda1/Etest/SaxMemo2Html/SaxMemo2Hhtml_solution/build.sh +++ b/Sda1/Etest/SaxMemo2Html/SaxMemo2Hhtml_solution/build.sh @@ -4,9 +4,7 @@ # rm -rf /tmp/SaxMemo2Hhtml -tar -c SaxMemo2Hhtml --exclude='SaxMemo2Hhtml/pom.*' --exclude='SaxMemo2Hhtml/target' --exclude='SaxMemo2Hhtml/.settings' \ - --exclude='SaxMemo2Hhtml/.project' --exclude='SaxMemo2Hhtml/.classpath' --exclude='.gitignore' | tar -x -C /tmp - +tar -c SaxMemo2Hhtml | tar -x -C /tmp cp -f SaxMemo2Hhtml/pom.exam.xml /tmp/SaxMemo2Hhtml/pom.xml pushd SaxMemo2Hhtml_solution/src/test/java @@ -17,4 +15,20 @@ pushd ../../../ws/eclipse/ExamTesting/src/main/java tar c- de |tar -x -C /tmp/SaxMemo2Hhtml/src/test/java popd +pushd /tmp/SaxMemo2Hhtml +mvn clean eclipse:clean +rm -rf .settings pom.exam.xml .gitignore src/main/resources/.gitignore +cd ..; rm -f saxmemo2html.zip; zip -r saxmemo2html.zip SaxMemo2Hhtml +popd + +tar c- SaxMemo2Hhtml_solution| tar -x -C /tmp +pushd /tmp/SaxMemo2Hhtml_solution +mvn clean eclipse:clean +rm -rf .settings .gitignore build.sh* src/main/resources/memo.xml.* src/main/resources/.gitignore +cd ..; rm -f saxmemo2html_solution.zip; zip -r saxmemo2html_solution.zip SaxMemo2Hhtml_solution +popd + + +echo Compressed Maven archives saxmemo2html.zip and saxmemo2html_solution.zip generated at /tmp/saxmemo2html.zip + #end \ No newline at end of file diff --git a/Sda1/Etest/SaxMemo2Html/SaxMemo2Hhtml_solution/pom.xml b/Sda1/Etest/SaxMemo2Html/SaxMemo2Hhtml_solution/pom.xml index 5482c69b6..f9523af72 100644 --- a/Sda1/Etest/SaxMemo2Html/SaxMemo2Hhtml_solution/pom.xml +++ b/Sda1/Etest/SaxMemo2Html/SaxMemo2Hhtml_solution/pom.xml @@ -1,5 +1,11 @@ <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + + <description>Test execution requires 'mvn install' in the maven sub project + 'GoikLectures/ws/eclipse/ExamTesting' within + https://version.mi.hdm-stuttgart.de/git/GoikLectures + to resolve the 'examtesting' dependency.</description> + <modelVersion>4.0.0</modelVersion> <groupId>de.hdm_stuttgart.mi.sda1.saxhtml</groupId> -- GitLab