public void checkIn()

in src/net/sourceforge/transparent/CommandLineClearCase.java [41:71]


  public void checkIn( File file, String comment )
  {
    if( host.getConfig().useIdenticalSwitch )
    {
      if( StringUtil.isNotEmpty( comment ) )
        cleartool( new String[] { "ci", "-c", quote( comment ), "-identical", file.getAbsolutePath() } );
      else
        cleartool( new String[] { "ci", "-nc", "-identical", file.getAbsolutePath() } );
    }
    else
    {
      try
      {
        if( StringUtil.isNotEmpty( comment ) )
          cleartool( new String[] { "ci", "-c", quote( comment ), file.getAbsolutePath() } );
        else
          cleartool( new String[] { "ci", "-nc", file.getAbsolutePath() } );
      }
      catch( ClearCaseException e )
      {
        if( e.getMessage().indexOf( IDENTICAL_CONTENT_SIG ) != -1 )
        {
          undoCheckOut( file );
        }
        else
        {
          throw e;
        }
      }
    }
  }