From 15f86c453242b9fa874318d6370c055f2ff4c300 Mon Sep 17 00:00:00 2001 From: Dossy Shiobara Date: Wed, 12 Oct 2022 22:01:37 -0400 Subject: [PATCH] fix: create jar file correctly --- .gitignore | 1 + Makefile | 7 +++++-- build/.gitignore | 2 -- dist/LenientHostnameVerifierAgent.jar | Bin 1413 -> 1389 bytes 4 files changed, 6 insertions(+), 4 deletions(-) delete mode 100644 build/.gitignore diff --git a/.gitignore b/.gitignore index e69de29..378eac2 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +build diff --git a/Makefile b/Makefile index 468d3a8..7ca8ae9 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,9 @@ all: $(DISTDIR)/$(JAR) clean: $(RM) $(DISTDIR)/$(JAR) $(BUILDDIR)/*.class -$(DISTDIR)/$(JAR): $(SRCDIR)/LenientHostnameVerifierAgent.java +$(DISTDIR)/$(JAR): $(BUILDDIR)/LenientHostnameVerifierAgent.class + jar -cfm $@ $(SRCDIR)/manifest.txt -C $(BUILDDIR) . + +$(BUILDDIR)/LenientHostnameVerifierAgent.class: $(SRCDIR)/LenientHostnameVerifierAgent.java + mkdir -p build javac -d $(BUILDDIR) $< - jar cfm $@ $(SRCDIR)/manifest.txt $(BUILDDIR)/*.class diff --git a/build/.gitignore b/build/.gitignore deleted file mode 100644 index d6b7ef3..0000000 --- a/build/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -* -!.gitignore diff --git a/dist/LenientHostnameVerifierAgent.jar b/dist/LenientHostnameVerifierAgent.jar index 71852db7fd70fee8f55220a3eb310c4aff9457b9..d07ba2e69693a25051ca70bc719e4339133740ec 100644 GIT binary patch delta 193 zcmZqWe#^xZ;LXe;!ob17!N9j+B9Ao_kn~(G!neUElmQ8-0NIm$S!Fh>F_to7$SOf( zl{Q~zs$>M3Fgb|D5=8Z~I4FTk;{3Mve=s8hgB}wD1IQ!8hlmQ870oh5VnK>!?lUFjyY*t__ zWyDaU0avqmCDUw1ph=V6SS&$QBa4Fu$VAR>d;bSBGBD^dF))BkM1W^NCc^y53XB{k y0p36(7+_BG3HA8*x;Yl8*$k)|WEBET1d6~lD~Sbov$BCCS%6R*sKJE=!~+06J1iFf