hudson.maven.settings
Class SettingsProviderUtils

java.lang.Object
  extended by hudson.maven.settings.SettingsProviderUtils

public class SettingsProviderUtils
extends Object

Since:
1.426
Author:
Olivier Lamy

Constructor Summary
SettingsProviderUtils()
           
 
Method Summary
static File copyConfigContentToFile(org.jenkinsci.lib.configprovider.model.Config config)
           
static FilePath copyConfigContentToFilePath(org.jenkinsci.lib.configprovider.model.Config config, FilePath workspace)
           
static org.jenkinsci.lib.configprovider.model.Config findConfig(String settingsConfigId, Class<?>... types)
          utility method to retrieve Config of type (MavenSettingsProvider etc..)
static boolean isGlobalMavenSettingsProvider(org.jenkinsci.lib.configprovider.ConfigProvider configProvider)
          tells whether a config file provider serves global settings configs
static boolean isMavenSettingsProvider(org.jenkinsci.lib.configprovider.ConfigProvider configProvider)
          tells whether a config file provider serves settings configs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SettingsProviderUtils

public SettingsProviderUtils()
Method Detail

findConfig

public static org.jenkinsci.lib.configprovider.model.Config findConfig(String settingsConfigId,
                                                                       Class<?>... types)
utility method to retrieve Config of type (MavenSettingsProvider etc..)

Parameters:
settingsConfigId -
type -
Returns:
Config

copyConfigContentToFilePath

public static FilePath copyConfigContentToFilePath(org.jenkinsci.lib.configprovider.model.Config config,
                                                   FilePath workspace)
                                            throws IOException,
                                                   InterruptedException
Parameters:
config -
workspace -
Throws:
IOException
InterruptedException

copyConfigContentToFile

public static File copyConfigContentToFile(org.jenkinsci.lib.configprovider.model.Config config)
                                    throws IOException
Returns:
a temp file which must be deleted after use
Throws:
IOException

isGlobalMavenSettingsProvider

public static boolean isGlobalMavenSettingsProvider(org.jenkinsci.lib.configprovider.ConfigProvider configProvider)
tells whether a config file provider serves global settings configs

Parameters:
configProvider - the provider to check
Returns:
true if it implements one of the supported interfaces

isMavenSettingsProvider

public static boolean isMavenSettingsProvider(org.jenkinsci.lib.configprovider.ConfigProvider configProvider)
tells whether a config file provider serves settings configs

Parameters:
configProvider - the provider to check
Returns:
true if it implements one of the supported interfaces


Copyright © 2004-2012. All Rights Reserved.