aboutsummaryrefslogtreecommitdiff
path: root/nailgun_launcher
Commit message (Collapse)AuthorAgeFilesLines
* use lower case instead of upper case for hashes to be consistent with SBTChristopher Vogt2016-09-191-2/+2
|
* fix checksum check for downloaded jars by ignoring caseChristopher Vogt2016-09-151-1/+1
|
* fix behavior of System.exit trappingChristopher Vogt2016-09-154-10/+142
| | | | | | | | | Installing one globally for the JVM live-time and make behavior dependent on a thread local variable seems safer than globally switching it out and having race conditions. Also now all other calls are forwarded to a potential Nailgun SecurityManager, which should fix some bugs.
* show complete stack trace, not just the one for the outer most exception, ↵Christopher Vogt2016-09-121-4/+2
| | | | when CBT crashes
* allows any Throwable in Java codeChristopher Vogt2016-09-123-12/+12
|
* Support proxy settings in CBT.Benjamin Frank2016-07-062-3/+46
| | | | | | | Proxy settings can be supplied either via Java system-properties or via environment variables (http_proxy/https_proxy/no_proxy). Java system-properties take precedence over env vars. Evaluation of proxy settings happens only during nailgun startup for now.
* fix bug ignoring OpenOptions when writingChristopher Vogt2016-06-191-1/+1
|
* show scalac warnings to stage1 and stage2 compilationChristopher Vogt2016-06-191-1/+4
|
* unwrap InvocationTargetException. Any reason not to do this? Seems just ↵Christopher Vogt2016-06-151-15/+29
| | | | easier to read without.
* Always create directory before trying to write fileChristopher Vogt2016-06-081-1/+7
|
* rename admin into tools, which seems more appropriateChristopher Vogt2016-05-021-1/+1
|
* Fix use compatibility interfaces from main cbtChristopher Vogt2016-04-291-13/+18
|
* Fix composition. These members had been renamedChristopher Vogt2016-04-291-2/+2
|
* Reproducible builds, composing different CBT version and various improvementsChristopher Vogt2016-04-286-178/+363
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | One large commit, because it is was hard to do these things in isolation or to separate them now. CBT now knows how to load other versions of itself - Support for reproducible builds (!), by providing a CBT git URL and hash to tie build to - Support for composing builds using different CBT versions (!) - introduce (in compatibility/) Java interfaces all CBT versions need to stay compatible with, so they can talk to each other. And put extension methods to these interfaces in cbt package object Class loading - add some sanity checks for class loading - improve class loader invalidation to fix bugs - implement caching in Java land class loaders. In particular to prevent the system class loader to repeatedly generate ClassNotFound exceptions in each sink of the class loader DAG for non JDK classes (meaning major speed up for projects with many classes). - getting rid of transient class loader cache unifying into "persistent" one instead (which is still wrong as invalidation eventually needs to invalidate entire sub graphs of the class loading DAG, not single class loaders. Seems like we'll have to abandon the hashmap based approach and tie caching to dependency objects) Other Caching - cache dependencies extracted from xml files, which was one major time killer, but invalidate cache when cbt changed (maven dependency user facing api needs simplification now!) - memorize last successful compile time in the file system rather than memory, to guard against unnecessary recompiling even across launches (or when using cbt direct) Structural improvements - Factor out ClassLoaderCache on Java land into its own class. - Port MultiClassLoader to Java land, to better compose classloaders in NailgunLauncher. - Remove many global constants and variables (in object paths and in NailgunLauncher) and pass them through instead. Needed for composing of builds. - move more code from resolver into Lib for less entanglement with classes (needed to compatibility interfaces) and better re-usability - remove canBeCached. Everything can be cached now, but we need to be careful about correct invalidation. - remove build announcing produced jars. We can add if ever needed. - change callNullary to return exit code instead of Unit as preparation for next commit introducing "recursive" ScalaTest - Makes ScalaTest support work (still a bit too inflexible, but mostly works well)
* move version numbers to Scala land (to reduce Java code size)Christopher Vogt2016-04-281-3/+0
|
* propagate time taken from bash script into loggerChristopher Vogt2016-04-281-1/+3
|
* add caching to CBTUrlClassLoader (so we can eventually wrap the system class ↵Christopher Vogt2016-04-281-1/+20
| | | | loader into it to not produce multiple exceptions in a classloader tree, where a class is not in the systemclassloader)
* for better performance do not generate exceptions during class loading for ↵Christopher Vogt2016-04-281-0/+4
| | | | control flow, but use null instead
* Finally get rid of JDK 8 dependenciesChristopher Vogt2016-04-041-4/+4
|
* split launcher library functions into their own fileChristopher Vogt2016-04-024-114/+127
|
* propagate info if cbt has changed across builds, so they can be re-compiledChristopher Vogt2016-04-021-4/+4
|
* remove jdk8 dependencies, force jdk7, remove unnecessary cache foldersChristopher Vogt2016-04-022-3/+11
|
* Fix exit code trapping in NailgunLauncherChristopher Vogt2016-04-021-13/+19
| | | | this showed exception when compile errors happened during Stage1.
* Properly cache classloader for stage2 and make CbtDependency work correctly.Christopher Vogt2016-04-021-0/+3
| | | | This fixes the issues with crashes loading stage2 introduces in 57de43907e05d4cd3986e2994e0e3bff93e09b4e. Also should be faster when using nailgun.
* Add build file to build CBT with itself. Needed to be able to consume CBT as ↵Christopher Vogt2016-04-021-1/+1
| | | | a library.
* Typed passing of values from Stage1 to Stage2Christopher Vogt2016-03-301-4/+6
| | | | (thing can still be cleaned up)
* Early classloading improvementsChristopher Vogt2016-03-286-141/+252
| | | | | | | | | - Changed launcher to already load zinc - use code generation to generate necessary dependencies - changed resolver to linearize dependency DAG in a way that guarantees that every transitive dependee of a node in the DAG is a transitive dependee of that node in the linear sequence - move exit code trapping code into java so it can be used for zinc early There seems to be a bug in this version, where CBT crashes about half of the time with a "object is not an instance of declaring class" Exception during running the task from the build object via reflection.
* merged most bootstrapping logic into launcherChristopher Vogt2016-03-203-37/+185
|
* better toString for Java URLClassLoader. Minor enhancementsChristopher Vogt2016-03-201-7/+18
|
* better handle classloaders for watchservice and reflect. even more speedup.Christopher Vogt2016-03-201-5/+6
|
* More speedup by already caching some classloaders in NailgunLauncher. Also ↵Christopher Vogt2016-03-191-25/+59
| | | | fix a few warnings.
* replace two level classloader with hierarchyChristopher Vogt2016-03-191-4/+7
| | | | | | replace two level classloader (one for non-cachable dependencies with a cached parent one for cachable ones) with a hierachy of classloaders corresponding this should eventually allow re-using CBT's classloader between stage1 and stage2 this change breaks the ScalaTest support for now
* Refactored ClassLoaderCache to use key locked cache to pave the way for ↵Christopher Vogt2016-03-191-2/+2
| | | | caching classloaders hierarchically without deadlocks
* Always reset security manager to what it was during startup. Should be less ↵Christopher Vogt2016-03-121-0/+2
| | | | fragile with regards to concurrency and user code setting security managers.
* cleanup: whitespace changes, separated more things into their own files, use ↵Christopher Vogt2016-03-071-8/+8
| | | | ++ for strings everywhere. Added ++ method to File and URL and use it in many places
* fix ArrayIndexOutOfBoundsException cause by an off by twoChristopher Vogt2016-03-061-4/+8
|
* cleanup NailgunLauncher script, make CBT recompilation more fine-grained for ↵Christopher Vogt2016-03-061-26/+15
| | | | speed and easier transfer of part of it into java. Also enable looping to recompile NailgunLauncher and stage1
* nailgun cleanupRob Norris2016-03-051-37/+50
|
* CBT Version 1.0-BETAChristopher Vogt2016-03-041-0/+48