Skip to content

Commit

Permalink
Remove unneeded files from distribution (#57)
Browse files Browse the repository at this point in the history
## What is the goal of this PR?

Fixes second part of typedb/typedb#4803

## What are the changes implemented in this PR?

Removed unneeded files from local JDK from distribution which also solves the problem (duplicated files were there)
  • Loading branch information
vmax authored and haikalpribadi committed Feb 28, 2019
1 parent 3fff34b commit a4a0453
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion distribution/rules.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@
load("@bazel_tools//tools/build_defs/pkg:pkg.bzl", "pkg_tar", "pkg_deb")
load("//rpm/pkg_rpm_modified_from_bazel:rules.bzl", "pkg_rpm")

LOCAL_JDK_PREFIX = "external/local_jdk/"

def _java_deps_impl(ctx):
names = {}
files = []
newfiles = []

for file in ctx.attr.target.data_runfiles.files.to_list():
if file.extension == 'jar':
if file.extension == 'jar' and not file.path.startswith(LOCAL_JDK_PREFIX):
names[file.path] = ctx.attr.java_deps_root + file.basename
files.append(file)

Expand Down

0 comments on commit a4a0453

Please sign in to comment.