File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
graalpython/graalpy-maven-plugin/src/main/java/org/graalvm/python/maven/plugin Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -142,6 +142,16 @@ public void execute() throws MojoExecutionException {
142
142
manageNativeImageConfig ();
143
143
}
144
144
145
+ private void trim (List <String > l ) {
146
+ Iterator <String > it = l .iterator ();
147
+ while (it .hasNext ()) {
148
+ String p = it .next ();
149
+ if (p == null || p .trim ().isEmpty ()) {
150
+ it .remove ();
151
+ }
152
+ }
153
+ }
154
+
145
155
private void manageNativeImageConfig () throws MojoExecutionException {
146
156
Path metaInf = getMetaInfDirectory (project );
147
157
Path resourceConfig = metaInf .resolve ("resource-config.json" );
@@ -264,6 +274,9 @@ private void manageVenv() throws MojoExecutionException {
264
274
265
275
var venvDirectory = getVenvDirectory (project );
266
276
277
+ if (packages != null ) {
278
+ trim (packages );
279
+ }
267
280
if (packages == null || packages .isEmpty ()) {
268
281
getLog ().info (String .format ("No venv packages declared, deleting %s" , venvDirectory ));
269
282
delete (venvDirectory );
You can’t perform that action at this time.
0 commit comments