unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob b8eba5ab9094367f7135a54595a0e1d242acf4f1 871 bytes (raw)
name: patches/maven-generate-javax-inject-named.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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


debug log:

solving b8eba5ab9094367f7135a54595a0e1d242acf4f1 ...
found b8eba5ab9094367f7135a54595a0e1d242acf4f1 in https://git.savannah.gnu.org/cgit/guix.git

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).