Package org.apache.ivy.core.settings

Examples of org.apache.ivy.core.settings.IvySettings.loadDefault()


                IvySettings ivySettings = new IvySettings();
                if (javaProject != null) {
                    ivySettings.setBaseDir(javaProject.getProject().getLocation().toFile());
                }
                try {
                    ivySettings.loadDefault();
                } catch (ParseException e) {
                    IvyDEException ex = new IvyDEException(
                            "Parsing error of the default Ivy settings",
                            "The default Ivy settings file could not be parsed (" + this.toString()
                                    + ")", e);
View Full Code Here


        if (settingsPath == null || settingsPath.trim().length() == 0) {
            // no settings specified, so take the default one
            if (ivy == null) {
                IvySettings ivySettings = createIvySettings();
                try {
                    ivySettings.loadDefault();
                } catch (ParseException e) {
                    IvyDEException ex = new IvyDEException(
                            "Parsing error of the default Ivy settings",
                            "The default Ivy settings file could not be parsed: " + e.getMessage(),
                            e);
View Full Code Here

                    s.load(new URL(settingsFile));
                } else {
                    s.load(new File(settingsFile));
                }
            } else {
                s.loadDefault();
            }
        } catch (ParseException e) {
            throw new IvySettingsFileReadException(settingsFile, module.getName(), e);
        } catch (IOException e) {
            throw new IvySettingsFileReadException(settingsFile, module.getName(), e);
View Full Code Here

        if (settingsPath == null || settingsPath.trim().length() == 0) {
            // no settings specified, so take the default one
            if (ivy == null) {
                IvySettings ivySettings = createIvySettings();
                try {
                    ivySettings.loadDefault();
                } catch (ParseException e) {
                    IvyDEException ex = new IvyDEException(
                            "Parsing error of the default Ivy settings",
                            "The default Ivy settings file could not be parsed: "
                                + e.getMessage(), e);
View Full Code Here

                }
                if (ivyConf != null) {
                    ivySettings.load(new File(ivyConf.getIvyConfPath()));
                    LOGGER.log(Level.INFO,"Configured Ivy using custom settings " + ivyConf.getIvyConfPath());
                } else {
                    ivySettings.loadDefault();
                    LOGGER.log(Level.INFO,"Configured Ivy using default 2.1 settings");
                }
                return Ivy.newInstance(ivySettings);
            }
            catch (Exception e) {
View Full Code Here

                if (settingsLoc != null) {
                    ivySettings.load(settingsLoc);
                    if (verbose)
                        logger.println("Configured Ivy using custom settings " + settingsLoc.getAbsolutePath());
                } else {
                    ivySettings.loadDefault();
                    if (verbose)
                        logger.println("Configured Ivy using default 2.1 settings");
                }
                if (ivyBranch != null) {
                    ivySettings.setDefaultBranch(ivyBranch);
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.