Skip to content

Commit

Permalink
fix: create jar file correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
dossy committed Oct 13, 2022
1 parent 6819f72 commit 15f86c4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 0 additions & 2 deletions build/.gitignore

This file was deleted.

Binary file modified dist/LenientHostnameVerifierAgent.jar
Binary file not shown.

0 comments on commit 15f86c4

Please sign in to comment.