Commit Graph

171 Commits

Author SHA1 Message Date
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
Mark Harrah 113fdbaff1 fix launcher tests 2012-07-01 15:16:41 -04:00
Mark Harrah d8f5c39465 remove most occurrences of ScalaObject 2012-07-01 15:16:41 -04:00
Mark Harrah c9310db337 resolve Ivy home launcher setting to absolute path 2012-06-22 22:11:25 -04:00
Mark Harrah d9a8ec0c22 system property name: resolver->repository 2012-06-02 19:03:57 -04:00
Josh Suereth 76d24091fa Fixes from mark's suggestions.
* Puppies may rest easy from the removal of Option.get calls.
* better names for config values
* Added a helper method to avoid any possible code duplication, besides repeated def, val, match and for keywords.
  Looking for ways to remove this duplciation ASAP.
* Moved from pattern match to ._1, my most hated member.
2012-05-30 21:42:45 -04:00
Josh Suereth 8bca690e0a User may now override default resolvers with a config file. * Configuration parsing now looks for a ivy.resolver-config property for alternative resolver config. * ivy.resolver-config defaults to ~/.sbt/repositories * If the resolve config file exists, its [resolvers] section is used instead of sbt-launch.jar's * Attempted to re-use as much code as possible and add as little as needed. 2012-05-30 21:42:45 -04:00
Josh Suereth 52307d27a4 Adding ability to override resolvers from launcher. * Added key which pulls the repositories used by the launcher, if the API allows. * Added which configures whether or not should just use . * Added parsing to launcher so java property is used by default for override setting. 2012-05-30 21:42:45 -04:00
Mark Harrah ba13aec159 extra launcher properties paths for missing and unmatched sbt.version 2012-05-27 20:03:08 -04:00
Mark Harrah 1488bf2eff restore scala-tools-* repository names in launcher as aliases to sonatype-oss-* 2012-05-27 20:03:08 -04:00
Mark Harrah f39af0bab3 a more universal launcher
when a properties file is not otherwise explicitly specified,
the sbt.version from project/build.properties is used to select
the default properties file to use.  This launcher should be able
to launch:

 0.7.x
 0.10.{0,1}
 0.11.{0,1,2,3}
 0.12.x

Note that it can only launch the release versions of 0.10 and 0.11
listed above and in particular cannot launch snapshot versions.  All
0.12.x versions and 0.7.x versions should be supported, although only
0.7.7 was tested.
2012-05-24 21:50:25 -04:00
Mark Harrah e8b8be7547 more scala-tools replacements 2012-05-05 20:35:04 -04:00
Mark Harrah fa725ef9c9 replace scala-tools-snapshots with sonatype oss 2012-04-14 19:13:24 -04:00
Mark Harrah 13d3e7dde3 update to Scala 2.9.2 2012-04-13 17:47:12 -04:00
Mark Harrah 2a84a80d5b clean up scalaOrg changes 2012-04-12 17:31:28 -04:00
Vojin Jovanovic 079a2c1bda Minimizing effects of scalaOrganization key addition. 2012-04-11 12:55:01 +02:00
Vojin Jovanovic cbb8caef0c Backwards compatibility check for getScala method.
Added groupId dependant baseDirectoryName.
General code cleanup.
2012-04-11 04:04:21 +02:00
Vojin Jovanovic 0f6a50daee Addressing https://github.com/harrah/xsbt/pull/418
Changed the order of parameters in getScala method.
Changed the key name to scalaOrganization (scala-organization).
Augmented description of the key.
Minor fixes.
2012-04-05 12:19:49 +02:00
Vojin Jovanovic 182b7c655f Adding `scalaOrg` setting key for scala clones.
Adding scalaOrg key that specifies organization (artifactId) of scala used in the project. The change does not affect version checks for dependecies and LauncherConfiguration.

Modified scalaProvider cache in Launcher to use (scalaOrg, version) as a key.

Downloaded jars are stored in the folder scala-.../lig-<scalaOrg> if scalaOrg is not default.

scala-org is an advanced setting so it can not be used in build.sbt.
2012-04-04 19:06:55 +02:00
Stefan Zeiger 602e5e2f27 Make the launcher initialize Jansi if it's found on the path 2012-04-02 21:21:11 +05:30
Mark Harrah 111dfba6a3 support setting sbt.version from system property, which overrides setting in a properties file
fixes #354
2012-02-07 21:52:37 -05:00
Mark Harrah 5bdd55b751 keep scala-tools.org snapshots around a little longer 2012-02-04 21:10:30 -05:00
Mark Harrah dd4efec03c auto detect Scala version for non-cross-versioned launcher app 2012-02-04 21:10:30 -05:00
Mark Harrah 7b31db4171 no cross versioning for sbt 2012-02-04 21:10:30 -05:00
Mark Harrah 651d858676 substitute variables in explicit version strings 2012-02-04 21:10:30 -05:00
Mark Harrah 8b06887753 back end side of auto Scala version detection in launcher 2012-02-04 21:10:30 -05:00
Mark Harrah c7b73dc938 substitute variables in custom repository definitions 2012-01-31 07:01:08 -05:00
Mark Harrah 2255bd5a62 org.scala-tools.sbt -> org.scala-sbt and dropping scala-tools.org from defaults 2012-01-22 22:06:52 -05:00
Michael Allman 26fe2594bc Remove superfluous call to exit() in main() 2011-11-28 23:23:14 -08:00
Michael Allman c0b4764683 Print the launcher version and exit if it's passed exactly one argument named "--version" 2011-11-26 16:30:38 -08:00
Mark Harrah b16d4a36ad Remove local Maven repository from launcher's list of repositories
This is motivated by the high likelihood that it is causing the
 various problems some users have with the launcher not finding
 some dependencies. ref #217.
2011-11-09 18:30:35 -05:00
Mark Harrah 8e9e4b22cd checksums configurable in [ivy] section. fixes #235 2011-11-04 13:40:59 -04:00
Mark Harrah bb84e32291 fixes #226. allow launched applications to signal the launcher's job is complete by returning Continue 2011-10-14 19:53:01 -04:00
Mark Harrah 2c9e943daa require module descriptor in launcher 2011-10-14 07:52:10 -04:00
Mark Harrah dcfdbe94b4 launcher: retrieve artifacts with 'bundle' type 2011-10-14 07:52:10 -04:00
Aaron D. Valade 96e5a7957c added parsing of a credentials file to add Ivy Credentials to the keyring
If the user sets the _sbt.boot.credentials_ system property or the
_SBT_CREDENTIALS_ environment variable, then that file gets parsed for a
realm, hostname, username and password which is added to the
CredentialsStore static instance.
2011-09-21 15:57:42 +08:00
Mark Harrah 02f666ec0e miscellaneous fixes 2011-08-31 20:59:40 -04:00
Mark Harrah a2fe069fb0 default to shared boot directory 2011-08-31 08:25:11 -04:00
Mark Harrah 112f58db28 fix ScalaProviderTest 2011-08-14 10:53:37 -04:00
Mark Harrah 67db9cc743 expose launcher repositories 2011-07-19 21:29:05 -04:00
Mark Harrah 5f8a73cc21 extra component for supporting dynamic changes to sbt's classpath. fixes #83 2011-07-01 23:38:03 -04:00
Mark Harrah eb6a59bdd3 move locks test back to a normal unit test 2011-06-27 22:29:48 -04:00
Mark Harrah c7885ce1ff build work 2011-06-26 12:27:07 -04:00
Mark Harrah 9f4778a2a0 try to work around internal FileChannel NPE 2011-06-26 12:27:06 -04:00
Mark Harrah 1a4646b7f5 move locks test to scripted tests 2011-06-26 12:27:06 -04:00
Mark Harrah 9878d9b3ff allow specifying artifact/ivy patterns in [repositories] separately 2011-06-25 09:37:26 -04:00
Mark Harrah 4f2490d124 launcher: don't retrieve artifacts with classifiers 2011-06-11 20:09:15 -04:00
Mark Harrah fdbeb7742b exclude JUnit from Scala dependencies 2011-06-11 20:09:15 -04:00
Mark Harrah 13adcfb28c fix some tests 2011-06-10 08:08:51 -04:00
Mark Harrah 6cebff588b use class loader argument instead of loader of current class 2011-06-10 07:48:53 -04:00