Skip to content

Commit

Permalink
JDK 11: patch procyon to remove URLClassPath dependency.
Browse files Browse the repository at this point in the history
	Change on 2019/03/14 by antoniocortes <[email protected]>

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=238462719
  • Loading branch information
antonio-cortes-perez committed Mar 14, 2019
1 parent 59881f4 commit 471504a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 9 additions & 1 deletion java_deps/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,16 @@ BUILD_DIR_DOCLET_JARS = $(DOCLET_JARS:%=$(BUILD_DIR)/%)

$(BUILD_DIR_JARS): $(BUILD_DIR)/.maven_generate

# Postprocessing: update procyon to not depend on URLClassPath.
$(BUILD_DIR)/.maven_generate: | $(BUILD_DIR)
mvn -q generate-resources dependency:sources
@curl -s -o $(BUILD_DIR)/$(NEW_PROCYON_COMPILERTOOLS_JAR) \
http://central.maven.org/maven2/org/bitbucket/mstrobel/procyon-compilertools/0.5.33/$(NEW_PROCYON_COMPILERTOOLS_JAR)
@unzip -qq -d $(BUILD_DIR) $(BUILD_DIR)/$(NEW_PROCYON_COMPILERTOOLS_JAR) \
com/strobel/assembler/metadata/ClasspathTypeLoader.class
@cd $(BUILD_DIR) && jar uf $(PROCYON_COMPILERTOOLS_JAR) com/strobel/assembler/metadata/ClasspathTypeLoader.class
@rm -rf $(BUILD_DIR)/com
@rm $(BUILD_DIR)/$(NEW_PROCYON_COMPILERTOOLS_JAR)
@touch $@

$(BUILD_DIR)/$(JUNIT_JAR): $(BUILD_DIR)/$(JUNIT_ROOT_JAR)
Expand All @@ -65,7 +73,7 @@ $(BUILD_DIR)/$(JAVAC_JAR): | $(BUILD_DIR)
@cp -f $(JAVA_HOME)/lib/$(JAVAC_JAR) $@

$(BUILD_DIR)/$(SCENELIB_JAR): | $(BUILD_DIR)
@curl -o $@.zip https://checkerframework.org/annotation-file-utilities/annotation-tools-3.8.0.zip
@curl -s -o $@.zip https://checkerframework.org/annotation-file-utilities/annotation-tools-3.8.0.zip
@unzip -qq -d $(BUILD_DIR) $@.zip annotation-tools/annotation-file-utilities/annotation-file-utilities.jar
@unzip -qq -d $(BUILD_DIR) $(BUILD_DIR)/annotation-tools/annotation-file-utilities/annotation-file-utilities.jar "scenelib/*"
@cd $(BUILD_DIR) && zip -q -r $(SCENELIB_JAR) scenelib/
Expand Down
4 changes: 3 additions & 1 deletion java_deps/jars.mk
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ JAVAC_JAR = tools.jar
DOCLAVA_JAR = doclava-1.0.6.jar
JSILVER_JAR = jsilver-1.0.0.jar

PROCYON_COMPILERTOOLS_JAR = procyon-compilertools-0.5.32.jar
NEW_PROCYON_COMPILERTOOLS_JAR = procyon-compilertools-0.5.33.jar
PROCYON_JARS = \
procyon-core-0.5.32.jar \
procyon-compilertools-0.5.32.jar
$(PROCYON_COMPILERTOOLS_JAR)

0 comments on commit 471504a

Please sign in to comment.