File tree Expand file tree Collapse file tree 2 files changed +21
-6
lines changed
graalpy-archetype-polyglot-app/src/main/resources/archetype-resources
graalpy-maven-plugin/src/main/java/org/graalvm/python/maven/plugin Expand file tree Collapse file tree 2 files changed +21
-6
lines changed Original file line number Diff line number Diff line change 51
51
<package >termcolor==2.2</package >
52
52
</packages >
53
53
<pythonHome >
54
- <!-- java-like regular expression what file paths should be included into venv/home;
55
- default is all -->
56
54
<includes >
55
+ <!-- java-like regular expression what file paths should be included into venv/home;
56
+ if empty than default is all -->
57
57
<include >.*</include >
58
- </includes >
58
+ </includes >
59
+ <excludes >
59
60
<!-- java-like regular expression what file paths should be excluded from venv/home;
60
61
default is none -->
61
- < excludes >
62
+ <!-- <exclude></exclude> -- >
62
63
</excludes >
63
64
</pythonHome >
64
65
</configuration >
Original file line number Diff line number Diff line change @@ -178,9 +178,23 @@ public static class PythonHome {
178
178
private void manageHome () throws MojoExecutionException {
179
179
var homeDirectory = getHomeDirectory (project );
180
180
if (pythonHome == null ) {
181
- delete (homeDirectory );
182
- return ;
181
+ pythonHome = new PythonHome ();
182
+ pythonHome .includes = Arrays .asList (".*" );
183
+ pythonHome .excludes = Collections .emptyList ();
184
+ } else {
185
+ if (pythonHome .includes != null ) {
186
+ trim (pythonHome .includes );
187
+ }
188
+ if (pythonHome .includes == null || pythonHome .includes .isEmpty ()) {
189
+ pythonHome .includes = Arrays .asList (".*" );
190
+ }
191
+ if (pythonHome .excludes == null ) {
192
+ pythonHome .excludes = Collections .emptyList ();
193
+ } else {
194
+ trim (pythonHome .excludes );
195
+ }
183
196
}
197
+
184
198
var tag = homeDirectory .resolve ("tagfile" );
185
199
var graalPyVersion = getGraalPyVersion (project );
186
200
You can’t perform that action at this time.
0 commit comments