- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 252 for getModels (0.28 sec)
-
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r25/GradleTaskGetGroupCrossVersionSpec.groovy
task test1(group:'task group 1') task test2(group:'task group 2') ''' when: def gradleProject = withConnection { ProjectConnection connection -> connection.getModel(GradleProject) } then: gradleProject != null gradleProject.tasks.findAll { it.name.startsWith('test') }.each { assert it.group == "task group ${it.name-'test'}" }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 2.9K bytes - Viewed (0) -
platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/consumer/connection/ParameterAwareBuildControllerAdapterTest.groovy
def "unpacks unsupported model exception"() { def failure = new RuntimeException() given: _ * delegate.getModel(null, _, null) >> { throw new InternalUnsupportedModelException().initCause(failure) } when: controller.getModel(String) then: UnknownModelException e = thrown() e.message == /No model of type 'String' is available in this build./
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Dec 19 08:15:25 UTC 2023 - 7.2K bytes - Viewed (0) -
platforms/ide/tooling-api/src/main/java/org/gradle/tooling/BuildController.java
* @throws UnknownModelException When the default project does not support the requested model. * @since 1.8 */ <T> T getModel(Class<T> modelType) throws UnknownModelException; /** * Fetches a snapshot of the model of the given type, if available. * * <p>See {@link #getModel(Class)} for more details.</p> * * @param modelType The model type. * @param <T> The model type.
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Dec 19 19:46:37 UTC 2023 - 9.7K bytes - Viewed (0) -
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/plugins/ide/tooling/r72/CompositeBuildCrossVersionSpec.groovy
class CompositeBuildCrossVersionSpec extends ToolingApiSpecification { def "includes buildSrc builds in model"() { buildsWithBuildSrc() given: def model = withConnection { it.getModel(GradleBuild) } expect: model.includedBuilds.size() == 1 def included = model.includedBuilds[0] included.buildIdentifier.rootDir == file("child")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 16 10:10:39 UTC 2024 - 8.7K bytes - Viewed (0) -
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r112/BuildInvocationsCrossVersionSpec.groovy
GradleProject model = withConnection { connection -> connection.getModel(GradleProject) } GradleTask taskT1 = model.tasks.find { it.name == 't1' } GradleTask taskBT2 = model.findByPath(':b').tasks.find { it.name == 't2' } BuildInvocations rootSelectors = withConnection { connection -> connection.getModel(BuildInvocations) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 9.8K bytes - Viewed (0) -
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/m8/BuildEnvironmentModelCrossVersionSpec.groovy
"project.description = java.lang.management.ManagementFactory.runtimeMXBean.inputArguments.join('##')" when: BuildEnvironment env = withConnection { it.getModel(BuildEnvironment.class) } GradleProject project = withConnection { it.getModel(GradleProject.class) } then: def inputArgsInBuild = project.description.split('##') as List env.java.jvmArguments.each { inputArgsInBuild.contains(it) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 2.7K bytes - Viewed (0) -
maven-core/src/test/java/org/apache/maven/project/ProjectSorterTest.java
pluginProject.getModel().setParent(createParent(parentProject)); projects.add(pluginProject); Plugin plugin = createPlugin(pluginProject); plugin.addDependency(createDependency(pluginLevelDepProject)); Build build = declaringProject.getModel().getBuild(); build.addPlugin(plugin); declaringProject.getModel().setBuild(build);
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Wed Sep 06 08:39:32 UTC 2023 - 12.4K bytes - Viewed (0) -
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r82/FetchProjectsCustomModelsAction.groovy
class FetchProjectsCustomModelsAction implements BuildAction<Void> { @Override Void execute(BuildController controller) { def projects = controller.getModel(GradleBuild).projects projects.forEach { project -> controller.getModel(project, CustomModel) } return null }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 1.1K bytes - Viewed (0) -
platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r112/PublicationsCrossVersionSpec.groovy
connection.getModel(ProjectPublications) } then: publications.publications.empty } def "project without any configured publications"() { buildFile << "apply plugin: 'java'" when: ProjectPublications publications = withConnection { connection -> connection.getModel(ProjectPublications) } then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 16 10:10:39 UTC 2024 - 3.5K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/toolchain/DefaultToolchain.java
} Properties thisProvides = this.getModel().getProvides(); Properties otherProvides = other.getModel().getProvides(); return Objects.equals(thisProvides, otherProvides); } @Override public int hashCode() { int hashCode = (type == null) ? 0 : type.hashCode(); if (this.getModel().getProvides() != null) {
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Fri Sep 22 09:07:17 UTC 2023 - 4.7K bytes - Viewed (0)