Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 293 for PROP (0.13 sec)

  1. platforms/ide/ide/src/test/groovy/org/gradle/plugins/ide/internal/generator/PropertiesPersistableConfigurationObjectTest.groovy

                propertyValue = properties['prop']
            }
    
            @Override protected void store(Properties properties) {
                properties['prop'] = propertyValue
            }
        }
    
        def loadsFromPropertiesFile() {
            def inputFile = tmpDir.file('input.properties')
            inputFile.text = 'prop=value'
    
            when:
            object.load(inputFile)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/multiproject/dependencies-outgoingArtifact/groovy/consumer/src/main/java/Application.java

    public class Application {
        public Properties readBuildInfo() throws IOException {
            Properties prop = new Properties();
            InputStream inputStream = null;
    
            try {
                inputStream = Application.class.getClassLoader().getResourceAsStream("build-info.properties");
                prop.load(inputStream);
            } finally {
                if (inputStream != null) {
                    try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 680 bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/multiproject/dependencies-outgoingArtifact/kotlin/buildSrc/src/main/java/BuildInfo.java

        @TaskAction
        public void create() throws IOException {
            Properties prop = new Properties();
            prop.setProperty("version", getVersion().get());
            try (OutputStream output = new FileOutputStream(getOutputFile().getAsFile().get())) {
                prop.store(output, null);
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 865 bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskReplacementIntegrationTest.groovy

                    it.prop = "value 3" 
                }
                tasks.replace("foo", CustomTask)
                tasks.withType(CustomTask).all { 
                    assert it.prop == "value 3" 
                    it.prop = "value 4" 
                }
    
                assert foo.prop == "value 4"
                assert taskProvider.get().prop == "value 4"
            '''
    
            expect:
            succeeds 'help'
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 04 22:26:51 UTC 2021
    - 6.8K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/DefaultInstantiationSchemeTest.groovy

            when:
            def value = scheme.withServices(services).deserializationInstantiator().newInstance(WithServices, Object)
    
            then:
            value.prop == "value"
        }
    
        static class Base {
            String prop
    
            Base() {
                prop = "default"
            }
        }
    
        static abstract class Impl extends Base {
            Impl() {
                throw new RuntimeException("should not be called")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/multiproject/dependencies-outgoingArtifact/groovy/buildSrc/src/main/java/BuildInfo.java

        @TaskAction
        public void create() throws IOException {
            Properties prop = new Properties();
            prop.setProperty("version", getVersion().get());
            try (OutputStream output = new FileOutputStream(getOutputFile().getAsFile().get())) {
                prop.store(output, null);
            }
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 895 bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/parser/PomReaderTest.groovy

        <properties>
            <groupId.prop>group-two</groupId.prop>
            <artifactId.prop>artifact-two</artifactId.prop>
            <version.prop>version-two</version.prop>
        </properties>
        <dependencies>
            <dependency>
                <groupId>\${groupId.prop}</groupId>
                <artifactId>\${artifactId.prop}</artifactId>
                <version>\${version.prop}</version>
            </dependency>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 15:53:23 UTC 2024
    - 39.1K bytes
    - Viewed (0)
  8. maven-core/src/test/resources-project-builder/plugin-interpolation-build/pom.xml

      <artifactId>test</artifactId>
      <version>1.0</version>
    
      <name>MNG-7750</name>
      <description>
        Test build plugin and execution interpolation.
      </description>
    
      <properties>
        <prop-outside>||${project.basedir}||</prop-outside>
      </properties>
    
      <build>
        <plugins>
          <plugin>
            <artifactId>plugin-all-profiles</artifactId>
            <executions>
              <execution>
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Apr 12 10:26:40 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/api/DynamicMethodLookupIntegrationTest.groovy

            given:
            buildFile """
    class ContactExtension {
        String prop
    }
    
    extensions.create('contacts', ContactExtension)
    ext.contacts = { args ->
        return args
    }
    
    contacts {
        assert delegate instanceof ContactExtension
        prop = "value"
    }
    assert extensions.contacts.prop == "value"
    
    assert contacts() == null
    assert contacts("a") == "a"
    """
    
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 17:01:37 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/TransformBackedProviderTest.groovy

            when:
            provider.isPresent()
    
            then:
            def ex = thrown(InvalidUserCodeException)
            ex.message == "Querying the mapped value of <prop> before <task> has completed is not supported"
            0 * progressEventEmitter._
        }
    
        def "fails when calling get() before producer task has completed"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 02 15:06:10 UTC 2024
    - 7.4K bytes
    - Viewed (0)
Back to top