Skip to content

Commit

Permalink
Merge pull request #381 from madvay/prefixes
Browse files Browse the repository at this point in the history
Treat prefixes (in the args and in files) as an input to translation.
  • Loading branch information
advayDev1 committed Aug 21, 2015
2 parents 495993f + a23cc23 commit 881b8b9
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,18 @@ class TranslateTask extends DefaultTask {
return allFiles
}

// Property is never used, however it is an input value as
// the contents of the prefixes, including a prefix file, affect all translation
// output. We don't care about the prefix file (if any) per se, but we care about
// the final set of prefixes.
// NOTE: As long as all other tasks have the output of TranslateTask as its own inputs,
// they do not also need to have the packagePrefixes as a direct input in order to
// have correct up-to-date checks.
@SuppressWarnings("GroovyUnusedDeclaration")
@Input Properties getPackagePrefixes() {
return Utils.packagePrefixes(project, translateArgs)
}

@Input
String getJ2objcHome() { return Utils.j2objcHome(project) }

Expand Down

0 comments on commit 881b8b9

Please sign in to comment.