aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core/src
diff options
context:
space:
mode:
authorwisberg <wisberg>2003-04-29 00:25:15 +0000
committerwisberg <wisberg>2003-04-29 00:25:15 +0000
commitb20deaa24367bed3d3a245455be5cb039e425594 (patch)
treefb0f8909162637ad3cb35d14ddffa3aba981dcfa /org.aspectj.ajdt.core/src
parentbddbc72c4d68028ace7d643ef4f6d6881f1f190f (diff)
downloadaspectj-b20deaa24367bed3d3a245455be5cb039e425594.tar.gz
aspectj-b20deaa24367bed3d3a245455be5cb039e425594.zip
boolean hasSources() to validate after parsing
Diffstat (limited to 'org.aspectj.ajdt.core/src')
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildConfig.java9
1 files changed, 9 insertions, 0 deletions
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())
+ );
+ }
}