Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

This branch is 410 commits behind branaway:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
documentation
framework
modules
nbproject
python
resources
samples-and-tests
support
tests/play/data/parsing
.gitignore
COPYING
README.textile
play
play.bat

README.textile

About

bing.ran@gmail.com

This fork came from the HEAD of master in the original Play framework, at about a post 1.2.4 version.

It contains
1. a few patches that make using Play in dev mode faster.
2. special code to work with Japid for better japid views’ error reporting in DEV mode. Most of japid grammar errors will be pointed back to the original view files.

History:

2012.3.9, version 1.2.5.1, tested with japid 0.9.3.3
1. disabled PropertiesEnhancer for Japid Views.
2012.3.9, version 1.2.5, tested with japid 0.9.3.1
1. added Play.runingInTestNode() to make the Cobertura module happy. Bad naming.
2. fixed UniqueCheck in the string concatenation for updates.
3. added enum filter to the LVEnhancer, not sure 100% though.
4. improvement: mapped Java code compilation error to the original view line, for better problem error pinpointing.
5. added optimization in ApplicationClassLoader#detectChanges to fine tune dirtySig to avoid whole app reloading when a japidview file is changed, a performance improvement at dev time.

For More changes I have made, please see the bottom of this page.

Welcome to Play framework

Play framework makes it easier to build Web applications with Java. It is a clean alternative to bloated Enterprise Java stacks. It focuses on developer productivity and targets RESTful architectures. Play is a perfect companion to agile software development.

Learn more on the http://www.playframework.org website.

Getting started

1. Install the latest version of Play framework and unzip it anywhere you want:

unzip play-1.2.zip -d /opt/play-1.2

2. Add the play script to your PATH:

export PATH=$PATH:/opt/play-1.2

3. Create a new Play application:

play new /opt/myFirstApp

4. Run the created application:

play run /opt/myFirstApp

5. Go to localhost:9000/ and you’ll see the welcome page.

6. Start developing your new application:

Get the source

Fork the project source code on Github:

git clone git://github.com/branaway/play.git

The project history is pretty big. You can pull only a shallow clone by specifying the number of commits you want with —depth:

 git clone git://github.com/branaway/play.git --depth 10

Reporting bugs

Please use the github issue to report bugs

License

Play framework is distributed under Apache 2 license.

Bing Ran local patches:

I have made a few patched that fix a few bugs and inconvenience

  1. simplified the error message in case of ActionNotFoundException.
  2. MemecachedImpl: clean keys with space and delegate to super class loader for primitive array types
  3. UrlEncodeParser: changed to use “_body” from “body” to avoid conflicts with user’s body parameter
  4. NoRouteFoundException: added the action name in the error message.
  5. Invoker: synch the creation of the suspended invocations.
  6. Play: added a delay in detecting changes to avoid run the detection for very requests in a burst.
  7. PlayHandler: added keep-alive header to the HTTP 1.0 request.
  8. Wrapped the HotswapAgent in PlayAgent.jar to be used as the JVM agent instead of the whole play.jar. This way start script for applications can be simplified to the point that I can use regular Eclipse run/debug instead of using the remote debugging mode.
  9. added option to invoke ActionInvocation without going through the intermediate executor. The option to add to application.conf: “action.invocation.direct” with value of “true”/“false”;

To synch with the original play repo, I have added a remote called upstream that is mapped to git://github.com/playframework/play, which is the play 1.x repo.

then:

$ git fetch upstream
$ git merge upstream/master

After a successful merge,

$ git push origin master

Something went wrong with that request. Please try again.