From c3171af59e36f66a825057569640393b33df3c7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3bert=20Papp=20=28TWiStErRob=29?= Date: Mon, 4 Jul 2016 22:43:55 +0000 Subject: [PATCH] [SVN] r1934 Inventory in /Projects/Inventory/ [FIX] Remove hardcoded paths and use android srcDirs --- build.gradle | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index c8149a628..d1dfa4dda 100644 --- a/build.gradle +++ b/build.gradle @@ -15,9 +15,10 @@ apply plugin: InventoryDatabasePlugin databaseEntities { categories { - input = file(/i:\src\main\res\values\strings_Categories.xml/) - output = file(/i:\src\main\assets\MagicHomeInventory.data.Categories.sql/) - iconFolder = file(/i:\src\main\res\raw/) + def ss = android.sourceSets.main + input = file(new File(ss.res.srcDirs.first(), 'values/strings_Categories.xml')) + output = file(new File(ss.assets.srcDirs.first(), 'MagicHomeInventory.data.Categories.sql')) + iconFolder = file(new File(ss.res.srcDirs.first(), 'raw')) conversion = "SQL" } }