Class WorkingDirectoryTargetDirRestrictor

    • Constructor Detail

      • WorkingDirectoryTargetDirRestrictor

        public WorkingDirectoryTargetDirRestrictor()
    • Method Detail

      • tryGetRestrictedReason

        public String tryGetRestrictedReason​(@NotNull
                                             ResolverRuntimeConfiguration config,
                                             @NotNull
                                             String targetPath)
                                      throws IOException
        Specified by:
        tryGetRestrictedReason in interface ArtifactDependencyTargetDirRestrictor
        Parameters:
        config - ResolverRuntimeConfiguration instance
        targetPath - 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