File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 7
7
# Fast fail the script on failures.
8
8
set -e
9
9
10
+ # Log Java information that can be used whenever Java needs to be updated
10
11
echo " ls /usr/lib/jvm"
11
12
ls /usr/lib/jvm
12
13
echo " System Java version:"
@@ -15,10 +16,9 @@ echo "export JAVA_HOME=/usr/lib/jvm/temurin-21-jdk-amd64"
15
16
export JAVA_HOME=/usr/lib/jvm/temurin-21-jdk-amd64
16
17
echo " ls $JAVA_HOME "
17
18
ls $JAVA_HOME
18
- echo " export PATH=$JAVA_HOME /jre/bin:\$ PATH"
19
- export PATH=$JAVA_HOME /jre/bin:$PATH
20
- echo " Updated Java version:"
21
- java --version
19
+ # Path is not used by the build, only by java --version
20
+ echo " export PATH=$JAVA_HOME /bin:\$ PATH"
21
+ export PATH=$JAVA_HOME /bin:$PATH
22
22
23
23
# Clone and configure Flutter to the latest stable release
24
24
git clone --depth 1 https://github.com/flutter/flutter.git ../flutter
@@ -27,7 +27,8 @@ flutter config --no-analytics
27
27
flutter doctor
28
28
export FLUTTER_SDK=` pwd` /../flutter
29
29
30
- echo " IDEA_VERSION = $IDEA_VERSION "
30
+ echo " IDEA_VERSION=$IDEA_VERSION "
31
+ # TODO(mossmana): https://github.com/flutter/flutter-intellij/issues/7967
31
32
if [ " $IDEA_VERSION " = " 4.0" -o " $IDEA_VERSION " = " 4.1" ] ; then
32
33
33
34
# Install Java 8 if running on 4.0 or 4.1.
You can’t perform that action at this time.
0 commit comments