public class ClassPathModifierSupport extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ADD |
static int |
ADD_NO_HEURISTICS |
static int |
REMOVE |
Constructor and Description |
---|
ClassPathModifierSupport() |
Modifier and Type | Method and Description |
---|---|
static boolean |
handleAntArtifacts(Project project,
AntProjectHelper helper,
ClassPathSupport cs,
PropertyEvaluator eval,
ClassPathUiSupport.Callback cpUiSupportCallback,
AntArtifact[] artifacts,
URI[] artifactElements,
String classPathProperty,
String projectXMLElementName,
int operation)
|
static boolean |
handleAntArtifacts(Project project,
UpdateHelper helper,
ClassPathSupport cs,
PropertyEvaluator eval,
ReferenceHelper refHelper,
ClassPathUiSupport.Callback cpUiSupportCallback,
AntArtifact[] artifacts,
URI[] artifactElements,
String classPathProperty,
String projectXMLElementName,
int operation)
Adds or removes project's artifact from given classpath.
|
static boolean |
handleLibraries(Project project,
AntProjectHelper helper,
ClassPathSupport cs,
PropertyEvaluator eval,
ClassPathUiSupport.Callback cpUiSupportCallback,
ReferenceHelper refHelper,
Library[] libraries,
String classPathProperty,
String projectXMLElementName,
int operation) |
static boolean |
handleLibraryClassPathItems(Project project,
AntProjectHelper helper,
ClassPathSupport cs,
List<ClassPathSupport.Item> items,
String classPathProperty,
String projectXMLElementName,
int operation,
boolean saveProject) |
static boolean |
handleRoots(Project project,
AntProjectHelper helper,
ClassPathSupport cs,
PropertyEvaluator eval,
ClassPathUiSupport.Callback cpUiSupportCallback,
URI[] classPathRoots,
String classPathProperty,
String projectXMLElementName,
int operation)
|
static boolean |
handleRoots(Project project,
UpdateHelper helper,
ClassPathSupport cs,
PropertyEvaluator eval,
ReferenceHelper refHelper,
ClassPathUiSupport.Callback cpUiSupportCallback,
URI[] classPathRoots,
String classPathProperty,
String projectXMLElementName,
int operation)
Adds or removes jar files or folders from given classpath.
|
public static final int ADD
public static final int ADD_NO_HEURISTICS
public static final int REMOVE
@Deprecated public static boolean handleRoots(@NonNull Project project, @NonNull AntProjectHelper helper, @NonNull ClassPathSupport cs, @NonNull PropertyEvaluator eval, @NullAllowed ClassPathUiSupport.Callback cpUiSupportCallback, @NonNull URI[] classPathRoots, @NonNull String classPathProperty, @NullAllowed String projectXMLElementName, int operation) throws IOException
IOException
public static boolean handleRoots(@NonNull Project project, @NonNull UpdateHelper helper, @NonNull ClassPathSupport cs, @NonNull PropertyEvaluator eval, @NonNull ReferenceHelper refHelper, @NullAllowed ClassPathUiSupport.Callback cpUiSupportCallback, @NonNull URI[] classPathRoots, @NonNull String classPathProperty, @NullAllowed String projectXMLElementName, int operation) throws IOException
project
- the project to (from) which classpath the artifacts should be added (removed).helper
- the UpdateHelper
cs
- the ClassPathSupport
eval
- the PropertyEvaluator
refHelper
- the ReferenceHelper
cpUiSupportCallback
- the optional ClassPathUiSupport.Callback
doing the ClassPathSupport.Item
initialization.classPathRoots
- the jar files or folders to be added (removed)classPathProperty
- the classpath property into (from which) the artifacts should be added (removed).projectXMLElementName
- optional project XML element nameoperation
- to be performed ClassPathModifierSupport.ADD
, ClassPathModifierSupport.ADD_NO_HEURISTICS
, ClassPathModifierSupport.REMOVE
IOException
- in case of failure@Deprecated public static boolean handleAntArtifacts(@NonNull Project project, @NonNull AntProjectHelper helper, @NonNull ClassPathSupport cs, @NonNull PropertyEvaluator eval, @NullAllowed ClassPathUiSupport.Callback cpUiSupportCallback, @NonNull AntArtifact[] artifacts, @NonNull URI[] artifactElements, @NonNull String classPathProperty, @NullAllowed String projectXMLElementName, int operation) throws IOException, UnsupportedOperationException
public static boolean handleAntArtifacts(@NonNull Project project, @NonNull UpdateHelper helper, @NonNull ClassPathSupport cs, @NonNull PropertyEvaluator eval, @NonNull ReferenceHelper refHelper, @NullAllowed ClassPathUiSupport.Callback cpUiSupportCallback, @NonNull AntArtifact[] artifacts, @NonNull URI[] artifactElements, @NonNull String classPathProperty, @NullAllowed String projectXMLElementName, int operation) throws IOException, UnsupportedOperationException
project
- the project to (from) which classpath the artifacts should be added (removed).helper
- the UpdateHelper
cs
- the ClassPathSupport
eval
- the PropertyEvaluator
refHelper
- the ReferenceHelper
cpUiSupportCallback
- the optional ClassPathUiSupport.Callback
doing the ClassPathSupport.Item
initialization.artifacts
- the artifacts to be addedartifactElements
- the corresponding artifacts elementsclassPathProperty
- the classpath property into (from which) the artifacts should be added (removed).projectXMLElementName
- optional project XML element nameoperation
- to be performed ClassPathModifierSupport.ADD
, ClassPathModifierSupport.ADD_NO_HEURISTICS
, ClassPathModifierSupport.REMOVE
IOException
- in case of failureUnsupportedOperationException
public static boolean handleLibraries(Project project, AntProjectHelper helper, ClassPathSupport cs, PropertyEvaluator eval, ClassPathUiSupport.Callback cpUiSupportCallback, ReferenceHelper refHelper, Library[] libraries, String classPathProperty, String projectXMLElementName, int operation) throws IOException, UnsupportedOperationException
public static boolean handleLibraryClassPathItems(Project project, AntProjectHelper helper, ClassPathSupport cs, List<ClassPathSupport.Item> items, String classPathProperty, String projectXMLElementName, int operation, boolean saveProject) throws IOException
IOException