Skip to content

Commit

Permalink
Add maven project load logs
Browse files Browse the repository at this point in the history
  • Loading branch information
andrejpetras committed Nov 17, 2019
1 parent 665740f commit 89f4d57
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/org/lorislab/samo/data/MavenProject.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,13 @@ public class MavenProject {
*/
public static MavenProject loadFromFile(File file) throws Exception {
if (file == null || !file.exists() || file.isDirectory()) {
System.out.println("Error open maven file: " + file + " " + (file == null) + " " + !file.exists() + " " + file.isDirectory());
return null;
}

Map<String, XPathItem> items = XPathItem.find(file, ITEMS);
if (items.isEmpty()) {
System.out.println("Error no xpath items found in the maven project file");
return null;
}
MavenProject project = new MavenProject();
Expand Down

0 comments on commit 89f4d57

Please sign in to comment.