Fix Netbeans install
This commit is contained in:
parent
10c3430a86
commit
76c88f4879
|
@ -1,3 +1,6 @@
|
|||
# must come before netbeans
|
||||
- import_tasks: openjdk.yml
|
||||
|
||||
- import_tasks: 7zip.yml
|
||||
- import_tasks: audacity.yml
|
||||
- import_tasks: blender.yml
|
||||
|
@ -12,7 +15,6 @@
|
|||
- import_tasks: netbeans.yml
|
||||
- import_tasks: notepad++.yml
|
||||
- import_tasks: octave.yml
|
||||
- import_tasks: openjdk.yml
|
||||
- import_tasks: orange.yml
|
||||
- import_tasks: pelles-c.yml
|
||||
- import_tasks: processing.yml
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
- name: Set Netbeans version
|
||||
set_fact:
|
||||
target_version: "15"
|
||||
|
||||
- name: Install Netbeans
|
||||
win_package:
|
||||
path: "https://github.com/codelerity/netbeans-installers/releases/download/v15-build1/Apache-NetBeans-15.exe"
|
||||
arguments: /VerySilent
|
||||
path: "https://dlcdn.apache.org/netbeans/netbeans-installers/{{ target_version }}/Apache-NetBeans-{{ target_version }}-bin-windows-x64.exe"
|
||||
arguments: --silent
|
||||
creates_path: "%ProgramFiles%\\NetBeans-{{ target_version }}\\netbeans\\bin\\netbeans.exe"
|
||||
|
|
|
@ -1,3 +1,14 @@
|
|||
- name: Set OpenJDK version
|
||||
set_fact:
|
||||
target_version: "19.0.0"
|
||||
|
||||
- name: Install OpenJDK
|
||||
win_chocolatey:
|
||||
name: openjdk
|
||||
version: "{{ target_version }}"
|
||||
|
||||
- name: Set JAVA_HOME
|
||||
win_environment:
|
||||
name: JAVA_HOME
|
||||
value: "C:\\Program Files\\OpenJDK\\jdk-{{ target_version | regex_search('\\d+') }}"
|
||||
level: machine
|
||||
|
|
Loading…
Reference in a new issue