INNER CODE UNIT · Python
create_gradle_wrapper_properties
intermine/intermine · config/lib/install_intermine.py:60
def create_gradle_wrapper_properties(self) -> None:
replacement_dict = {
"im_gradle_distribution_url": self.gradle_distribution_url,
}
self.create_properties("gradle-wrapper.properties", replacement_dict)
def create_properties(
self, filename: str, replacement_dict: dict[str, Any]
) -> None:
for properties_in in glob.glob(
f"**/{filename}.in", root_dir=self.checkout, recursive=True
):
path_in = os.path.join(self.checkout, properties_in)
path_out = path_in[:-3]
with open(path_out, "w") as f_out:
f_out.write(
"# FILE AUTOMATICALLY GENERATED FROM "