Package org.netbeans.gradle.project.validate

Examples of org.netbeans.gradle.project.validate.Problem


                    return Problem.severe(NewProjectStrings.getIllegalIdentifier());
                }

                String[] parts = inputType.split(Pattern.quote("."));
                for (String part: parts) {
                    Problem problem = varNameValidator.validateInput(part);
                    if (problem != null) {
                        assert problem.getLevel() == Problem.Level.SEVERE;
                        return problem;
                    }
                }
                if (parts.length == 1) {
                    return Problem.warning(NewProjectStrings.getShouldNotUseDefaultPackage());
View Full Code Here


                    @Override
                    public Problem validateInput(String inputType) {
                        File rootProject = new File(inputType);

                        Problem problemRootBuild = checkFile(rootProject, GradleProjectConstants.BUILD_FILE_NAME);
                        if (problemRootBuild != null) {
                            return problemRootBuild;
                        }

                        Problem problemRootSettings = checkFile(rootProject, GradleProjectConstants.SETTINGS_FILE_NAME);
                        if (problemRootSettings != null) {
                            return problemRootSettings;
                        }

                        Problem problemOldFormat = checkFile(rootProject, "parent.gradle");
                        Problem problemNewFromat = checkFile(rootProject, "common.gradle");

                        if (problemNewFromat != null && problemOldFormat != null) {
                            return problemNewFromat;
                        }
View Full Code Here

TOP

Related Classes of org.netbeans.gradle.project.validate.Problem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.