Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Different results with TCC than with cmd.exe

Apr
13
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.
 
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
 
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.
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
 

Similar threads

Back
Top