Examples of parseDescriptor()


Examples of org.apache.ivy.plugins.parser.ModuleDescriptorParser.parseDescriptor()

            Message.warn("problem while downloading ivy file: " + ivyRef.getResource() + " to "
                    + ivyTempFile + ": " + ex.getMessage());
            return null;
        }
        try {
            ModuleDescriptor md = parser.parseDescriptor(data.getSettings(), cachedIvyURL, ivyRef
                    .getResource(), doValidate(data));
            Message.debug("\t" + getName() + ": parsed downloaded md file for " + mrid + " parsed="
                    + md.getModuleRevisionId());

            // check if we should delete old artifacts
View Full Code Here

Examples of org.apache.ivy.plugins.parser.ModuleDescriptorParser.parseDescriptor()

                return null;
            }
           
            FileResource res = new FileResource(null, file);
            ModuleDescriptorParser parser = ModuleDescriptorParserRegistry.getInstance().getParser(res);
            return parser.parseDescriptor(getSettings(), file.toURL(), res, isValidate());
        }

        /**
         * Describe how to parse a {@link ModuleDescriptor} by asking repositories
         * @param parentMrid a given {@link ModuleRevisionId} to find
View Full Code Here

Examples of org.apache.ivy.plugins.parser.ModuleDescriptorParser.parseDescriptor()

    public ResolveReport resolve(URL ivySource, ResolveOptions options) throws ParseException,
            IOException {
        URLResource res = new URLResource(ivySource);
        ModuleDescriptorParser parser = ModuleDescriptorParserRegistry.getInstance().getParser(res);
        Message.verbose("using " + parser + " to parse " + ivySource);
        ModuleDescriptor md = parser.parseDescriptor(settings, ivySource, options.isValidate());
        String revision = options.getRevision();
        if (revision == null && md.getResolvedModuleRevisionId().getRevision() == null) {
            revision = Ivy.getWorkingRevision();
        }
        if (revision != null) {
View Full Code Here

Examples of org.apache.ivy.plugins.parser.ModuleDescriptorParser.parseDescriptor()

    public ResolveReport resolve(URL ivySource, ResolveOptions options) throws ParseException,
            IOException {
        URLResource res = new URLResource(ivySource);
        ModuleDescriptorParser parser = ModuleDescriptorParserRegistry.getInstance().getParser(res);
        Message.verbose("using " + parser + " to parse " + ivySource);
        ModuleDescriptor md = parser.parseDescriptor(settings, ivySource, options.isValidate());
        String revision = options.getRevision();
        if (revision == null && md.getResolvedModuleRevisionId().getRevision() == null) {
            revision = Ivy.getWorkingRevision();
        }
        if (revision != null) {
View Full Code Here

Examples of org.apache.ivy.plugins.parser.ModuleDescriptorParser.parseDescriptor()

                URL ivySource = ivyFile.toURI().toURL();
                URLResource res = new URLResource(ivySource);
                ModuleDescriptorParser parser = ModuleDescriptorParserRegistry.getInstance()
                        .getParser(res);
                Message.debug("using " + parser + " to parse " + ivyFile);
                ModuleDescriptor md = parser.parseDescriptor(settings, ivySource, false);
                confs = md.getConfigurationsNames();
                options.setConfs(confs);
            } catch (IOException e) {
                throw e;
            } catch (Exception e) {
View Full Code Here

Examples of org.apache.ivy.plugins.parser.ModuleDescriptorParser.parseDescriptor()

            Message.verbose("no explicit confs given for retrieve, using ivy file: "+ivyFile);
            URL ivySource = ivyFile.toURL();
            URLResource res = new URLResource(ivySource);
            ModuleDescriptorParser parser = ModuleDescriptorParserRegistry.getInstance().getParser(res);
            Message.debug("using "+parser+" to parse "+ivyFile);
            ModuleDescriptor md = parser.parseDescriptor(_settings, ivySource, false);
            confs = md.getConfigurationsNames();
            options.setConfs(confs);
          } catch (IOException e) {
            throw e;
          } catch (Exception e) {
View Full Code Here

Examples of org.apache.ivy.plugins.parser.ModuleDescriptorParser.parseDescriptor()

        } catch (IOException ex) {
            Message.warn("problem while downloading ivy file: "+ivyRef.getResource()+" to "+ivyTempFile+": "+ex.getMessage());
            return null;
        }
        try {
            ModuleDescriptor md = parser.parseDescriptor(data.getSettings(), cachedIvyURL, ivyRef.getResource(), doValidate(data));
            Message.debug("\t"+getName()+": parsed downloaded md file for "+mrid+" parsed="+md.getModuleRevisionId());
           
           
            // check if we should delete old artifacts
            boolean deleteOldArtifacts = false;
View Full Code Here

Examples of org.apache.ivy.plugins.parser.ModuleDescriptorParser.parseDescriptor()

     */
    public ResolveReport resolve(URL ivySource, ResolveOptions options) throws ParseException, IOException {
        URLResource res = new URLResource(ivySource);
        ModuleDescriptorParser parser = ModuleDescriptorParserRegistry.getInstance().getParser(res);
        Message.verbose("using "+parser+" to parse "+ivySource);
        ModuleDescriptor md = parser.parseDescriptor(_settings, ivySource, options.isValidate());
        String revision = options.getRevision();
        if (revision == null && md.getResolvedModuleRevisionId().getRevision() == null) {
            revision = Ivy.getWorkingRevision();
        }
        if (revision != null) {
View Full Code Here

Examples of org.apache.ivy.plugins.parser.ModuleDescriptorParser.parseDescriptor()

    public ResolveReport resolve(URL ivySource, ResolveOptions options) throws ParseException,
            IOException {
        URLResource res = new URLResource(ivySource);
        ModuleDescriptorParser parser = ModuleDescriptorParserRegistry.getInstance().getParser(res);
        Message.verbose("using " + parser + " to parse " + ivySource);
        ModuleDescriptor md = parser.parseDescriptor(settings, ivySource, options.isValidate());
        String revision = options.getRevision();
        if (revision == null && md.getResolvedModuleRevisionId().getRevision() == null) {
            revision = Ivy.getWorkingRevision();
        }
        if (revision != null) {
View Full Code Here

Examples of org.apache.ivy.plugins.parser.ModuleDescriptorParser.parseDescriptor()

                            temp.deleteOnExit();
                            repository.get(res.getName(), temp);
                            ModuleDescriptorParser parser =
                                ModuleDescriptorParserRegistry.getInstance().getParser(res);
                            ModuleDescriptor md =
                                parser.parseDescriptor(
                                    getSettings(), temp.toURI().toURL(), res, false);
                            revision = md.getRevision();
                            if ((revision == null) || (revision.length() == 0)) {
                                revision = "working@" + name;
                            }
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.