summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--conf/sources.mk1
-rw-r--r--rules/javassist/Makefile34
-rw-r--r--rules/javassist/delete.list1
3 files changed, 36 insertions, 0 deletions
diff --git a/conf/sources.mk b/conf/sources.mk
index d21e569..a133b05 100644
--- a/conf/sources.mk
+++ b/conf/sources.mk
@@ -26,6 +26,7 @@ plexus-container-default = git|git://github.com/sonatype/ple
aether-core-bootstrap = git|git://git.eclipse.org/gitroot/aether/aether-core.git|aether-1.0.0.v20140518
cal10n = git|git://github.com/qos-ch/cal10n.git|v_0.8.1
guava = git|https://code.google.com/p/guava-libraries/|v17.0/guava
+javassist = git|git://github.com/jboss-javassist/javassist.git|rel_3_18_2_ga
jsoup = git|git://github.com/jhy/jsoup.git|jsoup-1.7.3
qdox = tar|http://nexus.codehaus.org/content/repositories/releases/com/thoughtworks/qdox/qdox/2.0-M1/qdox-2.0-M1-project.tar.bz2
commons-cli = tar|$(_apache_mirror)/commons/cli/source/commons-cli-1.2-src.tar.gz
diff --git a/rules/javassist/Makefile b/rules/javassist/Makefile
new file mode 100644
index 0000000..d0f9766
--- /dev/null
+++ b/rules/javassist/Makefile
@@ -0,0 +1,34 @@
+DESTDIR ?=
+MAVEN_LOCAL_REPO ?= ~/.m2
+
+ANT = ant
+EXISTS = test -e
+FIND = find
+INSTALL = install
+RM = rm -f
+TOUCH = touch
+XMLSTARLET = xml
+
+artifactId := $(shell $(XMLSTARLET) sel -T -t -c /_:project/_:artifactId -n pom.xml)
+version := $(shell $(XMLSTARLET) sel -T -t -c /_:project/_:version -n pom.xml)
+groupId := $(shell $(XMLSTARLET) sel -T -t -c /_:project/_:groupId -n pom.xml)
+
+all: PHONY javassist.jar
+
+javassist.jar: $(shell $(FIND) src/main) build.xml
+ $(ANT) jar
+ $(EXISTS) '$@'
+ $(TOUCH) '$@'
+
+install-base = $(DESTDIR)$(MAVEN_LOCAL_REPO)/$(subst .,/,$(groupId))/$(artifactId)/$(version)/$(artifactId)-$(version)
+install: PHONY $(install-base).jar $(install-base).pom
+
+$(install-base).jar: javassist.jar
+ $(INSTALL) -Dm644 $< $@
+$(install-base).pom: pom.xml
+ $(INSTALL) -Dm644 $< $@
+
+clean: PHONY
+ $(RM) -r target javassist.jar
+
+.PHONY: PHONY
diff --git a/rules/javassist/delete.list b/rules/javassist/delete.list
new file mode 100644
index 0000000..c7cd26c
--- /dev/null
+++ b/rules/javassist/delete.list
@@ -0,0 +1 @@
+javassist.jar