Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMickael Istria2019-09-10 08:50:02 -0400
committerMickael Istria2019-09-10 08:50:39 -0400
commit84360c2ce8d83a4bc66ac2ef33c07eb2ad50bc07 (patch)
tree73eb5c31aec6c72f3e002e13c662623da3db3c0b
parentf05eaed7f2404738567bea3e58f7efbdc1b57bae (diff)
downloadorg.eclipse.tycho.extras-master.tar.gz
org.eclipse.tycho.extras-master.tar.xz
org.eclipse.tycho.extras-master.zip
Generate dependency-list file in any caseHEADmaster
Change-Id: I0660c355f95cb7d8d71109a1a7bdac25a8673acb Signed-off-by: Mickael Istria <mistria@redhat.com>
-rw-r--r--tycho-dependency-tools-plugin/src/main/java/org/eclipse/tycho/extras/pde/ListDependenciesMojo.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/tycho-dependency-tools-plugin/src/main/java/org/eclipse/tycho/extras/pde/ListDependenciesMojo.java b/tycho-dependency-tools-plugin/src/main/java/org/eclipse/tycho/extras/pde/ListDependenciesMojo.java
index 6529f89..0140c3c 100644
--- a/tycho-dependency-tools-plugin/src/main/java/org/eclipse/tycho/extras/pde/ListDependenciesMojo.java
+++ b/tycho-dependency-tools-plugin/src/main/java/org/eclipse/tycho/extras/pde/ListDependenciesMojo.java
@@ -46,12 +46,6 @@ public class ListDependenciesMojo extends AbstractMojo {
getLog().info("Skipped");
return;
}
- List<ArtifactDescriptor> dependencies = TychoProjectUtils.getDependencyArtifacts(project).getArtifacts()
- .stream().filter(desc -> !desc.getLocation().equals(project.getBasedir())) // remove self
- .collect(Collectors.toList());
- if (dependencies.isEmpty()) {
- return;
- }
File outputFile = new File(project.getBuild().getDirectory(), "dependencies-list.txt");
try {
outputFile.getParentFile().mkdirs();
@@ -60,6 +54,9 @@ public class ListDependenciesMojo extends AbstractMojo {
throw new MojoFailureException(ex.getMessage(), ex);
}
try (BufferedWriter writer = Files.newBufferedWriter(outputFile.toPath())) {
+ List<ArtifactDescriptor> dependencies = TychoProjectUtils.getDependencyArtifacts(project).getArtifacts()
+ .stream().filter(desc -> !desc.getLocation().equals(project.getBasedir())) // remove self
+ .collect(Collectors.toList());
for (ArtifactDescriptor dependnecy : dependencies) {
if (dependnecy.getMavenProject() == null) {
writer.write(dependnecy.getLocation().getAbsolutePath());

Back to the top