GH-540 fix for source-file with app target-dir (PR #542)

This commit is contained in:
Christopher J. Brody 2018-11-11 15:26:04 -05:00
parent 951ff5552e
commit 717d768cec

View File

@ -323,8 +323,9 @@ function getInstallDestination (obj) {
}
function studioPathRemap (obj) {
// If a Java file is using the new directory structure, don't penalize it
if (!obj.targetDir.includes('app/src/main')) {
// If any source file is using the app new directory structure,
// don't penalize it
if (!obj.targetDir.includes('app')) {
if (obj.src.endsWith('.java')) {
return path.join('app/src/main/java', obj.targetDir.substring(4), path.basename(obj.src));
} else {