maven-generate-javax-inject-named.patch
1 | From 1d20c0e403f1a38d4aca830e0eb4db03ba43efd3 Mon Sep 17 00:00:00 2001 |
2 | From: Julien Lepiller <julien@lepiller.eu> |
3 | Date: Tue, 19 Sep 2017 22:21:29 +0200 |
4 | Subject: [PATCH] Add sisu-maven-plugin replacement |
5 | |
6 | --- |
7 | sisu.sh | 12 ++++++++++++ |
8 | 1 file changed, 12 insertions(+) |
9 | create mode 100755 sisu.sh |
10 | |
11 | diff --git a/sisu.sh b/sisu.sh |
12 | new file mode 100755 |
13 | index 0000000..979f373 |
14 | --- /dev/null |
15 | +++ b/sisu.sh |
16 | @@ -0,0 +1,12 @@ |
17 | +## This script generates a rough javax.inject.Named file. It is meant to |
18 | +## replace sisu-maven-plugin as it eventually has a recursive dependency |
19 | +## on maven. |
20 | +## |
21 | +## This script must be run in the source directory (usually src/main/java). |
22 | + |
23 | +for file in `(cd $1; find -name '*.java')`; do |
24 | + annot=`grep "^@Named" $1/$file` |
25 | + if [ "$annot" != "" ]; then |
26 | + echo $file | sed -e 's|^\./||' -e 's|\.java||' -e 's|/|.|g' |
27 | + fi |
28 | +done > $2 |
29 | -- |
30 | 2.14.1 |
31 | |
32 |