Skip to content

Commit

Permalink
Improve env management
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinDelille committed Oct 27, 2022
1 parent 5ed45e4 commit 4d3028d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions recipes/openjdk/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,5 @@ def package(self):

def package_info(self):
self.output.info(f"Creating JAVA_HOME environment variable with : {self.package_folder}")
self.env_info.JAVA_HOME = self.package_folder

bin_path = os.path.join(self.package_folder, "bin")
self.output.info(f"Appending PATH environment variable with : {bin_path}")
self.env_info.PATH.append(bin_path)
self.buildenv_info.append("JAVA_HOME", self.package_folder)
self.buildenv_info.prepend_path("PATH", os.path.join(self.package_folder, "bin"))

0 comments on commit 4d3028d

Please sign in to comment.