getProjectOperations().addRepository(interfaceType.getModule(), new Repository(repositoryElement));
/** * Add addon repository and dependency to get annotations. * * @param configuration Configuration element */ private void addAnnotations(Element configuration) { // Install the add-on Google code repository and dependency needed to // get the annotations List<Element> repos = XmlUtils.findElements( "/configuration/gvnix/repositories/repository", configuration); for (Element repo : repos) { projectOperations.addRepository(projectOperations .getFocusedModuleName(), new Repository(repo)); } List<Element> depens = XmlUtils.findElements( "/configuration/gvnix/dependencies/dependency", configuration); DependenciesVersionManager.manageDependencyVersion(metadataService, projectOperations, depens); }
/** * {@inheritDoc} */ public void addAddonDependency() { // Get configuration (repository and dependency) XML element Element conf = XmlUtils.getConfiguration(this.getClass()); // Find repository elements and add them to the project for (Element repo : XmlUtils.findElements( "/configuration/gvnix/repositories/repository", conf)) { projectOperations.addRepository(projectOperations .getFocusedModuleName(), new Repository(repo)); } // Install properties List<Element> properties = XmlUtils.findElements( "/configuration/gvnix/properties/*", conf); for (Element property : properties) { projectOperations.addProperty(projectOperations .getFocusedModuleName(), new Property(property)); } // Find dependency elements and update them into the project DependenciesVersionManager.manageDependencyVersion(metadataService, projectOperations, XmlUtils.findElements( "/configuration/gvnix/dependencies/dependency", conf)); }
for (Element repo : repos) { projectOperations.addRepository(projectOperations .getFocusedModuleName(), new Repository(repo));
/** * Add addon repository and dependency to get annotations. * * @param configuration Configuration element */ private void addAnnotations(Element configuration) { // Install the add-on Google code repository and dependency needed to // get the annotations List<Element> repos = XmlUtils.findElements( "/configuration/gvnix/repositories/repository", configuration); for (Element repo : repos) { projectOperations.addRepository(projectOperations .getFocusedModuleName(), new Repository(repo)); } // Install properties List<Element> properties = XmlUtils.findElements( "/configuration/gvnix/properties/*", configuration); for (Element property : properties) { projectOperations.addProperty(projectOperations .getFocusedModuleName(), new Property(property)); } List<Element> depens = XmlUtils.findElements( "/configuration/gvnix/dependencies/dependency", configuration); DependenciesVersionManager.manageDependencyVersion(metadataService, projectOperations, depens); }
public void setupMavenDependency() { Element configuration = XmlUtils.getConfiguration(getClass()); // Install the add-on Google code repository and dependency needed to // get the annotations List<Element> repos = XmlUtils.findElements( "/configuration/gvnix/repositories/repository", configuration); for (Element repo : repos) { projectOperations.addRepository(projectOperations .getFocusedModuleName(), new Repository(repo)); } List<Element> depens = XmlUtils.findElements( "/configuration/gvnix/dependencies/dependency", configuration); DependenciesVersionManager.manageDependencyVersion(metadataService, projectOperations, depens); depens = XmlUtils.findElements( "/configuration/dependencies/dependency", configuration); for (Element depen : depens) { projectOperations.addDependency(projectOperations .getFocusedModuleName(), new Dependency(depen)); } // Install properties List<Element> properties = XmlUtils.findElements( "/configuration/gvnix/properties/*", configuration); for (Element property : properties) { projectOperations.addProperty(projectOperations .getFocusedModuleName(), new Property(property)); } }
getProjectOperations().addRepository(interfaceType.getModule(), new Repository(repositoryElement));