Examples of peekIvy()


Examples of org.apache.ivy.core.IvyContext.peekIvy()

        this.moduleId = moduleId;
        IvyContext context = IvyContext.getContext();
        this.branch = (replaceNullBranchWithDefault && branch == null)
        // we test if there's already an Ivy instance loaded, to avoid loading a default one
        // just to get the default branch
        ? (context.peekIvy() == null ? null : context.getSettings().getDefaultBranch(moduleId))
                : branch;
        this.revision = revision == null ? Ivy.getWorkingRevision() : normalizeRevision(revision);
        setStandardAttribute(IvyPatternHelper.ORGANISATION_KEY, this.moduleId.getOrganisation());
        setStandardAttribute(IvyPatternHelper.MODULE_KEY, this.moduleId.getName());
        setStandardAttribute(IvyPatternHelper.BRANCH_KEY, this.branch);
View Full Code Here

Examples of org.apache.ivy.core.IvyContext.peekIvy()

        this.moduleId = moduleId;
        IvyContext context = IvyContext.getContext();
        this.branch = branch == null
            // we test if there's already an Ivy instance loaded, to avoid loading a default one
            // just to get the default branch
            ? (context.peekIvy() == null ? null : context.getSettings().getDefaultBranch(moduleId))
            : branch;
        this.revision = revision == null ? Ivy.getWorkingRevision() : revision;
        setStandardAttribute(IvyPatternHelper.ORGANISATION_KEY, this.moduleId.getOrganisation());
        setStandardAttribute(IvyPatternHelper.MODULE_KEY, this.moduleId.getName());
        setStandardAttribute(IvyPatternHelper.BRANCH_KEY, this.branch);
View Full Code Here

Examples of org.apache.ivy.core.IvyContext.peekIvy()

        this.moduleId = moduleId;
        IvyContext context = IvyContext.getContext();
        this.branch = (replaceNullBranchWithDefault && branch == null)
            // we test if there's already an Ivy instance loaded, to avoid loading a default one
            // just to get the default branch
            ? (context.peekIvy() == null ? null : context.getSettings().getDefaultBranch(moduleId))
            : branch;
        this.revision = revision == null ? Ivy.getWorkingRevision() : revision;
        setStandardAttribute(IvyPatternHelper.ORGANISATION_KEY, this.moduleId.getOrganisation());
        setStandardAttribute(IvyPatternHelper.MODULE_KEY, this.moduleId.getName());
        setStandardAttribute(IvyPatternHelper.BRANCH_KEY, this.branch);
View Full Code Here

Examples of org.apache.ivy.core.IvyContext.peekIvy()

        this.moduleId = moduleId;
        IvyContext context = IvyContext.getContext();
        this.branch = branch == null
            // we test if there's already an Ivy instance loaded, to avoid loading a default one
            // just to get the default branch
            ? (context.peekIvy() == null ? null : context.getSettings().getDefaultBranch(moduleId))
            : branch;
        this.revision = revision == null ? Ivy.getWorkingRevision() : revision;
        setStandardAttribute(IvyPatternHelper.ORGANISATION_KEY, this.moduleId.getOrganisation());
        setStandardAttribute(IvyPatternHelper.MODULE_KEY, this.moduleId.getName());
        setStandardAttribute(IvyPatternHelper.BRANCH_KEY, this.branch);
View Full Code Here

Examples of org.apache.ivy.core.IvyContext.peekIvy()

        this.moduleId = moduleId;
        IvyContext context = IvyContext.getContext();
        this.branch = (replaceNullBranchWithDefault && branch == null)
            // we test if there's already an Ivy instance loaded, to avoid loading a default one
            // just to get the default branch
            ? (context.peekIvy() == null ? null : context.getSettings().getDefaultBranch(moduleId))
            : branch;
        this.revision = revision == null ? Ivy.getWorkingRevision() : normalizeRevision(revision);
        setStandardAttribute(IvyPatternHelper.ORGANISATION_KEY, this.moduleId.getOrganisation());
        setStandardAttribute(IvyPatternHelper.MODULE_KEY, this.moduleId.getName());
        setStandardAttribute(IvyPatternHelper.BRANCH_KEY, this.branch);
View Full Code Here

Examples of org.apache.ivy.core.IvyContext.peekIvy()

import org.apache.ivy.core.IvyContext;

public class IvyContextualiser {
    public static IvyContext getIvyContext() {
        IvyContext context = IvyContext.getContext();
        if (context.peekIvy() == null) {
            throw new IllegalStateException("Ivy context not established");
        }
        return context;
    }
}
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.