getOptionalFilesToUpdate method

  1. @override
List<File> getOptionalFilesToUpdate()

Implementation

@override
List<File> getOptionalFilesToUpdate() {
  var workspaceFilePath = projectPath + "/.idea/workspace.xml";
  var runDirectoryPath = projectPath + "/.run";
  var runDirectory = Directory(runDirectoryPath);
  var filesToUpdate = runDirectory
      .listSync()
      .where((element) => element.uri.toString().endsWith('.run.xml'))
      .map((element) => File(element.uri.toString()))
      .toList();

  filesToUpdate.add(File(workspaceFilePath));
  return filesToUpdate;
}