aboutsummaryrefslogtreecommitdiff
path: root/stage2/BasicBuild.scala
Commit message (Collapse)AuthorAgeFilesLines
* fix file watching for realChristopher Vogt2017-03-121-20/+9
| | | | | | | last file watching update didn’t work well enough. This now - rips out barbary watch service as it seems buggy crashing the jvm - make cbt exclusively write files to watch to a file - uses fswatch instead watching all files in that file
* Merge pull request #415 from cvogt/completionsJan Christopher Vogt2017-03-121-1/+3
|\ | | | | rename taskNames to complete and pass in current readline buffer in fish for zsh and bash this still needs to be done. Also interpreting the buffer to complete the current command
| * rename taskNames to complete and pass in current readline buffer in fishChristopher Vogt2017-03-121-1/+3
| | | | | | | | | | for zsh and bash this still needs to be done. Also interpreting the buffer to complete the current command
* | make changes in builds trigger recompilation of projectsChristopher Vogt2017-03-121-1/+1
|/
* revamp loop featureChristopher Vogt2017-03-121-1/+19
| | | | | | | | | | | | | | | | | | | | | now CBT and builds pass their file names to the current build via the context. The build then simply blocks until any file changes. Then it returns with a special exit code, which the bash script picks up and restarts CBT. Thats works well for looping over project files. It works less well for looping over builds and CBT itself. For this a build has to success once, so that the .cbt-loop.tmp file exists. Then looping works for cbt and builds, but the file list is not updated in case of compile errors, etc. Fixes - https://github.com/cvogt/cbt/issues/406 - https://github.com/cvogt/cbt/issues/405 - https://github.com/cvogt/cbt/issues/202 - https://github.com/cvogt/cbt/issues/50 - https://github.com/cvogt/cbt/issues/22 We should improve for 1.0 in https://github.com/cvogt/cbt/issues/419 to handle looping over build files and cbt itself smarter.
* Make GitDependency and DirectoryDependency simply return Build objectsChristopher Vogt2017-03-111-1/+1
|
* more concise runMain in more placesChristopher Vogt2017-03-091-3/+2
|
* avoid non-existent directory warningChristopher Vogt2017-03-091-1/+1
|
* fix scala2 repl not workingChristopher Vogt2017-03-061-2/+3
|
* minor refactoringsChristopher Vogt2017-03-061-8/+5
|
* support resolving unsigned dependenciesChristopher Vogt2017-03-061-2/+2
|
* return Seq[URL] from publish task and \n separate Seqs in std outChristopher Vogt2017-03-061-1/+1
|
* fix package bugChristopher Vogt2017-03-061-1/+1
|
* separate type-safe proguard wrapper into self-contained libraryChristopher Vogt2017-03-041-3/+10
| | | | also make logic to maintain auto-generated sections re-usable
* handle trying to package / publish with no source files via exceptionChristopher Vogt2017-03-041-0/+4
| | | | this saves us from having to do conditionals in several places
* do not print () when evalingChristopher Vogt2017-03-041-1/+1
|
* define central publish tasks, so multiple trait can add to itChristopher Vogt2017-03-031-0/+2
|
* add capture_args macro for type-safe embedding of stringly typed apisChristopher Vogt2017-03-011-0/+1
|
* introduce libraries helper objectChristopher Vogt2017-03-011-0/+4
|
* jar / doc refactorChristopher Vogt2017-02-281-0/+8
| | | | | | - split out manifest and scaladoc logic - refactor lib calls from inheritance layer - only strip project directory prefix from individually specified files
* human readable toString for BuildsChristopher Vogt2017-02-271-0/+1
|
* move default sourceFileFilter into lib for less OO couplingChristopher Vogt2017-02-271-1/+1
|
* use `name` instead of `projectName` as it is more universal and theChristopher Vogt2017-02-271-1/+1
| | | | term `project` is probably going away in cbt.
* turn `test` into a subproject for easy access to test’s tasksChristopher Vogt2017-02-271-10/+16
|
* `cbt help` like `git help` instead of `cbt usage`Christopher Vogt2017-02-271-1/+1
|
* Merge pull request #356 from cvogt/discover-subbuildsJan Christopher Vogt2017-02-221-2/+3
|\ | | | | treat subdirectores as subbuilds via cmd line
| * treat subdirectores as subbuilds via cmd lineChristopher Vogt2017-02-221-2/+3
| |
* | support cleaning more than just targetChristopher Vogt2017-02-221-1/+3
|/
* support DirectoryDependency on sub builds of a multi project buildsChristopher Vogt2017-02-181-3/+4
|
* allow DirectoryDependencies on BuildBuildsChristopher Vogt2017-02-181-0/+5
| | | | | | | | | this fixes a bug where finalBuild would over eagerly go down all the way down to the outermost build instead of stopping at the one requested. Now it checks the new argument and stops there. This is necessary to allow having one build depend on another build in order to embed it in a type-safe way and have access to it’s tasks.
* simplify and add features to reflective task lookup codeChristopher Vogt2017-02-181-5/+6
| | | | | | | | | | | | | Code is much simpler now. Now cbt sub-tasks are separated by . instead of spaces to unify the syntax with method calls Scala. Also the reflective code now works not only on builds but any kind of values, so zero argument members of any types of return values can simply be called. This is also a large step towards detangling the reflective lookup from cbt and turning it into a fully fletched shell to Scala "native" call solution.
* add typed constants for build directory and file and use them everywhereChristopher Vogt2017-02-151-2/+2
|
* a (probably insufficient) attempt at detecting task cache conflictsChristopher Vogt2017-02-141-0/+18
|
* minor whitespace and name changesChristopher Vogt2017-02-141-3/+4
|
* allow overwriting test with nested buildChristopher Vogt2017-02-141-1/+1
|
* support flatClassLoader and run at Dependency levelChristopher Vogt2017-02-141-28/+2
|
* implicitly pass classloader, might make code easierChristopher Vogt2017-02-141-6/+5
| | | | | and prepares for allowing `run` and `runFlat` at Dependency instead of Build level
* use target directory rather than projectDirectory as caching keyChristopher Vogt2017-02-131-1/+1
| | | | | | makes more sense as multiple projects with the same projectDirectory but different sources and targets can make sense e.g. for sbt directory structure, etc
* easier setting of projectDirectory in sub-buildsChristopher Vogt2017-02-131-2/+2
| | | | | by replacing context.projectDirectory by workingDirectory and using it as the default but allowing it to being overridden
* Add support for nested builds and use it to replace cross compilationChristopher Vogt2017-02-131-2/+3
| | | | | | | | command which was previously hard-coded This will allow multi-project builds, too but we should first fix caching across instances and GitDependencies on sub-builds within other repositories.
* make sure jar, tests and main classes use the right directoriesChristopher Vogt2017-02-131-4/+5
|
* support for flat classloader and enhanced resources exampleChristopher Vogt2017-02-131-3/+22
|
* Merge pull request #314 from cvogt/fix-update-bugsJan Christopher Vogt2017-02-101-39/+16
|\ | | | | better caching and change propagation fixing link-time errors
| * idempotent change propagationChristopher Vogt2017-02-091-12/+9
| | | | | | | | | | | | using lastModified instead of a non-idempotent needsUpdate flag this fixes a bug where dependees would not be rebuilt if cbt exited or was killed after dependencies were already rebuilt.
| * memoize task results across classes within a single runChristopher Vogt2017-02-091-24/+5
| |
| * make full dependencies available to compile instead of only classpathChristopher Vogt2017-02-011-6/+5
| | | | | | | | | | this will make it possible to access lastModified times and cache them in the following commits
| * Merge separate hashmaps for persistent cache into oneChristopher Vogt2017-02-011-1/+1
| | | | | | | | | | | | | | This isn’t type-safe, but re-using that same hashmap for both keys and classloaders allows to reduce the number of members in Context. Also we can re-use the same hashMap for other things as well in the coming commits, e.g. timestamps.
* | Moved source file filter to build.mchav2016-12-231-2/+5
|/
* minor cleanups regarding ContextChristopher Vogt2016-11-131-2/+5
|
* Merge pull request #311 from cvogt/remove-dot-copyJan Christopher Vogt2016-11-131-2/+10
|\ | | | | reduce usage of .copy as preparation to replace it with newBuild