Examples of TargetDefinitionSyntaxException


Examples of org.eclipse.tycho.p2.target.facade.TargetDefinitionSyntaxException

    public static TargetDefinitionFile read(File file) throws IOException {
        FileInputStream input = new FileInputStream(file);
        try {
            return new TargetDefinitionFile(parser.parse(new XMLIOSource(input)));
        } catch (XMLParseException e) {
            throw new TargetDefinitionSyntaxException("Target definition is not well-formed XML: " + e.getMessage(), e);
        } finally {
            IOUtil.close(input);
        }
    }
View Full Code Here

Examples of org.eclipse.tycho.p2.target.facade.TargetDefinitionSyntaxException

            if ("slicer".equals(attributeValue)) {
                return IncludeMode.SLICER;
            } else if ("planner".equals(attributeValue) || attributeValue == null) {
                return IncludeMode.PLANNER;
            }
            throw new TargetDefinitionSyntaxException("Invalid value for attribute 'includeMode': " + attributeValue
                    + "");
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.