FirstSpirit Gradle Plugin: FsExecuteCliTask does not work as expected
Author: tfuchs
Publication Date: 12/21/2022 8:50
Hi Community!
I am using the FirstSpirit Gradle Plugin:
plugins { id 'de.espirit.firstspirit' version '1.0.16' }
In order to create a task to export elements from FirstSpirit to GIT I would like to create a FsExecuteCliTask but I seem to be unable to render a correct fs-cli command line.
My Task looks like this:
task fsExportProjectData(type: FsExecuteCliTask) { cliConfiguration { arguments = [ "--syncDir ${projectDataDir}", "--project \"${fsProjectName}\"", "export", "--", "templatestore", "path:/mediastore/layout", "projectproperty:ALL"] } }
This however does not work.
2022-12-19 14:18:44,842 ERROR SystemExitHandler - An unexpected error occurred during command execution com.espirit.moddev.cli.commands.help.UnknownCommandException: fs-cli --syncDir xxxx/firstspirit/projectData --project "XXXX" export templatestore projectproperty:ALL
The command line which works and which I am trying to recreate is as follows (paths and project name are correct, of course):
fs-cli.sh -sd xxxxx/firstspirit/projectData -p "XXXX" export templatestore path:/mediastore/layout projectproperty:ALL
The built-in gradle fs-cli tasks like fsImportProject work fine.
Is it possible to create this command line using the FsExecuteCliTask type?
Thank you!
Timo
Tags: gradle
0
-
Author: GeMo - 1/9/2023 13:50
Hi,
the following code snippet should work (locally tested on a windows machine):
task fsExportProjectData(type: FsExecuteCliTask) { cliConfiguration { arguments = [ "--syncDir", ${projectDataDir}, "--project", ${fsProjectName}, "export", "--", "templatestore", "path:/mediastore/layout", "projectproperty:ALL"] } }0 -
Author: tfuchs - 1/11/2023 13:36
Hi!
Thank you, that works!
Timo
0
Please sign in to leave a comment.
Comments
2 comments