--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To view this discussion on the web visit https://groups.google.com/d/msg/simple-build-tool/-/sN6TfOaSmekJ.
To post to this group, send email to simple-b...@googlegroups.com.
To unsubscribe from this group, send email to simple-build-t...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/simple-build-tool?hl=en.
Is this "Build.scala" build file effectively acting as a multiple build file for this project and the sub-projects or do the sub-projects also have their own build files?
--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To view this discussion on the web visit https://groups.google.com/d/msg/simple-build-tool/-/cR6ssl419-4J.
To post to this group, send email to simple-b...@googlegroups.com.
To unsubscribe from this group, send email to simple-build-t...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/simple-build-tool?hl=en.
Currently I go to the my-web-library directory and use "sbt publish-local" to build and publish a copy of the library. Then I go to my-web-app and "sbt run" to build and run the app. Under sbt 0.7 I had to "sbt import run" because import was not automatic.
Yes indeed, my brain frequently substitutes words and omits others, it does lead to some unanticipated creative discoveries though!
On Fri, 10 Jun 2011 07:38:43 -0700 (PDT)
Stuart Roebuck <stuart....@gmail.com> wrote:
> Heiko,
>
> Thanks.
>
> I think I may be using the wrong terminology which may explain why I'm not
> finding the answer.
>
> In my case the sub-project is a stand alone project which provides
> functionality to a number of independent applications. For the sake of this
> example, let's call it "my-web-library".
>
> My main project is one of those applications, let's call it "my-web-app".
>
> Currently I go to the my-web-library directory and use "sbt publish-local"
> to build and publish a copy of the library. Then I go to my-web-app and
> "sbt run" to build and run the app. Under sbt 0.7 I had to "sbt import run"
> because import was not automatic.
>
> I would like to be able to go to my-web-app and "sbt run" in the knowledge
> that it would automatically build and include the resulting library from
> my-web-app.
I would suggest using external project support, which you can read about on the Full Configuration or see one of the several threads on it. This allows you to skip the publish-local in the my-web-library. You can just modify that project and when you do run in my-web-app, it will be automatically recompiled.
-Mark
Stuart--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To view this discussion on the web visit https://groups.google.com/d/msg/simple-build-tool/-/GGGG-4CeDaAJ.
To post to this group, send email to simple-b...@googlegroups.com.
To unsubscribe from this group, send email to simple-build-t...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/simple-build-tool?hl=en.
Stuart --
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To view this discussion on the web visit https://groups.google.com/d/msg/simple-build-tool/-/1ixx4V3pOmMJ.
To post to this group, send email to simple-b...@googlegroups.com.
To unsubscribe from this group, send email to simple-build-t...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/simple-build-tool?hl=en.
> Heiko / Mark / Ismael / Chris,
>
> Many thanks.
>
> It appears that this is all I needed:
>
> import sbt._
>
> object MyBuild extends Build
> {
> lazy val myWebApp = Project("my-web-app", file("."))
> dependsOn(myWebLibrary)
> lazy val myWebLibrary = RootProject(file("../my-web-library"))
> }
>
> This continues to use the my-web-app "build.sbt" file for all the other
> configuration and dependencies. I removed from that the dependency on
> my-web-library as the above code takes that place.
>
> However, this doesn't seem to match with the "Defining a Build" section on
> the "Full Configuration" wiki page. That section indicates that a build
> primarily consists of a definition of the projects method, but when I
> included a projects method I got an error requiring me to override the
> existing projects and when I removed it completely everything worked fine.
> I do know the ins and outs of why this is but it looks like that bit of
> documentation may benefit from a correction.
Yeah, sorry. All of the other sections were updated but that one. I deleted it.
-Mark