From 45d819a00e31271a785ce18bc5acda0d0647a17b Mon Sep 17 00:00:00 2001 From: Khalid Shakir Date: Wed, 25 Jun 2014 02:32:15 +0800 Subject: [PATCH] For now, executing the delete_maven_links.sh just ahead of creating the symbolic links during the process-test-resources phase. Better than running it during the "clean" phase, since these users may not run "mvn clean" before attempting to build. --- pom.xml | 17 +++++++++++++++++ .../main/scripts/shell/delete_maven_links.sh | 13 +++++++++++++ 2 files changed, 30 insertions(+) create mode 100755 public/src/main/scripts/shell/delete_maven_links.sh diff --git a/pom.xml b/pom.xml index edb3920c3..8a862f352 100644 --- a/pom.xml +++ b/pom.xml @@ -741,6 +741,23 @@ + + org.codehaus.mojo + exec-maven-plugin + + + delete-mavens-links + process-test-resources + + exec + + false + + ${gatk.basedir}/public/src/main/scripts/shell/delete_maven_links.sh + + + + org.apache.maven.plugins maven-failsafe-plugin diff --git a/public/src/main/scripts/shell/delete_maven_links.sh b/public/src/main/scripts/shell/delete_maven_links.sh new file mode 100755 index 000000000..31fb06d86 --- /dev/null +++ b/public/src/main/scripts/shell/delete_maven_links.sh @@ -0,0 +1,13 @@ +#!/bin/bash +# +# Delete symlinks to testdata/qscripts created by maven. This is necessary +# in cases where "mvn clean" fails to delete these links itself and exits +# with an error. +# +# Should be run from the root directory of your git clone. +# + +find -L . -type l -name testdata -print0 | xargs -0 rm +find -L . -type l -name qscript -print0 | xargs -0 rm + +exit 0