Method Summary |
|
public void | addDependencies(Set<ModuleDependency> toAdd) Adds given modules as module-dependencies for the project. |
public void | addDependency(ModuleDependency md) Adds given dependency. |
public void | addTestDependency(String testType, TestModuleDependency newTestDep) Adds new test dependency to project.xml . |
static void | createModuleDependencyElement(Element moduleDependencies, ModuleDependency md, Element nextSibling) Package-private for unit tests only. |
public void | editDependency(ModuleDependency origDep, ModuleDependency newDep) |
public static String[] | findFriends(Element confData) Utility method for finding friend. |
static Element | findModuleDependencies(Element parentEl) Package-private for unit tests only. |
public static ManifestManager.PackageExport[] | findPublicPackages(Element confData) Utility method for finding public packages. |
static void | generateEmptyModuleTemplate(FileObject projectXml, String cnb, NbModuleType moduleType) Generates a basic project.xml templates into the given
projectXml for standalone or module in
suite module. |
public static void | generateEmptySuiteTemplate(FileObject projectXml, String name) Generates a basic project.xml templates into the given
projectXml for Suite. |
static void | generateLibraryModuleTemplate(FileObject projectXml, String cnb, NbModuleType moduleType, Set publicPackages, Map extensions) Create a library wrapper project.xml. |
public String[] | getBinaryOrigins() Returns paths of all libraries bundled within a project this
manager manage. |
public String | getCodeNameBase() Returns code-name-base. |
public SortedSet<ModuleDependency> | getDirectDependencies() Returns direct module dependencies using default module's platform. |
public SortedSet<ModuleDependency> | getDirectDependencies(NbPlatform customPlaf) Returns sorted direct module dependencies using
ModuleDependency.CNB_COMPARATOR allowing to pass a custom platform.
Since no two modules with the same code name base may be set as a
dependency. |
public String[] | getFriends() Returns all friends or null if there are none. |
public static ProjectXMLManager | getInstance(File projectDir) Utility mehtod for getting the
ProjectXMLManager instance associated with a project in the given directory. |
public ManifestManager.PackageExport[] | getPublicPackages() Returns an array of
ManifestManager.PackageExport s of all
exposed public packages. |
public Map<String, Set<TestModuleDependency>> | getTestDependencies(ModuleList ml) Gives a map from test type (e.g. |
public void | removeClassPathExtensions() |
public void | removeDependencies(Collection<ModuleDependency> depsToDelete) Use this for removing more than one dependencies. |
public void | removeDependenciesByCNB(Collection<String> cnbsToDelete) Use this for removing more than one dependencies. |
public void | removeDependency(String cnbToRemove) Remove given dependency from the configuration data. |
public boolean | removeTestDependency(String testType, String cnbToRemove) Removes test dependency under type testType , indentified
by cnbToRemove . |
public void | replaceClassPathExtensions(Map newValues) Replace existing classpath extensions with new values. |
public void | replaceDependencies(Set<ModuleDependency> newDeps) Replaces all original dependencies with the given newDeps . |
public void | replaceFriends(String[] friends, String[] packagesToExpose) Replaces all original friends with the given friends with
packagesToExpose as exposed packages to those friends. |
public void | replacePublicPackages(String[] newPackages) Replaces all original public packages with the given
newPackages . |
public void | setModuleType(NbModuleType moduleType) |