Class FileBasedPersonalBuildsUtil
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.personal.FileBasedPersonalBuildsUtil
-
public class FileBasedPersonalBuildsUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description FileBasedPersonalBuildsUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static File
findChangesDataFile(long changesId, String systemDir)
Find existed changes file for change with specified id.static File
getChangesDataFile(long changesId, String systemDir)
Deprecated.since 2019.1.static File
getChangesDataFile(long changesId, String systemDir, PersonalChangeFormatType type)
Gets file (maybe not existed) for changes for specified type (binary or unified diff).static String
getChangesDataFileName(long changesId)
Deprecated.since 2019.1.static String
getChangesDataFileName(long changesId, PersonalChangeFormatType type)
Gets file name for change with specified id and change type (binary or unified diff).static File
getChangesDir(String systemDir)
static File
getChangesInfoFile(long id, String systemDir)
static File
getChangesStructureFile(long id, String systemDir)
static PersonalChangeFormatType
getChangeType(long changesId, String systemDir)
static PersonalChangeFormatType
getChangeType(File file)
static PersonalChangeFormatType
getChangeType(String fileName)
static File[]
listChangeFiles(String systemDir)
static ClientSidePersonalChangeInfo
readChangeInfo(File infoFile)
static ArrayList<VcsChange>
readFileChanges(File changesFile)
static byte[]
readFileContent(File changesFile, String fileToFileContentfor)
-
-
-
Field Detail
-
CHANGES
@NonNls public static final String CHANGES
- See Also:
- Constant Field Values
-
DIFF_CLUE
@NonNls public static final String DIFF_CLUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getChangesDataFile
@Deprecated public static File getChangesDataFile(long changesId, String systemDir)
Deprecated.since 2019.1. UsefindChangesDataFile(long, String)
orgetChangesDataFile(long, String, PersonalChangeFormatType)
insteadGets default file for change with specified id.
-
findChangesDataFile
@Nullable public static File findChangesDataFile(long changesId, String systemDir)
Find existed changes file for change with specified id. File may be like<num>.changes
(for binary patch) or<num>.diff.changes
(for unified diff patches).- Returns:
- found changes file or null.
-
getChangesDataFile
public static File getChangesDataFile(long changesId, String systemDir, PersonalChangeFormatType type)
Gets file (maybe not existed) for changes for specified type (binary or unified diff).
-
getChangesDataFileName
@Deprecated public static String getChangesDataFileName(long changesId)
Deprecated.since 2019.1. UsegetChangesDataFileName(long, PersonalChangeFormatType)
Gets default file name for change with specified id.
-
getChangesDataFileName
public static String getChangesDataFileName(long changesId, PersonalChangeFormatType type)
Gets file name for change with specified id and change type (binary or unified diff).
-
getChangeType
public static PersonalChangeFormatType getChangeType(@NotNull File file)
-
getChangeType
public static PersonalChangeFormatType getChangeType(@NotNull String fileName)
-
getChangeType
public static PersonalChangeFormatType getChangeType(long changesId, String systemDir)
-
readFileChanges
public static ArrayList<VcsChange> readFileChanges(File changesFile) throws IOException
- Throws:
IOException
-
readChangeInfo
@Nullable public static ClientSidePersonalChangeInfo readChangeInfo(File infoFile)
-
readFileContent
public static byte[] readFileContent(File changesFile, String fileToFileContentfor) throws VcsException
- Throws:
VcsException
-
-