Bug 1527796 - Part 4. Convert file separator to slash. r=nalexander

The file separator of Windows is backslash, not slash.  So we have to convert
it to slash if necessary.

Differential Revision: https://phabricator.services.mozilla.com/D20453

--HG--
extra : rebase_source : 68db0c1fc2870a605aa3d9ed34163ba20bbe6f90
This commit is contained in:
Makoto Kato 2019-03-29 16:04:06 +09:00
Родитель bbb7f9d8a9
Коммит 2a4158c8eb
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -32,7 +32,7 @@ android {
testApplicationId 'org.mozilla.roboexample.test'
testInstrumentationRunner 'org.mozilla.gecko.FennecInstrumentationTestRunner'
// Used by Robolectric based tests; see TestRunner.
buildConfigField 'String', 'BUILD_DIR', "\"${project.buildDir}\""
buildConfigField 'String', 'BUILD_DIR', "\"${project.buildDir}\"".tr(File.separator, "/")
vectorDrawables.useSupportLibrary = true
multiDexEnabled true

Просмотреть файл

@ -91,7 +91,7 @@ ext.configureLibraryVariantWithJNIWrappers = { variant, module ->
// JNI wrappers is the moz.build system, which always builds geckoview to
// consume from Fennec, so that dependency likely adds less to the build time.
def jarTask = tasks["transformClassesAndResourcesWithPrepareIntermediateJarsFor${variant.name.capitalize()}"]
def bundleJar = jarTask.outputs.files.find({ it.absolutePath.contains('/classes.jar') })
def bundleJar = jarTask.outputs.files.find({ it.name == 'classes.jar' })
def annotationProcessorsJarTask = project(':annotations').jar
@ -140,7 +140,7 @@ ext.configureLibraryVariantWithJNIWrappers = { variant, module ->
ext.configureApplicationVariantWithJNIWrappers = { variant, module ->
def jarTask = tasks["bundleAppClasses${variant.name.capitalize()}"]
def bundleJar = jarTask.outputs.files.find({ it.absolutePath.contains('/classes.jar') })
def bundleJar = jarTask.outputs.files.find({ it.name == 'classes.jar' })
def annotationProcessorsJarTask = project(':annotations').jar