aboutsummaryrefslogtreecommitdiff
path: root/stage2/Lib.scala
Commit message (Collapse)AuthorAgeFilesLines
* add process library with extracted and new functionsChristopher Vogt2017-06-151-1/+4
|
* fix wrong workingDir when referencing builds by directoryChristopher Vogt2017-04-021-7/+2
|
* support `clean` task without direct modeChristopher Vogt2017-04-011-2/+1
|
* start modularizing cbt into librariesChristopher Vogt2017-03-271-56/+2
| | | | | | | | | | this extracts certain parts of cbt into stand-alone libraries, which can be published to maven and used outside of cbt. This also adds scalariform for these parts of the code. This slows down cbt’s own build a lot because of the number of projects involved! So we’ll follow this by a bunch of performance tweak commits.
* ScalaPB pluginChristopher Vogt2017-03-241-0/+1
|
* Unify reflectively loading builds from directories.Christopher Vogt2017-03-201-82/+63
| | | | | | | | | | THis is mostly cleanup and a little bit feature. Before it was done partially in 3 places, BuildBuild, loadRoot and GitDependency. Now DirectoryDependencies also support referencing sub-builds. Also introduce scalariform for the first few files of cbt's core code :).
* better error than NullPointerException when directory does not existChristopher Vogt2017-03-191-1/+1
|
* Get rid of the hacky "essential" plugins separationChristopher Vogt2017-03-191-10/+1
| | | | | | | Let’s keep move them back into stage2 again instead for reduction of complexity, cbt build speed and convenience of fewer manual dependencies. And for that let cbt just include eval from the start.
* get rid of NameTransformer in favor of using Scala’s oneChristopher Vogt2017-03-191-0/+1
|
* change and expose mechanism mapping from absolute to relative pathsChristopher Vogt2017-03-171-22/+32
| | | | to transfer files from different locations coherently into one location
* Fix not being able to call methods not declared in your build classChristopher Vogt2017-03-151-1/+1
|
* fix file watching for realChristopher Vogt2017-03-121-48/+1
| | | | | | | 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
* revamp loop featureChristopher Vogt2017-03-121-41/+44
| | | | | | | | | | | | | | | | | | | | | 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.
* more concise runMain in more placesChristopher Vogt2017-03-091-4/+2
|
* atomic move and error handling for transform helperChristopher Vogt2017-03-081-7/+20
|
* support publishing to basic-auth protected maven repositoriesChristopher Vogt2017-03-061-7/+3
|
* return Seq[URL] from publish task and \n separate Seqs in std outChristopher Vogt2017-03-061-11/+12
|
* improve whitespace readability in proguard pluginChristopher Vogt2017-03-051-0/+11
|
* handle trying to package / publish with no source files via exceptionChristopher Vogt2017-03-041-14/+9
| | | | this saves us from having to do conditionals in several places
* fix callReflective not finding special char tasks namesChristopher Vogt2017-03-041-6/+8
| | | | and better error message when top-level method not being found
* fix trying to access non-existent methods of Unit not erroringChristopher Vogt2017-03-031-11/+10
|
* jar / doc refactorChristopher Vogt2017-02-281-66/+53
| | | | | | - split out manifest and scaladoc logic - refactor lib calls from inheritance layer - only strip project directory prefix from individually specified files
* move default sourceFileFilter into lib for less OO couplingChristopher Vogt2017-02-271-1/+4
|
* fix results of Seq of builds not being printedChristopher Vogt2017-02-271-10/+10
|
* show methods for Build even if no build file exists to help usersChristopher Vogt2017-02-271-11/+8
| | | | realize when they are in the wrong directory
* use .apply feature instead of special coding for tools usage stringChristopher Vogt2017-02-271-1/+0
|
* task returning empty seq threw exceptionChristopher Vogt2017-02-271-1/+1
|
* call no args .apply methods of referenced objectsChristopher Vogt2017-02-271-1/+9
| | | | this effectively lets users execute no arg functions from the cmd line via cbt
* print exit code when running cbtChristopher Vogt2017-02-271-0/+1
| | | | hopefull this makes things clearer for users and does not get in the way. We'll see.
* make listRecursive a File extension method for brevityChristopher Vogt2017-02-261-2/+2
|
* Merge pull request #356 from cvogt/discover-subbuildsJan Christopher Vogt2017-02-221-6/+19
|\ | | | | treat subdirectores as subbuilds via cmd line
| * treat subdirectores as subbuilds via cmd lineChristopher Vogt2017-02-221-6/+19
| |
* | support cleaning more than just targetChristopher Vogt2017-02-221-5/+5
|/
* fix srcJar path. Was wronly absolute fs path. Now relative.Christopher Vogt2017-02-191-7/+15
|
* top-level instead of anonymous classesChristopher Vogt2017-02-191-2/+2
| | | | | to allow these to work with the dynamic configuration features .copy and DynamicOverride
* the word class was duplicated since .show changedChristopher Vogt2017-02-191-1/+1
|
* simplify and add features to reflective task lookup codeChristopher Vogt2017-02-181-56/+44
| | | | | | | | | | | | | 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.
* fix changed nameChristopher Vogt2017-02-151-1/+1
|
* add package to generated Main.scala to avoid classpath weirdnessesChristopher Vogt2017-02-151-7/+13
| | | | | caused by multiple root package Main classes from different subproject or test projects ending up on the same classpath
* add typed constants for build directory and file and use them everywhereChristopher Vogt2017-02-151-3/+5
|
* implicitly pass classloader, might make code easierChristopher Vogt2017-02-141-3/+2
| | | | | and prepares for allowing `run` and `runFlat` at Dependency instead of Build level
* easier setting of projectDirectory in sub-buildsChristopher Vogt2017-02-131-4/+4
| | | | | by replacing context.projectDirectory by workingDirectory and using it as the default but allowing it to being overridden
* multi-project build example using a single build fileChristopher Vogt2017-02-131-1/+1
|
* Add support for nested builds and use it to replace cross compilationChristopher Vogt2017-02-131-0/+14
| | | | | | | | 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-2/+2
|
* Merge pull request #314 from cvogt/fix-update-bugsJan Christopher Vogt2017-02-101-4/+4
|\ | | | | better caching and change propagation fixing link-time errors
| * idempotent change propagationChristopher Vogt2017-02-091-3/+3
| | | | | | | | | | | | 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-2/+2
| |
* | Moved source file filter to build.mchav2016-12-231-4/+1
|/
* fixes interacting with BuildBuilds from the cli and cleans up.Christopher Vogt2016-11-131-16/+10
| | | | | Before this when doing `build/$ cbt dependencies` cbt would not show up because cbt would be using a BaseBuild, not a BuildBuild. Not it does.