Skip to content
Browse files

play 1.2 using deps

  • Loading branch information...
1 parent 1426659 commit 5eb09e1bb634765191d85a940aec48bf60c3a8fa Felipe Oliveira committed Apr 28, 2011
Showing with 233 additions and 229 deletions.
  1. +79 −72 .classpath
  2. +2 −2 .project
  3. +6 −6 app/controllers/{Jobs.java → PlayJobsDashboard.java}
  4. +1 −1 app/views/{Jobs → PlayJobsDashboard}/index.html
  5. +10 −8 app/views/{Jobs → PlayJobsDashboard}/main.html
  6. +0 −33 app/views/main.html
  7. +49 −0 build.xml
  8. +35 −0 commands.py
  9. +0 −1 conf/{application.conf.bkp → application.conf}
  10. +9 −0 conf/dependencies.yml
  11. +4 −2 conf/messages
  12. +0 −1 conf/play.plugins
  13. +7 −12 conf/routes
  14. BIN dist/{play-jobs-0.0.1.zip → jobs-0.1.zip}
  15. +1 −1 eclipse/.classpath
  16. +2 −2 eclipse/Test play-jobs.launch
  17. +0 −7 eclipse/classes/Application.test.html
  18. BIN eclipse/classes/ApplicationTest.class
  19. BIN eclipse/classes/BasicTest.class
  20. BIN eclipse/classes/controllers/Jobs.class
  21. BIN eclipse/classes/controllers/PlayJobsDashboard.class
  22. +0 −7 eclipse/classes/data.yml
  23. +1 −1 eclipse/play-jobs.launch
  24. BIN lib/ivy-2.2.0.jar
  25. BIN lib/junit-4.8.1.jar
  26. BIN lib/play-jobs.jar
  27. BIN lib/slf4j-api-1.6.1.jar
  28. +1 −0 modules/resteasy-1.3.1
  29. 0 {public → public-play-jobs}/images/avatar.png
  30. 0 {public → public-play-jobs}/images/logo.png
  31. 0 {public → public-play-jobs}/javascripts/jquery-1.4.min.js
  32. 0 {public → public-play-jobs}/javascripts/jquery-ui-1.7.2.custom.min.js
  33. 0 {public → public-play-jobs}/javascripts/jquery.editinplace.packed.js
  34. 0 {public → public-play-jobs}/stylesheets/qlassik_tb_d7b9.otf
  35. 0 {public → public-play-jobs}/stylesheets/south-street/images/ui-bg_glass_55_fcf0ba_1x400.png
  36. 0 {public → public-play-jobs}/stylesheets/south-street/images/ui-bg_gloss-wave_100_ece8da_500x100.png
  37. 0 ...lic → public-play-jobs}/stylesheets/south-street/images/ui-bg_highlight-hard_100_f5f3e5_1x100.png
  38. 0 ...lic → public-play-jobs}/stylesheets/south-street/images/ui-bg_highlight-hard_100_fafaf4_1x100.png
  39. 0 {public → public-play-jobs}/stylesheets/south-street/images/ui-bg_highlight-hard_15_459e00_1x100.png
  40. 0 {public → public-play-jobs}/stylesheets/south-street/images/ui-bg_highlight-hard_95_cccccc_1x100.png
  41. 0 {public → public-play-jobs}/stylesheets/south-street/images/ui-bg_highlight-soft_25_67b021_1x100.png
  42. 0 {public → public-play-jobs}/stylesheets/south-street/images/ui-bg_highlight-soft_95_ffedad_1x100.png
  43. 0 {public → public-play-jobs}/stylesheets/south-street/images/ui-bg_inset-soft_15_2b2922_1x100.png
  44. 0 {public → public-play-jobs}/stylesheets/south-street/images/ui-icons_808080_256x240.png
  45. 0 {public → public-play-jobs}/stylesheets/south-street/images/ui-icons_847e71_256x240.png
  46. 0 {public → public-play-jobs}/stylesheets/south-street/images/ui-icons_8DC262_256x240.png
  47. 0 {public → public-play-jobs}/stylesheets/south-street/images/ui-icons_cd0a0a_256x240.png
  48. 0 {public → public-play-jobs}/stylesheets/south-street/images/ui-icons_eeeeee_256x240.png
  49. 0 {public → public-play-jobs}/stylesheets/south-street/images/ui-icons_ffffff_256x240.png
  50. 0 {public → public-play-jobs}/stylesheets/south-street/jquery-ui-1.7.2.custom.css
  51. 0 {public → public-play-jobs}/stylesheets/style.css
  52. +1 −0 src/play.plugins
  53. +4 −4 src/play/modules/jobs/{ScheduledJobs.java → PlayJobs.java}
  54. +17 −0 src/play/modules/jobs/PlayJobsPlugin.java
  55. +4 −8 src/play/modules/jobs/{JobsService.java → PlayJobsService.java}
  56. +0 −17 src/play/modules/jobs/ScheduleJobsPlugin.java
  57. +0 −7 test/Application.test.html
  58. +0 −17 test/ApplicationTest.java
  59. +0 −13 test/BasicTest.java
  60. +0 −7 test/data.yml
View
151 .classpath
@@ -1,80 +1,87 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry excluding="views/**" kind="src" path="app"/>
- <classpathentry kind="src" path="test"/>
+
<classpathentry kind="src" path="resteasy-1.3.1"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/play.jar" sourcepath="/Users/felipera/Downloads/play-1.1.1/framework" />
- <classpathentry kind="lib" path="/Users/felipera/development/play-jobs/lib/jackson-core-asl-1.6.3.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/development/play-jobs/lib/jackson-jaxrs-1.6.3.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/development/play-jobs/lib/jackson-mapper-asl-1.6.3.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/development/play-jobs/lib/jackson-xc-1.6.3.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/development/play-jobs/lib/jaxb-api-2.1.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/development/play-jobs/lib/jaxb-impl-2.1.12.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/development/play-jobs/lib/ocpsoft-pretty-time-1.0.6.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/development/play-jobs/lib/resteasy-jackson-provider-2.2-beta-1.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/development/play-jobs/lib/resteasy-jaxb-provider-2.2-beta-1.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/modules/resteasy-1.3.1/lib/el-api.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/modules/resteasy-1.3.1/lib/jaxrs-api-2.1.0.GA.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/modules/resteasy-1.3.1/lib/jboss-el.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/modules/resteasy-1.3.1/lib/jettison.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/modules/resteasy-1.3.1/lib/play-resteasy-play-module.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/modules/resteasy-1.3.1/lib/resteasy-jackson-provider-2.1.0.GA.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/modules/resteasy-1.3.1/lib/resteasy-jaxb-provider-2.1.0.GA.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/modules/resteasy-1.3.1/lib/resteasy-jaxrs-2.1.0.GA.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/modules/resteasy-1.3.1/lib/resteasy-jettison-provider-2.1.0.GA.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/modules/resteasy-1.3.1/lib/resteasy-links-2.1.0.GA.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/modules/resteasy-1.3.1/lib/xercesImpl-2.9.1.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/activation-1.1.1.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/antlr-2.7.6.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/async-http-client-1.4.0.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/bcprov-jdk15-145.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/c3p0-0.9.1.2.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/cglib-2.2.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/commons-beanutils-1.8.3.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/commons-codec-1.4.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/commons-collections-3.1.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/commons-email-1.2.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/commons-fileupload-1.2.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/commons-io-1.4.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/commons-lang-2.5.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/commons-logging-1.1.1.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/dom4j-1.6.1.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/ehcache-core-2.0.0.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/ezmorph-1.0.3.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/groovy-all-1.7.1.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/gson-1.4.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/hibernate-annotations-3.5.6-Final.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/hibernate-commons-annotations-3.2.0.Final.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/hibernate-core-3.5.6-Final-patched.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/hibernate-entitymanager-3.5.6-Final.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/hibernate-jpa-2.0-api-1.0.0.Final.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/hsqldb-1.8.1.2.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/jamon-2.7.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/javamail-1.4.3.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/javassist-3.9.0.GA.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/javax.inject-1.0.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/jaxen-1.1.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/jj-imaging.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/jj-simplecaptcha.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/jj-textile.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/jj-wikitext.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/jodatime-1.6.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/jregex-1.2_01.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/jsr107cache-1.0.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/jta-1.1.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/junit-4.8.1.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/log4j-1.2.15.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/memcached-2.4.2.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/mysql-connector-java-5.1.13-bin.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/netty-3.2.2.Final.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/org.eclipse.jdt.core_3.6.0.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/oval-1.50.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/provided-servlet-2.5.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/signpost-core-1.2.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/slf4j-api-1.6.1.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/slf4j-log4j12-1.6.1.jar"/>
- <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.1.1/framework/lib/snakeyaml-1.6.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/play-1.2.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/development/jobs/lib/ivy-2.2.0.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/development/jobs/lib/jackson-core-asl-1.6.3.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/development/jobs/lib/jackson-jaxrs-1.6.3.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/development/jobs/lib/jackson-mapper-asl-1.6.3.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/development/jobs/lib/jackson-xc-1.6.3.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/development/jobs/lib/jaxb-api-2.1.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/development/jobs/lib/jaxb-impl-2.1.12.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/development/jobs/lib/junit-4.8.1.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/development/jobs/lib/ocpsoft-pretty-time-1.0.6.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/development/jobs/lib/play-jobs.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/development/jobs/lib/resteasy-jackson-provider-2.2-beta-1.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/development/jobs/lib/resteasy-jaxb-provider-2.2-beta-1.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/development/jobs/lib/slf4j-api-1.6.1.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/modules/resteasy-1.3.1/lib/el-api.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/modules/resteasy-1.3.1/lib/jaxrs-api-2.1.0.GA.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/modules/resteasy-1.3.1/lib/jboss-el.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/modules/resteasy-1.3.1/lib/jettison.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/modules/resteasy-1.3.1/lib/play-resteasy-play-module.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/modules/resteasy-1.3.1/lib/resteasy-jackson-provider-2.1.0.GA.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/modules/resteasy-1.3.1/lib/resteasy-jaxb-provider-2.1.0.GA.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/modules/resteasy-1.3.1/lib/resteasy-jaxrs-2.1.0.GA.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/modules/resteasy-1.3.1/lib/resteasy-jettison-provider-2.1.0.GA.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/modules/resteasy-1.3.1/lib/resteasy-links-2.1.0.GA.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/modules/resteasy-1.3.1/lib/xercesImpl-2.9.1.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/activation-1.1.1.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/antlr-2.7.6.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/asm-all-3.3.1.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/async-http-client-1.6.1.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/bcprov-jdk15-1.45.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/c3p0-0.9.1.2.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/cglib-nodep-2.2.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/commons-beanutils-1.8.3.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/commons-codec-1.4.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/commons-collections-3.2.1.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/commons-email-1.2.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/commons-fileupload-1.2.2.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/commons-io-2.0.1.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/commons-javaflow-1066591.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/commons-lang-2.6.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/commons-logging-1.1.1.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/dom4j-1.6.1.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/ehcache-core-2.0.0.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/ezmorph-1.0.3.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/geronimo-servlet_2.5_spec-1.2.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/groovy-all-1.7.7.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/gson-1.6.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/h2-1.3.149.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/hibernate-commons-annotations-3.2.0.Final.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/hibernate-core-3.6.1.Final.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/hibernate-entitymanager-3.6.0.Final.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/hibernate-jpa-2.0-api-1.0.0.Final.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/ivy-2.2.0.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/jamon-2.7.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/javassist-3.9.0.GA.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/javax.inject-1.0.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/jaxen-1.1.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/jj-imaging.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/jj-simplecaptcha.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/jj-textile.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/jj-wikitext.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/joda-time-1.6.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/jregex-1.2_01.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/jsr107cache-1.0.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/jta-1.1.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/junit-4.8.1.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/log4j-1.2.15.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/mail-1.4.3.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/memcached-2.4.2.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/mysql-connector-java-5.1.13.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/netty-3.2.4.Final.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/org.eclipse.jdt.core-3.6.0.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/oval-1.50.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/signpost-core-1.2.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/slf4j-api-1.6.1.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/slf4j-log4j12-1.6.1.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/snakeyaml-1.7.jar"/>
+ <classpathentry kind="lib" path="/Users/felipera/Downloads/play-1.2/framework/lib/xstream-1.3.jar"/>
<classpathentry kind="output" path="eclipse/classes"/>
</classpath>
View
4 .project
@@ -15,7 +15,7 @@
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.playframework.playclipse.playNature</nature>
</natures>
- <linkedResources><link><name>resteasy-1.3.1</name><type>2</type><location>/Users/felipera/Downloads/play-1.1.1/modules/resteasy-1.3.1/app</location></link>
-<link><name>conf/resteasy-1.3.1</name><type>2</type><location>/Users/felipera/Downloads/play-1.1.1/modules/resteasy-1.3.1/conf</location></link>
+ <linkedResources><link><name>resteasy-1.3.1</name><type>2</type><location>/Users/felipera/Downloads/play-1.2/modules/resteasy-1.3.1/app</location></link>
+<link><name>conf/resteasy-1.3.1</name><type>2</type><location>/Users/felipera/Downloads/play-1.2/modules/resteasy-1.3.1/conf</location></link>
</linkedResources>
</projectDescription>
View
12 app/controllers/Jobs.java → app/controllers/PlayJobsDashboard.java
@@ -18,21 +18,21 @@
*/
package controllers;
-import play.modules.jobs.JobsService;
-import play.modules.jobs.ScheduledJobs;
+import play.modules.jobs.PlayJobs;
+import play.modules.jobs.PlayJobsService;
import play.mvc.Controller;
/**
* The Class Jobs.
*/
-public class Jobs extends Controller {
+public class PlayJobsDashboard extends Controller {
/**
* Index.
*/
public static void index() {
- JobsService service = new JobsService();
- ScheduledJobs jobs = service.getScheduledJobs();
+ PlayJobsService service = new PlayJobsService();
+ PlayJobs jobs = service.getScheduledJobs();
render(jobs);
}
@@ -42,7 +42,7 @@ public static void index() {
* @para m jobClass the job class
*/
public static void executeNow(String jobClass) {
- JobsService service = new JobsService();
+ PlayJobsService service = new PlayJobsService();
service.triggerJob(jobClass);
flash.success("Triggered Job: %s", jobClass);
index();
View
2 app/views/Jobs/index.html → app/views/PlayJobsDashboard/index.html
@@ -1,4 +1,4 @@
-#{extends 'Jobs/main.html' /}
+#{extends 'PlayJobsDashboard/main.html' /}
#{set title:'Scheduled Jobs' /}
#{if flash.success}
View
18 app/views/Jobs/main.html → app/views/PlayJobsDashboard/main.html
@@ -1,23 +1,25 @@
<!DOCTYPE html>
<html>
<head>
- <title>Jobs ★ #{get 'title' /}</title>
+ <title>Play! Jobs ★ #{get 'title' /}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
- <link rel="stylesheet" type="text/css" media="screen" href="@{'public/stylesheets/style.css'}" />
- <link rel="stylesheet" type="text/css" media="screen" href="@{'public/stylesheets/south-street/jquery-ui-1.7.2.custom.css'}" />
- <script src="@{'public/javascripts/jquery-1.4.min.js'}" type="text/javascript" charset="utf-8"></script>
- <script src="@{'public/javascripts/jquery-ui-1.7.2.custom.min.js'}" type="text/javascript" charset="utf-8"></script>
- <script src="@{'public/javascripts/jquery.editinplace.packed.js'}" type="text/javascript" charset="utf-8"></script>
+ <link rel="stylesheet" type="text/css" media="screen" href="/play-jobs/stylesheets/style.css" />
+ <link rel="stylesheet" type="text/css" media="screen" href="play-jobs/stylesheets/south-street/jquery-ui-1.7.2.custom.css" />
+ <script src="/play-jobs/javascripts/jquery-1.4.min.js" type="text/javascript" charset="utf-8"></script>
+ <script src="/play-jobs/javascripts/jquery-ui-1.7.2.custom.min.js" type="text/javascript" charset="utf-8"></script>
+ <script src="/play-jobs/javascripts/jquery.editinplace.packed.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<div id="playjobs">
<header>
- <img src="@{'public/images/logo.png'}" alt="logo" id="logo" />
- <h1>Play! Framework Jobs</h1>
+ <img src="/play-jobs/images/logo.png" alt="logo" id="logo" />
+ <h1>Play! Jobs</h1>
</header>
<nav>
<a id="home" href="@{index()}" class="${request.action =~ /index/ ? 'selected' : ''}">Home</a>
+ <!--
<a id="docs" href="http://www.playframework.org/documentation/1.2/jobs" target="_blank">Docs</a>
+ -->
</nav>
<section>
#{doLayout /}
View
33 app/views/main.html
@@ -1,33 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <title>Zencontact, by zenexity ★ #{get 'title' /}</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
- <link rel="stylesheet" type="text/css" media="screen" href="@{'public/stylesheets/style.css'}" />
- <link rel="stylesheet" type="text/css" media="screen" href="@{'public/stylesheets/south-street/jquery-ui-1.7.2.custom.css'}" />
- <script src="@{'public/javascripts/jquery-1.4.min.js'}" type="text/javascript" charset="utf-8"></script>
- <script src="@{'public/javascripts/jquery-ui-1.7.2.custom.min.js'}" type="text/javascript" charset="utf-8"></script>
- <script src="@{'public/javascripts/jquery.editinplace.packed.js'}" type="text/javascript" charset="utf-8"></script>
- </head>
- <body>
- <div id="zencontact">
- <header>
- <img src="@{'public/images/logo.png'}" alt="logo" id="logo" />
- <h1>Zencontact <span>by zenexity</span></h1>
- </header>
- <nav>
- <a id="home" href="@{index()}" class="${request.action =~ /index/ ? 'selected' : ''}">Home</a>
- <a id="list" href="@{list()}" class="${request.action =~ /list/ ? 'selected' : ''}">List</a>
- <a id="new" href="@{form()}" class="${request.action =~ /form|save/ ? 'selected' : ''}">New</a>
- </nav>
- <section>
- #{doLayout /}
- </section>
- <footer>
- <a href="http://www.w3.org/TR/html5/">html5</a> -
- <a href="http://www.w3.org/TR/css3-roadmap/">css3</a> -
- <a href="http://www.playframework.org/">playframework</a>
- </footer>
- </div>
- </body>
-</html>
View
49 build.xml
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<project name="jobs" default="build" basedir=".">
+
+ <target name="check" unless="play.path">
+ <fail message="Please specify Play framework path using -Dplay.path=/path/to/framework/home" />
+ </target>
+
+ <path id="project.classpath">
+ <pathelement path="${play.path}/framework/classes"/>
+ <fileset dir="${play.path}/framework/lib">
+ <include name="*.jar"/>
+ </fileset>
+ <fileset dir="${play.path}/framework">
+ <include name="*.jar"/>
+ </fileset>
+ <fileset dir="lib">
+ <include name="*.jar"/>
+ </fileset>
+ </path>
+
+ <target name="build" depends="compile">
+ <mkdir dir="lib" />
+ <copy todir="tmp/classes">
+ <fileset dir="src">
+ <include name="**/*.properties"/>
+ <include name="**/*.xml"/>
+ <include name="**/play.plugins"/>
+ <include name="**/play.static"/>
+ </fileset>
+ </copy>
+ <jar destfile="lib/play-jobs.jar" basedir="tmp/classes">
+ <manifest>
+ <section name="Play-module">
+ <attribute name="Specification-Title" value="jobs"/>
+ </section>
+ </manifest>
+ </jar>
+ <delete dir="tmp" />
+ </target>
+
+ <target name="compile" depends="check">
+ <mkdir dir="tmp/classes" />
+ <javac srcdir="src" destdir="tmp/classes" target="1.5" debug="true">
+ <classpath refid="project.classpath" />
+ </javac>
+ </target>
+
+</project>
View
35 commands.py
@@ -0,0 +1,35 @@
+# Here you can create play commands that are specific to the module, and extend existing commands
+
+MODULE = 'jobs'
+
+# Commands that are specific to your module
+
+COMMANDS = ['jobs:hello']
+
+def execute(**kargs):
+ command = kargs.get("command")
+ app = kargs.get("app")
+ args = kargs.get("args")
+ env = kargs.get("env")
+
+ if command == "jobs:hello":
+ print "~ Hello"
+
+
+# This will be executed before any command (new, run...)
+def before(**kargs):
+ command = kargs.get("command")
+ app = kargs.get("app")
+ args = kargs.get("args")
+ env = kargs.get("env")
+
+
+# This will be executed after any command (new, run...)
+def after(**kargs):
+ command = kargs.get("command")
+ app = kargs.get("app")
+ args = kargs.get("args")
+ env = kargs.get("env")
+
+ if command == "new":
+ pass
View
1 conf/application.conf.bkp → conf/application.conf
@@ -24,7 +24,6 @@ application.secret=exdHjcEyaFTT9fxGSqAgDL94APbRsyopWVBzxDhLLWZwUnTEV0TAGeP5hO3Gt
#
# Keep the next line as is to help the play script to manage modules.
# ---- MODULES ----
-module.resteasy=${play.path}/modules/resteasy-1.3.1
# i18n
# ~~~~~
View
9 conf/dependencies.yml
@@ -0,0 +1,9 @@
+self: play -> jobs 0.1
+
+require:
+ - play
+ - play -> resteasy 1.3.1
+ - org.jboss.resteasy -> resteasy-jaxrs 2.0.GA
+ - org.jboss.resteasy -> resteasy-jaxb-provider 2.0.GA
+ - org.jboss.resteasy -> resteasy-jackson-provider 2.0.GA
+
View
6 conf/messages
@@ -1,3 +1,5 @@
+# Default jobs messages
# You can specialize this file for each language.
-# For example, for French create a messages.fr file
-#
+# For exemple, for french create a messages.fr file
+
+#jobs.name=jobs
View
1 conf/play.plugins
@@ -1 +0,0 @@
-0:play.modules.jobs.ScheduleJobsPlugin
View
19 conf/routes
@@ -1,15 +1,10 @@
-# Routes
-# This file defines all application routes (Higher priority routes first)
+# This file defines all module routes (Higher priority routes first)
+#
+# import these routes in the main app as :
+# * / module:jobs
+#
# ~~~~
-# RESTEasy Routes
-* / module:resteasy
+GET /? PlayJobsDashboard.index
-# Home page
-GET / Application.index
-
-# Map static resources from the /app/public folder to the /public path
-GET /public/ staticDir:public
-
-# Catch all
-* /{controller}/{action} {controller}.{action}
+GET /play-jobs staticDir:public-play-jobs
View
BIN dist/play-jobs-0.0.1.zip → dist/jobs-0.1.zip
Binary file not shown.
View
2 eclipse/.classpath
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry excluding="views/**" kind="src" path="app"/>
- <classpathentry kind="src" path="test"/>
+ %TESTCLASSPATH%
%MODULES%
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
%PROJECTCLASSPATH%
View
4 eclipse/Test play-jobs.launch
@@ -9,13 +9,13 @@
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.launching.JRE_CONTAINER&quot; javaProject=&quot;play-jobs&quot; path=&quot;1&quot; type=&quot;4&quot;/&gt;&#10;"/>
- <listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;/Users/felipera/Downloads/play-1.1.1/modules/testrunner/lib/play-testrunner.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
+ <listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;runtimeClasspathEntry externalArchive=&quot;/Users/felipera/Downloads/play-1.2/modules/testrunner/lib/play-testrunner.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#13;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry id=&quot;org.eclipse.jdt.launching.classpathentry.defaultClasspath&quot;&gt;&#10;&lt;memento exportedEntriesOnly=&quot;false&quot; project=&quot;play-jobs&quot;/&gt;&#10;&lt;/runtimeClasspathEntry&gt;&#10;"/>
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&#10;&lt;runtimeClasspathEntry internalArchive=&quot;/play-jobs/conf&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt;&#10;"/>
</listAttribute>
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="play.server.Server"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="play-jobs"/>
- <stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n -Dplay.debug=yes -Dplay.id=test -Dapplication.path=&quot;${project_loc:play-jobs}&quot; -Djava.endorsed.dirs=&quot;/Users/felipera/Downloads/play-1.1.1/framework/endorsed&quot; -javaagent:&quot;/Users/felipera/Downloads/play-1.1.1/framework/play.jar&quot;"/>
+ <stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n -Dplay.debug=yes -Dplay.id=test -Dapplication.path=&quot;${project_loc:play-jobs}&quot; -Djava.endorsed.dirs=&quot;/Users/felipera/Downloads/play-1.2/framework/endorsed&quot; -javaagent:&quot;/Users/felipera/Downloads/play-1.2/framework/play-1.2.jar&quot;"/>
</launchConfiguration>
View
7 eclipse/classes/Application.test.html
@@ -1,7 +0,0 @@
-*{ You can use plain selenium command using the selenium tag }*
-
-#{selenium}
- // Open the home page, and check that no error occured
- open('/')
- assertNotTitle('Application error')
-#{/selenium}
View
BIN eclipse/classes/ApplicationTest.class
Binary file not shown.
View
BIN eclipse/classes/BasicTest.class
Binary file not shown.
View
BIN eclipse/classes/controllers/Jobs.class
Binary file not shown.
View
BIN eclipse/classes/controllers/PlayJobsDashboard.class
Binary file not shown.
View
7 eclipse/classes/data.yml
@@ -1,7 +0,0 @@
-# you describe your data using the YAML notation here
-# and then load them using Fixtures.load("data.yml")
-
-# User(bob):
-# email: bob@gmail.com
-# password: secret
-# fullname: Bob
View
2 eclipse/play-jobs.launch
@@ -15,6 +15,6 @@
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="play.server.Server"/>
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="play-jobs"/>
- <stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n -Dplay.debug=yes -Dplay.id= -Dapplication.path=&quot;${project_loc:play-jobs}&quot; -Djava.endorsed.dirs=&quot;/Users/felipera/Downloads/play-1.1.1/framework/endorsed&quot; -javaagent:&quot;/Users/felipera/Downloads/play-1.1.1/framework/play.jar&quot;"/>
+ <stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n -Dplay.debug=yes -Dplay.id= -Dapplication.path=&quot;${project_loc:play-jobs}&quot; -Djava.endorsed.dirs=&quot;/Users/felipera/Downloads/play-1.2/framework/endorsed&quot; -javaagent:&quot;/Users/felipera/Downloads/play-1.2/framework/play-1.2.jar&quot;"/>
</launchConfiguration>
View
BIN lib/ivy-2.2.0.jar
Binary file not shown.
View
BIN lib/junit-4.8.1.jar
Binary file not shown.
View
BIN lib/play-jobs.jar
Binary file not shown.
View
BIN lib/slf4j-api-1.6.1.jar
Binary file not shown.
View
1 modules/resteasy-1.3.1
@@ -0,0 +1 @@
+/Users/felipera/Downloads/play-1.2/modules/resteasy-1.3.1
View
0 public/images/avatar.png → public-play-jobs/images/avatar.png
File renamed without changes
View
0 public/images/logo.png → public-play-jobs/images/logo.png
File renamed without changes
View
0 public/javascripts/jquery-1.4.min.js → ...c-play-jobs/javascripts/jquery-1.4.min.js
File renamed without changes.
View
0 ...javascripts/jquery-ui-1.7.2.custom.min.js → ...javascripts/jquery-ui-1.7.2.custom.min.js
File renamed without changes.
View
0 .../javascripts/jquery.editinplace.packed.js → .../javascripts/jquery.editinplace.packed.js
File renamed without changes.
View
0 public/stylesheets/qlassik_tb_d7b9.otf → ...play-jobs/stylesheets/qlassik_tb_d7b9.otf
File renamed without changes.
View
0 ...et/images/ui-bg_glass_55_fcf0ba_1x400.png → ...et/images/ui-bg_glass_55_fcf0ba_1x400.png
File renamed without changes
View
0 ...s/ui-bg_gloss-wave_100_ece8da_500x100.png → ...s/ui-bg_gloss-wave_100_ece8da_500x100.png
File renamed without changes
View
0 ...ui-bg_highlight-hard_100_f5f3e5_1x100.png → ...ui-bg_highlight-hard_100_f5f3e5_1x100.png
File renamed without changes
View
0 ...ui-bg_highlight-hard_100_fafaf4_1x100.png → ...ui-bg_highlight-hard_100_fafaf4_1x100.png
File renamed without changes
View
0 .../ui-bg_highlight-hard_15_459e00_1x100.png → .../ui-bg_highlight-hard_15_459e00_1x100.png
File renamed without changes
View
0 .../ui-bg_highlight-hard_95_cccccc_1x100.png → .../ui-bg_highlight-hard_95_cccccc_1x100.png
File renamed without changes
View
0 .../ui-bg_highlight-soft_25_67b021_1x100.png → .../ui-bg_highlight-soft_25_67b021_1x100.png
File renamed without changes
View
0 .../ui-bg_highlight-soft_95_ffedad_1x100.png → .../ui-bg_highlight-soft_95_ffedad_1x100.png
File renamed without changes
View
0 ...ages/ui-bg_inset-soft_15_2b2922_1x100.png → ...ages/ui-bg_inset-soft_15_2b2922_1x100.png
File renamed without changes
View
0 ...street/images/ui-icons_808080_256x240.png → ...street/images/ui-icons_808080_256x240.png
File renamed without changes
View
0 ...street/images/ui-icons_847e71_256x240.png → ...street/images/ui-icons_847e71_256x240.png
File renamed without changes
View
0 ...street/images/ui-icons_8DC262_256x240.png → ...street/images/ui-icons_8DC262_256x240.png
File renamed without changes
View
0 ...street/images/ui-icons_cd0a0a_256x240.png → ...street/images/ui-icons_cd0a0a_256x240.png
File renamed without changes
View
0 ...street/images/ui-icons_eeeeee_256x240.png → ...street/images/ui-icons_eeeeee_256x240.png
File renamed without changes
View
0 ...street/images/ui-icons_ffffff_256x240.png → ...street/images/ui-icons_ffffff_256x240.png
File renamed without changes
View
0 ...s/south-street/jquery-ui-1.7.2.custom.css → ...s/south-street/jquery-ui-1.7.2.custom.css
File renamed without changes.
View
0 public/stylesheets/style.css → public-play-jobs/stylesheets/style.css
File renamed without changes.
View
1 src/play.plugins
@@ -0,0 +1 @@
+0:play.modules.jobs.PlayJobsPlugin
View
8 src/play/modules/jobs/ScheduledJobs.java → src/play/modules/jobs/PlayJobs.java
@@ -26,12 +26,12 @@
import play.jobs.Job;
import play.jobs.On;
import play.jobs.OnApplicationStart;
-import play.modules.jobs.ScheduledJobs.JobEntry;
+import play.modules.jobs.PlayJobs.JobEntry;
/**
* The Class ScheduledJobs.
*/
-public class ScheduledJobs implements Iterable<JobEntry> {
+public class PlayJobs implements Iterable<JobEntry> {
/** The pool size. */
private int poolSize;
@@ -64,7 +64,7 @@
* @param queue
* the queue
*/
- public ScheduledJobs(int poolSize, int activeCount, long taskCount, int queueSize, List<JobEntry> scheduleJobs) {
+ public PlayJobs(int poolSize, int activeCount, long taskCount, int queueSize, List<JobEntry> scheduleJobs) {
super();
this.poolSize = poolSize;
this.activeCount = activeCount;
@@ -76,7 +76,7 @@ public ScheduledJobs(int poolSize, int activeCount, long taskCount, int queueSiz
/**
* Instantiates a new scheduled jobs.
*/
- public ScheduledJobs() {
+ public PlayJobs() {
}
View
17 src/play/modules/jobs/PlayJobsPlugin.java
@@ -0,0 +1,17 @@
+package play.modules.jobs;
+
+import play.PlayPlugin;
+import play.mvc.Router;
+
+public class PlayJobsPlugin extends PlayPlugin {
+
+ /**
+ * On application start.
+ */
+ @Override
+ public void onApplicationStart() {
+ Router.addRoute("GET", "/@jobs", "PlayJobsDashboard.index");
+ Router.addRoute("GET", "/@jobs/executeNow", "PlayJobsDashboard.executeNow");
+ }
+
+}
View
12 src/play/modules/jobs/JobsService.java → src/play/modules/jobs/PlayJobsService.java
@@ -31,14 +31,13 @@
import play.exceptions.UnexpectedException;
import play.jobs.Job;
import play.jobs.JobsPlugin;
-import play.modules.jobs.ScheduledJobs.JobEntry;
-import controllers.Jobs;
+import play.modules.jobs.PlayJobs.JobEntry;
/**
* The Class JobsService.
*/
@Path("/jobs")
-public class JobsService {
+public class PlayJobsService {
/**
* Gets the scheduled jobs.
@@ -48,7 +47,7 @@
@GET
@Path("/list")
@Produces("application/json")
- public ScheduledJobs getScheduledJobs() {
+ public PlayJobs getScheduledJobs() {
// Get Jobs Plugin
JobsPlugin plugin = Play.plugin(JobsPlugin.class);
if (plugin == null) {
@@ -73,7 +72,7 @@ public ScheduledJobs getScheduledJobs() {
}
// Create Data Container
- ScheduledJobs jobs = new ScheduledJobs(poolSize, activeCount, scheduledTaskCount, queueSize, jobEntries);
+ PlayJobs jobs = new PlayJobs(poolSize, activeCount, scheduledTaskCount, queueSize, jobEntries);
Logger.info("Scheduled Jobs: %s", jobs);
// Return Schedule Jobs
@@ -103,9 +102,6 @@ public void triggerJob(@PathParam("jobClass") String jobClass) {
// Fire Job
job.now();
-
- // Back to the List
- Jobs.index();
}
}
View
17 src/play/modules/jobs/ScheduleJobsPlugin.java
@@ -1,17 +0,0 @@
-package play.modules.jobs;
-
-import play.PlayPlugin;
-import play.mvc.Router;
-
-public class ScheduleJobsPlugin extends PlayPlugin {
-
- /**
- * On application start.
- */
- @Override
- public void onApplicationStart() {
- Router.addRoute("GET", "/@jobs", "Jobs.index");
- Router.addRoute("GET", "/@jobs/executeNow", "Jobs.executeNow");
- }
-
-}
View
7 test/Application.test.html
@@ -1,7 +0,0 @@
-*{ You can use plain selenium command using the selenium tag }*
-
-#{selenium}
- // Open the home page, and check that no error occured
- open('/')
- assertNotTitle('Application error')
-#{/selenium}
View
17 test/ApplicationTest.java
@@ -1,17 +0,0 @@
-import org.junit.*;
-import play.test.*;
-import play.mvc.*;
-import play.mvc.Http.*;
-import models.*;
-
-public class ApplicationTest extends FunctionalTest {
-
- @Test
- public void testThatIndexPageWorks() {
- Response response = GET("/");
- assertIsOk(response);
- assertContentType("text/html", response);
- assertCharset("utf-8", response);
- }
-
-}
View
13 test/BasicTest.java
@@ -1,13 +0,0 @@
-import org.junit.*;
-import java.util.*;
-import play.test.*;
-import models.*;
-
-public class BasicTest extends UnitTest {
-
- @Test
- public void aVeryImportantThingToTest() {
- assertEquals(2, 1 + 1);
- }
-
-}
View
7 test/data.yml
@@ -1,7 +0,0 @@
-# you describe your data using the YAML notation here
-# and then load them using Fixtures.load("data.yml")
-
-# User(bob):
-# email: bob@gmail.com
-# password: secret
-# fullname: Bob

0 comments on commit 5eb09e1

Please sign in to comment.
Something went wrong with that request. Please try again.