diff options
Diffstat (limited to 'main/test/resources/examples/foreign/outer')
-rw-r--r-- | main/test/resources/examples/foreign/outer/build.sc | 16 | ||||
-rw-r--r-- | main/test/resources/examples/foreign/outer/inner/build.sc | 15 |
2 files changed, 31 insertions, 0 deletions
diff --git a/main/test/resources/examples/foreign/outer/build.sc b/main/test/resources/examples/foreign/outer/build.sc new file mode 100644 index 00000000..b53cca70 --- /dev/null +++ b/main/test/resources/examples/foreign/outer/build.sc @@ -0,0 +1,16 @@ +import $file.inner.build +import mill._ +import ammonite.ops._ + +trait PathAware extends mill.Module { + def selfPath = T { millSourcePath } +} + +trait DestAware extends mill.Module { + def selfDest = T { T.ctx().dest / up / up } +} + +object sub extends PathAware with DestAware { + object sub extends PathAware with DestAware +} + diff --git a/main/test/resources/examples/foreign/outer/inner/build.sc b/main/test/resources/examples/foreign/outer/inner/build.sc new file mode 100644 index 00000000..2d978292 --- /dev/null +++ b/main/test/resources/examples/foreign/outer/inner/build.sc @@ -0,0 +1,15 @@ +import mill._ +import ammonite.ops._ + +trait PathAware extends mill.Module { + def selfPath = T { millSourcePath } +} + +trait DestAware extends mill.Module { + def selfDest = T { T.ctx().dest / up / up } +} + +object sub extends PathAware with DestAware { + object sub extends PathAware with DestAware +} + |