Class IdeaSettings
- java.lang.Object
-
- jetbrains.buildServer.ideaSettings.IdeaSettings
-
- All Implemented Interfaces:
XmlExternalizable
public class IdeaSettings extends Object implements XmlExternalizable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IdeaSettings.ProjectType
-
Constructor Summary
Constructors Constructor Description IdeaSettings()
IdeaSettings(ContentProvider contentProvider)
-
Method Summary
-
-
-
Field Detail
-
JAVA_SDK
@NonNls public static final String JAVA_SDK
- See Also:
- Constant Field Values
-
ANDROID_SDK
@NonNls public static final String ANDROID_SDK
- See Also:
- Constant Field Values
-
IDEA_JDK
@NonNls public static final String IDEA_JDK
- See Also:
- Constant Field Values
-
JDK
@NonNls public static final String JDK
- See Also:
- Constant Field Values
-
NAME
@NonNls public static final String NAME
- See Also:
- Constant Field Values
-
TYPE
@NonNls public static final String TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
IdeaSettings
public IdeaSettings()
-
IdeaSettings
public IdeaSettings(@NotNull ContentProvider contentProvider)
-
-
Method Detail
-
setIpr
public IdeaSettings setIpr(@Nullable String pathToIpr)
-
getIpr
@NotNull public String getIpr()
-
getProjectType
public IdeaSettings.ProjectType getProjectType()
-
getProjectType
@NotNull public static IdeaSettings.ProjectType getProjectType(@Nullable String path)
-
getProjectTypeSimple
@NotNull public static IdeaSettings.ProjectType getProjectTypeSimple(String path)
-
isShouldLoadIml
public boolean isShouldLoadIml()
-
setShouldLoadIml
public void setShouldLoadIml(boolean shouldLoadIml)
-
isShouldLoadArtifacts
public boolean isShouldLoadArtifacts()
-
setShouldLoadArtifacts
public void setShouldLoadArtifacts(boolean shouldLoadArtifacts)
-
isShouldLoadRunConfigurations
public boolean isShouldLoadRunConfigurations()
-
setShouldLoadRunConfigurations
public void setShouldLoadRunConfigurations(boolean shouldLoadRunConfigurations)
-
update
public void update()
-
update
public void update(ActivityProgress progressIndicator)
-
getPathVariables
public Map<String,PathVariableInfo> getPathVariables()
-
getSdks
@NotNull public Collection<Sdk> getSdks()
-
getGlobalLibraries
@NotNull public Collection<Library> getGlobalLibraries()
-
getIdeaJdks
@NotNull public Collection<IdeaJdk> getIdeaJdks()
-
setPathVariablesBaseDir
public void setPathVariablesBaseDir(File pathVariablesBaseDir)
-
writeTo
public void writeTo(org.jdom.Element parentElement)
Description copied from interface:XmlExternalizable
Write data to the JDOM element- Specified by:
writeTo
in interfaceXmlExternalizable
- Parameters:
parentElement
- - parent element to write data to
-
getPathResolver
public PathResolver getPathResolver()
-
toXml
public String toXml()
-
readFrom
public void readFrom(@NotNull org.jdom.Element parentElement)
-
readFrom
public void readFrom(String iprXml) throws org.jdom.JDOMException
- Throws:
org.jdom.JDOMException
-
removeGlobalLibrary
public void removeGlobalLibrary(@NotNull String name)
-
removeSdk
public void removeSdk(@NotNull String name)
-
getIprFileError
public String getIprFileError()
-
getIprFileException
public Exception getIprFileException()
-
createIprIfNeeded
public File createIprIfNeeded(File checkoutDir) throws IOException, org.jdom.JDOMException, VcsException
- Parameters:
checkoutDir
- checkout directory, it is used to determine the location of the ipr file- Returns:
- created ipr file was created from .idea project settings or null if there is no .idea directory
- Throws:
IOException
- on IO errororg.jdom.JDOMException
- when unable to parse some components from .idea directoryVcsException
- when unable to read some components from .idea directory
-
setIprFileError
public void setIprFileError(String errorString)
-
resolveSubstitutions
public void resolveSubstitutions(@NotNull ValueResolver resolver)
-
-