|
27 | 27 | import java.util.List; |
28 | 28 | import java.util.Map; |
29 | 29 |
|
30 | | -import org.apache.logging.log4j.Logger; |
31 | | -import org.apache.logging.log4j.LogManager; |
| 30 | +//import org.apache.logging.log4j.Logger; |
| 31 | +//import org.apache.logging.log4j.LogManager; |
32 | 32 | import org.eclipse.emf.common.util.URI; |
33 | 33 | import org.eclipse.emf.ecore.resource.Resource; |
34 | 34 | import org.eclipse.emf.ecore.resource.ResourceSet; |
|
52 | 52 | import tools.mdsd.jamopp.resolution.resolver.CentralReferenceResolver; |
53 | 53 |
|
54 | 54 | public class JaMoPPJDTSingleFileParser implements JaMoPPParserAPI { |
55 | | - private static final Logger logger = LogManager.getLogger("jamopp." |
56 | | - + JaMoPPJDTSingleFileParser.class.getSimpleName()); |
| 55 | +// private static final Logger logger = LogManager.getLogger("jamopp." |
| 56 | +// + JaMoPPJDTSingleFileParser.class.getSimpleName()); |
57 | 57 | private final String DEFAULT_ENCODING = StandardCharsets.UTF_8.toString(); |
58 | 58 | private ResourceSet resourceSet; |
59 | 59 | private ArrayList<String> exclusionPatterns = new ArrayList<>(); |
@@ -113,19 +113,19 @@ public ResourceSet parseDirectory(Path dir) { |
113 | 113 | encodings[index] = DEFAULT_ENCODING; |
114 | 114 | } |
115 | 115 | String[] classpathEntries = findClasspathEntries(dir); |
116 | | - logger.debug("Parsing the directory " + dir.toString() + " with " |
117 | | - + sources.length + " source files and " + classpathEntries.length |
118 | | - + " classpath entries."); |
| 116 | +// logger.debug("Parsing the directory " + dir.toString() + " with " |
| 117 | +// + sources.length + " source files and " + classpathEntries.length |
| 118 | +// + " classpath entries."); |
119 | 119 | this.parseFilesWithJDT(classpathEntries, sources, encodings); |
120 | | - logger.debug("Resolving the parsed files."); |
| 120 | +// logger.debug("Resolving the parsed files."); |
121 | 121 | resolveBindings(); |
122 | 122 | resolveEverything(); |
123 | | - logger.debug("Resolved the parsed files."); |
| 123 | +// logger.debug("Resolved the parsed files."); |
124 | 124 | } catch (IOException e) { |
125 | 125 | } |
126 | 126 | ResourceSet result = this.resourceSet; |
127 | 127 | this.resourceSet = null; |
128 | | - logger.debug("Parsed the directory."); |
| 128 | +// logger.debug("Parsed the directory."); |
129 | 129 | return result; |
130 | 130 | } |
131 | 131 |
|
@@ -254,7 +254,7 @@ public void resolveBindings() { |
254 | 254 |
|
255 | 255 | private void resolveEverything() { |
256 | 256 | if (ParserOptions.RESOLVE_EVERYTHING.isTrue()) { |
257 | | - logger.debug("Resolving everything."); |
| 257 | +// logger.debug("Resolving everything."); |
258 | 258 | int oldSize; |
259 | 259 | do { |
260 | 260 | oldSize = resourceSet.getResources().size(); |
|
0 commit comments