Package org.apache.ivy.plugins.parser

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


                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

                    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

                                + "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

              if (data.getSettings().logNotConvertedExclusionRule() && dmd.isNamespaceUseful()) {
                Message.warn("the module descriptor "+ivyRef.getResource()+" has information which can't be converted into the system namespace. 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

                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

                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

                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

                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

                    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

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.