- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
using nightly build
Thu, 2009-05-07, 21:14
Please forgive what may seem a dumb question, but to test new xml event
stuff, I've just grabbed the nightly build and I have a bunch of jar
files with names that bear little relation to the named jar files in the
scala distribution.
I've only been using scala to date from the nice cosy environment of
Maven & Lift so I'm a bit flummoxed as to what to do with them and can't
tell find anything on the web site to tell me how to emulate the normal
scala setup or even whether what I have is complete.
Is there any suitable documentation?
Tim
Thu, 2009-05-07, 22:37
#2
Re: using nightly build
You can get at the Scala nightly builds from the comfort of Maven too.
Just make sure the repo-snapshots (snapshots, not releases) repository is in your pom.xml:
<repositories>
...
<repository>
<id>scala-tools.org</id>
<name>Scala-Tools Maven2 Repository</name>
<url>http://scala-tools.org/repo-snapshots</url>
</repository>
</repositories>
And then declare a dependency on Scala 2.8.0-SNAPSHOT.
<properties>
<scala.version>2.8.0-SNAPSHOT</scala.version>
</properties>
<dependencies>
<dependency>
<groupId>org.scala-lang</groupId>
<artifactId>scala-library</artifactId>
<version>${scala.version}</version>
</dependency>
...
</dependencies>
Once a Maven project is set up with that stuff, you can do 'mvn scala:console' to get a Scala console running 2.8.0-SNAPSHOT or 'mvn scala:run -DmainClass=path.to.my.MainClass' to run a class with a "main" method.
--j
On Thu, May 7, 2009 at 1:14 PM, Tim Pigden <tim.pigden@optrak.co.uk> wrote:
Just make sure the repo-snapshots (snapshots, not releases) repository is in your pom.xml:
<repositories>
...
<repository>
<id>scala-tools.org</id>
<name>Scala-Tools Maven2 Repository</name>
<url>http://scala-tools.org/repo-snapshots</url>
</repository>
</repositories>
And then declare a dependency on Scala 2.8.0-SNAPSHOT.
<properties>
<scala.version>2.8.0-SNAPSHOT</scala.version>
</properties>
<dependencies>
<dependency>
<groupId>org.scala-lang</groupId>
<artifactId>scala-library</artifactId>
<version>${scala.version}</version>
</dependency>
...
</dependencies>
Once a Maven project is set up with that stuff, you can do 'mvn scala:console' to get a Scala console running 2.8.0-SNAPSHOT or 'mvn scala:run -DmainClass=path.to.my.MainClass' to run a class with a "main" method.
--j
On Thu, May 7, 2009 at 1:14 PM, Tim Pigden <tim.pigden@optrak.co.uk> wrote:
Please forgive what may seem a dumb question, but to test new xml event
stuff, I've just grabbed the nightly build and I have a bunch of jar
files with names that bear little relation to the named jar files in the
scala distribution.
I've only been using scala to date from the nice cosy environment of
Maven & Lift so I'm a bit flummoxed as to what to do with them and can't
tell find anything on the web site to tell me how to emulate the normal
scala setup or even whether what I have is complete.
Is there any suitable documentation?
Tim
Thu, 2009-05-07, 22:37
#3
Re: using nightly build
On Thu, May 7, 2009 10:50 pm, Paul Phillips wrote:
> On Thu, May 07, 2009 at 09:14:21PM +0100, Tim Pigden wrote:
>> jar files with names that bear little relation to the named jar files
>> in the scala distribution.
>
> Wow, this page is unnecessarily intimidating:
>
> http://www.scala-lang.org/node/212
>
> It would be great if someone could put the most likely to be relevant
> links up top - those being scala-2.8.0.latest.* which are presently
> about ten screenfuls down.
>
The page is just the prettified form of a directory listing, in which the
results of the nightly builds are unceremoniously dumped. The nightly
builds list is quite appropriately intimidating, I find, as looking at
them should communicate fear and danger.
Jokes aside, the content of the various jars and zips in the nightly
directory is actually the same as the content of the regular distribution.
For example, this tgz:
http://www.scala-lang.org/archives/downloads/distrib/files/nightly/scala...
contains the following:
$ ls -d */*
bin/fsc bin/scalap.bat lib/scalap.jar
bin/fsc.bat doc/LICENSE man/man1
bin/scala doc/README src/scala-compiler-src.jar
bin/scala.bat doc/scala-devel-docs src/scala-dbc-src.jar
bin/scalac lib/scala-compiler.jar src/scala-library-src.jar
bin/scalac.bat lib/scala-dbc.jar src/scala-partest-src.jar
bin/scaladoc lib/scala-library.jar src/scala-swing-src.jar
bin/scaladoc.bat lib/scala-partest.jar src/scalap-src.jar
bin/scalap lib/scala-swing.jar
which is the same as the tgz of the main distribution, as documented at
the page http://www.scala-lang.org/node/36. As Paul observed, just adding
the 'bin' directory to the path, regardless of where the tgz was expanded,
should be sufficient.
Toni
Thu, 2009-05-07, 22:47
#4
Re: using nightly build
FYI, Lift probably won't work with 2.8.0-SNAPSHOT unless you compile Lift from source with 2.8.0-SNAPSHOT.
--j
On Thu, May 7, 2009 at 2:29 PM, Jorge Ortiz <jorge.ortiz@gmail.com> wrote:
--j
On Thu, May 7, 2009 at 2:29 PM, Jorge Ortiz <jorge.ortiz@gmail.com> wrote:
You can get at the Scala nightly builds from the comfort of Maven too.
Just make sure the repo-snapshots (snapshots, not releases) repository is in your pom.xml:
<repositories>
...
<repository>
<id>scala-tools.org</id>
<name>Scala-Tools Maven2 Repository</name>
<url>http://scala-tools.org/repo-snapshots</url>
</repository>
</repositories>
And then declare a dependency on Scala 2.8.0-SNAPSHOT.
<properties>
<scala.version>2.8.0-SNAPSHOT</scala.version>
</properties>
<dependencies>
<dependency>
<groupId>org.scala-lang</groupId>
<artifactId>scala-library</artifactId>
<version>${scala.version}</version>
</dependency>
...
</dependencies>
Once a Maven project is set up with that stuff, you can do 'mvn scala:console' to get a Scala console running 2.8.0-SNAPSHOT or 'mvn scala:run -DmainClass=path.to.my.MainClass' to run a class with a "main" method.
--j
On Thu, May 7, 2009 at 1:14 PM, Tim Pigden <tim.pigden@optrak.co.uk> wrote:
Please forgive what may seem a dumb question, but to test new xml event
stuff, I've just grabbed the nightly build and I have a bunch of jar
files with names that bear little relation to the named jar files in the
scala distribution.
I've only been using scala to date from the nice cosy environment of
Maven & Lift so I'm a bit flummoxed as to what to do with them and can't
tell find anything on the web site to tell me how to emulate the normal
scala setup or even whether what I have is complete.
Is there any suitable documentation?
Tim
On Thu, May 07, 2009 at 09:14:21PM +0100, Tim Pigden wrote:
> Please forgive what may seem a dumb question, but to test new xml
> event stuff, I've just grabbed the nightly build and I have a bunch of
> jar files with names that bear little relation to the named jar files
> in the scala distribution.
Wow, this page is unnecessarily intimidating:
http://www.scala-lang.org/node/212
It would be great if someone could put the most likely to be relevant
links up top - those being scala-2.8.0.latest.* which are presently
about ten screenfuls down.
Assuming you downloaded one of those and unzipped it, there should be a
bin directory in there which contains scala, scalac, etc. You don't
need to mess with jars or anything, just running those from the command
line should be sufficient. I can't contrast this to the cozy
environments as I don't use them.