stcmd generates "java.lang.ArrayIndexOutOfBoundsException"

0 Likes

The following syntax:

stcmd co -q -o -fs -is -rp "C:\StarTeamCheckOuts\" *.*

causes an "java.lang.ArrayIndexOutOfBoundsException: 6"

The reason the erro is generated is that a backslash (\) is interpreted as an escape character within STCMD when it precedes quotation marks.

To resolve this either remove the trailing backslash or append ‘\\’ to the end of the path. Either will allow STCMD to interpret the command correctly and continue without an exception

For example,

stcmd co -q -o -fs -is -rp "C:\StarTeamCheckOuts\\" *.*

stcmd co -q -o -fs -is -rp "C:\StarTeamCheckOuts" *.*

Incident: 2656458

Comment List
Related
Recommended