Commit Graph

2182 Commits

Author SHA1 Message Date
Mark Harrah 87e406fcbd support vals/defs in build.sbt
* must start with val, lazy val, or def (no modifiers currently)
* visible only within the same .sbt file
* multiple definitions allowed without being separated by blank lines
* no blank lines allowed within a definition
2012-11-17 16:27:25 -05:00
Mark Harrah f99ba44703 Control over automatically added settings.
Project.autoSettings accepts a sequence of AddSettings, instances of which
are constructed from methods in AddSettings.  The configurable settings
are per-user settings (from ~/.sbt, for example), settings from .sbt files,
and plugin settings (project-level only).  The order in which these instances
are provided to autoSettings determines the order in which they are appended
to the settings explicitly provided in Project.settings.

For .sbt files, defaultSbtFiles adds the settings from all .sbt files in the
project's base directory as usual.  AddSettings.sbtFiles accepts a sequence
of Files that will be loaded according to the standard .sbt format.  Relative
Files are resolved against the project's base directory.

Plugin settings may be included on a per-Plugin basis by using the plugins
method and passing a Plugin => Boolean.  The settings controlled here are
only the automatic per-project settings.  Per-build and global settings will
always be included.
2012-11-16 09:56:49 -05:00
Mark Harrah 1bc26fa488 When preserving last modified, convert negative values to 0
File.lastModified can return a negative number, but File.setLastModified doesn't accept
negative numbers.  See Java bug #6791812.
2012-11-16 09:56:01 -05:00
Eugene Vigdorchik 960d17c358 Use java.lang.Throwable.setStackTrace. Proper fix for #543. 2012-11-15 10:14:59 -05:00
Mark Harrah 1c1e5c4977 taking care of deprecations removed in Scala master 2012-11-14 11:48:06 -05:00
Mark Harrah 7099ac31fd Docs: Working with macros. Closes #573. 2012-11-12 21:20:52 -05:00
Mark Harrah ce0284e187 Fixes #582. Don't merge dependencies with mismatched transitive/force/changing values.
This avoids the assertion, but note that Ivy is unlikely to work properly in this situation.
2012-11-12 14:45:36 -05:00
Eugene Vigdorchik 761a441805 Filter out null parent files when deleting empty directories. Closes #589. 2012-11-12 14:45:01 -05:00
Benjy 657d842238 Analysis.groupBy implementation. 2012-11-10 19:01:41 -05:00
Mark Harrah 9bf5405621 Fixes #594. Global plugin products weren't being included on Compile classpath of build definition project. 2012-11-10 18:18:15 -05:00
Mark Harrah 52b7dccff4 Handle removed files when skipping to recompiling all files. 2012-11-10 18:18:15 -05:00
Mark Harrah 2428b100fa fix location of sbt-git in project/source-plugins test 2012-11-10 18:18:15 -05:00
Mark Harrah 19c776e1f9 test for #594 2012-11-10 18:18:15 -05:00
Mark Harrah 89573b39b5 Docs: Generate a PDF containing only the Getting Started Guide 2012-11-10 18:18:15 -05:00
Mark Harrah 019dbb6566 Docs: concurrentRestrictions should be 'in Global' 2012-11-10 18:18:15 -05:00
Mark Harrah b2f155fab6 update to latest sbt-site plugin, generate pdf 2012-11-08 22:40:24 -05:00
Mark Harrah ca8bfe2281 precompile against 2.10.0-RC2 2012-11-08 22:40:23 -05:00
Mark Harrah dba160dd1d had to drop non-ascii unicode characters for latex for now 2012-11-08 22:40:23 -05:00
Mark Harrah b451761478 fix broken commit 2012-11-05 10:09:39 -05:00
Mark Harrah b6ff789d44 Work around File constructor not accepting URIs for UNC paths. Fixes #564. 2012-11-05 10:02:33 -05:00
Mark Harrah 4946115521 Recompile everything when invalidated sources exceed a certain fraction of all sources 2012-11-05 10:02:33 -05:00
Mark Harrah b927d42916 fix 0.12.1 changes section 2012-11-01 16:30:19 -04:00
Mark Harrah 313bb1f8f2 deprecate Project-level delegation 2012-10-29 12:34:47 -04:00
Mark Harrah e1c3240eae split ForkTests react() out to workaround SI-6526 2012-10-29 12:22:07 -04:00
Mark Harrah e532d20732 cleanup of #585: compatible with earlier launchers 2012-10-29 09:52:10 -04:00
Eric Bowman 835ee0d1b3 XSBT-5: maven-style ivy repo support in the launcher config
Change-Id: I22c1ff126961d61d92e2e45a5b7eff329d3def90
Reviewed-on: https://gerrit.gilt.com/10950
Reviewed-by: Eric Bowman <ebowman@gilt.com>
Tested-by: Eric Bowman <ebowman@gilt.com>
2012-10-29 09:04:42 -04:00
James Ward 672550c923 Fixed broken URL 2012-10-26 15:07:34 -04:00
Josh Suereth dd99c0b833 Update src/sphinx/Community/Using-Sonatype.rst
Fix link to PGP plugin docs.
2012-10-26 15:07:25 -04:00
nau bdfb570a42 Update compile/inc/Incremental.scala
Fix for http://stackoverflow.com/questions/12972183/sbt-always-does-full-rebuild-because-of-modified-binary-dependency-rt-jar
def externalBinaryModified uses java.io.File.equals() to check if files are the same. It's better to use File.getCanonicalPath in this case.
2012-10-22 08:23:23 -04:00
Mark Harrah b14d616a12 Docs: use repo.scala-sbt.org on Community-Plugins page 2012-10-22 08:22:48 -04:00
Mark Harrah 12d549709b Docs: fix version switching from / 2012-10-16 16:11:53 -04:00
Mark Harrah 4f6bab595f Docs: fix switching version of /index.html to go to versioned home.html 2012-10-16 16:04:56 -04:00
Mark Harrah ff57f1f8e6 Docs: fix overlap of title and search box 2012-10-16 16:04:15 -04:00
Mark Harrah 28d3118d1d Docs: auto-generate /index.html from <version>/docs/home.html and add version selection 2012-10-16 15:01:58 -04:00
Michael Allman 840ddbffff Update documentation to reflect API change: externalIvySettings(url("...")) -> externalIvySettingsURL(url("...")) 2012-10-16 08:03:28 -04:00
Eugene Vigdorchik 4bb5007282 Call System.exit after the main thread is finished. Closes #565. 2012-10-16 07:47:30 -04:00
Eugene Vigdorchik 88e8090d7a Abort running tests on the first failure to communicate results back to the main process. Closes #557. 2012-10-16 07:47:30 -04:00
Mark Harrah ba7bed8ec7 Docs: fix overlap of hidden h1 with breadcrumb bar. 2012-10-15 13:05:15 -04:00
Mark Harrah c6b355e267 search bar and link Home to scala-sbt.org when targeting the website 2012-10-15 12:42:28 -04:00
Mark Harrah 6354b174e8 Java classfile analysis: log the problematic URL when IO.urlAsFile throws an exception. Ref #564. 2012-10-15 12:42:28 -04:00
Mark Harrah b3b943653b address publishTo warning 2012-10-15 12:42:28 -04:00
Mark Harrah bbf7fc0b35 docs: minor cleanup of Proxy-Repositories 2012-10-15 12:42:28 -04:00
Mark Harrah 1612af8dbb Parser.failOnException method, don't let rhs of alias fail the parse. Fixes #572.
alias only parses the right hand side for tab completion help.
The assignment should happen whether or not the parse is successful because the
context may change by the time the alias is actually evaluated.
In particular, the 'set' command uses the loaded project for tab completion in 0.12.1.
When a .sbtrc file is processed, the project has not been loaded yet, so aliases
involving set fail.  Wrapping the rhs in failOnException addresses this.
2012-10-15 12:42:27 -04:00
Mark Harrah d6072275aa replace Symbol.nameString calls with simpleName(Symbol). Fixes #577.
nameString is only for printing and has different behavior when scalac is
given -uniqid.
2012-10-15 12:42:27 -04:00
Josh Suereth 88ca4aec64 More about mvn vs. ivy proxies 2012-10-12 14:54:41 -04:00
Josh Suereth 44650ca89f First cleanup 2012-10-12 14:54:41 -04:00
Josh Suereth baa365eb5e Added Proxy repository configuration guide. 2012-10-12 14:54:40 -04:00
Mark Harrah ca9f094b83 use 0.12.1 to build 2012-10-12 10:52:23 -04:00
Mark Harrah 42c04c4d57 Docs: remove Yum and Apt sections. These repos follow Typesafe stack releases, not sbt releases. 2012-10-11 10:04:33 -04:00
Mark Harrah 00d0259b07 update links in README to point to scala-sbt.org. Fixes #567. 2012-10-10 08:30:40 -04:00