Package org.apache.ivy.core.deliver

Examples of org.apache.ivy.core.deliver.DeliverOptions


    }

    public void deliver(ModuleRevisionId mrid, String revision, File cache, String destIvyPattern,
            String status, Date pubdate, PublishingDependencyRevisionResolver pdrResolver,
            boolean validate, boolean resolveDynamicRevisions) throws IOException, ParseException {
        ivy.deliver(mrid, revision, destIvyPattern, new DeliverOptions(status, pubdate,
                pdrResolver, validate, resolveDynamicRevisions, null));
    }
View Full Code Here


                drResolver = new DeliverDRResolver();
            } else {
                drResolver = new DefaultPublishingDRResolver();
            }

            DeliverOptions options = new DeliverOptions(status, pubdate, drResolver,
                    doValidate(settings), replacedynamicrev, splitConfs(conf))
                    .setResolveId(resolveId).setReplaceForcedRevisions(isReplaceForcedRev())
                    .setGenerateRevConstraint(generateRevConstraint).setMerge(merge)
                    .setPubBranch(pubBranch);
            if (mrid == null) {
View Full Code Here

        ResolveReport report = ivy.resolve(
            ResolveTest.class.getResource("ivy-extra-attrib-forced-dependencies.xml"),
            getResolveOptions(ivy.getSettings(), new String[] {"*"}).setValidate(false));
        assertFalse(report.hasError());

        ivy.deliver("1.0.0", deliverDir.getAbsolutePath() + "/ivy-1.0.0.xml", new DeliverOptions()
                .setResolveId(report.getResolveId()).setValidate(false).setPubdate(new Date()));

        File deliveredIvyFile = new File(deliverDir, "ivy-1.0.0.xml");
        assertTrue(deliveredIvyFile.exists());
        ModuleDescriptor md = XmlModuleDescriptorParser.getInstance().parseDescriptor(
View Full Code Here

        ResolveReport report = ivy.resolve(
            ResolveTest.class.getResource("ivy-extra-attrib-forced-dependencies.xml"),
            getResolveOptions(ivy.getSettings(), new String[] {"*"}).setValidate(false));
        assertFalse(report.hasError());

        ivy.deliver("1.0.0", deliverDir.getAbsolutePath() + "/ivy-1.0.0.xml", new DeliverOptions()
                .setResolveId(report.getResolveId()).setValidate(false).setPubdate(new Date()));

        File deliveredIvyFile = new File(deliverDir, "ivy-1.0.0.xml");
        assertTrue(deliveredIvyFile.exists());
        ModuleDescriptor md = XmlModuleDescriptorParser.getInstance().parseDescriptor(
View Full Code Here

            new HashSet(Arrays.asList(new ModuleRevisionId[] {
                    ModuleRevisionId.newInstance("myorg", "modA", "1"),
                    ModuleRevisionId.newInstance("myorg", "modB", "1")})), report
                    .getConfigurationReport("default").getModuleRevisionIds());

        DeliverOptions dopts = new DeliverOptions();
        dopts.setReplaceForcedRevisions(replaceForced);
        dopts.setGenerateRevConstraint(true);
        dopts.setConfs(new String[] {"*"});
        dopts.setStatus("release");
        dopts.setPubdate(new Date());
        dopts.setResolveId("resolveid");
        String pubrev = "1";
        String deliveryPattern = "build/test/deliver/ivy-[revision].xml";

        ivy.deliver(pubrev, deliveryPattern, dopts);
    }
View Full Code Here

        assertEquals(
            new HashSet(
                    Arrays.asList(new ModuleRevisionId[] {modAExpectedRevId, modBExpectedRevId})),
            reportMrids);

        DeliverOptions dopts = new DeliverOptions();
        dopts.setGenerateRevConstraint(true);
        dopts.setConfs(new String[] {"*"});
        dopts.setStatus("release");
        dopts.setPubdate(new Date());
        dopts.setResolveId("resolveid");
        String pubrev = "1";
        String deliveryPattern = "build/test/deliver/assembly-[revision].xml";

        ivy.deliver(pubrev, deliveryPattern, dopts);

View Full Code Here

    }

    public void deliver(ModuleRevisionId mrid, String revision, File cache, String destIvyPattern,
            String status, Date pubdate, PublishingDependencyRevisionResolver pdrResolver,
            boolean validate, boolean resolveDynamicRevisions) throws IOException, ParseException {
        ivy.deliver(mrid, revision, destIvyPattern, new DeliverOptions(status, pubdate,
                pdrResolver, validate,
                resolveDynamicRevisions, null));
    }
View Full Code Here

                drResolver = new DeliverDRResolver();
            } else {
                drResolver = new DefaultPublishingDRResolver();
            }

            DeliverOptions options = new DeliverOptions(status, pubdate,
                drResolver, doValidate(settings), replacedynamicrev,
                    splitConfs(conf)).setResolveId(resolveId);
            if (mrid == null) {
                ivy.deliver(pubRevision, deliverpattern, options);
            } else {
View Full Code Here

                drResolver = new DeliverDRResolver();
            } else {
                drResolver = new DefaultPublishingDRResolver();
            }

            DeliverOptions options = new DeliverOptions(status, pubdate, CacheManager.getInstance(
                settings, cache), drResolver, doValidate(settings), replacedynamicrev,
                    splitConfs(conf)).setResolveId(resolveId);
            if (mrid == null) {
                ivy.deliver(pubRevision, deliverpattern, options);
            } else {
View Full Code Here

    }

    public void deliver(ModuleRevisionId mrid, String revision, File cache, String destIvyPattern,
            String status, Date pubdate, PublishingDependencyRevisionResolver pdrResolver,
            boolean validate, boolean resolveDynamicRevisions) throws IOException, ParseException {
        ivy.deliver(mrid, revision, destIvyPattern, new DeliverOptions(status, pubdate,
                CacheManager.getInstance(ivy.getSettings(), cache), pdrResolver, validate,
                resolveDynamicRevisions, null));
    }
View Full Code Here

TOP

Related Classes of org.apache.ivy.core.deliver.DeliverOptions

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.