Equal sign on command line (Maven and wicket quickstart)

Jul 14, 2008
14
0
I used maven commands generated from the Wicket quick start.

You can use http://wicket.apache.org/quickstart.html to very quickly generate starting point with wicket and maven. To use this, you download and install Maven, and then run this single command:

mvn archetype:create -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=1.3.4 -DgroupId=com.mycompany -DartifactId=myproject

I spent many hours tracking down why this fails from TCC, and it works from CMD. From TCC, the argument -Dx=y is received as two arguments, -Dx and y. On CMD, this is recieved as a single argument. It turns out that this works if I use quotes to prevent the arguments from splitting.

mvn archetype:create "-DarchetypeGroupId=org.apache.wicket" "-DarchetypeArtifactId=wicket-archetype-quickstart" "-DarchetypeVersion=1.3.4" "-DgroupId=com.mycompany" "-DartifactId=myproject"

Wow, that was annoying...
 
May 20, 2008
3,515
4
Elkridge, MD, USA
pitonyak wrote:
| I used maven commands generated from the Wicket quick start.
|
| You can use http://wicket.apache.org/quickstart.html to very quickly
| generate starting point with wicket and maven. To use this, you
| download and install Maven, and then run this single command:
|
|
| ---Quote---
| mvn archetype:create -DarchetypeGroupId=org.apache.wicket
| -DarchetypeArtifactId=wicket-archetype-quickstart
| -DarchetypeVersion=1.3.4 -DgroupId=com.mycompany
| -DartifactId=myproject ---End Quote---
| I spent many hours tracking down why this fails from TCC, and it
| works from CMD. From TCC, the argument -Dx=y is received as two
| arguments, -Dx and y. On CMD, this is recieved as a single argument.
| It turns out that this works if I use quotes to prevent the arguments
| from splitting.
|
|
| ---Quote---
| mvn archetype:create "-DarchetypeGroupId=org.apache.wicket"
| "-DarchetypeArtifactId=wicket-archetype-quickstart"
| "-DarchetypeVersion=1.3.4" "-DgroupId=com.mycompany"
| "-DartifactId=myproject" ---End Quote---
| Wow, that was annoying...

Quite a while ago in the old (sparklist) NG there were several threads about
adding the equal sign = to the list of command line parameter separators.
Rex stated that this is how new versions of CMD.EXE work, which he needs to
emulate. Correspondingly, a critical information missing from your post is
the OS you use. You mentioned TCC, which implies V9, though you ought to
specify the full build info. I use 9.02.151, AFAIK the latest build
available. Rex has already fixed a problem (not related to your issue) that
will be in build 152, which has not been released yet.
--
Steve
 
Jul 14, 2008
14
0
Quite a while ago in the old (sparklist) NG there were several threads about
adding the equal sign = to the list of command line parameter separators.
Rex stated that this is how new versions of CMD.EXE work, which he needs to emulate.

Very interesting.... This has the potential to break many items people that live in the Java world and set arguments using -D<varname>=<value>. They will only break because they are not adding quotes by default. Now that I am aware of this, I can watch for the problem in the future.

Correspondingly, a critical information missing from your post is
the OS you use. You mentioned TCC, which implies V9, though you ought to specify the full build info. I use 9.02.151, AFAIK the latest build
available. Rex has already fixed a problem (not related to your issue) that
will be in build 152, which has not been released yet.

TCC 9.02.151 Windows XP [Version 5.1.2600]

I try to stay current with my JPSoft products that I use. I think that I paid for two years service contract just so I did not need to worry about it when a new version came out.
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,426
85
Albuquerque, NM
prospero.unm.edu
http://wicket.apache.org/quickstart.htmlI spent many hours tracking down why this fails from TCC, and it works from CMD. From TCC, the argument -Dx=y is received as two arguments, -Dx and y. On CMD, this is recieved as a single argument.

CMD.EXE doesn't behave like that here (Windows XP.) I think that any program which relies on this behavior is going to break under XP.
 
Similar threads
Thread starter Title Forum Replies Date
J Python: TCC command line parsing removes '=' equal sign characters Support 4
D Get command line in btm file with equal sign? Support 1
Fross %$ Not retaining equal sign Support 5
E Batchparameter containing equal sign Support 9
D on errorlevel n only executes when equal Support 1
E Cannot paste dollar sign into TCC on Windows 10 1803 Support 7
S WAD PDIR: files with percent sign % in name cause not listing other files in directory Support 9
S Fixed @formatnc sometimes mishandles minus sign Support 2
newbie Change percent-sign to anything-else in filename Support 24
S PDIR has trouble processing filenames with embedded percent sign Support 3
B Problems with %-sign in filenames/directory names Support 6
Phileosophos Using a percent sign in the PROMPT Support 3
T VIEW only works from command line Support 13
rconn News Take Command / TCC / CMDebug / TCC-RT v28 Released Support 0
T Take Command 28: Lua reports version 5.4.0 (5.4.3 expected) Support 0
Jay Sage WAD Possible Bug With OPTION Command With @FILE Support 5
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.24 uploaded Support 0
J Take command does not start on Windows 10 Support 3
vefatica `Back quotes` - command line vs. batch file Support 5
Jay Sage WAD Failure of Alias Command with /Z Option Support 14
Phileosophos Is there any way to open the Take Command options dialog from the command line? Support 8
Phileosophos Command-line Editing Shortkeys That Fail Support 6
fpefpe How to? free (internal) command Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.01.23 uploaded Support 0
T How to? retain command history across reboot? Support 6
rconn News Take Command / TCC / CMDebug / TCC-RT v27.01 Build 22 Uploaded Support 0
Jay Sage Bug With Flow Control and/or Command Grouping Support 2
GermanDirk How to? EVENTLOG Command with simple User Rights not functional Support 4
Jay Sage Take Command Is Too Fast! Support 4
Jay Sage Comparison of IF with Command Group and IFF Support 6
D Open Windows 10 Photos app from command line Support 11
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.21 uploaded Support 0
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.20 uploaded Support 0
U Can not get/start Take Command gui Support 1
rconn News Take Command / TCC / CMDebug / TCC-RT 27.0.19 Support 0
S Increasing Font Point Size in Command Tabs Support 2
mfarah Fixed The DATE command produces the wrong error message. Support 1
vefatica Command name mix-up Support 3
FreezerBurnt "Missing SETLOCAL" when initializing Visual Studio Command Prompt. Support 9
E How to? Closing desktop created by DESKTOP command Support 10
rconn News Take Command / TCC / CMDebug / TCC-RT v27.0.18 Support 0
K Take Command fox XP? Support 7
Joe Caverly Documentation Replace internal command with LIBRARY command Support 0
fpefpe How to? command echo in title line/bar Support 2
U Command help on file names Support 5
vefatica Command line DO with no closing parenthesis? Support 9
vefatica Command history search is off Support 7
H How to? How can I say "if the command separator is not ~ then setdos /C~" Support 8
N Command execution slows down in TCC Prompt after a while Support 6
R Long commands retrieved from command history have blank line when wrapped Support 20

Similar threads