aboutsummaryrefslogtreecommitdiff
path: root/stage2/Lib.scala
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* minor refactoring using shorter namesChristopher Vogt2016-11-131-5/+8
|
* reduce usage of .copy as preparation to replace it with newBuildChristopher Vogt2016-11-131-5/+0
|
* Add support for dynamic re-configuration.Christopher Vogt2016-11-081-1/+13
| | | | | The exact precedence rule of override code vs original code may still need to be tweaked as we go along.
* Sonatype release plugin (#247)Nikolay Tatarinov2016-10-031-6/+5
|
* improve Console not found error messageChristopher Vogt2016-10-021-1/+1
|
* rename apiTarget to more appropriate name docTarget as the task isChristopher Vogt2016-09-281-4/+4
| | | | called docJar
* unify checking for availability of java.io.ConsoleChristopher Vogt2016-09-281-8/+8
|
* Manifest used java.runtime.version for CreatedBy, which gave away info on ↵Christopher Vogt2016-09-141-3/+2
| | | | the java update version, which may be a security risk for the releaser. So now we just say CBT created in instead similar to what other tools are doing.
* Add a bunch of options to try to allow safe usage of cleanChristopher Vogt2016-08-281-33/+48
| | | | | | | try to make tests safer (fixed tests don't have clean yet, nothing has nothing to delete, so current test code would fail)
* Add clean taskChavXO2016-08-281-1/+40
|