|
Play Framework/Scala example source code file (test)
The test Play Framework example source code# Ordinary run > play-routes $ exists target/scala-2.11/routes/main/a/routes_routing.scala $ exists target/scala-2.11/routes/main/a/routes_reverseRouting.scala $ exists target/scala-2.11/routes/main/controllers/a/routes.java $ exists target/scala-2.11/routes/main/b/routes_routing.scala $ exists target/scala-2.11/routes/main/b/routes_reverseRouting.scala $ exists target/scala-2.11/routes/main/controllers/b/routes.java # Modify nothing, ensure nothing gets recompiled $ touch target/change1 $ sleep 1100 > play-routes -> newer target/scala-2.11/routes/main/a/routes_routing.scala target/change1 -> newer target/scala-2.11/routes/main/b/routes_routing.scala target/change1 # Modify a, ensure only a gets recompiled $ touch target/change2 $ copy-file a.routes.1 a.routes $ sleep 1100 > play-routes > newer target/scala-2.11/routes/main/a/routes_routing.scala target/change2 -> newer target/scala-2.11/routes/main/b/routes_routing.scala target/change2 # Modify b, change the package it produces routes in, ensure the old routes is deleted and the new is produced $ copy-file b.routes.1 b.routes > play-routes $ exists target/scala-2.11/routes/main/a/routes_routing.scala $ exists target/scala-2.11/routes/main/a/routes_reverseRouting.scala $ exists target/scala-2.11/routes/main/controllers/a/routes.java $ exists target/scala-2.11/routes/main/b/routes_routing.scala $ exists target/scala-2.11/routes/main/b/routes_reverseRouting.scala -$ exists target/scala-2.11/routes/main/controllers/b/routes.java $ exists target/scala-2.11/routes/main/controllers/c/routes.java # Modify imports, check that everything gets recompiled > set routesImport += '"foo.Bar"' $ touch target/change3 $ sleep 1100 > play-routes > newer target/scala-2.11/routes/main/a/routes_routing.scala target/change3 > newer target/scala-2.11/routes/main/b/routes_routing.scala target/change3 Other Play Framework source code examplesHere is a short list of links related to this Play Framework test source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.