1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Different results with TCC than with cmd.exe

Discussion in 'Support' started by daniel347x, Jun 4, 2011.

  1. daniel347x

    Joined:
    Apr 28, 2011
    Messages:
    13
    Likes Received:
    0
    Hello - When I run the following command in a TCC console: mvn -X install:install-file ^-DgroupId=org.eclipse ^-DartifactId=text ^-Dversion=3.5.0 ^-Dpackaging=jar ^-Dfile="P:\_Dan\work\Eclipse\eclipse-java-helios-SR2-win32-x86_64\eclipse\plugins\ org.eclipse.text_3.5.0.v20100601-1300.jar" ... the command fails. When I run the same command in cmd.exe, it succeeds. For the future, I'd like to know what I can do to get TCC to behave like cmd.exe for this command. Thanks, Dan.
     
  2. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,970
    Likes Received:
    30
    On Sat, 04 Jun 2011 16:38:27 -0400, daniel347x <> wrote:

    |Hello - When I run the following command in a TCC console: mvn -X install:install-file ^-DgroupId=org.eclipse ^-DartifactId=text ^-Dversion=3.5.0 ^-Dpackaging=jar ^-Dfile="P:\_Dan\work\Eclipse\eclipse-java-helios-SR2-win32-x86_64\eclipse\plugins\ org.eclipse.text_3.5.0.v20100601-1300.jar" ... the command fails. When I run the same command in cmd.exe, it succeeds. For the future, I'd like to know what I can do to get TCC to behave like cmd.exe for this command. Thanks, Dan.

    What goes wrong?

    Here are the arguments seen by an EXE started by CMD and then (same EXE) started
    by TCC. I used an EXE (renamed MVN.EXE) that simply echoes its arguments. It
    seems TCC and CMD start the program exactly the same way.

    Code:
    CMD:
    
    mvn
    -X
    install:install-file
    -DgroupId=org.eclipse
    -DartifactId=text
    -Dversion=3.5.0
    -Dpackaging=jar
    -Dfile=P:\_Dan\work\Eclipse\eclipse-java-helios-SR2-win32-x86_64\eclipse\plugins
    \org.eclipse.text_3.5.0.v20100601-1300.jar
    Code:
    TCC:
    
    mvn
    -X
    install:install-file
    -DgroupId=org.eclipse
    -DartifactId=text
    -Dversion=3.5.0
    -Dpackaging=jar
    -Dfile=P:\_Dan\work\Eclipse\eclipse-java-helios-SR2-win32-x86_64\eclipse\plugins
    \org.eclipse.text_3.5.0.v20100601-1300.jar
     
  3. Peter Bratton

    Joined:
    Jul 1, 2008
    Messages:
    81
    Likes Received:
    0
    I wonder if TCC is interpreting a character in the command line, notably the caret. Try the command between back quotes, i.e. `mvn -X ... plugins\`.
    --
    Peter
     

Share This Page