Class WorkingDirectoryTargetDirRestrictor
- java.lang.Object
-
- jetbrains.buildServer.serverSide.artifacts.WorkingDirectoryTargetDirRestrictor
-
- All Implemented Interfaces:
ArtifactDependencyTargetDirRestrictor
,TeamCityExtension
public class WorkingDirectoryTargetDirRestrictor extends Object implements ArtifactDependencyTargetDirRestrictor
ArtifactDependencyTargetDirRestrictor restricting download outside current working directory
-
-
Constructor Summary
Constructors Constructor Description WorkingDirectoryTargetDirRestrictor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
tryGetRestrictedReason(ResolverRuntimeConfiguration config, String targetPath)
-
-
-
Method Detail
-
tryGetRestrictedReason
public String tryGetRestrictedReason(@NotNull ResolverRuntimeConfiguration config, @NotNull String targetPath) throws IOException
- Specified by:
tryGetRestrictedReason
in interfaceArtifactDependencyTargetDirRestrictor
- Parameters:
config
- ResolverRuntimeConfiguration instancetargetPath
- Target directory real (absolute and resolved including links) path- Returns:
- reason why downloading artifact to the target directory is restricted or null if is not restricted
- Throws:
IOException
- any unhandled exception will interrupt artifact dependency download with default reason
-
-