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 | |
---|
3 | To 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 | |
---|
5 | From the shell, first checkout the Play 2.0 sources: |
---|
6 | |
---|
7 | ```bash |
---|
8 | $ git clone git://github.com/playframework/Play20.git |
---|
9 | ``` |
---|
10 | |
---|
11 | Then 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 | |
---|
19 | Once 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 | |
---|
23 | If you want to make changes to the code you can use `compile` and `publish-local` to rebuild the framework. |
---|
24 | |
---|
25 | ## Running tests |
---|
26 | |
---|
27 | You can run basic tests from the sbt console using the `test` task: |
---|
28 | |
---|
29 | ``` |
---|
30 | > test |
---|
31 | ``` |
---|
32 | |
---|
33 | We 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 | |
---|
41 | Creating projects using the Play version you have built from source works much the same as a regular Play application. |
---|
42 | |
---|
43 | export PATH=$PATH:<projdir>/Play20 |
---|
44 | |
---|
45 | If you have an existing Play 2.0 application that you are upgrading from Play 2.0 Beta to edge, please add |
---|
46 | |
---|
47 | ``` |
---|
48 | resolvers ++= Seq( |
---|
49 | ... |
---|
50 | Resolver.file("Local Repository", file("<projdir>/Play20/repository/local"))(Resolver.ivyStylePatterns), |
---|
51 | ... |
---|
52 | ) |
---|
53 | |
---|
54 | addSbtPlugin("play" % "sbt-plugin" % "2.1-SNAPSHOT") |
---|
55 | ``` |
---|
56 | |
---|
57 | to project/plugins.sbt. |
---|
58 | |
---|
59 | ## Using Code in eclipse. |
---|
60 | You 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.