Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 40 for duplicatesStrategy (0.27 sec)

  1. platforms/documentation/docs/src/docs/dsl/org.gradle.api.tasks.AbstractCopyTask.xml

                </tr>
                <tr>
                    <td>includeEmptyDirs</td>
                    <td><literal>true</literal></td>
                </tr>
                <tr>
                    <td>duplicatesStrategy</td>
                    <td><literal>DuplicatesStrategy.INHERIT</literal></td>
                </tr>
            </table>
        </section>
        <section>
            <title>Methods</title>
            <table>
                <thead>
                    <tr>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  2. subprojects/core-api/src/main/java/org/gradle/api/file/FileCopyDetails.java

         */
        void setDuplicatesStrategy(DuplicatesStrategy strategy);
    
        /**
         * The strategy to use if there is already a file at this file's destination.
         * <p>
         * The value can be set with a case-insensitive string of the enum value (e.g. {@code 'exclude'} for {@link DuplicatesStrategy#EXCLUDE}).
         *
         * @see DuplicatesStrategy
         * @return the strategy to use for this file.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 12:31:43 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/api/internal/file/copy/SingleParentCopySpec.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package org.gradle.api.internal.file.copy;
    
    import org.gradle.api.file.DuplicatesStrategy;
    import org.gradle.api.internal.file.FileCollectionFactory;
    import org.gradle.api.model.ObjectFactory;
    import org.gradle.api.tasks.util.PatternSet;
    import org.gradle.internal.Factory;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jul 27 14:16:37 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  4. subprojects/core-api/src/main/java/org/gradle/api/file/CopySpec.java

         * <p>
         * This strategy can be overridden for individual files by using {@link #eachFile(org.gradle.api.Action)} or {@link #filesMatching(String, org.gradle.api.Action)}.
         *
         * @return the strategy to use for files included by this copy spec.
         * @see DuplicatesStrategy
         */
        DuplicatesStrategy getDuplicatesStrategy();
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 16 22:05:15 UTC 2022
    - 12.2K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/ReproducibleArchivesIntegrationTest.groovy

            given:
            duplicateEntriesInArchive(taskName, taskType, fileExtension)
    
            buildFile << """
                ${taskName} {
                    duplicatesStrategy = DuplicatesStrategy.EXCLUDE
                }
            """
    
            when:
            succeeds taskName
    
            then:
            archive(file("build/test.${fileExtension}")).content('test.txt') == "from dir2"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 02 14:30:00 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  6. platforms/jvm/war/src/integTest/groovy/org/gradle/api/tasks/bundling/WarTaskIntegrationTest.groovy

                webInf {
                    from 'bad'
                }
                webXml = file('good.xml')
                destinationDirectory = buildDir
                archiveFileName = 'test.war'
                duplicatesStrategy = 'exclude'
            }
            '''
    
            when:
            run "war"
    
            then:
            def war = new JarTestFixture(file('build/test.war'))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 09 13:20:44 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  7. platforms/jvm/language-jvm/src/integTest/groovy/org/gradle/api/tasks/bundling/JarIntegrationTest.groovy

                archiveFileName = 'test.jar'
                destinationDirectory = projectDir
                from 'dir1'
                from 'dir2'
                duplicatesStrategy = 'exclude'
                filesMatching ('META-INF/services/**') {
                    duplicatesStrategy = 'include'
                }
            }
            '''
    
            when:
            run 'jar'
    
            then:
            confirmDuplicateServicesPreserved()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 12:15:28 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  8. subprojects/core-api/src/main/java/org/gradle/api/file/DuplicateFileCopyingException.java

     */
    
    package org.gradle.api.file;
    
    import org.gradle.api.GradleException;
    
    /**
     * Thrown when more than one file with the same relative path name is to be copied
     * and the {@link DuplicatesStrategy} is set to DuplicatesStrategy.FAIL
     */
    public class DuplicateFileCopyingException extends GradleException {
        public DuplicateFileCopyingException(String desc) {
            super(desc);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 11 20:41:54 UTC 2018
    - 1004 bytes
    - Viewed (0)
  9. subprojects/core/src/main/java/org/gradle/api/internal/file/copy/CopySpecWrapper.java

            delegate.setIncludeEmptyDirs(includeEmptyDirs);
        }
    
        @Override
        public DuplicatesStrategy getDuplicatesStrategy() {
            return delegate.getDuplicatesStrategy();
        }
    
        @Override
        public void setDuplicatesStrategy(DuplicatesStrategy strategy) {
            delegate.setDuplicatesStrategy(strategy);
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 01 10:41:40 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/api/tasks/AbstractCopyTask.java

                getInputs().property(specPropertyName + ".includeEmptyDirs", (Callable<Boolean>) spec::getIncludeEmptyDirs);
                getInputs().property(specPropertyName + ".duplicatesStrategy", (Callable<DuplicatesStrategy>) spec::getDuplicatesStrategy);
                getInputs().property(specPropertyName + ".dirPermissions", spec.getDirPermissions().map(FilePermissions::toUnixNumeric))
                    .optional(true);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 01 10:41:40 UTC 2024
    - 16.8K bytes
    - Viewed (0)
Back to top