Package org.gradle.internal.typeconversion

Examples of org.gradle.internal.typeconversion.UnsupportedNotationException


     */
    protected ModuleIdentifier parseType(String notation) {
        assert notation != null;
        String[] split = notation.split(":");
        if (split.length != 2) {
            throw new UnsupportedNotationException(notation);
        }
        String group = split[0].trim();
        String name = split[1].trim();
        if (group.length() == 0 || name.length() == 0) {
            throw new UnsupportedNotationException(notation);
        }

        for (char c : INVALID_SPEC_CHARS) {
            if (group.indexOf(c) != -1 || name.indexOf(c) != -1) {
                throw new UnsupportedNotationException(notation);
            }
        }

        return newId(group, name);
    }
View Full Code Here


                formats.add("A Buildable instance");
                formats.add("A TaskDependency instance");
                formats.add("A Closure instance that returns any of the above types");
                formats.add("A Callable instance that returns any of the above types");
                formats.add("An Iterable, Collection, Map or array instance that contains any of the above types");
                throw new UnsupportedNotationException(dependency, String.format("Cannot convert %s to a task.", dependency), null, formats);
            }
        }
    }
View Full Code Here

                return parseNotation(called);
            } catch (Exception e) {
                throw UncheckedException.throwAsUncheckedException(e);
            }
        }
        throw new UnsupportedNotationException(notation);
    }
View Full Code Here

TOP

Related Classes of org.gradle.internal.typeconversion.UnsupportedNotationException

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.