Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 43 for ResourceException (0.25 sec)

  1. platforms/software/resources/src/main/java/org/gradle/internal/resource/TextResource.java

         * @throws ResourceException On failure to read content.
         */
        String getText() throws ResourceException;
    
        /**
         * Returns a hashcode of this resource's contents.
         */
        HashCode getContentHash() throws ResourceException;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  2. platforms/software/resources/src/main/java/org/gradle/internal/resource/local/LocalFileStandInExternalResource.java

    import com.google.common.io.CountingOutputStream;
    import com.google.common.io.Files;
    import org.apache.commons.io.IOUtils;
    import org.gradle.api.Action;
    import org.gradle.api.resources.ResourceException;
    import org.gradle.internal.file.FileMetadata;
    import org.gradle.internal.file.FileType;
    import org.gradle.internal.nativeintegration.filesystem.FileSystem;
    import org.gradle.internal.resource.AbstractExternalResource;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  3. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/repositories/maven/MavenMetadataLoader.java

        public MavenMetadata load(ExternalResourceName metadataLocation) throws ResourceException {
            MavenMetadata metadata = new MavenMetadata();
            try {
                parseMavenMetadataInfo(metadataLocation, metadata);
            } catch (MissingResourceException e) {
                throw e;
            } catch (Exception e) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  4. platforms/software/resources/src/main/java/org/gradle/internal/resource/ResourceIsAFolderException.java

     * limitations under the License.
     */
    
    package org.gradle.internal.resource;
    
    import org.gradle.api.resources.ResourceException;
    
    import java.net.URI;
    
    /**
     * Exception thrown when one attempts to read a folder
     */
    public class ResourceIsAFolderException extends ResourceException {
        public ResourceIsAFolderException(URI location, String message) {
            super(location, message);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 973 bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/StartParameterResolutionOverride.java

                throw offlineResource(parent);
            }
    
            @Override
            public void upload(ReadableContent resource, ExternalResourceName destination) {
                throw new ResourceException(destination.getUri(), String.format("Cannot upload to '%s' in offline mode.", destination.getUri()));
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 00:21:07 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  6. platforms/software/resources/src/main/java/org/gradle/internal/resource/ReadableContent.java

     */
    
    package org.gradle.internal.resource;
    
    import org.gradle.api.resources.ResourceException;
    
    import java.io.InputStream;
    
    /**
     * Some resource content with a known length.
     */
    public interface ReadableContent {
        /**
         * Unbuffered input stream to read contents of resource.
         */
        InputStream open() throws ResourceException;
    
        long getContentLength();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 984 bytes
    - Viewed (0)
  7. platforms/software/resources-sftp/src/main/java/org/gradle/internal/resource/transport/sftp/SftpResourceUploader.java

                    throw new ResourceException(parent, String.format("Could not lstat resource '%s'.", parent), e);
                }
            }
            ensureParentDirectoryExists(channel, parent);
            try {
                channel.mkdir(parentPath);
            } catch (com.jcraft.jsch.SftpException e) {
                throw new ResourceException(parent, String.format("Could not create resource '%s'.", parent), e);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  8. platforms/software/resources/src/test/groovy/org/gradle/internal/resource/local/LocalFileStandInExternalResourceTest.groovy

            when:
            resource.withContentIfPresent(action)
    
            then:
            def e = thrown(ResourceException)
            e.message == "Could not get resource '${file.toURI()}'."
            e.cause == failure
    
            when:
            resource.withContent(action)
    
            then:
            def e2 = thrown(ResourceException)
            e2.message == "Could not get resource '${file.toURI()}'."
            e2.cause == failure
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 14K bytes
    - Viewed (0)
  9. platforms/software/resources-http/src/main/java/org/gradle/internal/resource/transport/http/HttpResourceLister.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package org.gradle.internal.resource.transport.http;
    
    import org.gradle.api.resources.ResourceException;
    import org.gradle.internal.resource.ExternalResourceName;
    import org.gradle.internal.resource.transfer.ExternalResourceLister;
    
    import java.util.List;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/api/internal/resources/FileCollectionBackedTextResource.java

    package org.gradle.api.internal.resources;
    
    import com.google.common.io.Files;
    import org.gradle.api.file.FileCollection;
    import org.gradle.api.internal.file.temp.TemporaryFileProvider;
    import org.gradle.api.resources.ResourceException;
    import org.gradle.api.resources.internal.TextResourceInternal;
    import org.gradle.api.tasks.TaskDependency;
    import org.gradle.internal.resource.ResourceExceptions;
    
    import java.io.File;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 02 16:14:10 UTC 2021
    - 3.6K bytes
    - Viewed (0)
Back to top