Fix Netbeans install

This commit is contained in:
Timotej Lazar 2022-09-23 10:25:42 +00:00
parent 10c3430a86
commit 76c88f4879
3 changed files with 21 additions and 3 deletions

View file

@ -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

View file

@ -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"

View file

@ -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