File tree Expand file tree Collapse file tree 2 files changed +30
-9
lines changed
graalpython/lib-graalpython/modules/standalone/templates Expand file tree Collapse file tree 2 files changed +30
-9
lines changed Original file line number Diff line number Diff line change 52
52
<maven .jar.plugin.version>{mvn-jar-plugin}</maven .jar.plugin.version>
53
53
<graal .sdk.version>{graal-sdk-version}</graal .sdk.version>
54
54
<native .image.maven.plugin.version>{native-image-mvn-plugin}</native .image.maven.plugin.version>
55
+ <graalpy .executable>${env.JAVA_HOME}/bin/graalpy</graalpy .executable>
55
56
</properties >
56
57
57
58
<build >
67
68
<goal >exec</goal >
68
69
</goals >
69
70
<configuration >
70
- <executable >${env.JAVA_HOME}/bin/graalpy </executable >
71
+ <executable >${graalpy.executable} </executable >
71
72
<arguments >
72
73
<argument >-c</argument >
73
74
<argument >__graalpython__.list_files('${project.basedir}/src/main/resources/{vfs-prefix}', '${project.build.directory}/classes/{vfs-prefix}/{files-list-name}')</argument >
74
- </arguments >
75
+ </arguments >
75
76
</configuration >
76
77
</execution >
77
78
</executions >
78
79
</plugin >
79
80
</plugins >
80
81
</build >
81
-
82
+
82
83
<profiles >
83
84
<profile >
84
- <id >jar</id >
85
+ <properties >
86
+ <graalpy .executable>${env.JAVA_HOME}/bin/graalpy.cmd</graalpy .executable>
87
+ </properties >
88
+ <activation >
89
+ <os >
90
+ <family >windows</family >
91
+ </os >
92
+ </activation >
93
+ </profile >
94
+ <profile >
95
+ <id >jar</id >
85
96
<dependencies >
86
97
<dependency >
87
98
<groupId >org.graalvm.sdk</groupId >
98
109
<configuration >
99
110
<archive >
100
111
<manifest >
101
- <addClasspath >true</addClasspath >
112
+ <addClasspath >true</addClasspath >
102
113
<mainClass >Py2BinLauncher</mainClass >
103
114
</manifest >
104
115
</archive >
118
129
<configuration >
119
130
<archive >
120
131
<manifest >
121
- <addClasspath >true</addClasspath >
132
+ <addClasspath >true</addClasspath >
122
133
<mainClass >Py2BinLauncher</mainClass >
123
134
</manifest >
124
135
</archive >
Original file line number Diff line number Diff line change 52
52
<maven .jar.plugin.version>{mvn-jar-plugin}</maven .jar.plugin.version>
53
53
<graal .sdk.version>{graal-sdk-version}</graal .sdk.version>
54
54
<native .image.maven.plugin.version>{native-image-mvn-plugin}</native .image.maven.plugin.version>
55
+ <graalpy .executable>${env.JAVA_HOME}/bin/graalpy</graalpy .executable>
55
56
</properties >
56
57
57
58
<build >
80
81
<goal >exec</goal >
81
82
</goals >
82
83
<configuration >
83
- <executable >${env.JAVA_HOME}/bin/graalpy </executable >
84
+ <executable >${graalpy.executable} </executable >
84
85
<arguments >
85
86
<argument >-c</argument >
86
87
<argument >__graalpython__.list_files('${project.basedir}/src/main/resources/{vfs-prefix}', '${project.build.directory}/classes/{vfs-prefix}/{files-list-name}')</argument >
188
189
</plugins >
189
190
</build >
190
191
</profile >
191
-
192
+ <profile >
193
+ <properties >
194
+ <graalpy .executable>${env.JAVA_HOME}/bin/graalpy.cmd</graalpy .executable>
195
+ </properties >
196
+ <activation >
197
+ <os >
198
+ <family >windows</family >
199
+ </os >
200
+ </activation >
201
+ </profile >
192
202
<profile >
193
203
<id >prepare-venv</id >
194
204
<!-- create a python venv in resources/vfs if it does not exist yet -->
206
216
<goal >exec</goal >
207
217
</goals >
208
218
<configuration >
209
- <executable >${env.JAVA_HOME}/bin/graalpy </executable >
219
+ <executable >${graalpy.executable} </executable >
210
220
<arguments >
211
221
<argument >-m</argument >
212
222
<argument >venv</argument >
You can’t perform that action at this time.
0 commit comments