aboutsummaryrefslogtreecommitdiff
path: root/nailgun_launcher/Stage0Lib.java
Commit message (Collapse)AuthorAgeFilesLines
* java concat array helper method (just in case)Christopher Vogt2017-02-271-0/+6
|
* minor helper method name change to match scala’s method namingChristopher Vogt2017-02-271-4/+4
| | | | also Object is easier in java due to lack of .map(…) on arrays
* upgrade zinc to 0.3.13Christopher Vogt2017-02-101-2/+2
|
* use unboxed primitives everywhere possible for reliable == behaviorChristopher Vogt2017-02-091-5/+5
|
* idempotent change propagationChristopher Vogt2017-02-091-9/+44
| | | | | | 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.
* Update early dependencies to new zincChristopher Vogt2016-11-291-2/+2
|
* Fix exit code trapping across classloadersChristopher Vogt2016-10-071-5/+5
| | | | | | | | | | A SecurityManager is once installed globally and stays the same across all classloaders. TrapSecurityManager was installed this way, but it looked up the `trapExitCode` in it's own classloader, while classes in other classloaders (when cbt was using another version of cbt) were writing it to their own classloader. This flag needs to be in a global place instead to fix this, so we'll put it straight into the TrapSecurityManager itself.
* 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-151-5/+6
| | | | | | | | | 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.
* allows any Throwable in Java codeChristopher Vogt2016-09-121-8/+8
|
* Support proxy settings in CBT.Benjamin Frank2016-07-061-3/+45
| | | | | | | 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
|
* Always create directory before trying to write fileChristopher Vogt2016-06-081-1/+7
|
* Reproducible builds, composing different CBT version and various improvementsChristopher Vogt2016-04-281-43/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* split launcher library functions into their own fileChristopher Vogt2016-04-021-0/+123