Mark Harrah
02f666ec0e
miscellaneous fixes
2011-08-31 20:59:40 -04:00
Indrajit Raychaudhuri
434d7f2322
organizationName and organizationHomepage need not be set in GlobalScope
2011-08-31 20:34:40 +05:30
Mark Harrah
65ae7dab1c
switch publishMavenStyle off when project is an sbt plugin
2011-08-30 09:16:33 -04:00
Mark Harrah
0c2cb33d7b
Undeprecate conversions to ScopedKey
2011-08-28 13:30:11 -04:00
Mark Harrah
1471081c0d
test to ensure correctness of local resolver+useOrigin in ivysettings.xml
2011-08-27 23:13:10 -04:00
Mark Harrah
febe7e56e1
fix binary dependency recompilation problem introduced by fix for #108
2011-08-27 11:54:16 -04:00
Mark Harrah
565cd3802f
fix dependsOn breakage from Initialize rework
2011-08-26 23:27:03 -04:00
Mark Harrah
039982ab1e
better default for traces in run
2011-08-26 23:27:03 -04:00
Mark Harrah
bf1d471118
rearrange watchSources construction to automatically add sources for new configurations
2011-08-26 23:27:03 -04:00
Mark Harrah
faeb9e2fb1
Make 'package' an alias for 'package-bin'. Fixes #156
2011-08-23 19:53:33 -04:00
Mark Harrah
9ebf809259
test for separate configuration of doc sources
2011-08-23 19:51:51 -04:00
Mark Harrah
71a346bd4c
support separate configuration of doc inputs
2011-08-22 22:48:35 -04:00
Mark Harrah
49b85384e7
use -Yrepl-sync for console-project to avoid deadlock on REPL startup in 2.9
2011-08-19 22:13:56 -04:00
Mark Harrah
6ea27e893b
handle Scala version better in 'about' command
2011-08-18 08:23:43 -04:00
Mark Harrah
d36e02ea22
allow setting initialization to be partially dynamic and run in parallel
2011-08-14 10:53:37 -04:00
Mark Harrah
f7f6879f5e
provide access to some project structure as a setting
2011-08-14 10:53:37 -04:00
Mark Harrah
18b57bb101
fix ++ command to not require a space after it
2011-08-14 10:53:37 -04:00
Mark Harrah
90f25b234e
Settings overhaul, intended to be source compatible where it matters.
...
Moves many methods previously provided by implicit conversions directly onto the classes
for better discoverability, especially with scaladoc.
1. Initialize now allowed in more places. Minor renamings in Initialize to avoid conflicts
a. map -> apply
b. get -> evaluate
2. Identity on Scoped* is deprecated- it is now redundant
3. Can now use += and <+= for String, Int, Long, Double settings.
There may be some problematic corner cases in inference, especially with +=, ++, <+=, <++=
4. Some classes with a scoped: ScopedKey[T] method now have scopedKey: ScopedKey[T] instead.
5. The implicit conversion to ScopedKey[T] is now deprecated. Use the scopedKey method.
6. :== and ::= are now private[sbt] to better reflect that they were internal use only.
2011-08-14 10:53:37 -04:00
Josh Suereth
95b8c34627
Changed skip to be a Task so we can dynamically compute it's value based on a file
2011-08-12 13:30:21 -04:00
Indrajit Raychaudhuri
b57e8cd17a
Hava scaladocOptions in GlobalScope for consistency
2011-08-11 01:05:30 +05:30
Indrajit Raychaudhuri
952089bf92
Add well-known main manifest attributes by default for binary and source jars
2011-08-08 20:57:18 +05:30
Mark Harrah
10aa2d67c6
use sbt version in target path for sbt plugins
2011-08-05 21:59:49 -04:00
Mark Harrah
70dcae84ee
preserve key+configuration ambiguity through task+extra parsing. fixes #135
2011-08-05 21:59:49 -04:00
Mark Harrah
1d4d566d6b
support use of native libraries in 'run' and 'test'
2011-08-05 21:56:32 -04:00
Mark Harrah
29db8dbe8d
include native libraries on unmanaged classpath
2011-08-05 21:56:32 -04:00
Mark Harrah
93801cd946
temporary directory for use by tasks that will be cleaned up after task execution
2011-08-05 21:56:32 -04:00
Mark Harrah
f065037572
onComplete hook for cleanup after task execution
2011-08-05 21:56:32 -04:00
Indrajit Raychaudhuri
bb75b74eb6
Remove some deprecations and redundant code
2011-08-05 13:30:04 +05:30
Mark Harrah
980e906ca1
handle custom -bootclasspath in incremental recompilation
2011-08-04 07:20:25 -04:00
Mark Harrah
a19d5a799c
try out simplified display of scoped keys
2011-08-04 07:20:25 -04:00
Mark Harrah
70113c88fa
remove special case for display for 'compile' configuration
2011-08-04 07:20:25 -04:00
Indrajit Raychaudhuri
67102aadff
- Extra Settings are now available to control project information, viz., name, description, homepage, organization name, organization homepage, licenses
...
- Modified name/signature of some private types/methods to reduce confusion (all in limited scope, so nothing should change from end user's pov)
- Enriched Ivy and Maven descriptors produced out of the box (see Keys.scala and Defaults.scala for more)
- Projects do not need to create custom Ivy <info/> block anymore, there is more settings-specific control instead
2011-08-03 08:49:46 +05:30
Mark Harrah
e67b3be331
allow Defaults.packageTasks to be used in global configuration
2011-08-01 14:23:42 -04:00
Mark Harrah
a6ef6481ac
use configurations for modules for update-classifiers. fixes #104
2011-07-31 22:17:50 -04:00
Mark Harrah
93ac92fee7
artifact name should be moduleName by default, not normalized name
2011-07-31 16:50:39 -04:00
Mark Harrah
f8d12c5106
Seq[Setting[_]] <=> SettingsDefinition
2011-07-30 18:11:20 -04:00
Mark Harrah
d8362761de
fix fullRun*Task not doing work. missed by compiler due to value discarding
2011-07-30 18:11:20 -04:00
Mark Harrah
af6b420083
fix automatic artifact configuration selection for non-standard scope configurations
2011-07-29 23:33:10 -04:00
Mark Harrah
4305d94f5e
add convenience methods for filtering settings and keys
2011-07-29 23:33:10 -04:00
Mark Harrah
3e9921a07a
for undefined references, suggest the nearest defined scope that is more specific if it exists. fixes #135
2011-07-27 22:35:20 -04:00
Mark Harrah
c195f943c0
aggregate 'last'. fixes #131
2011-07-27 19:50:59 -04:00
Mark Harrah
a8fd017499
maven-compatible plugin dependency system
2011-07-27 19:50:59 -04:00
Mark Harrah
e75628c81b
make scalaInstance a task. fixes #127
2011-07-26 13:34:02 -04:00
Mark Harrah
73a10644d7
add 'skip' for manually overriding whether recompilation should occur. fixes #128
2011-07-26 13:34:01 -04:00
Michael Bayne
74ac135968
Fixed reversed logic in fix for #125 .
2011-07-26 09:25:57 -07:00
Mark Harrah
021009052e
don't print Uninitialized exception name
2011-07-25 21:59:22 -04:00
Mark Harrah
eb31cc025a
Allow multiple sources to target a target directory in sync.noDuplicateTargets. fixes #125
2011-07-25 21:38:01 -04:00
Mark Harrah
5d353b4113
lookup sbt version in 'update' to allow using binary plugins with nightlies
2011-07-25 21:38:01 -04:00
Mark Harrah
1c151d116a
pull scoped key examples from references as well as definitions. ref #121
...
this should improve the keys available for completion, including globally defined keys
2011-07-24 22:35:27 -04:00
Mark Harrah
a1dc17b2c6
allow task axis to be specified when the setting has no instances with it specified. fixes #121
2011-07-24 22:35:27 -04:00
Mark Harrah
00c41ae59a
include logging backing file in 'about' command output
2011-07-24 17:36:42 -04:00
Mark Harrah
30baf74169
improved global logging and 'last' command
2011-07-24 17:36:42 -04:00
Mark Harrah
f654b03618
allow running last from load failure prompt
2011-07-24 17:36:42 -04:00
Mark Harrah
2d4d27e529
add 'about' command with sbt versions and Scala versions
2011-07-24 17:36:42 -04:00
Mark Harrah
109326d34b
additional warning when ignoring project load failure
2011-07-24 17:36:42 -04:00
Mark Harrah
a9315dbd49
Interpret empty string as retry on project load error.
2011-07-24 17:36:42 -04:00
Mark Harrah
2cacdff1f8
use sbt snapshots repository for -SNAPSHOT version
2011-07-24 17:36:41 -04:00
Mark Harrah
5903fb88a2
includes sbt, Scala version extra attributes in repository/cache patterns
2011-07-23 23:07:54 -04:00
Mark Harrah
71d306a2a2
always publish ivy files for sbt plugins
2011-07-23 23:07:54 -04:00
Mark Harrah
cc10940813
use extra attributes for sbt, Scala version of sbt plugins
2011-07-23 23:07:54 -04:00
Mark Harrah
f0a9305ba2
clean up graphSettings
2011-07-23 23:07:54 -04:00
Fred Dubois
4ffe240eca
Support for readonly file ProjectRef
...
This allows using a project reference that points to a readonly
directory.
The use case for this is having sbt plugin projects on a network
share (readonly) that you can just point to. The plugin projects
get copied and built automatically, just like a git project
reference gets cloned and built.
This will ease plugin imcompatibilies between minor sbt versions,
avoiding to have to cross build plugins against all compatible sbt
versions.
2011-07-23 22:24:46 -04:00
Mark Harrah
4ae0ba6b57
more refactoring of special settings: input tasks. fixes #114
2011-07-21 22:03:56 -04:00
Mark Harrah
fb9e3bd516
apply finalTransforms to reapplied settings
2011-07-21 22:03:56 -04:00
Mark Harrah
6acbbb05a3
support configuring checksums differently for publish, publish-local, update, and update-sbt-classifiers. fixes #115
2011-07-21 22:03:56 -04:00
Mark Harrah
bf8b577e4f
proper resolvedScoped implementation
2011-07-19 21:29:05 -04:00
Mark Harrah
f8183cc6f2
remove incomplete debugging
2011-07-19 21:29:05 -04:00
Mark Harrah
e748a74eac
spelling
2011-07-19 21:29:05 -04:00
Mark Harrah
3f0644d136
use launcher repositories for update-sbt-classifiers. fixes #88
2011-07-19 21:29:05 -04:00
Mark Harrah
b3bcd82a21
better location for global settings in the precedence chain
2011-07-18 17:14:22 -04:00
Mark Harrah
bcc3e12abc
use 'scalaVersion in update' for cross building, IvyScala.substituteCross for generality. fixes #86
...
also, 'scalaVersion in artifactName` for the version to append to artifacts
2011-07-17 11:26:27 -04:00
Mark Harrah
b956b62c89
use name setting when displaying updated project
2011-07-17 11:26:27 -04:00
Mark Harrah
cc50225bfb
fix placement of global settings so that project-local settings override global settings
2011-07-16 13:31:18 -04:00
Mark Harrah
0ea418e985
provide better indication of cause of incompatible sbt versions
2011-07-16 12:53:29 -04:00
Mark Harrah
b29380de96
add default identity load/unload transformations
2011-07-15 15:48:36 -04:00
Mark Harrah
dcedc57ad7
better default transitiveClassifiers for update-sbt-classifiers
2011-07-13 18:08:29 -04:00
Mark Harrah
ed20823886
cleanup
2011-07-13 18:08:29 -04:00
Mark Harrah
3eef6229db
show test key in no tests message. fixes #102
2011-07-12 23:09:57 -04:00
Mark Harrah
555b1c04a4
shorten default hash suffix for project ID
2011-07-12 23:09:57 -04:00
Mark Harrah
f7cb85d36e
restrict discarding session settings error message to direct load/reload. fixes #99
2011-07-12 23:09:57 -04:00
Mark Harrah
2d342d1485
allow global sbt directory to be configured. fixes #96
2011-07-12 23:09:57 -04:00
Mark Harrah
cbf7b82cdb
clean up whitespace handling in commands. fixes #97
2011-07-12 07:47:31 -04:00
Mark Harrah
eb14e97485
use runtime full-classpath for plugins
2011-07-11 07:55:27 -04:00
Mark Harrah
2e99fde9d2
overrideConfigs method for easier configuration substitution
...
ref #42
2011-07-09 16:54:41 -04:00
Mark Harrah
9737a30a7d
global settings. closes #52
2011-07-09 16:54:41 -04:00
Mark Harrah
b096d1b175
global settings preparation: separate compilation/loading stages of Eval
2011-07-09 16:54:41 -04:00
Mark Harrah
1d792c3601
warn when there is an sbt version conflict. fixes #80
2011-07-08 21:54:59 -04:00
Mark Harrah
15427d32b3
Include evicted modules and statistics in UpdateReport
2011-07-08 21:54:59 -04:00
Mark Harrah
467f6bc486
scope transitiveClassifiers by the update*classifiers task using it
2011-07-07 22:04:28 -04:00
Mark Harrah
ac4b00c1de
warn when test argument provided for undefined test framework. fixes #87
2011-07-07 22:04:28 -04:00
Mark Harrah
1ee6b903f3
better global plugin support
2011-07-06 07:30:47 -04:00
Mark Harrah
d7a35e8e1d
minor rearranging of rootProject
2011-07-06 07:30:47 -04:00
Mark Harrah
6e1c41af64
psuedo-unique default ID to avoid collisions in simple cases
2011-07-06 07:30:47 -04:00
Mark Harrah
aebde6b3e6
move dependency mapping to IvySbt#Module
2011-07-06 07:30:47 -04:00
Mark Harrah
179a2a31c8
convenience methods on Scope for setting axes
2011-07-06 07:30:47 -04:00
Mark Harrah
353be43978
redid global plugins for proper classpath handling and preparation for global settings (pending)
2011-07-06 07:30:47 -04:00
Mark Harrah
e36ab1f000
temporarily drop global plugins, preserve Attributed more
2011-07-06 07:30:47 -04:00
Mark Harrah
9fb6f20177
declare sbt dependency for plugins to be in Provided, ref #80
2011-07-03 15:44:53 -04:00
Mark Harrah
17fad01b01
convenience on State for global locking
2011-07-03 15:44:52 -04:00
Mark Harrah
8d922b61ab
cleanup MainResult handling to enable finer control over reloading
2011-07-01 23:38:03 -04:00
Mark Harrah
f94ab145b5
accept arguments for scripts
2011-06-29 21:44:55 -04:00
Mark Harrah
5ec6a0479f
fix help message for 'set'
2011-06-29 07:47:33 -04:00
Mark Harrah
37c5062d2d
don't drop session settings during cross build
2011-06-27 22:29:48 -04:00
Mark Harrah
205a67e4a3
warn when reload discards session settings
2011-06-27 22:29:48 -04:00
Mark Harrah
5b1ca2c6b0
drop SessionSettings.prepend, which wasn't used
2011-06-27 22:29:48 -04:00
Simon Olofsson
f05cbf00b2
Recover when gitRetrieve(.) fails.
...
When gitRetrieve(.) fails (e.g. because no git is installed) an
exception is thrown but the created directory isn't removed. This commit
removes the directory when an exception occurs, so that the user can
retry.
2011-06-27 16:45:22 +02:00
Mark Harrah
f7068a4cbb
introduce file-mappings for File->File, Extracted.append for reloading with additional settings
2011-06-26 12:27:06 -04:00
Mark Harrah
48940bf23c
Merge pull request #74 from duboisf/issue_68
...
Added JavacLogger, closes #68
2011-06-25 06:59:57 -07:00
Fred Dubois
2f4be49cf6
Added JavacLogger, for issue #68
...
- JavacLogger.msgs uses ListBuffer for constant time append
- Synchronized access to JavacLogger.msgs since appends comes from multiple
threads
- JavacLogger.info uses Level.Info instead of Level.Debug
- Wrapped call to javac in allCatch to guarantee logger being flushed
2011-06-25 09:55:23 -04:00
Mark Harrah
e73ebda27d
fix accumulation of loggers in tests. allows custom test configurations to extend Test
2011-06-25 09:37:55 -04:00
Mark Harrah
1307292256
put exclude_classifiers in target/ of the root project. fixes #70 .
2011-06-23 20:37:57 -04:00
Mark Harrah
18a3e7995e
add new ProjectReference called LocalRootProject for referencing the root project in the current build
2011-06-23 20:37:56 -04:00
Mark Harrah
e5fbfdd3c1
Resolve References in plugins
2011-06-23 20:37:56 -04:00
Mark Harrah
b867d2e398
add method noTestCompletion() for disabling test name completion. ref #66
2011-06-23 20:37:56 -04:00
Mark Harrah
c919a9c3fd
cache calls to definesClass within a run. closes #67
2011-06-22 19:17:10 -04:00
Mark Harrah
738e32b9c6
add extraLoggers to make it easier to add loggers
2011-06-22 19:17:10 -04:00
Mark Harrah
5d0cdc8de4
use ivyConfigurations for interDependencies instead of scope configurations
2011-06-22 19:17:10 -04:00
Mark Harrah
d0e072aa14
fix dependsOn not propagating failures in dependencies
2011-06-22 19:17:10 -04:00
Mark Harrah
4921be04c8
add ChainedResolver(name: String, resolvers: Seq[Resolver]), closes #63
2011-06-20 15:25:23 -04:00
Mark Harrah
c4ac9445e3
cache failing classifiers. fixes #46
2011-06-19 21:01:29 -04:00
Mark Harrah
4c770e8f27
annotate return type Seq[Setting[_]] for several methods in Defaults
...
works around issue with scalac:
[error] class file needed by Defaults is missing.
[error] reference type _$34 of (t: <?>)(ss: <?>)Seq[sbt.Project.Setting[_]] refers to nonexisting symbol.
2011-06-18 21:02:15 -04:00
Mark Harrah
a028f8e6d7
fixes issue with inter-project resolution when project delegates are defined
2011-06-18 20:17:50 -04:00
Mark Harrah
b8ba743e87
fix description of unmanagedBase
2011-06-18 14:55:32 -04:00
Mark Harrah
50fd30a695
ProjectDefinition.toString
2011-06-15 19:09:31 -04:00
Mark Harrah
1248830e2c
fix 'inspect' not showing setting value
2011-06-15 19:08:49 -04:00
Mark Harrah
0fa5b85736
fix ProjectDefinition.equals not considering base directory, ref #54
2011-06-15 19:08:49 -04:00
Mark Harrah
09c05dea97
fix issue of duplicate fullClasspath entries from products and dependencyClasspath
2011-06-14 19:32:36 -04:00
Mark Harrah
62c580024d
inter-project provided dependencies, closes #53
2011-06-14 19:32:36 -04:00
Mark Harrah
540f7df9e1
cleaning up artifact configurations
2011-06-14 19:32:36 -04:00
Mark Harrah
25edfc5eeb
drop Incomplete task message, fixes #32
2011-06-14 19:31:55 -04:00
Mark Harrah
3c775416b4
make settings parameter for ProjectDef call-by-name
2011-06-14 19:31:54 -04:00
Mark Harrah
8e4192b144
show type in output of 'inspect'
2011-06-14 19:31:54 -04:00
Mark Harrah
9f5d219310
Define 'type' for builtin artifacts based on classifier
2011-06-12 21:32:52 -04:00
Mark Harrah
cadee45e8f
drop crossVersion after substitution for sbt dependency to avoid double cross-suffix, fixes #51
2011-06-12 21:32:52 -04:00
Mark Harrah
63857ddd16
add pomAllRepositories option to include module configuration resolvers in pom. closes #39
2011-06-12 21:32:51 -04:00
Mark Harrah
b97eb58396
define type for artifacts looked up by update-classifiers, fixes #49
2011-06-11 20:09:15 -04:00
Mark Harrah
be1bdbb350
use current project's logLevel for command logging
2011-06-10 23:40:25 -04:00
Mark Harrah
36d2394208
implements #41
2011-06-10 08:08:52 -04:00
Mark Harrah
d64cd8e34d
fixes #45
2011-06-10 08:08:52 -04:00
Mark Harrah
208cf12045
honor formatEnabled setting, fixes #48
2011-06-10 08:08:51 -04:00
Mark Harrah
6c5203f160
allow ~/.sbt/plugins/ to be built directly
2011-06-02 18:35:25 -04:00
Mark Harrah
3de6a0735f
fix packaging
2011-06-01 02:19:46 -04:00
Mark Harrah
c0a21c1524
implement shortcut for API equality checking, fixes #18
2011-06-01 02:19:46 -04:00
Mark Harrah
d54a992c23
small change to compiling message
2011-05-31 18:37:07 -04:00
Mark Harrah
7733c57934
fix test-only behavior with no arguments
2011-05-31 18:37:07 -04:00
Mark Harrah
4945190eca
rearrange products settings
...
1. enables exporting jar to classpath instead of class directory
2. starts to make post-processing class files easier
2011-05-31 18:37:07 -04:00
Mark Harrah
e5443141b1
error handling adjustments, including showing failing task in red (for #29 )
2011-05-30 22:10:01 -04:00
Mark Harrah
2432642571
Adjust ivyScala to not use build-level scalaVersion. fixes #28
2011-05-30 22:10:01 -04:00
Mark Harrah
1169e7790d
fix test-only filtering
2011-05-30 17:49:39 -04:00
Mark Harrah
437a3f7f50
clean up incremental debugging messages
2011-05-29 19:17:31 -04:00
Mark Harrah
a94247d1b6
more release-worthy compile message and analysis toString
2011-05-29 19:17:31 -04:00
Mark Harrah
7d08bfe3ca
add specs2 to list of known test frameworks
2011-05-29 19:17:31 -04:00
Mark Harrah
f7d2ff713b
fix key search order
2011-05-29 19:17:31 -04:00
Mark Harrah
fb60ba1e11
help: alignment and add tasks
2011-05-28 17:02:16 -04:00
Mark Harrah
d81273a0c6
fix issue with spaces on blank lines in build.sbt
2011-05-28 17:02:16 -04:00
Mark Harrah
04280a89a4
discover projects reflectively, provide access to build root
2011-05-26 22:13:58 -04:00
Mark Harrah
8c659328e9
back A.Key with Manifest, dropping object equality. fixes #27
...
type inference restoration pending switch to 2.9.0
2011-05-26 08:21:33 -04:00
Mark Harrah
9a914bea4b
minor improvements to running tasks from console-project
2011-05-25 22:44:22 -04:00
Mark Harrah
85a55c25bf
settle scala-library situation
2011-05-25 22:44:22 -04:00
Mark Harrah
46f1e9b4a7
put testOptions and testListeners in Global for more flexibility
2011-05-25 00:02:43 -04:00
Mark Harrah
50294c1519
support wildcards in test-only
2011-05-24 23:54:49 -04:00
Mark Harrah
e048c6d07e
fully configurable run task easier to create
2011-05-23 21:43:26 -04:00
Mark Harrah
41667f9f49
test fix
2011-05-23 18:40:03 -04:00
Mark Harrah
17f243bf9c
make a few settings easier to override globally
2011-05-23 08:14:39 -04:00
Mark Harrah
6ae6a4b9ad
or combinator for common optional setting handling case
2011-05-23 08:14:10 -04:00
Mark Harrah
c5a312cedc
task axis delegation
2011-05-23 08:13:13 -04:00
Mark Harrah
b4597eb931
sbtVersion convenience setting
2011-05-21 13:51:13 -04:00
Mark Harrah
9439a737b8
make parallel execution configurable, fixes #22
2011-05-21 13:51:13 -04:00
Mark Harrah
06ec88af3d
build sxr, api docs and use sbinary 0.4.0
2011-05-17 20:09:20 -04:00
Mark Harrah
523553b9ca
proper test-interface compatibility
2011-05-17 17:47:48 -04:00
Mark Harrah
b4c29b20a1
fix multi-project cross building
2011-05-16 23:18:48 -04:00
Mark Harrah
49e4b11e23
fix managed resource directory location
2011-05-16 22:56:07 -04:00
Mark Harrah
69ed08eb4a
fix scope of crossScalaVersions
2011-05-16 22:56:07 -04:00
Mark Harrah
c427c3e503
use shorter name for repository
2011-05-16 22:56:07 -04:00
Mark Harrah
903690ce8c
don't handle threads/trap exit for user 'runTask' by default
2011-05-15 21:01:03 -04:00
Mark Harrah
b9608651c4
properly handle Scala library references in fix for #16
2011-05-14 20:16:57 -04:00
Mark Harrah
1f0101cd6b
fix #16
2011-05-14 20:01:30 -04:00
Mark Harrah
c81a2f9d3c
insert externalResolvers between resolvers and fullResolvers
2011-05-14 18:21:41 -04:00
Mark Harrah
3464228deb
fix console-project class loader
2011-05-14 18:21:41 -04:00
Mark Harrah
5c48ea2433
show stack traces for console* by default
2011-05-14 18:21:41 -04:00
Mark Harrah
2343a55bb9
replace Path with RichFile
2011-05-14 18:21:41 -04:00
Mark Harrah
ca405e9783
run task convenience constructors, (re)source generator hooks
2011-05-12 22:33:45 -04:00
Mark Harrah
7837e1a37b
variants of += and ++= that accepting Initialize[S]
2011-05-12 22:33:45 -04:00
Mark Harrah
19ed648de5
tests and fixes for delegation
2011-05-09 20:57:10 -04:00
Mark Harrah
6bf9d9655b
distinct builds in delegates
2011-05-07 22:02:06 -04:00
Mark Harrah
6bd500bbe2
scope defaultExcludes uses by the referencing task
2011-05-07 22:02:06 -04:00
Mark Harrah
c8fe1a3c1d
buffered, separate loggers for each test
2011-05-07 22:02:06 -04:00
Mark Harrah
e653517c8d
compact incomplete task error message
2011-05-07 22:02:06 -04:00
Mark Harrah
77be505093
support extra axis for streams
2011-05-07 22:02:06 -04:00
Mark Harrah
5d47aca7e8
Use fragment part of URI for specifying branch/tag for external build references
2011-05-07 22:02:06 -04:00
Mark Harrah
9dc9ccd0d3
Use standard {build}/id syntax for 'project' command
2011-05-07 22:02:06 -04:00
Mark Harrah
40c6ca3b3d
Pluggable build resolvers
2011-05-07 22:02:06 -04:00
Mark Harrah
0ad682f2c1
basic optional input support
2011-05-07 22:02:06 -04:00
Mark Harrah
97fcbb6aaf
filter task axis for tab completion
2011-05-07 22:02:05 -04:00
Mark Harrah
5e9b080fc8
fix artifact name to be normalized
2011-05-07 22:02:05 -04:00
Mark Harrah
7ad8e9778f
fix mixed compilation order
2011-05-07 22:02:05 -04:00
Mark Harrah
babf642dfc
speed up startup
2011-05-02 20:43:19 -04:00
Mark Harrah
5e9cc7ea5c
Add runtime classpaths
2011-05-02 20:41:47 -04:00
Mark Harrah
ef20db1aa9
clear scala-home during cross-building
2011-05-02 19:37:04 -04:00
Mark Harrah
6c6eccea4f
trying out different costs for edit distance
2011-04-26 22:29:30 -04:00
Mark Harrah
515386d973
load/unload hooks
2011-04-26 21:19:56 -04:00
Mark Harrah
08c9d37053
Managed/unmanaged sources/resources, fixes triggered execution
2011-04-26 21:07:53 -04:00
Mark Harrah
1c86e5781a
Handle exceptions thrown during triggered execution polling
2011-04-26 21:06:54 -04:00
Mark Harrah
f8bcf910c2
show slash with project IDs instead of as a separate token
2011-04-26 21:02:31 -04:00
Mark Harrah
daa58adc85
work on parser error handling
2011-04-25 20:20:05 -04:00
Mark Harrah
8836b83ba3
support earlier launchers
2011-04-23 16:01:42 -04:00
Mark Harrah
c432331ec0
sbt-based repl access with command line dependency declarations
...
based on the ideas of n8han, softprops, paulp
2011-04-23 15:26:44 -04:00
Mark Harrah
30e454af0a
tab complete main classes, trigger auto-detection tasks on compilation
2011-04-23 13:17:21 -04:00
Mark Harrah
f24af2a05b
support for task hooks: triggeredBy and runBefore
2011-04-23 11:49:58 -04:00
Mark Harrah
324c832dee
easier task data storage
2011-04-22 20:13:24 -04:00
Mark Harrah
41f1f849ec
default to flat mappings for resources/packaging
2011-04-21 21:39:18 -04:00
Mark Harrah
a601e8ea09
individual settings for make-pom-configuration
2011-04-21 21:39:18 -04:00
Mark Harrah
8f639ffc4d
convenience methods for working in console-project
2011-04-20 23:33:53 -04:00
Mark Harrah
815ed50dcf
task/setting/attribute descriptions
2011-04-20 20:18:58 -04:00
Mark Harrah
9e044d042d
include managed directory in clean
2011-04-20 18:31:51 -04:00
Mark Harrah
defd1ee0d4
Cache doc task
2011-04-20 18:31:10 -04:00
Mark Harrah
60eda4bb20
Implement optional/provided configurations, closes #8
2011-04-19 22:24:52 -04:00
Mark Harrah
02421e46f5
fix doubled cache when boot Ivy directory configured
2011-04-19 22:21:59 -04:00
Mark Harrah
0608e648a5
use left, some, right to avoid extra anonymous classes
2011-04-19 17:58:05 -04:00
Mark Harrah
6abab8e4b3
fix tab completion issue with test-only
2011-04-19 17:56:12 -04:00
Mark Harrah
dc6584ff68
scripts: change base directory
2011-04-18 18:26:57 -04:00
Mark Harrah
b56701f37e
disable overrideScalaVersion when scalaHome is set
2011-04-16 20:18:16 -04:00
Mark Harrah
f3d18f051f
delegates cleanup
2011-04-16 20:05:15 -04:00
Mark Harrah
5806dbaab0
work on dependency management tests
2011-04-16 16:38:47 -04:00
Mark Harrah
7acfad0234
external* methods to use ivysettings.xml, ivy.xml, or pom.xml
2011-04-16 13:16:54 -04:00
Mark Harrah
b75605c701
expand out to Apply9
2011-04-16 12:36:54 -04:00
Mark Harrah
818382766e
add Types.idFun to replace Predef.identity, replace a :== overload
...
idFun[T]: T => T instead of identity[T](t: T): T
doesn't require a new class file when used as a function value
replaced overloads of :== that assigned the Scoped reference on
the right to the Scoped on the left with <<= scoped.identity
2011-04-16 11:24:58 -04:00
Mark Harrah
fee9429b03
more work on dependency management tests
2011-04-16 11:22:10 -04:00
Mark Harrah
a15bd90309
artifact and cross-naming fixes/improvements
2011-04-15 20:13:38 -04:00
Mark Harrah
0b4d0e1062
inject sbt-managed Scala libraries into the UpdateReport
2011-04-15 18:32:20 -04:00
Mark Harrah
3e29126cbf
support checksum generation and checking, enable by default
2011-04-15 18:25:54 -04:00
Mark Harrah
7fb97c6353
fix Scala version transitively (by default)
2011-04-14 21:48:12 -04:00
Mark Harrah
6699539278
push artifact-classifier higher up in scope
2011-04-14 07:45:43 -04:00
Mark Harrah
5dcc1bc9bc
direct Artifact->File map, removing source patterns
...
build and publish main sources and docs by default
control built-in artifacts with 'publish-artifact'
// disable publishing docs
publishArtifact in (Compile,packageDoc) := false
// enable publishing test jar, docs, and sources
publishArtifact in Test := true
2011-04-14 07:32:42 -04:00
Mark Harrah
d1af51da72
support explicitly defining sequences of settings in .sbt files
2011-04-13 19:09:33 -04:00
Mark Harrah
f55414355e
improve error messages for cycles
2011-04-13 19:06:36 -04:00
Mark Harrah
132278d1d8
Ivy home configurable instead of cache directory, work on artifact test
2011-04-13 19:03:36 -04:00
Mark Harrah
1c400db4d9
harden clean and IO.move
2011-04-12 23:10:36 -04:00
Mark Harrah
fe75bade98
continuations test for compiler plugin support
2011-04-12 22:58:32 -04:00
Mark Harrah
ed27a8077d
clean up scope delegation implementation
2011-04-12 20:58:59 -04:00
Mark Harrah
4d635e449f
split out cross target directory, preserve history during clean, fix credentials
2011-04-12 20:58:40 -04:00
Mark Harrah
43f0212092
cleanup logging paths, allow logger to be customized
2011-04-12 20:33:29 -04:00
Mark Harrah
ada8e42ef5
minor improvements to .sbt file format
...
allow standalone blocks of // style comments
and allow comments to precede imports
2011-04-12 20:30:52 -04:00
Mark Harrah
a085e86f38
sort configurations for stable ordering of settings
2011-04-12 20:29:26 -04:00
Mark Harrah
4b70fe0921
auto-compiler plugins
2011-04-11 22:12:03 -04:00
Mark Harrah
399dd8ec48
support delegating to a project with different configurations
2011-04-10 18:51:50 -04:00
Mark Harrah
673f9923ab
dependency filters, selecting/filtering UpdateReport
2011-04-10 16:22:48 -04:00
Mark Harrah
2f2e24c87d
cross building
...
+, ++ require a space
+ <command>
++ <scala-version> [command]
set scala versions in crossScalaVersions
2011-04-09 20:42:57 -04:00
Mark Harrah
8d06ba2d92
cleanup some sequencing settings in Defaults
2011-04-09 19:58:49 -04:00
Mark Harrah
ff7b5138c5
fix excessive Incomplete lifting
...
unnecessarily led to multiple tasks reported as failing for a single cause
2011-04-09 18:43:21 -04:00
Mark Harrah
7b2e4978fb
fix line number off by one in configuration error messages
2011-04-09 15:49:35 -04:00
Mark Harrah
650bef7b06
demo script command
2011-04-09 15:04:18 -04:00
Mark Harrah
e6b816d86e
add additional in scope identifiers
2011-04-08 22:13:53 -04:00
Mark Harrah
50e453c70c
provide more convenient access to BuildStructure and all projects
2011-04-08 22:03:41 -04:00
Mark Harrah
51e8dac35c
tweaks to EvaluateConfiguration
2011-04-08 19:32:01 -04:00
Mark Harrah
1b147b4953
reorganize main
2011-04-08 19:15:13 -04:00
Mark Harrah
76ab8f8e53
detect cyclic references after freeze and translate nodes to keys
2011-04-07 22:51:25 -04:00
Mark Harrah
0b4d8fb505
fix collision with name 'state' in 'console-project'
2011-04-07 22:50:48 -04:00
Mark Harrah
2a737690a8
allow Scala-level cyclic references between projects
...
this occurs legally when different dependencies go in
reverse directions, as with delegates
the direct arguments to Project.apply are now call-by-name
the modifying functions like 'aggregate' cannot be call-by-name
since they are varargs
2011-04-07 22:48:01 -04:00
Mark Harrah
dfb0a9ec8c
put remaining keys in Keys
2011-04-06 21:00:48 -04:00
Mark Harrah
5a67998490
options specific to each test task, consolidates streams to the right task
2011-04-06 20:55:30 -04:00
Mark Harrah
1e7d628dbb
lift anonymous Incompletes to the next keyed, empty Incomplete
2011-04-06 20:52:48 -04:00
Mark Harrah
159a3fe8f3
credentials and patterns for resolvers
2011-04-05 18:44:47 -04:00
Mark Harrah
f2270262d2
ScopedTask[t] -> ScopedKey[Task[t]] implicit
2011-04-05 07:10:28 -04:00
Mark Harrah
a1c3ffb376
add 'initialize' setting
2011-04-04 21:22:19 -04:00
Mark Harrah
15f490c625
fix input tasks not being keyed & not showing up in failed task list
2011-04-04 19:10:35 -04:00
Mark Harrah
a750c1563f
Java/Scala compilation order support
2011-04-03 22:12:51 -04:00
Mark Harrah
a5f3e1b839
clean up build definition exceptions and messages
2011-04-03 22:12:51 -04:00
Mark Harrah
8059b1a164
ability write graph of settings dependencies to dot format
2011-04-01 21:08:08 -04:00
Mark Harrah
db5019a178
include publish-to resolver in other-resolvers
2011-04-01 21:06:49 -04:00
Mark Harrah
d79fa21348
fix publish patterns for maven style publishing
2011-04-01 21:06:07 -04:00
Mark Harrah
2b37df87b5
'inspect actual <key>' for actual dependencies, 'inspect <key>' for declared
2011-03-29 20:53:21 -04:00
Mark Harrah
4821f16eb3
scalaVersion in GlobalScope, delegates test
2011-03-28 22:29:35 -04:00
Mark Harrah
496cd05de8
run-main for specifying main class to run
2011-03-28 17:19:12 -04:00
Mark Harrah
2ab8f5c3c0
fixes to 'inspect' delegates and provided by outputs
2011-03-25 22:01:21 -04:00
Mark Harrah
aa395583b5
provide access to per-build and build-global keys from command line
...
[build-uri]/key for per-build
*/key for build-global
2011-03-25 21:42:04 -04:00
Mark Harrah
135609e5b0
temporary hack to avoid reading Analysis every compile
2011-03-25 21:37:17 -04:00
Mark Harrah
dd012099d2
include 'bundle' packaging type on classpath in addition to 'jar'
2011-03-25 18:25:52 -04:00
Mark Harrah
cc1e02f6a3
allow unqualified 'test', no longer requiring 'test:test'
2011-03-25 18:24:45 -04:00
Mark Harrah
e498b9bd3a
tab completion fixes and cleanup
2011-03-24 21:28:02 -04:00
Mark Harrah
07dbba65d1
memoize aggregation, cleanup
2011-03-23 07:06:51 -04:00
Mark Harrah
8c0d441fec
clean up Ivy-related logging
2011-03-22 20:53:33 -04:00
Mark Harrah
e0b453225e
logging for packaging
2011-03-22 20:42:21 -04:00
Mark Harrah
0123351a8f
initially only display originating task failures only
2011-03-21 20:50:20 -04:00
Mark Harrah
1de086755b
command logging through Streams, 'last' without a key to redisplay it
2011-03-21 20:26:04 -04:00
Mark Harrah
f34c3b5837
some renamings and removals suggested by Heiko
...
clarify command-related members of State:
processors -> definedCommands
commands -> remainingCommands
drop some Extracted members:
curi replaced by currentRef.build
cid replaced by currentRef.project
2011-03-21 17:56:41 -04:00
Mark Harrah
caee48130e
split out SessionSettings from Project.scala
2011-03-21 17:56:24 -04:00
Mark Harrah
63b1c3441b
work on displaying task errors
2011-03-20 22:54:01 -04:00
Mark Harrah
7b4c16f294
cleanup
2011-03-19 23:22:18 -04:00
Mark Harrah
4ce57596d9
fix exit code
2011-03-19 14:07:03 -04:00
Mark Harrah
50f1bd73d6
add convenience method for evaluating tasks
2011-03-19 00:04:37 -04:00
Mark Harrah
7c7af7c998
use 'distinct' for State.++ to ensure commands are not duplicated
2011-03-19 00:04:07 -04:00
Mark Harrah
6215819890
'update' caching now takes into account whether jars still exist
2011-03-17 21:29:35 -04:00
Mark Harrah
afbd23e9f3
global plugin configuration in ~/.sbt/plugins/
...
just like <base>/project/plugins/ but included in all projects
2011-03-16 22:22:46 -04:00
Mark Harrah
37e24daebf
use stable ordering for PathFinder.getFiles
2011-03-16 22:22:20 -04:00
Mark Harrah
15e785a1e4
more stable managed classpath ordering
2011-03-16 22:21:02 -04:00
Mark Harrah
ac280e5fe7
if sbtPlugin is true, sbt dependency and resolver are added
2011-03-16 20:09:59 -04:00
Mark Harrah
4a8e79befb
retrieve to build, update-classifiers action
...
set retrieve := true to have dependencies retrieved to the build
the location is by default shared by all projects in a build
(<built-root>/lib_managed/), but can be per-project
update-classifiers and update-sbt-classifiers retrieves artifacts with classifiers
for project dependencies and for sbt, respectively
The default setting is classifiers := Seq("javadoc", "sources")
2011-03-15 22:12:59 -04:00
Mark Harrah
09b36a4476
make global scope explicit in command-retrieval
2011-03-13 21:42:44 -04:00
Mark Harrah
787f00985b
detailed UpdateReport replaces Map[String,Seq[File]]
...
the information included is:
configuration -> module -> artifact -> file
2011-03-13 21:40:49 -04:00
Mark Harrah
26d834e926
binary plugin auto-detection
2011-03-13 21:38:05 -04:00
Mark Harrah
8da0f1705e
Plugin auto-settings empty by default
2011-03-13 21:33:28 -04:00
Mark Harrah
d371ff9314
more consistent configuration of the Ivy user directory
2011-03-12 10:28:53 -05:00
Mark Harrah
f18241395b
'reload plugins' to change to plugins project
...
'reload return' to change back to original project.
Declaring a plugin:
> reload plugins
> set libraryDependencies += ...
> reload return
2011-03-11 22:33:30 -05:00
Mark Harrah
c0c287d50e
reintegrate history commands, add proper parsing for recursive commands
2011-03-11 16:52:44 -05:00
Mark Harrah
77092b7888
resolver keys, javaHome, scalaHome, and change Java source resolution
...
- rename resolvers to fullResolvers, baseResolvers to resolvers
- if set, use javaHome for compilation as well as running
- add scalaHome configuration for easily configuring scalaInstance
for a local Scala installation
- no longer require source roots for Java sources. Instead, resolve
ambiguities by package name and then distance to root. Common
package suffixes in different directories within the same project
are a potential problem.
2011-03-09 18:07:43 -05:00
Mark Harrah
fc32a31abf
Merge branch '0.9' of github.com:harrah/xsbt into 0.9
2011-03-08 17:53:43 -05:00
Mark Harrah
37f793be6e
make ClasspathOptions configurable
2011-03-08 17:50:19 -05:00
Mark Harrah
ea188e74cc
success indication and timestamps for actions
2011-03-06 21:57:31 -05:00
Mark Harrah
a680dc2336
fix tests
2011-03-06 15:32:06 -05:00
Mark Harrah
f6fe55f57c
space adjustments for alias-related parsers
2011-03-06 08:32:51 -05:00
Mark Harrah
3a85bd47d6
restore missing piece of alias body that prevents looping
2011-03-06 08:21:16 -05:00
Mark Harrah
15e40d4172
filename cleanup
2011-03-05 15:13:16 -05:00
Mark Harrah
d7e2f6233d
use the launcher's cache directory by default if it is set
2011-03-05 09:11:16 -05:00
Mark Harrah
1ee5891ac9
further delegation adjustments to searching project=Global
2011-03-05 08:50:08 -05:00
Mark Harrah
f298d3a8f2
put configurations into default build scope
2011-03-05 08:25:17 -05:00
Mark Harrah
e7b47d67e7
canonicalize classpath before compiling
2011-03-04 12:02:46 -05:00
Mark Harrah
b7f92ae07f
2.9 compatibility fixes
2011-03-04 06:16:35 -05:00
Mark Harrah
60d9355b54
add build level configuration
...
made ProjectRef semantics explicit
2011-03-03 06:44:19 -05:00
Mark Harrah
70972c6499
normalize key names
2011-03-02 06:46:28 -05:00
Mark Harrah
4cd6e60360
add 'full' option to 'reboot' that cleans project/boot before restarting
2011-03-01 09:44:45 -05:00
Mark Harrah
38d113e8b1
reintegrate ~ (again)
2011-03-01 08:54:06 -05:00
Mark Harrah
11c2b2239c
continuous polling interval now in milliseconds
2011-03-01 08:51:14 -05:00
Mark Harrah
3922580c58
join for tasks and settings
2011-03-01 08:48:14 -05:00
Mark Harrah
3c08eed2a6
address some deprecations
2011-03-01 08:44:41 -05:00
Mark Harrah
98bd962952
make "globals" per-build definition
2011-02-27 16:28:00 -05:00
Mark Harrah
0729798cce
keys cleanup
2011-02-27 00:36:54 -05:00
Mark Harrah
c21c580314
allow This, Global to represent ThisScope, GlobalScope
2011-02-27 00:34:57 -05:00
Mark Harrah
19698e308e
keys cleanup part 2
2011-02-27 00:02:50 -05:00
Mark Harrah
5ea24a460b
keys cleanup 1.
2011-02-26 23:34:39 -05:00
Mark Harrah
83866ffb42
incremental tests, misc fixes
2011-02-26 20:34:18 -05:00
Mark Harrah
a68e4c74f9
updating more integration tests
2011-02-25 18:35:52 -05:00
Mark Harrah
4f4ae170d3
work on plugins, added console-project, re-integrated more tests
2011-02-24 23:30:06 -05:00
Mark Harrah
9db4afd222
bring more integration tests back online with associated fixes
2011-02-23 19:19:44 -05:00
Mark Harrah
ba8f43a23e
starting to convert integration tests
2011-02-22 22:36:48 -05:00
Mark Harrah
329709c750
configurable shell prompt
...
for example:
Command.ShellPrompt := {
s => Project.extract(s).cid + "> "
}
2011-02-21 19:35:05 -05:00
Mark Harrah
df1c9c00c7
include Scala version to artifact names to match expected names for publishing
2011-02-21 10:22:39 -05:00
Mark Harrah
ea1e7d6cae
disable aggregation by default for the interactive tasks
2011-02-21 10:07:58 -05:00
Mark Harrah
218ccc2c9f
aggregation
2011-02-21 10:07:39 -05:00
Mark Harrah
2ed574b30d
fix unmanaged dependencies being excluded in certain cases
2011-02-20 15:40:29 -05:00
Mark Harrah
9fb78514c7
add unmanaged jars from project dependencies
2011-02-19 23:25:30 -05:00
Mark Harrah
04910baf2f
command cleanup, load project by default, prompt on load failure
2011-02-19 22:22:09 -05:00
Mark Harrah
552be510ad
restrict configuration and project ID to valid values at parser level for tab completion
2011-02-19 08:49:30 -05:00
Mark Harrah
16cd2e7fdc
append caret to pointer string
2011-02-18 20:55:37 -05:00
Mark Harrah
cda1995a6b
make default name the project id
2011-02-15 18:41:40 -05:00
Mark Harrah
8ad8718366
rename 'get' to 'inspect', merge 'delegates' command into it
2011-02-15 18:41:01 -05:00
Mark Harrah
dcd24f5dc4
implement %%
2011-02-14 18:57:54 -05:00
Mark Harrah
83cb152fd7
rename 'inherits' to the more appropriate 'delegates'
2011-02-14 18:56:29 -05:00
Mark Harrah
cfd4b99f29
when evaluating settings, import Keys._ by default
2011-02-14 18:55:05 -05:00
Mark Harrah
dd06a0c1d3
fix mixed up javac/scalac options
2011-02-13 19:02:22 -05:00