summaryrefslogtreecommitdiff
path: root/gnu/packages/patches/maven-generate-javax-inject-named.patch
diff options
context:
space:
mode:
authorJulien Lepiller <julien@lepiller.eu>2018-05-27 22:20:38 +0200
committerJulien Lepiller <julien@lepiller.eu>2018-06-09 23:24:52 +0200
commit458687d58677518a3fd3e441d2cd94d9f964990a (patch)
tree29870d1ba32df8fbfe076b146468b793adf897cf /gnu/packages/patches/maven-generate-javax-inject-named.patch
parent816db9668c04ddfdb38fc8b4ed5836e6b743b1a0 (diff)
gnu: Add maven-artifact.
* gnu/packages/maven.scm (maven-artifact): New variable. * gnu/packages/patches/maven-generate-component-xml.patch: New file. * gnu/packages/patches/maven-generate-javax-inject-named.patch: New file. * gnu/local.mk (dist_patch_DATA): Add them.
Diffstat (limited to 'gnu/packages/patches/maven-generate-javax-inject-named.patch')
-rw-r--r--gnu/packages/patches/maven-generate-javax-inject-named.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/gnu/packages/patches/maven-generate-javax-inject-named.patch b/gnu/packages/patches/maven-generate-javax-inject-named.patch
new file mode 100644
index 0000000000..b8eba5ab90
--- /dev/null
+++ b/gnu/packages/patches/maven-generate-javax-inject-named.patch
@@ -0,0 +1,31 @@
+From 1d20c0e403f1a38d4aca830e0eb4db03ba43efd3 Mon Sep 17 00:00:00 2001
+From: Julien Lepiller <julien@lepiller.eu>
+Date: Tue, 19 Sep 2017 22:21:29 +0200
+Subject: [PATCH] Add sisu-maven-plugin replacement
+
+---
+ sisu.sh | 12 ++++++++++++
+ 1 file changed, 12 insertions(+)
+ create mode 100755 sisu.sh
+
+diff --git a/sisu.sh b/sisu.sh
+new file mode 100755
+index 0000000..979f373
+--- /dev/null
++++ b/sisu.sh
+@@ -0,0 +1,12 @@
++## This script generates a rough javax.inject.Named file. It is meant to
++## replace sisu-maven-plugin as it eventually has a recursive dependency
++## on maven.
++##
++## This script must be run in the source directory (usually src/main/java).
++
++for file in `(cd $1; find -name '*.java')`; do
++ annot=`grep "^@Named" $1/$file`
++ if [ "$annot" != "" ]; then
++ echo $file | sed -e 's|^\./||' -e 's|\.java||' -e 's|/|.|g'
++ fi
++done > $2
+--
+2.14.1
+