Skip to content

Commit

Permalink
Generate ctags also for scala/java test directories
Browse files Browse the repository at this point in the history
  • Loading branch information
fedragon committed Dec 22, 2014
1 parent 6884916 commit 9b5d182
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,15 @@ scmInfo := Some(
)
)

scalaVersion := "2.10.0"

scalacOptions ++= Seq(
"-deprecation",
"-unchecked",
"-encoding", "UTF-8"
"-encoding", "UTF-8",
"-target:jvm-1.7"
)

javacOptions ++= Seq("-source", "1.7")

/* publishing */
publishMavenStyle := true

Expand Down
4 changes: 2 additions & 2 deletions src/main/scala/net/ceedubs/sbtctags/SbtCtags.scala
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ object SbtCtags extends Plugin {

CtagsKeys.ctagsSrcFileFilter <<= CtagsKeys.ctagsParams(_.languages.foldLeft(NameFilter.fnToNameFilter(_ => false))((filter, lang) => filter | GlobFilter(s"*.$lang"))),

CtagsKeys.ctagsSrcDirs <<= (Keys.scalaSource in Compile, Keys.javaSource in Compile, CtagsKeys.dependencySrcUnzipDir){ (srcDir, javaSrcDir, depSrcDir) =>
Seq(srcDir, javaSrcDir, depSrcDir)
CtagsKeys.ctagsSrcDirs <<= (Keys.scalaSource in Compile, Keys.scalaSource in Test, Keys.javaSource in Compile, Keys.javaSource in Test, CtagsKeys.dependencySrcUnzipDir){ (srcDir, testDir, javaSrcDir, javaTestDir, depSrcDir) =>
Seq(srcDir, testDir, javaSrcDir, javaTestDir, depSrcDir)
},

CtagsKeys.ctagsGeneration in ThisBuild := defaultCtagsGeneration,
Expand Down

0 comments on commit 9b5d182

Please sign in to comment.