Skip to content

Commit 49facf0

Browse files
committed
Use a full path for BuildInformation.java
1 parent bd520da commit 49facf0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tool/jt.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2374,7 +2374,11 @@ def bootstrap_toolchain
23742374
remove_shared_compile_artifacts
23752375
end
23762376

2377-
FileUtils.touch(Dir.glob('src/**/BuildInformation.java').first) if options.delete('--new-hash')
2377+
if options.delete('--new-hash')
2378+
build_information_path = "#{TRUFFLERUBY_DIR}/src/shared/java/org/truffleruby/shared/BuildInformation.java"
2379+
raise unless File.exist?(build_information_path) # in case the file moves in the future
2380+
FileUtils.touch(build_information_path)
2381+
end
23782382

23792383
env = if (i = options.index('--env') || options.index('-e'))
23802384
options.delete_at i

0 commit comments

Comments
 (0)