adept-dm / adept

Adept - the predictable dependency management system
171 stars 10 forks source link

SBT failure fix #19

Closed tomasherman closed 11 years ago

tomasherman commented 11 years ago

When i try to run sbt in the repo, i get the following error:

java.lang.IllegalArgumentException: Illegal pattern character 'Y' at java.text.SimpleDateFormat.compile(SimpleDateFormat.java:768) at java.text.SimpleDateFormat.initialize(SimpleDateFormat.java:575) at java.text.SimpleDateFormat.(SimpleDateFormat.java:500) at java.text.SimpleDateFormat.(SimpleDateFormat.java:475) at AdeptBuild$$anonfun$3.apply(Build.scala:11) at AdeptBuild$$anonfun$3.apply(Build.scala:10) at sbt.Init$Value$$anonfun$apply$6.apply(Settings.scala:329) at sbt.EvaluateSettings$$anonfun$sbt$EvaluateSettings$$constant$1.apply(INode.scala:158) at sbt.EvaluateSettings$$anonfun$sbt$EvaluateSettings$$constant$1.apply(INode.scala:158) at sbt.EvaluateSettings$MixedNode.evaluate0(INode.scala:177) at sbt.EvaluateSettings$INode.evaluate(INode.scala:132) at sbt.EvaluateSettings$$anonfun$sbt$EvaluateSettings$$submitEvaluate$1.apply$mcV$sp(INode.scala:64) at sbt.EvaluateSettings.sbt$EvaluateSettings$$run0(INode.scala:73) at sbt.EvaluateSettings$$anon$3.run(INode.scala:69) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:662)

Im not sure, but i believe there was a bug in original Build.scala. This fixes the build

tomasherman commented 11 years ago

btw, 'Y' pattern only exists in jdk7 (http://docs.oracle.com/javase/6/docs/api/java/text/SimpleDateFormat.htmlhttp://docs.oracle.com/javase/6/docs/api/java/text/SimpleDateFormat.html)

freekh commented 11 years ago

Ah, darn!! So that was the issue! Thanks for fixing! Merging now...