source: Dev/branches/play-2.0.1/documentation/manual/hacking/BuildingFromSource.md @ 322

Last change on this file since 322 was 322, checked in by hendrikvanantwerpen, 13 years ago

Added Play! framework and application with Jena dependency. Working on
the basic things now (login/register), after that start implementing
our data model.

File size: 1.9 KB
Line 
1# Building Play 2.0 from sources
2
3To benefit from the latest improvements and bug fixes after the initial beta release, you may want to compile Play 2.0 from sources. You’ll need a [[Git client | http://git-scm.com/]] to fetch the sources.
4
5From the shell, first checkout the Play 2.0 sources:
6
7```bash
8$ git clone git://github.com/playframework/Play20.git
9```
10
11Then go to the `Play20/framework` directory and launch the `build` script to enter the sbt build console:
12
13```bash
14$ cd Play20/framework
15$ ./build
16> build-repository
17```
18
19Once in the sbt console, run `build-repository` to compile and build everything. This will also create the local Ivy repository containing all of the required dependencies.
20
21> Note that you don’t need to install sbt yourself: Play 2.0 embeds its own version (currently sbt 0.11.2).
22
23If you want to make changes to the code you can use `compile` and `publish-local` to rebuild the framework.
24
25## Running tests
26
27You can run basic tests from the sbt console using the `test` task:
28
29```
30> test
31```
32
33We are also using several Play applications to test the framework. To run this complete test suite, use the `runtests` script:
34
35```
36$ ./runtests
37```
38
39## Creating projects
40
41Creating projects using the Play version you have built from source works much the same as a regular Play application.
42
43export PATH=$PATH:<projdir>/Play20
44
45If you have an existing Play 2.0 application that you are upgrading from Play 2.0 Beta to edge, please add
46
47```
48resolvers ++= Seq(
49  ...
50  Resolver.file("Local Repository", file("<projdir>/Play20/repository/local"))(Resolver.ivyStylePatterns),
51  ...
52)
53
54addSbtPlugin("play" % "sbt-plugin" % "2.1-SNAPSHOT")
55```
56
57to project/plugins.sbt.
58
59## Using Code in eclipse.
60You can find at [Stackoverflow](http://stackoverflow.com/questions/10053201/how-to-setup-eclipse-ide-work-on-the-playframework-2-0/10055419#10055419) some information how to setup eclipse to work on the code.
Note: See TracBrowser for help on using the repository browser.