You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Mark DeLaFranier (JIRA)" <ji...@codehaus.org> on 2006/08/15 21:38:49 UTC
[jira] Created: (MNG-2503) mvn.bat file is not correct for 4NT 5.0
and does "endlocal" twice if error
mvn.bat file is not correct for 4NT 5.0 and does "endlocal" twice if error
--------------------------------------------------------------------------
Key: MNG-2503
URL: http://jira.codehaus.org/browse/MNG-2503
Project: Maven 2
Issue Type: Bug
Components: Command Line
Affects Versions: 2.0.4
Environment: Windows XP SP2 and 4NT 5.00U
Reporter: Mark DeLaFranier
Priority: Minor
Attachments: mvn.bat
1. If not setup properly and error occurs, the script attempts to "endlocal" twice:
[d:\] > mvn --version
Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher
4NT: D:\dev\maven2\bin\mvn.bat [145] Missing SETLOCAL
2. Syntax wrong for adding CLASSWORLDS_JAR when under 4NT.
For #1, I updated the :error section of the mvn.bat file.
For #2, I added a new section to add the CLASSWORLDS_JAR
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (MNG-2503) mvn.bat file is not correct for 4NT 5.0
and does "endlocal" twice if error
Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2503?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Casey updated MNG-2503:
----------------------------
Assignee: John Casey
Description:
1. If not setup properly and error occurs, the script attempts to "endlocal" twice:
[d:\] > mvn --version
Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher
4NT: D:\dev\maven2\bin\mvn.bat [145] Missing SETLOCAL
2. Syntax wrong for adding CLASSWORLDS_JAR when under 4NT.
For #1, I updated the :error section of the mvn.bat file.
For #2, I added a new section to add the CLASSWORLDS_JAR
was:
1. If not setup properly and error occurs, the script attempts to "endlocal" twice:
[d:\] > mvn --version
Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher
4NT: D:\dev\maven2\bin\mvn.bat [145] Missing SETLOCAL
2. Syntax wrong for adding CLASSWORLDS_JAR when under 4NT.
For #1, I updated the :error section of the mvn.bat file.
For #2, I added a new section to add the CLASSWORLDS_JAR
Patch Submitted: (was: [Yes])
Applied a patch generated from the attached mvn.bat file, with some minor modifications. This has been applied against trunk...can someone verify that it works? I will merge it to the branch, but I don't have windows...
> mvn.bat file is not correct for 4NT 5.0 and does "endlocal" twice if error
> --------------------------------------------------------------------------
>
> Key: MNG-2503
> URL: http://jira.codehaus.org/browse/MNG-2503
> Project: Maven 2
> Issue Type: Bug
> Components: Command Line
> Affects Versions: 2.0.4
> Environment: Windows XP SP2 and 4NT 5.00U
> Reporter: Mark DeLaFranier
> Assignee: John Casey
> Priority: Minor
> Attachments: mvn.bat
>
>
> 1. If not setup properly and error occurs, the script attempts to "endlocal" twice:
> [d:\] > mvn --version
> Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher
> 4NT: D:\dev\maven2\bin\mvn.bat [145] Missing SETLOCAL
> 2. Syntax wrong for adding CLASSWORLDS_JAR when under 4NT.
> For #1, I updated the :error section of the mvn.bat file.
> For #2, I added a new section to add the CLASSWORLDS_JAR
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (MNG-2503) mvn.bat file is not correct for 4NT 5.0
and does "endlocal" twice if error
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2503?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Porter updated MNG-2503:
------------------------------
Fix Version/s: 3.0-alpha-1
> mvn.bat file is not correct for 4NT 5.0 and does "endlocal" twice if error
> --------------------------------------------------------------------------
>
> Key: MNG-2503
> URL: http://jira.codehaus.org/browse/MNG-2503
> Project: Maven 2
> Issue Type: Bug
> Components: Command Line
> Affects Versions: 2.0.4
> Environment: Windows XP SP2 and 4NT 5.00U
> Reporter: Mark DeLaFranier
> Assignee: John Casey
> Priority: Minor
> Fix For: 3.0-alpha-1
>
> Attachments: mvn.bat
>
>
> 1. If not setup properly and error occurs, the script attempts to "endlocal" twice:
> [d:\] > mvn --version
> Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher
> 4NT: D:\dev\maven2\bin\mvn.bat [145] Missing SETLOCAL
> 2. Syntax wrong for adding CLASSWORLDS_JAR when under 4NT.
> For #1, I updated the :error section of the mvn.bat file.
> For #2, I added a new section to add the CLASSWORLDS_JAR
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MNG-2503) mvn.bat file is not correct for 4NT
5.0 and does "endlocal" twice if error
Posted by "Vincent Siveton (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2503?page=comments#action_73347 ]
Vincent Siveton commented on MNG-2503:
--------------------------------------
I tried to reproduce your problem with the last version of 4nt without success, ie
4NT 7.01 (4nt.exe, 3.2Mb, build 370) [1]
Try to upgrade your 4nt version. I'd like a confirmation before I close this issue.
Another tips for the next time, please refer to [2], "Creating and submitting a patch" part
Thanks!
[1] http://jpsoft.com/download.htm
[2] http://maven.apache.org/guides/development/guide-m2-development.html
> mvn.bat file is not correct for 4NT 5.0 and does "endlocal" twice if error
> --------------------------------------------------------------------------
>
> Key: MNG-2503
> URL: http://jira.codehaus.org/browse/MNG-2503
> Project: Maven 2
> Issue Type: Bug
> Components: Command Line
> Affects Versions: 2.0.4
> Environment: Windows XP SP2 and 4NT 5.00U
> Reporter: Mark DeLaFranier
> Priority: Minor
> Attachments: mvn.bat
>
>
> 1. If not setup properly and error occurs, the script attempts to "endlocal" twice:
> [d:\] > mvn --version
> Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher
> 4NT: D:\dev\maven2\bin\mvn.bat [145] Missing SETLOCAL
> 2. Syntax wrong for adding CLASSWORLDS_JAR when under 4NT.
> For #1, I updated the :error section of the mvn.bat file.
> For #2, I added a new section to add the CLASSWORLDS_JAR
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MNG-2503) mvn.bat file is not correct for 4NT
5.0 and does "endlocal" twice if error
Posted by "Andrew Forman (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2503?page=comments#action_77162 ]
Andrew Forman commented on MNG-2503:
------------------------------------
I can confirm issue #1.
I've 4NT 8.00.36 and do see the SETLOCAL error when running the mvn.bat that comes with 2.0.4.
The fix I made to resolve the issue was to change the :error section, removing the @endlocal (as follows).
:error
if "%OS%"=="Windows_NT"
set ERROR_CODE=1
> mvn.bat file is not correct for 4NT 5.0 and does "endlocal" twice if error
> --------------------------------------------------------------------------
>
> Key: MNG-2503
> URL: http://jira.codehaus.org/browse/MNG-2503
> Project: Maven 2
> Issue Type: Bug
> Components: Command Line
> Affects Versions: 2.0.4
> Environment: Windows XP SP2 and 4NT 5.00U
> Reporter: Mark DeLaFranier
> Priority: Minor
> Attachments: mvn.bat
>
>
> 1. If not setup properly and error occurs, the script attempts to "endlocal" twice:
> [d:\] > mvn --version
> Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher
> 4NT: D:\dev\maven2\bin\mvn.bat [145] Missing SETLOCAL
> 2. Syntax wrong for adding CLASSWORLDS_JAR when under 4NT.
> For #1, I updated the :error section of the mvn.bat file.
> For #2, I added a new section to add the CLASSWORLDS_JAR
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (MNG-2503) mvn.bat file is not correct for 4NT 5.0
and does "endlocal" twice if error
Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2503?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Casey closed MNG-2503.
---------------------------
Resolution: Fixed
> mvn.bat file is not correct for 4NT 5.0 and does "endlocal" twice if error
> --------------------------------------------------------------------------
>
> Key: MNG-2503
> URL: http://jira.codehaus.org/browse/MNG-2503
> Project: Maven 2
> Issue Type: Bug
> Components: Command Line
> Affects Versions: 2.0.4
> Environment: Windows XP SP2 and 4NT 5.00U
> Reporter: Mark DeLaFranier
> Assignee: John Casey
> Priority: Minor
> Attachments: mvn.bat
>
>
> 1. If not setup properly and error occurs, the script attempts to "endlocal" twice:
> [d:\] > mvn --version
> Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher
> 4NT: D:\dev\maven2\bin\mvn.bat [145] Missing SETLOCAL
> 2. Syntax wrong for adding CLASSWORLDS_JAR when under 4NT.
> For #1, I updated the :error section of the mvn.bat file.
> For #2, I added a new section to add the CLASSWORLDS_JAR
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MNG-2503) mvn.bat file is not correct for 4NT
5.0 and does "endlocal" twice if error
Posted by "Mark DeLaFranier (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-2503?page=comments#action_74157 ]
Mark DeLaFranier commented on MNG-2503:
---------------------------------------
Vincent,
I am not in a position to test with version 7.01 as I don't have access to this software - at least not in the short term. :-)
Thanks for the tip for the next time.
Mark
> mvn.bat file is not correct for 4NT 5.0 and does "endlocal" twice if error
> --------------------------------------------------------------------------
>
> Key: MNG-2503
> URL: http://jira.codehaus.org/browse/MNG-2503
> Project: Maven 2
> Issue Type: Bug
> Components: Command Line
> Affects Versions: 2.0.4
> Environment: Windows XP SP2 and 4NT 5.00U
> Reporter: Mark DeLaFranier
> Priority: Minor
> Attachments: mvn.bat
>
>
> 1. If not setup properly and error occurs, the script attempts to "endlocal" twice:
> [d:\] > mvn --version
> Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher
> 4NT: D:\dev\maven2\bin\mvn.bat [145] Missing SETLOCAL
> 2. Syntax wrong for adding CLASSWORLDS_JAR when under 4NT.
> For #1, I updated the :error section of the mvn.bat file.
> For #2, I added a new section to add the CLASSWORLDS_JAR
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira