From b20deaa24367bed3d3a245455be5cb039e425594 Mon Sep 17 00:00:00 2001 From: wisberg Date: Tue, 29 Apr 2003 00:25:15 +0000 Subject: [PATCH] boolean hasSources() to validate after parsing --- .../ajdt/internal/core/builder/AjBuildConfig.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildConfig.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildConfig.java index 089389c1b..8d1a3f9f3 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildConfig.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildConfig.java @@ -308,5 +308,14 @@ public class AjBuildConfig { public void setXnoInline(boolean xnoInline) { XnoInline = xnoInline; } + + /** @return true if any config file, sourceroots, sourcefiles, or injars */ + public boolean hasSources() { + return ((null != configFile) + || (0 < sourceRoots.size()) + || (0 < files.size()) + || (0 < inJars.size()) + ); + } } -- 2.39.5