Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for canApplyToCurrentDirectory (0.24 sec)

  1. platforms/software/build-init/src/main/java/org/gradle/buildinit/plugins/internal/BuildConverter.java

     */
    public interface BuildConverter extends BuildInitializer {
        /**
         * Can this converter be applied to the contents of the current directory?
         */
        boolean canApplyToCurrentDirectory(Directory current);
    
        String getSourceBuildDescription();
    
        void configureClasspath(ProjectInternal.DetachedResolver detachedResolver, ObjectFactory objects, JvmPluginServices jvmPluginServices);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 13:47:19 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  2. platforms/software/build-init/src/main/java/org/gradle/buildinit/plugins/internal/maven/PomProjectInitDescriptor.java

            }
        }
    
        @Override
        public boolean supportsProjectName() {
            return false;
        }
    
        @Override
        public boolean canApplyToCurrentDirectory(Directory current) {
            return current.file("pom.xml").getAsFile().isFile();
        }
    
        @Override
        public Set<BuildInitDsl> getDsls() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 23 19:14:24 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  3. platforms/software/build-init/src/main/java/org/gradle/buildinit/tasks/InitBuild.java

            if (!isNullOrEmpty(type)) {
                return projectLayoutRegistry.get(type);
            }
    
            BuildConverter converter = projectLayoutRegistry.getBuildConverter();
            if (converter.canApplyToCurrentDirectory(projectDir)) {
                if (userQuestions.askBooleanQuestion("Found a " + converter.getSourceBuildDescription() + " build. Generate a Gradle build from this?", true)) {
                    return converter;
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 10 12:58:10 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  4. platforms/software/build-init/src/test/groovy/org/gradle/buildinit/tasks/InitBuildSpec.groovy

            init.allowFileOverwrite.convention(false)
        }
    
        def "creates project with all defaults"() {
            given:
            projectLayoutRegistry.buildConverter >> buildConverter
            buildConverter.canApplyToCurrentDirectory() >> false
            projectLayoutRegistry.componentTypes >> ComponentType.values().toList()
            projectLayoutRegistry.defaultComponentType >> ComponentType.values().first()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 08 20:10:43 UTC 2024
    - 12.8K bytes
    - Viewed (0)
Back to top