diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2016-11-12 18:51:33 -0500 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2017-02-13 10:10:03 -0500 |
commit | b1db36baebe1f76a39e8bd1a89892465c70b69be (patch) | |
tree | 455c2429a2b94c9d6813a5df498fddf293123ec7 /examples/multi-standalone-example/common | |
parent | 8ebada86b1fc58465751864acba8aafd387ccb4b (diff) | |
download | cbt-b1db36baebe1f76a39e8bd1a89892465c70b69be.tar.gz cbt-b1db36baebe1f76a39e8bd1a89892465c70b69be.tar.bz2 cbt-b1db36baebe1f76a39e8bd1a89892465c70b69be.zip |
rename folder of one example as preparation for creating another one
showing how to do the same in a single build
Diffstat (limited to 'examples/multi-standalone-example/common')
3 files changed, 14 insertions, 0 deletions
diff --git a/examples/multi-standalone-example/common/SomeSharedClass.scala b/examples/multi-standalone-example/common/SomeSharedClass.scala new file mode 100644 index 0000000..1f32c5a --- /dev/null +++ b/examples/multi-standalone-example/common/SomeSharedClass.scala @@ -0,0 +1 @@ +class SomeSharedClass
\ No newline at end of file diff --git a/examples/multi-standalone-example/common/build/build.scala b/examples/multi-standalone-example/common/build/build.scala new file mode 100644 index 0000000..0fbea50 --- /dev/null +++ b/examples/multi-standalone-example/common/build/build.scala @@ -0,0 +1,3 @@ +import cbt._ + +class Build(val context: Context) extends SharedCbtBuild diff --git a/examples/multi-standalone-example/common/build/build/build.scala b/examples/multi-standalone-example/common/build/build/build.scala new file mode 100644 index 0000000..efeeb77 --- /dev/null +++ b/examples/multi-standalone-example/common/build/build/build.scala @@ -0,0 +1,10 @@ +import cbt._ + +class Build(val context: Context) extends BuildBuild{ + override def dependencies = + super.dependencies ++ // don't forget super.dependencies here + Seq( + // source dependency + DirectoryDependency( projectDirectory.getParentFile.getParentFile ++ "/shared-build" ) + ) +} |