Permalink
Browse files

Move mkdir to write/execution time

Update changelog

RB=1155706
BUG=GRADLE-114
R=kbalasub,cxu,mnchen,aponniah,jnchen,dhoa,xma,ymwang,ssheng,zglagola
A=kbalasub
  • Loading branch information...
JamStop committed Nov 13, 2017
1 parent 9066fbe commit 378277cb69ce6dece4346556ff6d71809bb452fc
View
@@ -1,5 +1,7 @@
16.0.5
------
(RB=1155706)
Fix the DataTemplate generation issue on Gradle 4.3's modified OutputDirectory generation time.
16.0.4
@@ -149,6 +149,7 @@ public static GeneratorResult run(String resolverPath, String defaultPackage, fi
_log.info("Generating " + targetFiles.size() + " files");
_log.debug("Files: "+ targetFiles);
validateDefinedClassRegistration(dataTemplateGenerator.getCodeModel(), dataTemplateGenerator.getGeneratedClasses().keySet());
targetDirectory.mkdirs();
dataTemplateGenerator.getCodeModel().build(new FileCodeWriter(targetDirectory, true));
}
return new DefaultGeneratorResult(parseResult.getSourceFiles(), targetFiles, modifiedFiles);
@@ -107,7 +107,6 @@ class GenerateDataTemplateTask extends JavaExec
LOG.lifecycle(
"There are ${inputDataSchemaFilenames.length} data schema input files. Using input root folder: ${target.inputDir}")
target.destinationDir.mkdirs()
final String resolverPathStr = (target.resolverPath + project.files(target.inputDir)).asPath

0 comments on commit 378277c

Please sign in to comment.