Skip to content

Commit

Permalink
build: Fix native image file folder selection
Browse files Browse the repository at this point in the history
  • Loading branch information
jagodevreede committed Oct 14, 2024
1 parent 9548170 commit afdb4fc
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 7 deletions.
29 changes: 28 additions & 1 deletion sdkman-ui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<main.class>io.github.jagodevreede.sdkmanui.Main</main.class>
<maven-resources-plugin.version>3.3.1</maven-resources-plugin.version>
<maven-assembly-plugin.version>3.7.1</maven-assembly-plugin.version>
<native-image-folder-name>native-image-unknown</native-image-folder-name>
</properties>

<dependencies>
Expand Down Expand Up @@ -125,7 +126,7 @@
<outputDirectory>${basedir}/src/main/resources/META-INF/native-image</outputDirectory>
<resources>
<resource>
<directory>src/main/resources/META-INF/native-image-${os.name}</directory>
<directory>src/main/resources/META-INF/${native-image-folder-name}</directory>
<filtering>false</filtering>
</resource>
</resources>
Expand Down Expand Up @@ -169,4 +170,30 @@
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>mac</id>
<activation>
<os>
<name>Mac OS X</name>
</os>
</activation>
<properties>
<native-image-folder-name>native-image-mac</native-image-folder-name>
</properties>
</profile>
<profile>
<id>windows</id>
<activation>
<os>
<family>windows</family>
</os>
</activation>
<properties>
<native-image-folder-name>native-image-windows</native-image-folder-name>
</properties>
</profile>
</profiles>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -195,15 +195,15 @@
"queryAllDeclaredMethods":true,
"methods":[
{"name":"<init>","parameterTypes":[] },
{"name":"openConfig","parameterTypes":[] },
{"name":"openConfig","parameterTypes":[] },
{"name":"startUpdate","parameterTypes":[] }
]
},
{
"name":"io.github.jagodevreede.sdkmanui.view.VersionView",
"methods":[
{"name":"getActions","parameterTypes":[] },
{"name":"getAvailable","parameterTypes":[] },
{"name":"getAvailable","parameterTypes":[] },
{"name":"getIdentifier","parameterTypes":[] },
{"name":"getInstalled","parameterTypes":[] },
{"name":"getVendor","parameterTypes":[] },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
},
{
"pattern":"\\Qsdkui.cmd\\E"
},
{
"pattern":"\\Qupdate.cmd\\E"
},
},
{
"pattern":"\\Qsimplelogger.properties\\E"
},
{
"pattern":"\\Qupdate.cmd\\E"
},
{
"pattern":"\\Qversion.txt\\E"
}
Expand Down

0 comments on commit afdb4fc

Please sign in to comment.