Permalink
Browse files

[daily-groove] Project has been moved to the Cloud Foundry sandbox.

  • Loading branch information...
1 parent 7374e83 commit b99de99785ce2bd1e8b88839d3e9a62e34dff659 @pledbrook pledbrook committed Jun 7, 2011
Showing with 16,284 additions and 0 deletions.
  1. +13 −0 daily-groove/.classpath
  2. +3 −0 daily-groove/.gitignore
  3. +25 −0 daily-groove/.project
  4. +10 −0 daily-groove/application.properties
  5. +6 −0 daily-groove/grails-app/conf/AppResources.groovy
  6. +32 −0 daily-groove/grails-app/conf/BootStrap.groovy
  7. +27 −0 daily-groove/grails-app/conf/BuildConfig.groovy
  8. +88 −0 daily-groove/grails-app/conf/Config.groovy
  9. +32 −0 daily-groove/grails-app/conf/DataSource.groovy
  10. +13 −0 daily-groove/grails-app/conf/UrlMappings.groovy
  11. +782 −0 daily-groove/grails-app/conf/groovyblogs.rss
  12. +6 −0 daily-groove/grails-app/conf/logging.properties
  13. +3 −0 daily-groove/grails-app/conf/spring/resources.groovy
  14. +51 −0 daily-groove/grails-app/controllers/daily/groove/ArticleController.groovy
  15. +21 −0 daily-groove/grails-app/domain/daily/groove/Article.groovy
  16. +55 −0 daily-groove/grails-app/i18n/messages.properties
  17. +56 −0 daily-groove/grails-app/i18n/messages_da.properties
  18. +55 −0 daily-groove/grails-app/i18n/messages_de.properties
  19. +30 −0 daily-groove/grails-app/i18n/messages_es.properties
  20. +19 −0 daily-groove/grails-app/i18n/messages_fr.properties
  21. +19 −0 daily-groove/grails-app/i18n/messages_it.properties
  22. +19 −0 daily-groove/grails-app/i18n/messages_ja.properties
  23. +55 −0 daily-groove/grails-app/i18n/messages_nl.properties
  24. +34 −0 daily-groove/grails-app/i18n/messages_pt_BR.properties
  25. +34 −0 daily-groove/grails-app/i18n/messages_pt_PT.properties
  26. +31 −0 daily-groove/grails-app/i18n/messages_ru.properties
  27. +35 −0 daily-groove/grails-app/i18n/messages_th.properties
  28. +18 −0 daily-groove/grails-app/i18n/messages_zh_CN.properties
  29. +12 −0 daily-groove/grails-app/jobs/daily/groove/RefreshArticlesJob.groovy
  30. +71 −0 daily-groove/grails-app/services/daily/groove/ArticleService.groovy
  31. +26 −0 daily-groove/grails-app/taglib/daily/groove/ArticleTagLib.groovy
  32. +11 −0 daily-groove/grails-app/views/article/_articleList.gsp
  33. +9 −0 daily-groove/grails-app/views/article/_articlePreview.gsp
  34. +6 −0 daily-groove/grails-app/views/article/_sampleFeed.gsp
  35. +71 −0 daily-groove/grails-app/views/article/all.gsp
  36. +54 −0 daily-groove/grails-app/views/error.gsp
  37. +100 −0 daily-groove/grails-app/views/index.gsp
  38. +16 −0 daily-groove/grails-app/views/layouts/main.gsp
  39. +15 −0 daily-groove/grails-app/views/layouts/news.gsp
  40. +6 −0 daily-groove/src/java/daily/groove/Constants.java
  41. +17 −0 daily-groove/test/unit/daily/groove/ArticleControllerTests.groovy
  42. +17 −0 daily-groove/test/unit/daily/groove/ArticleServiceTests.groovy
  43. +17 −0 daily-groove/test/unit/daily/groove/ArticleTagLibTests.groovy
  44. +17 −0 daily-groove/test/unit/daily/groove/ArticleTests.groovy
  45. +17 −0 daily-groove/test/unit/daily/groove/RefreshArticlesJobTests.groovy
  46. +42 −0 daily-groove/web-app/WEB-INF/applicationContext.xml
  47. +14 −0 daily-groove/web-app/WEB-INF/sitemesh.xml
  48. +563 −0 daily-groove/web-app/WEB-INF/tld/c.tld
  49. +671 −0 daily-groove/web-app/WEB-INF/tld/fmt.tld
  50. +550 −0 daily-groove/web-app/WEB-INF/tld/grails.tld
  51. +311 −0 daily-groove/web-app/WEB-INF/tld/spring.tld
  52. +53 −0 daily-groove/web-app/css/app.css
  53. +273 −0 daily-groove/web-app/css/main.css
  54. BIN daily-groove/web-app/images/favicon.ico
  55. BIN daily-groove/web-app/images/grails_logo.jpg
  56. BIN daily-groove/web-app/images/grails_logo.png
  57. BIN daily-groove/web-app/images/leftnav_btm.png
  58. BIN daily-groove/web-app/images/leftnav_midstretch.png
  59. BIN daily-groove/web-app/images/leftnav_top.png
  60. BIN daily-groove/web-app/images/skin/database_add.png
  61. BIN daily-groove/web-app/images/skin/database_delete.png
  62. BIN daily-groove/web-app/images/skin/database_edit.png
  63. BIN daily-groove/web-app/images/skin/database_save.png
  64. BIN daily-groove/web-app/images/skin/database_table.png
  65. BIN daily-groove/web-app/images/skin/exclamation.png
  66. BIN daily-groove/web-app/images/skin/house.png
  67. BIN daily-groove/web-app/images/skin/information.png
  68. BIN daily-groove/web-app/images/skin/shadow.jpg
  69. BIN daily-groove/web-app/images/skin/sorted_asc.gif
  70. BIN daily-groove/web-app/images/skin/sorted_desc.gif
  71. BIN daily-groove/web-app/images/spinner.gif
  72. BIN daily-groove/web-app/images/springsource.png
  73. +13 −0 daily-groove/web-app/js/application.js
  74. +7 −0 daily-groove/web-app/js/prototype/animation.js
  75. +136 −0 daily-groove/web-app/js/prototype/builder.js
  76. +965 −0 daily-groove/web-app/js/prototype/controls.js
  77. +974 −0 daily-groove/web-app/js/prototype/dragdrop.js
  78. +1,123 −0 daily-groove/web-app/js/prototype/effects.js
  79. +4,874 −0 daily-groove/web-app/js/prototype/prototype.js
  80. +2,691 −0 daily-groove/web-app/js/prototype/rico.js
  81. +68 −0 daily-groove/web-app/js/prototype/scriptaculous.js
  82. +275 −0 daily-groove/web-app/js/prototype/slider.js
  83. +59 −0 daily-groove/web-app/js/prototype/sound.js
  84. +568 −0 daily-groove/web-app/js/prototype/unittest.js
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src/java"/>
+ <classpathentry kind="src" path="grails-app/conf"/>
+ <classpathentry kind="src" path="grails-app/controllers"/>
+ <classpathentry kind="src" path="grails-app/domain"/>
+ <classpathentry kind="src" path="grails-app/services"/>
+ <classpathentry kind="src" path="grails-app/taglib"/>
+ <classpathentry kind="src" path="test/unit"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con" path="com.springsource.sts.grails.core.CLASSPATH_CONTAINER"/>
+ <classpathentry kind="output" path="target/eclipseclasses"/>
+</classpath>
@@ -0,0 +1,3 @@
+.settings/
+stacktrace.log
+target/
View
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>daily-groove</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.wst.common.project.facet.core.builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>com.springsource.sts.grails.core.nature</nature>
+ <nature>org.eclipse.jdt.groovy.core.groovyNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+ </natures>
+</projectDescription>
@@ -0,0 +1,10 @@
+#Grails Metadata file
+#Thu Apr 07 11:02:11 BST 2011
+app.grails.version=1.3.7
+app.name=daily-groove
+app.servlet.version=2.4
+app.version=0.1
+plugins.cloud-foundry=1.0.0.M1
+plugins.cache-headers=1.1.4
+plugins.google-visualization=0.2.4
+plugins.jquery=1.4.4.1
@@ -0,0 +1,6 @@
+modules = {
+ app {
+ dependsOn "blueprint", "jquery"
+ resource url: [dir: 'css', file: 'app.css'], attrs: [media: 'screen']
+ }
+}
@@ -0,0 +1,32 @@
+import static daily.groove.Constants.*
+
+class BootStrap {
+ private static final SAMPLE_FEEDS = [
+ "http://feeds.bbci.co.uk/news/rss.xml": "BBC News",
+ "http://www.theregister.co.uk/headlines.rss": "The Register",
+ "http://www.theonion.com/feeds/daily/": "The Onion",
+ "http://grails.org/plugin/latest?format=rss": "Grails Plugins",
+ "http://groovyblogs.org/feed/rss": "Groovy Blogs",
+ "http://rss.slashdot.org/Slashdot/slashdot": "Slashdot",
+ "http://blog.springsource.com/feed/": "SpringSource Team Blog",
+ "http://news.sky.com/sky-news/rss/home/rss.xml": "Sky News",
+ "http://feeds.dzone.com/javalobby/frontpage": "JavaLobby",
+ "http://feeds.pheedo.com/techtarget/tsscom/home": "The Server Side"]
+
+ def redis
+
+ def init = { servletContext ->
+ // Clear the database and start afresh...
+ redis.flushall()
+
+ if (!redis.scard(SAMPLE_FEEDS_KEY)) {
+ SAMPLE_FEEDS.each { url, name ->
+ redis.set url, name
+ redis.sadd SAMPLE_FEEDS_KEY, url
+ }
+ }
+ }
+
+ def destroy = {
+ }
+}
@@ -0,0 +1,27 @@
+grails.project.class.dir = "target/classes"
+grails.project.test.class.dir = "target/test-classes"
+grails.project.test.reports.dir = "target/test-reports"
+
+grails.project.dependency.resolution = {
+ inherits "global"
+ log "warn"
+
+ repositories {
+ grailsPlugins()
+ grailsHome()
+ grailsCentral()
+ mavenCentral()
+ }
+ plugins {
+ compile ":redis:1.0.0.M4"
+ runtime ":blueprint:1.0.2",
+ ":quartz:0.4.2",
+ ":resources:1.0-RC2",
+ ":cached-resources:1.0-alpha6",
+ ":zipped-resources:1.0-RC1",
+ ":hibernate:1.3.7"
+ build ":tomcat:1.3.7"
+ }
+ dependencies {
+ }
+}
@@ -0,0 +1,88 @@
+import grails.converters.JSON
+
+// locations to search for config files that get merged into the main config
+// config files can either be Java properties files or ConfigSlurper scripts
+
+grails.config.locations = ["file:${userHome}/.grails/settings.groovy"]
+
+// if(System.properties["${appName}.config.location"]) {
+// grails.config.locations << "file:" + System.properties["${appName}.config.location"]
+// }
+
+grails.project.groupId = appName // change this to alter the default package name and Maven publishing destination
+grails.mime.file.extensions = true // enables the parsing of file extensions from URLs into the request format
+grails.mime.use.accept.header = false
+grails.mime.types = [ html: ['text/html','application/xhtml+xml'],
+ xml: ['text/xml', 'application/xml'],
+ text: 'text/plain',
+ js: 'text/javascript',
+ rss: 'application/rss+xml',
+ atom: 'application/atom+xml',
+ css: 'text/css',
+ csv: 'text/csv',
+ all: '*/*',
+ json: ['application/json','text/json'],
+ form: 'application/x-www-form-urlencoded',
+ multipartForm: 'multipart/form-data'
+ ]
+
+// URL Mapping Cache Max Size, defaults to 5000
+//grails.urlmapping.cache.maxsize = 1000
+
+// The default codec used to encode data with ${}
+grails.views.default.codec = "none" // none, html, base64
+grails.views.gsp.encoding = "UTF-8"
+grails.converters.encoding = "UTF-8"
+// enable Sitemesh preprocessing of GSP pages
+grails.views.gsp.sitemesh.preprocess = true
+// scaffolding templates configuration
+grails.scaffolding.templates.domainSuffix = 'Instance'
+
+// Set to false to use the new Grails 1.2 JSONBuilder in the render method
+grails.json.legacy.builder = false
+// enabled native2ascii conversion of i18n properties files
+grails.enable.native2ascii = true
+// whether to install the java.util.logging bridge for sl4j. Disable for AppEngine!
+grails.logging.jul.usebridge = true
+// packages to include in Spring bean scanning
+grails.spring.bean.packages = []
+
+// set per-environment serverURL stem for creating absolute links
+environments {
+ production {
+ grails.serverURL = "http://www.changeme.com"
+ }
+ development {
+ grails.serverURL = "http://localhost:8080/${appName}"
+ }
+ test {
+ grails.serverURL = "http://localhost:8080/${appName}"
+ }
+
+}
+
+
+// log4j configuration
+log4j = {
+ // Example of changing the log pattern for the default console
+ // appender:
+ //
+ //appenders {
+ // console name:'stdout', layout:pattern(conversionPattern: '%c{2} %m%n')
+ //}
+
+ error 'org.codehaus.groovy.grails.web.servlet', // controllers
+ 'org.codehaus.groovy.grails.web.pages', // GSP
+ 'org.codehaus.groovy.grails.web.sitemesh', // layouts
+ 'org.codehaus.groovy.grails.web.mapping.filter', // URL mapping
+ 'org.codehaus.groovy.grails.web.mapping', // URL mapping
+ 'org.codehaus.groovy.grails.commons', // core / classloading
+ 'org.codehaus.groovy.grails.plugins', // plugins
+ 'org.codehaus.groovy.grails.orm.hibernate', // hibernate integration
+ 'org.springframework',
+ 'org.hibernate',
+ 'net.sf.ehcache.hibernate'
+
+ warn 'org.mortbay.log'
+ debug 'redis.clients.jedis', 'org.springframework.datastore.mapping.redis'
+}
@@ -0,0 +1,32 @@
+dataSource {
+ pooled = true
+ driverClassName = "org.hsqldb.jdbcDriver"
+ username = "sa"
+ password = ""
+}
+hibernate {
+ cache.use_second_level_cache = true
+ cache.use_query_cache = true
+ cache.provider_class = 'net.sf.ehcache.hibernate.EhCacheProvider'
+}
+// environment specific settings
+environments {
+ development {
+ dataSource {
+ dbCreate = "create-drop" // one of 'create', 'create-drop','update'
+ url = "jdbc:hsqldb:mem:devDB"
+ }
+ }
+ test {
+ dataSource {
+ dbCreate = "update"
+ url = "jdbc:hsqldb:mem:testDb"
+ }
+ }
+ production {
+ dataSource {
+ dbCreate = "update"
+ url = "jdbc:hsqldb:file:prodDb;shutdown=true"
+ }
+ }
+}
@@ -0,0 +1,13 @@
+class UrlMappings {
+
+ static mappings = {
+ "/$controller/$action?/$id?"{
+ constraints {
+ // apply constraints here
+ }
+ }
+
+ "/"(controller: "article", action: "index")
+ "500"(view:'/error')
+ }
+}
Oops, something went wrong. Retry.

0 comments on commit b99de99

Please sign in to comment.