Examples of toIvyFile()


Examples of org.apache.ivy.core.module.descriptor.ModuleDescriptor.toIvyFile()

        }
        assert configurationsToPublish.size() > 0;
        Set<Configuration> allConfigurations = configurationsToPublish.iterator().next().getAll();
        ModuleDescriptor moduleDescriptor = fileModuleDescriptorConverter.convert(allConfigurations, metaDataProvider.getModule(), ivySettings);
        try {
            moduleDescriptor.toIvyFile(descriptorDestination);
        } catch (ParseException e) {
            throw new RuntimeException(e);
        } catch (IOException e) {
            throw new UncheckedIOException(e);
        }
View Full Code Here

Examples of org.apache.ivy.core.module.descriptor.ModuleDescriptor.toIvyFile()

            ModuleDescriptor parent = parents[i].getParentMd();
            ModuleRevisionId pRevId = ModuleRevisionId.newInstance(baseMrevId,
                baseMrevId.getRevision() + "-parent." + paths.size());
            File parentFile = getResolvedIvyFileInCache(pRevId);
            parent.toIvyFile(parentFile);

            paths.setProperty(mdFile.getName() + "|" + parents[i].getLocation(),
                parentFile.getAbsolutePath());
            saveLocalParents(baseMrevId, parent, parentFile, paths);
        }
View Full Code Here

Examples of org.apache.ivy.core.module.descriptor.ModuleDescriptor.toIvyFile()

            ModuleDescriptor parent = parents[i].getParentMd();
            ModuleRevisionId pRevId = ModuleRevisionId.newInstance(baseMrevId, baseMrevId.getRevision() + "-parent."
                    + paths.size());
            File parentFile = getResolvedIvyFileInCache(pRevId);
            parent.toIvyFile(parentFile);

            paths.setProperty(mdFile.getName() + "|" + parents[i].getLocation(), parentFile.getAbsolutePath());
            saveLocalParents(baseMrevId, parent, parentFile, paths);
        }
    }
View Full Code Here

Examples of org.apache.ivy.core.module.descriptor.ModuleDescriptor.toIvyFile()

                    .getResolvedModuleRevisionId());
            //Generate the parent cache file if necessary
            if (parent.getResource() != null
                    && !parent.getResource().getName().equals(ivyFileInCache.toURI().toString())) {
                try {
                    parent.toIvyFile(ivyFileInCache);
                } catch (ParseException e) {
                    throw new ParseException("Unable to create cache file for "
                            + parentOrganisation + "#" + parentModule + ";" + parentRevision
                            + " Reason:" + e.getLocalizedMessage(), 0);
                } catch (IOException e) {
View Full Code Here

Examples of org.apache.ivy.core.module.descriptor.ModuleDescriptor.toIvyFile()

            }

            ModuleDescriptor parent = parents[i].getParentMd();
            ModuleRevisionId pRevId = ModuleRevisionId.newInstance(baseMrevId, baseMrevId.getRevision() + "-parent." + paths.size());
            File parentFile = getResolvedIvyFileInCache(pRevId);
            parent.toIvyFile(parentFile);
           
            paths.setProperty(mdFile.getName() + "|" + parents[i].getLocation(), parentFile.getAbsolutePath());
            saveLocalParents(baseMrevId, parent, parentFile, paths);
        }
    }
View Full Code Here

Examples of org.apache.ivy.core.module.descriptor.ModuleDescriptor.toIvyFile()

                    .getResolvedModuleRevisionId());
            //Generate the parent cache file if necessary
            if (parent.getResource() != null
                    && !parent.getResource().getName().equals(ivyFileInCache.toURI().toString())) {
                try {
                    parent.toIvyFile(ivyFileInCache);
                } catch (ParseException e) {
                    throw new ParseException("Unable to create cache file for "
                            + parentOrganisation + "#" + parentModule + ";" + parentRevision
                            + " Reason:" + e.getLocalizedMessage(), 0);
                } catch (IOException e) {
View Full Code Here

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

                    if (originalMdResource == null) {
                        // a basic ivy file is written containing default data
                        XmlModuleDescriptorWriter.write(md, dest);
                    } else {
                        // copy and update ivy file from source to cache
                        parser.toIvyFile(new FileInputStream(src),
                            originalMdResource.getResource(), dest, md);
                        long repLastModified = originalMdResource.getLastModified();
                        if (repLastModified > 0) {
                            dest.setLastModified(repLastModified);
                        }
View Full Code Here

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

                if (originalMdResource == null) {
                    // a basic ivy file is written containing default data
                    XmlModuleDescriptorWriter.write(md, dest);
                } else {
                    // copy and update ivy file from source to cache
                    parser.toIvyFile(
                        new FileInputStream(src),
                        originalMdResource.getResource(), dest,
                        md);
                    long repLastModified = originalMdResource.getLastModified();
                    if (repLastModified > 0) {
View Full Code Here

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

                    if (originalMdResource == null) {
                        // a basic ivy file is written containing default data
                        XmlModuleDescriptorWriter.write(md, dest);
                    } else {
                        // copy and update ivy file from source to cache
                        parser.toIvyFile(
                            new FileInputStream(src),
                            originalMdResource.getResource(), dest,
                            md);
                        long repLastModified = originalMdResource.getLastModified();
                        if (repLastModified > 0) {
View Full Code Here

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

                                + "It will require the availability of the namespace '"
                                + getNamespace().getName() + "' to be fully usable.");
                        }
                    }
                    // copy and update ivy file from source to cache
                    parser.toIvyFile(cachedIvyURL.openStream(), ivyRef.getResource(), ivyFile,
                        systemMd);
                    long repLastModified = ivyRef.getLastModified();
                    if (repLastModified > 0) {
                        ivyFile.setLastModified(repLastModified);
                    }
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.