Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for realizeNow (0.33 sec)

  1. platforms/native/language-native/src/test/groovy/org/gradle/language/internal/DefaultBinaryCollectionTest.groovy

            when:
            container.realizeNow()
    
            then:
            def e = thrown(IllegalStateException)
            e.message == 'Cannot query the elements of this container as the elements have not been created yet.'
        }
    
        def "cannot add elements after collection is realized"() {
            given:
            container.add(Stub(SwiftBinary))
            container.realizeNow()
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 18.4K bytes
    - Viewed (0)
  2. platforms/native/language-native/src/test/groovy/org/gradle/language/swift/internal/DefaultSwiftLibraryTest.groovy

            binary.toolChain == toolChain
            binary.platformToolProvider == platformToolProvider
    
            library.binaries.realizeNow()
            library.binaries.get() == [binary] as Set
        }
    
        def "throws exception when development binary is not available"() {
            given:
            library.binaries.realizeNow()
    
            when:
            library.developmentBinary.get()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  3. platforms/native/language-native/src/test/groovy/org/gradle/language/swift/internal/DefaultSwiftApplicationTest.groovy

            binary.toolChain == toolChain
            binary.platformToolProvider == platformToolProvider
    
            app.binaries.realizeNow()
            app.binaries.get() == [binary] as Set
        }
    
        def "throws exception when development binary is not available"() {
            given:
            app.binaries.realizeNow()
    
            when:
            app.developmentBinary.get()
    
            then:
            def ex = thrown(IllegalStateException)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  4. platforms/native/language-native/src/test/groovy/org/gradle/language/cpp/internal/DefaultCppLibraryTest.groovy

            !binary.optimized
            binary.targetPlatform == targetPlatform
            binary.toolChain == toolChain
            binary.platformToolProvider == platformToolProvider
    
            library.binaries.realizeNow()
            library.binaries.get() == [binary] as Set
        }
    
        def "can add static library"() {
            def targetPlatform = Stub(CppPlatform)
            def toolChain = Stub(NativeToolChainInternal)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  5. platforms/native/language-native/src/test/groovy/org/gradle/language/plugins/NativeBasePluginTest.groovy

            when:
            project.components.add(component)
    
            then:
            project.components.size() == 1
    
            when:
            binaries.add(b1)
            binaries.add(b2)
            binaries.realizeNow()
    
            then:
            project.components.size() == 3
            project.components.b1 == b1
            project.components.b2 == b2
        }
    
        def "assemble task does nothing when no main component"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 20.9K bytes
    - Viewed (0)
  6. platforms/native/language-native/src/main/java/org/gradle/language/swift/plugins/SwiftApplicationPlugin.java

                            }
                        });
    
                // Configure the binaries
                application.getBinaries().realizeNow();
            });
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  7. platforms/native/language-native/src/main/java/org/gradle/language/cpp/plugins/CppApplicationPlugin.java

                                application.getMainPublication().addVariant(variantIdentity);
                            }
                        });
    
                // Configure the binaries
                application.getBinaries().realizeNow();
            });
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  8. platforms/native/language-native/src/main/java/org/gradle/language/internal/DefaultBinaryCollection.java

            elements.add(element);
        }
    
        /**
         * Realizes the contents of this collection, running configuration actions and firing notifications. No further elements can be added.
         */
        public void realizeNow() {
            if (state != State.Collecting) {
                throw new IllegalStateException("Cannot realize this collection as it has already been realized.");
            }
            state = State.Realizing;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  9. platforms/native/language-native/src/main/java/org/gradle/language/cpp/plugins/CppLibraryPlugin.java

                });
    
                library.getBinaries().realizeNow();
            });
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 30 15:38:28 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  10. platforms/native/language-native/src/main/java/org/gradle/language/swift/plugins/SwiftLibraryPlugin.java

                    apiElements.getOutgoing().artifact(staticLibrary.getModuleFile());
                });
    
                library.getBinaries().realizeNow();
            });
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 10.8K bytes
    - Viewed (0)
Back to top