From c669e8fa576907b215da78cef6c5a5ff6cae1508 Mon Sep 17 00:00:00 2001 From: Jephte Clain Date: Tue, 7 Jun 2016 16:08:35 +0400 Subject: [PATCH] =?UTF-8?q?utempl=20-t=20wosrc:=20si=20on=20cr=C3=A9e=20un?= =?UTF-8?q?=20wosrc=20dans=20le=20r=C3=A9pertoire=20java,=20enlever=20auto?= =?UTF-8?q?matiquement=20le=20package=20pour=20les=20fichiers=20resources?= =?UTF-8?q?=20pour=20une=20configuration=20maven?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/templates/java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/templates/java b/lib/templates/java index 75924d4..2dcff86 100755 --- a/lib/templates/java +++ b/lib/templates/java @@ -205,7 +205,16 @@ function generate_wosrccomp() { *) die "Destination name should not have an extension" esac + local prefix case "$file" in + */src/main/java/*/v/*) + javafile="$file" + prefix="${file%%/src/main/java/*}" + wosrcfile="${javafile#$prefix/}" + prefix="$prefix/src/main/wosrc" + wosrcfile="${wosrcfile#*/v/}" + wosrcfile="$prefix/$wosrcfile" + ;; */src/main/java/*) javafile="$file" wosrcfile="${file/src\/main\/java/src/main/wosrc}"