aboutsummaryrefslogtreecommitdiff
path: root/compatibility
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2017-02-13 22:54:12 -0500
committerChristopher Vogt <oss.nsp@cvogt.org>2017-02-13 23:58:43 -0500
commitb8e3edf032c60e8c9ae4f28d5c3ac2e2720308cc (patch)
tree859a6a25651a56ba92ec158fdb03f542d57202bd /compatibility
parente0fb6ec75286c695b7e4c5ed9189714d40f9b672 (diff)
downloadcbt-b8e3edf032c60e8c9ae4f28d5c3ac2e2720308cc.tar.gz
cbt-b8e3edf032c60e8c9ae4f28d5c3ac2e2720308cc.tar.bz2
cbt-b8e3edf032c60e8c9ae4f28d5c3ac2e2720308cc.zip
easier setting of projectDirectory in sub-builds
by replacing context.projectDirectory by workingDirectory and using it as the default but allowing it to being overridden
Diffstat (limited to 'compatibility')
-rw-r--r--compatibility/Context.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/compatibility/Context.java b/compatibility/Context.java
index afd0b15..389d401 100644
--- a/compatibility/Context.java
+++ b/compatibility/Context.java
@@ -18,9 +18,11 @@ public interface Context{
public default long start(){
throw new IncompatibleCbtVersionException("You need to define method start.");
};
+ public default File workingDirectory(){
+ return projectDirectory();
+ };
// methods that exist for longer which every CBT version in use should have by now, no default values needed
- public abstract File projectDirectory();
public abstract File cwd(); // REPLACE by something that allows to run cbt on some other directly
public abstract String[] argsArray(); // replace this by https://github.com/cvogt/cbt/issues/172 ?
public abstract String[] enabledLoggersArray();
@@ -40,4 +42,6 @@ public interface Context{
public abstract ConcurrentHashMap<String,Object> permanentKeys();
@java.lang.Deprecated
public abstract ConcurrentHashMap<Object,ClassLoader> permanentClassLoaders();
+ @java.lang.Deprecated
+ public abstract File projectDirectory();
}