Skip to content

Commit

Permalink
Added output dir as an option
Browse files Browse the repository at this point in the history
  • Loading branch information
ethankhall committed Apr 30, 2013
1 parent f325db3 commit 4a1dc74
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,9 @@ class ProtobufConvention {
* Directory to extract proto files into
*/
def String extractedProtosDir

/**
* Directory to save java files to
*/
def String generatedFileDir
}
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,10 @@ class ProtobufPlugin implements Plugin<Project> {
}

private getGeneratedSourceDir(Project project, SourceSet sourceSet) {
if(project.generatedFileDir != null)
return project.generatedFileDir

def generatedSourceDir = 'generated-sources'
//if (sourceSet.name != SourceSet.MAIN_SOURCE_SET_NAME)
// generatedSourceDir = "${sourceSet.name}-generated-sources"
return "${project.buildDir}/${generatedSourceDir}/${sourceSet.name}"
}

Expand Down

0 comments on commit 4a1dc74

Please sign in to comment.