Last active
February 8, 2018 08:24
-
-
Save sbose78/7635ff89efbafa8c9674a81101da703e to your computer and use it in GitHub Desktop.
frost-java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try { | |
Map<String, String> effectivePomFiles = new HashMap<String, String>(); | |
for (IFile pomFile : pomFiles) { | |
IMavenProjectRegistry registry = MavenPlugin.getMavenProjectRegistry(); | |
IMavenProjectFacade facade = registry.create(pomFile, true, monitor); | |
MavenProject mavenProject = facade.getMavenProject(monitor); | |
StringWriter sw = new StringWriter(); | |
new MavenXpp3Writer().write(sw, mavenProject.getModel()); | |
String effectivePom = sw.toString(); | |
effectivePomFiles.put(pomFile.getFullPath().toString(), effectivePom); | |
} | |
jobID = provider.requestAnalyses(effectivePomFiles, license); | |
} catch (Exception e) { | |
return new Status(Status.ERROR, Fabric8AnalysisLSCoreActivator.PLUGIN_ID, "Error during communication with server", e); | |
} | |
return Status.OK_STATUS; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment