in src/net/sourceforge/transparent/Checkin/AddMultipleProcessor.java [28:59]
public void execute()
{
int currFileIndex = 0;
int cmdLineLen;
LinkedList<String> options = new LinkedList<>();
while( currFileIndex < files.length )
{
options.clear();
options.add(MKELEM_COMMAND);
if( StringUtil.isNotEmpty( comment ) )
{
options.add( COMMENT_SWITCH );
options.add( quote(comment) );
cmdLineLen = MKELEM_COMMAND.length() + COMMENT_SWITCH.length() + comment.length();
}
else
{
options.add( NO_COMMENT_SWITCH );
cmdLineLen = MKELEM_COMMAND.length() + NO_COMMENT_SWITCH.length();
}
while( currFileIndex < files.length && cmdLineLen < CMDLINE_MAX_LENGTH )
{
String path = files[ currFileIndex++ ];
options.add( path );
cmdLineLen += path.length() + 1;
}
String[] aOptions = ArrayUtil.toStringArray(options);
TransparentVcs.cleartoolWithOutput( aOptions );
}
}