Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for contentCharset (0.39 sec)

  1. platforms/jvm/platform-jvm/src/main/java/org/gradle/api/java/archives/internal/DefaultManifestMergeSpec.java

        private String contentCharset = DefaultManifest.DEFAULT_CONTENT_CHARSET;
    
        @Override
        public String getContentCharset() {
            return this.contentCharset;
        }
    
        @Override
        public void setContentCharset(String contentCharset) {
            if (contentCharset == null) {
                throw new InvalidUserDataException("contentCharset must not be null");
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  2. platforms/jvm/platform-jvm/src/main/java/org/gradle/api/java/archives/internal/DefaultManifest.java

            if (contentCharset == null) {
                throw new InvalidUserDataException("contentCharset must not be null");
            }
            if (!Charset.isSupported(contentCharset)) {
                throw new InvalidUserDataException(String.format("Charset for contentCharset '%s' is not supported by your JVM", contentCharset));
            }
            this.contentCharset = contentCharset;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  3. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/archive/JarTestFixture.groovy

            new Manifest(IOUtils.toInputStream(content('META-INF/MANIFEST.MF'), contentCharset as String))
        }
    
        /**
         * Asserts that the Jar file is well-formed.
         */
        JarTestFixture(File file, String metadataCharset = 'UTF-8', String contentCharset = null) {
            this(file, metadataCharset, contentCharset, true)
        }
    
        /**
         * Creates the fixture.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 14:13:17 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  4. platforms/jvm/platform-jvm/src/main/java/org/gradle/api/java/archives/internal/CustomManifestInternalWrapper.java

        private final Manifest delegate;
        private String contentCharset = DefaultManifest.DEFAULT_CONTENT_CHARSET;
    
        public CustomManifestInternalWrapper(Manifest delegate) {
            this.delegate = delegate;
        }
    
        @Override
        public String getContentCharset() {
            return contentCharset;
        }
    
        @Override
        public void setContentCharset(String contentCharset) {
            this.contentCharset = contentCharset;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  5. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/archive/ZipTestFixture.groovy

        protected final String contentCharset
        private final ListMultimap<String, Integer> compressionMethodsByRelativePath = ArrayListMultimap.create()
    
        ZipTestFixture(File file, String metadataCharset = null, String contentCharset = null) {
            new TestFile(file).assertIsFile()
            this.metadataCharset = metadataCharset ?: Charset.defaultCharset().name()
            this.contentCharset = contentCharset ?: Charset.defaultCharset().name()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  6. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/archive/TarTestFixture.groovy

        }
    
        private static String getContentForEntry(TarArchiveEntry entry, TarArchiveInputStream inputStream, String contentCharset) {
            byte[] content = IOUtils.readFully(inputStream, (int) entry.getSize())
            new String(content, contentCharset ?: Charset.defaultCharset().name())
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  7. platforms/jvm/platform-jvm/src/main/java/org/gradle/api/java/archives/ManifestMergeSpec.java

        /**
         * The character set used to decode the merged manifest content.
         *
         * @param contentCharset the character set used to decode the merged manifest content
         * @see #getContentCharset()
         * @since 2.14
         */
        void setContentCharset(String contentCharset);
    
        /**
         * Adds a merge path to a manifest that should be merged into the base manifest. A merge path can be either another
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 3K bytes
    - Viewed (0)
  8. platforms/jvm/language-jvm/src/integTest/groovy/org/gradle/api/tasks/bundling/JarEncodingIntegrationTest.groovy

            "'UTF-8'"       | "'UNSUPPORTED'" | "Charset for contentCharset 'UNSUPPORTED' is not supported by your JVM"
            null            | "'UTF-8'"       | "manifestContentCharset must not be null"
            "'UTF-8'"       | null            | "contentCharset must not be null"
        }
    
        private static String customJarManifestTask() {
            return '''
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 12:15:28 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  9. platforms/jvm/platform-jvm/src/main/java/org/gradle/api/java/archives/internal/ManifestInternal.java

         */
        String getContentCharset();
    
        /**
         * See {@link org.gradle.jvm.tasks.Jar#getManifestContentCharset()}
         */
        void setContentCharset(String contentCharset);
    
        /**
         * Writes the manifest into a stream.
         *
         * The manifest will be encoded using the character set defined by the {@link #getContentCharset()} property.
         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 1.4K bytes
    - Viewed (0)
Back to top