Skip to content

Instantly share code, notes, and snippets.

@stevej
Created November 19, 2009 18:55
Show Gist options
  • Save stevej/238968 to your computer and use it in GitHub Desktop.
Save stevej/238968 to your computer and use it in GitHub Desktop.
Fixing documentation output to say 'def'
Index: src/main/scala/sbt/DefaultProject.scala
===================================================================
--- src/main/scala/sbt/DefaultProject.scala (revision 1129)
+++ src/main/scala/sbt/DefaultProject.scala (working copy)
@@ -445,7 +445,7 @@
{
log.warn("No Main-Class attribute will be added automatically added:")
log.warn("Multiple classes with a main method were detected. Specify main class explicitly with:")
- log.warn(" override mainClass = Some(\"className\")")
+ log.warn(" override def mainClass = Some(\"className\")")
}
private def mapScalaModule(in: Iterable[_], id: String) =
{
@@ -511,4 +511,4 @@
private def isScalaLibraryJar(file: File) = isNamed(file)(ScalaLibraryPrefix)
private def isNamed(file: File)(name: String) = file.getName.startsWith(name)
-}
\ No newline at end of file
+}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment