Skip to content

Commit

Permalink
Merge pull request #97 from moosetechnology/parametric
Browse files Browse the repository at this point in the history
Correct exclude file option to use absolute path instead of filename
  • Loading branch information
LABSARI authored Nov 24, 2023
2 parents 279eb94 + 3c44e4a commit 5c1b579
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/fr/inria/verveine/extractor/java/VerveineJOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,9 @@ protected void collectJavaFiles(Collection<String> paths, Collection<String> fil

protected void collectJavaFiles(File f, Collection<String> files) {
for (Pattern filter : excludeMatchers) {
if (filter.matcher(f.getName()).matches()) {
String absolutePath = f.getAbsolutePath();
if (filter.matcher(absolutePath).matches()) {
System.out.println("Excluded file: " + absolutePath);
return;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,9 +330,15 @@ public void testAnchorsAssoc()
@Test
public void testExcludepath()
{
String excludeDir ;
if(isWindows()) {
excludeDir = "*server\\\\*";
}else {
excludeDir = "*server/*";
}
String[] args = new String[] {
"-excludepath", "*Address*",
"-excludepath", "*erver*",
"-excludepath", excludeDir,
"test_src/LANModel/",
};

Expand Down

0 comments on commit 5c1b579

Please sign in to comment.