mirror of
				https://github.com/actions/setup-java.git
				synced 2025-10-31 06:20:53 +00:00 
			
		
		
		
	Add support for multiple jdks (#368)
This commit is contained in:
		
					parent
					
						
							
								749e4491fa
							
						
					
				
			
			
				commit
				
					
						d854b6da19
					
				
			
		
					 15 changed files with 4219 additions and 3569 deletions
				
			
		|  | @ -142,10 +142,12 @@ export abstract class JavaBase { | |||
|   } | ||||
| 
 | ||||
|   protected setJavaDefault(version: string, toolPath: string) { | ||||
|     const majorVerssion = version.split('.')[0]; | ||||
|     core.exportVariable('JAVA_HOME', toolPath); | ||||
|     core.addPath(path.join(toolPath, 'bin')); | ||||
|     core.setOutput('distribution', this.distribution); | ||||
|     core.setOutput('path', toolPath); | ||||
|     core.setOutput('version', version); | ||||
|     core.exportVariable(`JAVA_HOME_${majorVerssion}_${this.architecture.toUpperCase()}`, toolPath); | ||||
|   } | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue