You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Herve Boutemy (Jira)" <ji...@apache.org> on 2022/12/15 06:56:00 UTC

[jira] [Commented] (MWRAPPER-77) wrapper:wrapper does not update scripts

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

Herve Boutemy commented on MWRAPPER-77:
---------------------------------------

thinking out loud: what will happen when someone runs "mvnw wrapper:wrapper"? the script has to be updated while it is executed.
I suppose this can work on *nix even if i'm not sure how the shell will behave when continuing its execution after having been updated.
I suppose it will fail with an exception because of file lock on Windows

IMHO, we need to do some precise tests on different platforms and big changes in script content (to detect behaviour on *nix)

> wrapper:wrapper does not update scripts
> ---------------------------------------
>
>                 Key: MWRAPPER-77
>                 URL: https://issues.apache.org/jira/browse/MWRAPPER-77
>             Project: Maven Wrapper
>          Issue Type: Bug
>          Components: Maven Wrapper Plugin
>    Affects Versions: 3.1.1
>            Reporter: Tamas Cservenak
>            Priority: Major
>
> On my ancient project seems that scripts (mvnw and mvnw.cmd) were not updated after I ran {{wrapper:wrapper}} while the rest was okay.
> To test my assumption, moved them to mvnw.old and mvnw.cmd.old and re-run {{{}wrapper:wrapper{}}}. This time the scripts were written out just fine.
> But, they were totally different. This also means that scrpts, once written out, will never we updated?
> End result I had:
> {noformat}
> -rwxr-xr-x. 1 cstamas cstamas  9781 máj    8 09.15 mvnw
> -rw-r--r--. 1 cstamas cstamas  6889 máj    8 09.15 mvnw.cmd
> -rw-r--r--. 1 cstamas cstamas  6607 szept  1 15.55 mvnw.cmd.old
> -rwxr-xr-x. 1 cstamas cstamas 10069 szept  1 15.55 mvnw.old {noformat}
>  



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