Skip to content

Commit

Permalink
[split] add the thrift root to the list of includes for scrooge
Browse files Browse the repository at this point in the history
RB_ID=282485
  • Loading branch information
sprsquish authored and CI committed Feb 7, 2014
1 parent 3d5c75f commit b27e8dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Expand Up @@ -219,6 +219,12 @@ public void execute() throws MojoExecutionException, MojoFailureException {
Set<File> includes = thriftIncludes;
includes.add(getResourcesOutputDirectory());

// Include thrift root
final File thriftSourceRoot = getThriftSourceRoot();
if (thriftSourceRoot != null && thriftSourceRoot.exists()) {
includes.add(thriftSourceRoot);
}

runner.compile(
getLog(),
new File(outputDirectory, "scrooge"),
Expand Down
Expand Up @@ -108,8 +108,8 @@ object ScroogeSBT extends Plugin {
scroogeBuildOptions := Seq("--finagle"),
scroogeThriftSourceFolder <<= (sourceDirectory) { _ / "thrift" },
scroogeThriftExternalSourceFolder <<= (target) { _ / "thrift_external" },
scroogeThriftOutputFolder <<= (sourceManaged) { x => x },
scroogeThriftIncludeFolders := Seq(),
scroogeThriftOutputFolder <<= (sourceManaged) { identity },
scroogeThriftIncludeFolders <<= (scroogeThriftSourceFolder) { Seq(_) },
scroogeThriftNamespaceMap := Map(),
scroogeThriftDependencies := Seq(),

Expand Down

0 comments on commit b27e8dd

Please sign in to comment.