Search the FirstSpirit Knowledge Base
Hi Community!
I am using the FirstSpirit Gradle Plugin:
plugins {
id 'de.espirit.firstspirit' version '1.0.16'
}
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
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"]
}
}
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"]
}
}
Hi!
Thank you, that works!
Timo