Message:

   The following issue has been closed.

   Resolver: dion gillard
       Date: Mon, 11 Aug 2003 12:34 AM

Bdaly specified files, such as those with quotes in them, that aren't really part of 
the file name, are the users problem, and maven is right to fail if someone has given 
it a bogus home.
---------------------------------------------------------------------
View the issue:

  http://jira.codehaus.org/secure/ViewIssue.jspa?key=MAVEN-666


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-666
    Summary: maven.bat dosen't work when JAVA_HOME or MAVEN_HOME contains space 
character
       Type: Bug

     Status: Closed
   Priority: Major
 Resolution: WON'T FIX

 Time Spent: Unknown
  Remaining: Unknown

    Project: maven
 Components: 
             core
   Fix Fors:
             1.0-rc1
   Versions:
             1.0-beta-10

   Assignee: 
   Reporter: Uijin Hong

    Created: Sun, 10 Aug 2003 9:43 PM
    Updated: Mon, 11 Aug 2003 12:34 AM
Environment: OS : Windows 2003 Server

Description:
It's normal to use some space characters at file name or directory name these days,

But maven won't support it in the maven.bat script.

here is how to reproduce

---

0. Windows 2003 Server, run cmd.exe and enter follows
1. set JAVA_HOME=C:\Program Files\Java\JDK\
2. set MAVEN_HOME=C:\Some Directory Name That Has A Space Character\Maven\
3. set PATH=%JAVA_HOME%\bin;%MAVEN_HOME%\bin;%PATH%
4. set MAVEN_BATCH_ECHO=on
5. maven.bat

and here is the generated error when I run with space containing MAVEN_HOME 

--- 

C:\Documents and Settings\HeartBit>maven

C:\Documents and Settings\HeartBit>if exist "\mavenrc_pre.bat" call "\mavenrc_pr
e.bat"

C:\Documents and Settings\HeartBit>if "Windows_NT" == "Windows_NT"

C:\Documents and Settings\HeartBit>set MAVEN_COMMAND_COM="cmd.exe"

C:\Documents and Settings\HeartBit>if exist "C:\WINDOWS\system32\cmd.exe" set MA
VEN_COMMAND_COM="C:\WINDOWS\system32\cmd.exe"

C:\Documents and Settings\HeartBit>if exist "C:\WINDOWS\command.com" set MAVEN_C
OMMAND_COM="C:\WINDOWS\command.com"

C:\Documents and Settings\HeartBit>set MAVEN_FIND_EXE="find.exe"

C:\Documents and Settings\HeartBit>if exist "C:\WINDOWS\system32\find.exe" set M
AVEN_FIND_EXE="C:\WINDOWS\system32\find.exe"

C:\Documents and Settings\HeartBit>if exist "C:\WINDOWS\command\find.exe" set MA
VEN_FIND_EXE="C:\WINDOWS\command\find.exe"

C:\Documents and Settings\HeartBit>if not "C:\Progra~1\Java\j2re1.4.2" == "" got
o OkJHome

C:\Documents and Settings\HeartBit>"C:\WINDOWS\system32\cmd.exe" /C DIR "C:\Prog
ra~1\Java\j2re1.4.2"   2>&1  | "C:\WINDOWS\system32\find.exe" /I /C "C:\Progra~1
\Java\j2re1.4.2"  1>nul

C:\Documents and Settings\HeartBit>if not errorlevel 1 goto chkMHome
and was unexpected at this time.

C:\Documents and Settings\HeartBit>if not ""C:\Documents and Settings\HeartBit\M
y Documents\My Program Files\maven""=="" goto valMHome

C:\Documents and Settings\HeartBit>



---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to