[SCM] UNNAMED PROJECT branch, master, updated. debian/1.8.3-5-g231a951
Emmanuel Bourg
ebourg at apache.org
Tue Jun 18 11:56:38 UTC 2013
The following commit has been merged in the master branch:
commit 0fe5a534eca145cd0ed553e509965fbdaa7cec27
Author: Emmanuel Bourg <ebourg at apache.org>
Date: Wed Jun 12 00:19:24 2013 +0200
Report the name of the pom when a parsing error occurs
diff --git a/src/main/java/org/debian/maven/repo/Repository.java b/src/main/java/org/debian/maven/repo/Repository.java
index a03ac13..c390e3f 100644
--- a/src/main/java/org/debian/maven/repo/Repository.java
+++ b/src/main/java/org/debian/maven/repo/Repository.java
@@ -17,7 +17,6 @@
package org.debian.maven.repo;
import java.io.File;
-import java.io.FileNotFoundException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
@@ -160,10 +159,9 @@ public class Repository {
}
public void scanOnce() {
- if (scanned) {
- return;
+ if (!scanned) {
+ scan();
}
- scan();
}
public void scan() {
@@ -358,14 +356,13 @@ public class Repository {
scan(file.listFiles());
} else if (file.getName().endsWith(".pom")) {
try {
- POMInfo pom = pomReader.readPom(file);
- registerPom(file, pom);
- } catch (XMLStreamException ex) {
- ex.printStackTrace();
- } catch (FileNotFoundException ex) {
- ex.printStackTrace();
- } catch (DependencyNotFoundException ex) {
+ registerPom(file, pomReader.readPom(file));
+ } catch (DependencyNotFoundException e) {
// Ignore
+ } catch (Exception e) {
+ System.out.println("Failed to parse " + file);
+ e.printStackTrace();
+ System.out.println();
}
}
}
--
UNNAMED PROJECT
More information about the pkg-java-commits
mailing list