Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for getObjectFactory (0.39 sec)

  1. subprojects/core/src/main/java/org/gradle/api/internal/initialization/transform/services/CacheInstrumentationDataBuildService.java

        private final Map<Long, ResolutionData> resolutionData = new ConcurrentHashMap<>();
        private final Lazy<InjectedInstrumentationServices> internalServices = Lazy.locking().of(() -> getObjectFactory().newInstance(InjectedInstrumentationServices.class));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 15:08:33 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  2. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/TestInputAnnotationFailuresIntegrationTest.groovy

                    id 'java'
                }
    
                ${mavenCentralRepository()}
    
                abstract class MyTask extends DefaultTask {
                    @Inject
                    public abstract ObjectFactory getObjectFactory()
    
                    @Input
                    $elementInitialization
    
                    @TaskAction
                    void action() {
                        logger.warn("Input file: {}", $elementRead)
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  3. platforms/jvm/ear/src/main/java/org/gradle/plugins/ear/Ear.java

        private CopySpec lib;
        private final DirectoryProperty appDir;
    
        public Ear() {
            getArchiveExtension().set(EAR_EXTENSION);
            setMetadataCharset("UTF-8");
            generateDeploymentDescriptor = getObjectFactory().property(Boolean.class);
            generateDeploymentDescriptor.convention(true);
            lib = getRootSpec().addChildBeforeSpec(getMainSpec()).into(
                callable(() -> GUtil.elvis(getLibDirName(), DEFAULT_LIB_DIR_NAME))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  4. platforms/jvm/scala/src/main/java/org/gradle/language/scala/tasks/AbstractScalaCompile.java

            // To avoid code duplication, the initialization logic is extracted to an instance initialization block.
            ObjectFactory objectFactory = getObjectFactory();
            this.analysisMappingFile = objectFactory.fileProperty();
            this.analysisFiles = getProject().files();
            this.compileOptions = objectFactory.newInstance(CompileOptions.class);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  5. platforms/jvm/plugins-application/src/main/java/org/gradle/jvm/application/tasks/CreateStartScripts.java

        public CreateStartScripts() {
            this.mainModule = getObjectFactory().property(String.class);
            this.mainClass = getObjectFactory().property(String.class);
            this.modularity = getObjectFactory().newInstance(DefaultModularitySpec.class);
        }
    
        @Inject
        protected ObjectFactory getObjectFactory() {
            throw new UnsupportedOperationException();
        }
    
        @Inject
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 28 23:38:57 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  6. platforms/jvm/language-groovy/src/main/java/org/gradle/api/tasks/compile/GroovyCompileOptions.java

        private boolean parameters;
    
        private final SetProperty<String> disabledGlobalASTTransformations = getObjectFactory().setProperty(String.class);
    
        @Inject
        protected ObjectFactory getObjectFactory() {
            throw new UnsupportedOperationException();
        }
    
        /**
         * Tells whether the compilation task should fail if compile errors occurred. Defaults to {@code true}.
         */
        @Input
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 12.4K bytes
    - Viewed (0)
  7. platforms/jvm/code-quality/src/main/groovy/org/gradle/api/plugins/quality/Checkstyle.java

        private final Property<Boolean> enableExternalDtdLoad;
    
        public Checkstyle() {
            super();
            this.configDirectory = getObjectFactory().directoryProperty();
            this.reports = getObjectFactory().newInstance(CheckstyleReportsImpl.class, this);
            this.enableExternalDtdLoad = getObjectFactory().property(Boolean.class).convention(false);
        }
    
        /**
         * The Checkstyle configuration file to use.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jul 19 14:14:12 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  8. platforms/jvm/plugins-jvm-test-suite/src/main/java/org/gradle/api/plugins/jvm/internal/DefaultJvmTestSuite.java

            this.sourceSet = sourceSets.create(getName());
            this.taskDependencyFactory = taskDependencyFactory;
            this.toolchainFactory = new ToolchainFactory(getObjectFactory(), getParentServices(), getInstantiatorFactory());
    
            this.targets = getObjectFactory().polymorphicDomainObjectContainer(JvmTestSuiteTarget.class);
            this.targets.registerBinding(JvmTestSuiteTarget.class, DefaultJvmTestSuiteTarget.class);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 09 22:19:12 UTC 2024
    - 14K bytes
    - Viewed (0)
  9. platforms/jvm/language-java/src/main/java/org/gradle/api/tasks/JavaExec.java

        private final Property<JavaLauncher> javaLauncher;
        private final ListProperty<String> jvmArguments;
    
        public JavaExec() {
            ObjectFactory objectFactory = getObjectFactory();
            mainModule = objectFactory.property(String.class);
            mainClass = objectFactory.property(String.class);
            modularity = objectFactory.newInstance(DefaultModularitySpec.class);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 19.4K bytes
    - Viewed (0)
  10. platforms/core-configuration/declarative-dsl-tooling-builders/src/crossVersionTest/groovy/org/gradle/declarative/dsl/tooling/builders/r89/DeclarativeDslToolingModelsCrossVersionTest.groovy

                import javax.inject.Inject;
    
                abstract public class SoftwareTypeImplPlugin implements Plugin<Project> {
                    @Inject
                    abstract protected ObjectFactory getObjectFactory();
    
                    @SoftwareType(name="testSoftwareType", modelPublicType=TestSoftwareTypeExtension.class)
                    abstract public TestSoftwareTypeExtension getTestSoftwareTypeExtension();
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 11:32:11 UTC 2024
    - 14.4K bytes
    - Viewed (0)
Back to top