Package org.apache.ivy.ant

Examples of org.apache.ivy.ant.IvyDependency


            return pluginDescriptor;
        }

        public void pluginDependencyStarted(Attributes attributes) {
            easyAntState = EasyAntState.PLUGIN_DEPENDENCY;
            IvyDependency ivyDependency = new IvyDependency();
            ivyDependency.setOrg(getSettings().substitute(attributes.getValue("org")));
            ivyDependency.setForce(Boolean.valueOf(getSettings().substitute(attributes.getValue("force")))
                    .booleanValue());
            ivyDependency.setChanging(Boolean.valueOf(getSettings().substitute(attributes.getValue("changing")))
                    .booleanValue());
            String transitiveValue = getSettings().substitute(attributes.getValue("transitive"));
            boolean transitive = (transitiveValue == null) ? true : Boolean.valueOf(attributes.getValue("transitive"))
                    .booleanValue();
            ivyDependency.setTransitive(transitive);

            ivyDependency.setName(getSettings().substitute(attributes.getValue("name")));
            ivyDependency.setBranch(getSettings().substitute(attributes.getValue("branch")));

            ivyDependency.setRev(getSettings().substitute(attributes.getValue("rev")));
            currentPluginDescriptor.addDependency(ivyDependency);
            currentPluginDependency = ivyDependency;
        }
View Full Code Here


    public void setMrid(String mrid) {
        this.mrid = mrid;
    }

    public IvyDependency createDependency() {
        IvyDependency dep = new IvyDependency();
        dependencies.add(dep);
        return dep;
    }
View Full Code Here

TOP

Related Classes of org.apache.ivy.ant.IvyDependency

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.