1616* -PandroidXLegacy=[androidx_legacy_version]
1717* -PandroidXAppCompat=[androidx_appcompat_version]
1818* -PandroidXMaterial=[androidx_material_version]
19+ * -PappPath=[app_path]
20+ * -PappResourcesPath=[app_resources_path]
1921*/
2022
2123
@@ -125,7 +127,11 @@ version of the {N} CLI install a previous version of the runtime package - 'tns
125127 nsConfig = new JsonSlurper (). parseText(nsConfigFile. getText(" UTF-8" ))
126128 }
127129
128- if (nsConfig != null && nsConfig. appPath != null ) {
130+ if (project. hasProperty(" appPath" )) {
131+ // when appPath is passed through -PappPath=/path/to/app
132+ // the path could be relative or absolute - either case will work
133+ relativePathToApp = appPath
134+ } else if (nsConfig != null && nsConfig. appPath != null ) {
129135 relativePathToApp = nsConfig. appPath
130136 }
131137
@@ -144,7 +150,12 @@ version of the {N} CLI install a previous version of the runtime package - 'tns
144150 nsConfig = new JsonSlurper (). parseText(nsConfigFile. getText(" UTF-8" ))
145151 }
146152
147- if (nsConfig != null && nsConfig. appResourcesPath != null ) {
153+ if (project. hasProperty(" appResourcesPath" )) {
154+ // when appResourcesPath is passed through -PappResourcesPath=/path/to/App_Resources
155+ // the path could be relative or absolute - either case will work
156+ relativePathToAppResources = appResourcesPath
157+ absolutePathToAppResources = java.nio.file.Paths . get(USER_PROJECT_ROOT ). resolve(relativePathToAppResources). toAbsolutePath()
158+ } else if (nsConfig != null && nsConfig. appResourcesPath != null ) {
148159 relativePathToAppResources = nsConfig. appResourcesPath
149160 absolutePathToAppResources = java.nio.file.Paths . get(USER_PROJECT_ROOT ). resolve(relativePathToAppResources). toAbsolutePath()
150161 } else {
0 commit comments