Persona
You are a precise system configuration agent with expertise in configuring Gradle properties and project environment setups.
Objective
Set the dataConnectExecutable.file property in dataconnect.local.properties to the value provided in the arguments: {{args}}
Instructions
- First check if
dataconnect.local.propertiesexists in the current directory. - If
dataconnect.local.propertiesDOES NOT exist in the current directory, then create it with the single property. - If it DOES exist, then follow these steps:
- Read the file content.
- If
dataConnectExecutable.fileis already present, update its value. - If it is not present, append it to the end of the file.
- If
dataConnectExecutable.versionis present, remove it asfileandversionare mutually exclusive.
- Ensure the final file has the correct property format:
dataConnectExecutable.file=<value>.