You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Peter De Maeyer (Jira)" <ji...@apache.org> on 2024/11/06 13:40:00 UTC

[jira] [Comment Edited] (MCLEAN-110) Utils.createSymlink should be replace by Java 7 code

    [ https://issues.apache.org/jira/browse/MCLEAN-110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17895962#comment-17895962 ] 

Peter De Maeyer edited comment on MCLEAN-110 at 11/6/24 1:39 PM:
-----------------------------------------------------------------

I created a PR where I removed {{Utils.createSymlink}}, replacing its usages with {{Files.createSymbolicLink}}. I worked around the BeanShell varargs limitation by passing explicit zero-length arrays.

* [The version of BeanShell in Apache Maven is really old.|https://mvnrepository.com/artifact/org.apache-extras.beanshell/bsh] [Newer versions of BeanShell allegedly support varargs.|https://github.com/beanshell/beanshell/commit/c1adf5d]
* I considered using Groovy instead of BeanShell, but it would have been a bigger diff and it would become inconsistent with other integration tests &rarr; I left it alone.


was (Author: peterdm):
I created a PR where I removed {{Utils.createSymlink}}, replacing its usages with {{Files.createSymbolicLink}}. I worked around the BeanShell varargs limitation by passing explicit zero-length arrays.

* [The version of BeanShell in Apache Maven is really old.|https://mvnrepository.com/artifact/org.apache-extras.beanshell/bsh] [Newer versions of BeanShell allegedly support varargs.|https://github.com/beanshell/beanshell/commit/c1adf5d]
* I considered using Groovy instead of BeanShell, but it would have been a bigger diff and it would become inconsistent with other integration tests &rarr; out of scope.

> Utils.createSymlink should be replace by Java 7 code
> ----------------------------------------------------
>
>                 Key: MCLEAN-110
>                 URL: https://issues.apache.org/jira/browse/MCLEAN-110
>             Project: Maven Clean Plugin
>          Issue Type: Improvement
>            Reporter: Elliotte Rusty Harold
>            Priority: Major
>              Labels: up-for-grabs
>
> instead of shelling out to command line



--
This message was sent by Atlassian Jira
(v8.20.10#820010)