Commit Graph

49 Commits

Author SHA1 Message Date
dmharrah a3f1c671a6 JSP test
git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@940 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-08-08 22:13:10 +00:00
dmharrah 84e98aae1a Fixed broken test case
git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@937 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-08-02 02:05:32 +00:00
dmharrah cd8c8ea007 * Many logging related changes and fixes. Added FilterLogger and cleaned up interaction between Logger,
scripted testing, and the builder projects.  This included removing the recordingDepth hack from Logger.  
Logger buffering is now enabled/disabled per thread.
 * Fix compileOptions being fixed after the first compile
 * Minor fixes to output directory checking
 * Added defaultLoggingLevel method for setting the initial level of a project's Logger
 * Cleaned up internal approach to adding extra default configurations like 'plugin'
 * Added syncPathsTask for synchronizing paths to a target directory
 * Allow multiple instances of Jetty (new jettyRunTasks can be defined with different ports)
 * jettyRunTask accepts configuration in a single configuration wrapper object instead of many parameters
 * Fix web application class loading (#35) by using jettyClasspath=testClasspath---jettyRunClasspath for 
loading Jetty.  A better way would be to have a 'jetty' configuration and have 
jettyClasspath=managedClasspath('jetty'), but this maintains compatibility.
 * Copy resources to target/resources and target/test-resources using copyResources and copyTestResources 
tasks.  Properly include all resources in web applications and classpaths (#36).  mainResources and 
testResources are now the definitive methods for getting resources.



git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@936 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-08-02 01:26:18 +00:00
dmharrah 22f2d5b993 Add check against uninitialized vals to reflective discovery
git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@935 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-08-02 01:12:24 +00:00
dmharrah e3517c7a6f Add syncPaths method to FileUtilities for arbitrary sources (not just a directory)
git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@934 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-08-02 01:09:16 +00:00
dmharrah 28061254b0 Fix for using automatic discovery of compiler plugins in projects that define plugins
git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@933 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-08-02 01:08:25 +00:00
dmharrah fb64501c9b yet another 2.8 compatibility hack
git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@932 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-08-02 01:07:09 +00:00
dmharrah 91d05d74c8 Compatibility with 2.8 reporter/position changes
git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@931 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-08-02 01:06:11 +00:00
dmharrah e798bffc9c Part II of repository changes
git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@930 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-08-02 01:04:34 +00:00
dmharrah 4afeeb1c8b Change order of repositories: local,shared,Maven central,user defined, and finally, scala-tools
git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@929 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-08-02 01:03:45 +00:00
dmharrah 8d507ea50e More 2.8 compatibility changes
git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@928 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-08-02 01:01:55 +00:00
dmharrah 1ee23e827e Changes for compatibility with 2.8
git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@927 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-08-02 00:59:54 +00:00
dmharrah 9a816b20d0 Small comment in a test
git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@924 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-08-02 00:54:12 +00:00
dmharrah d58d29c7d9 Run method properly fails when executed code throws an exception in the main thread
git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@919 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-07-30 00:15:44 +00:00
dmharrah fa29b38b38 Fixed problem with overriding testDefinitionClasses too specifically (Nil)
git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@918 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-07-30 00:11:42 +00:00
dmharrah d44f771125 Make code in sbt.classfile private[sbt]
git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@908 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-07-27 19:38:09 +00:00
dmharrah e502847dfb * Add test for publish-local for multi-projects.
* Make `managedStyle` inherit from parent when unspecified
 * Define method containing package actions to run before deliver,deliver-local


git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@904 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-07-27 19:14:57 +00:00
dmharrah c94decd6cd Fixed compiler-project test
git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@896 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-07-27 15:33:34 +00:00
dmharrah c8f0a72da9 Added test for tracking anonymous classes from Java sources
git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@895 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-07-27 15:17:43 +00:00
dmharrah 3cd6f75b4a More fixes for tracking Java sources.
git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@894 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-07-27 15:13:55 +00:00
dmharrah dd32ac75da Fix class file resolution issue
git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@893 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-07-27 13:52:38 +00:00
dmharrah b6da7c4e5c Properly track anonymous classes generated from Java sources.
git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@892 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-07-27 12:51:29 +00:00
dmharrah 11339e3518 Track dependencies for Java sources using classfile parsing (with the usual limitations of this approach)
git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@886 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-07-26 23:15:02 +00:00
dmharrah ff97bbec4b * Cleanup
* Exposed ClasspathUtilities.toLoader(PathFinder) methods
 * Implemented adding project dependencies for Ivy files



git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@885 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-07-26 19:25:54 +00:00
dmharrah d0a9e63140 Fixed dynamic task checking
git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@880 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-07-22 12:05:50 +00:00
dmharrah e58cd74987 Support for classifiers to the extent that Ivy supports them:
- can publish artifacts with classifiers
 - can retrieve artifacts with classifiers, but classifier does not appear in generated pom



git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@879 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-07-22 02:56:57 +00:00
dmharrah 8420606a8c * fixed tab completion for method tasks for multi-project builds
* check that tasks in compoundTask do not reference static tasks
 * make toString of Paths in subprojects relative to root project directory
 * crossScalaVersions is now inherited from parent
 * Added scala-library.jar to the javac classpath
 * Added Process.cat that will send contents of URLs and Files to standard output



git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@877 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-07-21 23:44:29 +00:00
dmharrah f2fe9bcfe3 Fixed tab completion for multi-project builds
git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@872 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-07-16 20:03:20 +00:00
dmharrah 066e5588c7 Added basic binary plugin test
git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@870 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-07-16 16:11:30 +00:00
dmharrah 8067eb42d5 Added test-failed test
git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@869 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-07-16 15:40:12 +00:00
dmharrah f8489a77c5 Revert change that exited on exception in main thread (that behavior is a Scala runner bug)
git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@867 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-07-16 13:51:19 +00:00
dmharrah da85255f8e Properly emulate main thread exceptions terminating application even if other threads are running
git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@866 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-07-16 13:31:46 +00:00
dmharrah b6a693be44 * Fixed 'run' swallowing exceptions.
* sbt test framework extensions can now be defined in a project (to bundle with a test framework, for example)



git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@865 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-07-16 13:00:55 +00:00
dmharrah d746a13232 Added tests for latest partial recompilation fixes.
git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@860 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-07-11 18:49:26 +00:00
dmharrah 6b2c36d0ef * Fixed problem where a dependency on only static members of a Java class was not recorded
* Fixed problem where new dependencies on sources not included in the compilation were not added



git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@859 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-07-11 18:48:35 +00:00
dmharrah 39573225d1 Fix Logger to work when jline is not available
git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@858 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-07-08 22:23:00 +00:00
dmharrah 4dfdf5d356 Fix connecting process input to System.in
git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@856 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-07-08 02:52:20 +00:00
dmharrah c350ab6b3c * Worked around Java issue converting URL to File
* Processes can now redirect standard input (see run with Boolean argument or !< operator on 
ProcessBuilder), off by default
 * Terminal echo reenabled when JLine is not reading in a line
 * Properly detect unsupported terminals using JLine's Terminal.isANSISupported method



git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@853 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-07-07 23:54:12 +00:00
dmharrah d189dbf386 Move scripted tests
git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@848 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-07-07 01:12:20 +00:00
dmharrah 0fee43295e Make multiTask run all subtasks when none are specified.
git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@847 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-07-07 01:11:46 +00:00
dmharrah 6f816b8fe5 Fix the provided fix by only including managed dependencies on the provided and optional fullClasspaths
git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@845 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-07-06 22:42:01 +00:00
dmharrah ad0cbc177b Fixed problem where dependencies of `sbt` plugins were not on the plugin compile classpath
git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@841 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-07-05 23:29:28 +00:00
dmharrah 947271dc47 * Added constant processes 'true' and 'false'
* Added simple processes that do no I/O and return an exit value
 * Fixed support for defining a process in scala.xml.Elem



git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@840 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-07-05 18:57:25 +00:00
dmharrah f3c776dab3 * Added execTask that runs a ProcessBuilder
* Added implicit from scala.xml.Elem to ProcessBuilder that uses the element's text as the command.  For example:
    <x> {command.absolutePath} -x {a.absolutePath} </x>
 * Added methods to PathFinder to get the results as Strings or Files



git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@839 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-07-04 17:32:14 +00:00
dmharrah 4886d95efa new `jetty` action that waits for a key press before terminating (intended to be used from batch-style)
git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@828 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-07-01 04:57:20 +00:00
dmharrah aa4b084ecc * Fixed manual `reboot` not changing the version of Scala when it is manually `set`
* Split out functionality to filter sub tasks
 * Added convenience methods for constructing a CompoundTask
 * fixed tab completion for cross-building
 * added empty scheduler



git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@825 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-07-01 04:04:36 +00:00
dmharrah ce90bece62 Fixed class loading for web applications
git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@823 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-06-29 00:50:39 +00:00
dmharrah 2f4ba50850 * Fix installer build
* Revert managedStyle back to Auto



git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@814 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-06-26 02:09:31 +00:00
dmharrah 7f92cc5f4c * Removed build scripts and manual dependencies
* useDefaultConfigurations supersedes useMavenConfigurations and is now true by default
 * Moved installer-plugin to its own independent project as an sbt plugin
 * bumped version for 0.5 release
 * Updated project excludes for plugins
 * Specifying the explicit URL for dependency now infers the extension and type from the URL
 * Can load credentials from a properties file instead of adding them inline
 * Added help for '+'
 * Added method configurationPath to get the path to the directory containing dependencies downloaded for a Configuration
 * managedStyle = ManagedStyle.Maven by default now



git-svn-id: https://simple-build-tool.googlecode.com/svn/trunk@813 d89573ee-9141-11dd-94d4-bdf5e562f29c
2009-06-26 01:26:06 +00:00