Skip to content

Instantly share code, notes, and snippets.

Avatar

Mick Knutson mickknutson

View GitHub Profile
View file1.java
@DateTimeFormat(style="MM/dd/yyyy")
private java.util.Date timestamp;
@mickknutson
mickknutson / file1.sh
Created Jan 18, 2012
Invalid style specification: MM/dd/yyyy stacktrace
View file1.sh
org.joda.time.format.DateTimeFormat.createFormatterForStyle(DateTimeFormat.java:702)
org.joda.time.format.DateTimeFormat.patternForStyle(DateTimeFormat.java:212)
com.comcast.uivr.web.LoggingController_Roo_Controller.ajc$interMethod$com_comcast_uivr_web_LoggingController_Roo_Controller$com_comcast_uivr_web_LoggingController$addDateTimeFormatPatterns(LoggingController_Roo_Controller.aj:98)
com.comcast.uivr.web.LoggingController.ajc$interMethodDispatch2$com_comcast_uivr_web$addDateTimeFormatPatterns(LoggingController.java:1)
com.comcast.uivr.web.LoggingController_Roo_Controller.ajc$interMethodDispatch1$com_comcast_uivr_web_LoggingController_Roo_Controller$com_comcast_uivr_web_LoggingController$addDateTimeFormatPatterns(LoggingController_Roo_Controller.aj)
com.comcast.uivr.web.LoggingController_Roo_Controller.ajc$interMethod$com_comcast_uivr_web_LoggingController_Roo_Controller$com_comcast_uivr_web_LoggingController$list(LoggingController_Roo_Controller.aj:66)
com.comcast.uivr.web.LoggingController.list(LoggingCo
View file1.java
@DateTimeFormat(style="yyyyMMdd'T'HHmmss.SSSZ")
private java.util.Date timestamp;
@mickknutson
mickknutson / file1.xml
Created Feb 2, 2012
tomcat 6 connector enableLookups="true"
View file1.xml
<Connector enableLookups="true"
port="8080"
protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
@mickknutson
mickknutson / file1.sh
Created Feb 12, 2012
gradle repositories error
View file1.sh
08:42:13.083 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':ch01:compileJava'
08:42:13.094 [ERROR] [org.gradle.BuildExceptionReporter]
08:42:13.099 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed with an exception.
08:42:13.104 [ERROR] [org.gradle.BuildExceptionReporter]
08:42:13.108 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
08:42:13.112 [ERROR] [org.gradle.BuildExceptionReporter] Could not resolve all dependencies for configuration ':ch01:compile'.
08:42:13.118 [ERROR] [org.gradle.BuildExceptionReporter] Cause: You must specify a URL for a Maven repository.
@mickknutson
mickknutson / file1.groovy
Created Feb 12, 2012
gradle repositories
View file1.groovy
repositories {
maven {url: 'file:///C:/usr/repository/'}
mavenCentral()
maven {url: 'http://download.java.net/maven/2'}
maven {url: 'http://maven.glassfish.org/content/repositories/eclipselink'}
maven {url: 'http://maven.glassfish.org/content/repositories/eclipselink'}
maven {url: 'http://nexus.openqa.org/content/repositories/releases/'}
maven {url: 'http://scala-tools.org/repo-releases'}
maven {url: 'http://repository.jboss.org/nexus/content/groups/public-jboss/'}
@mickknutson
mickknutson / file1.groovy
Created Feb 12, 2012
new gradle repositories
View file1.groovy
repositories {
mavenLocal()
mavenCentral()
maven {url 'https://maven.java.net/content/groups/public/'}
maven {url 'http://maven.glassfish.org/content/repositories/eclipselink'}
maven {url 'http://nexus.openqa.org/content/repositories/releases/'}
maven {url 'http://scala-tools.org/repo-releases'}
maven {url 'http://repository.jboss.org/nexus/content/groups/public-jboss/'}
View file1.groovy
def versions = [root: "1.0.0"]
buildscript {
List list1 = ["com.baselogic:common:${versions.root}"]
List list2 = ["com.baselogic:extended:${versions.root}"]
println "--- buildscript ---"
println "versions: $versions"
println "list1: $list1"
View file1.sh
C:\>gradle -t -a
--- buildscript ---
versions: [root:1.0.0]
list1: [com.baselogic:common:1.0.0]
list2: [com.baselogic:extended:1.0.0]
--- allprojects ---
versions: [root:1.0.0]
list1: [com.baselogic:common:1.0.0]
list2: [com.baselogic:extended:1.0.0]
--- allprojects ---
View file1.groovy
buildscript {
def versions = [root: "1.0.0"]
List list1 = ["com.baselogic:common:${versions.root}"]
List list2 = ["com.baselogic:extended:${versions.root}"]
println "--- buildscript ---"
println "versions: $versions"
println "list1: $list1"
println "list2: $list2"