Search in sources :

Example 1 with AddFileOperation

use of com.intellij.cvsSupport2.cvsoperations.cvsAdd.AddFileOperation in project intellij-community by JetBrains.

the class RepositoryModificationOperation method addFile.

public void addFile(String folderPath, String name, KeywordSubstitution substitution) {
    myAddedFilesCount++;
    File file = new File(folderPath, name).getAbsoluteFile();
    AddFileOperation addFilesOperation = new AddFileOperation(substitution);
    addFilesOperation.addFile(file.getAbsolutePath());
    addOperation(addFilesOperation);
    if (file.isFile())
        commitFile(file);
}
Also used : File(java.io.File) AddFileOperation(com.intellij.cvsSupport2.cvsoperations.cvsAdd.AddFileOperation)

Aggregations

AddFileOperation (com.intellij.cvsSupport2.cvsoperations.cvsAdd.AddFileOperation)1 File (java.io.File)1