Skip to content

Commit

Permalink
Omit the base directory from the generated code.
Browse files Browse the repository at this point in the history
This is dependent on the build directory, which makes it difficult to
do hermetic builds.
  • Loading branch information
squarejesse committed Oct 7, 2015
1 parent 43923e3 commit 0a610fb
Show file tree
Hide file tree
Showing 82 changed files with 617 additions and 80 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ private void writeJavaFile(ClassName javaTypeName, TypeSpec typeSpec, Location l
JavaFile.Builder builder = JavaFile.builder(javaTypeName.packageName(), typeSpec)
.addFileComment("$L", CODE_GENERATED_BY_WIRE);
if (location != null) {
builder.addFileComment("\nSource file: $L", location);
builder.addFileComment("\nSource file: $L", location.withoutBase());
}
JavaFile javaFile = builder.build();

Expand Down
Loading

0 comments on commit 0a610fb

Please sign in to comment.