aboutsummaryrefslogtreecommitdiffstats
path: root/weaver
diff options
context:
space:
mode:
authorAndy Clement <aclement@pivotal.io>2020-08-13 08:32:30 -0700
committerGitHub <noreply@github.com>2020-08-13 08:32:30 -0700
commit3e7baa39cdb7af2da7a474a70e12512aecca94be (patch)
tree0317c15eb2580f626c24c25483b6bbbe723697fa /weaver
parenta9c5b9f80cb565cc960632b7754a9f00646972cb (diff)
parentcd2eedb6f5684e47c0cefa6c2f4bab9868b9e772 (diff)
downloadaspectj-3e7baa39cdb7af2da7a474a70e12512aecca94be.tar.gz
aspectj-3e7baa39cdb7af2da7a474a70e12512aecca94be.zip
Merge pull request #3 from larsgrefer/feature/github-actions
Create a simple CI Job using GitHub Actions
Diffstat (limited to 'weaver')
-rw-r--r--weaver/src/test/java/org/aspectj/weaver/bcel/ClasspathManagerTestCase.java14
1 files changed, 8 insertions, 6 deletions
diff --git a/weaver/src/test/java/org/aspectj/weaver/bcel/ClasspathManagerTestCase.java b/weaver/src/test/java/org/aspectj/weaver/bcel/ClasspathManagerTestCase.java
index f4f84f168..0cf4cc8ca 100644
--- a/weaver/src/test/java/org/aspectj/weaver/bcel/ClasspathManagerTestCase.java
+++ b/weaver/src/test/java/org/aspectj/weaver/bcel/ClasspathManagerTestCase.java
@@ -44,12 +44,14 @@ public class ClasspathManagerTestCase extends TestCase {
private static String findJvm(String pattern, String jar) {
String start = System.getProperty("user.home")+"/jvms";
- for (File f: new File(start).listFiles()) {
- if (f.isDirectory() && Pattern.matches(pattern, f.getName())) {
- File result = walk(f, jar);
- if (result !=null) {
- System.out.println("For "+pattern+" found "+result.getAbsolutePath());
- return result.getAbsolutePath();
+ if (new File(start).isDirectory()) {
+ for (File f : new File(start).listFiles()) {
+ if (f.isDirectory() && Pattern.matches(pattern, f.getName())) {
+ File result = walk(f, jar);
+ if (result != null) {
+ System.out.println("For " + pattern + " found " + result.getAbsolutePath());
+ return result.getAbsolutePath();
+ }
}
}
}