Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support configuring Amp task file properties with CopySpec #8

Closed
vierbergenlars opened this issue Oct 31, 2018 · 0 comments · Fixed by #10
Closed

Support configuring Amp task file properties with CopySpec #8

vierbergenlars opened this issue Oct 31, 2018 · 0 comments · Fixed by #10
Labels
enhancement New feature or request

Comments

@vierbergenlars
Copy link
Member

At this moment file properties of the Amp task are configured like for example:

task amp(type: Amp) {
   moduleProperties = project.file("src/main/amp/module.properties")
   config = project.file("src/main/amp/config")
}

The current way of configuring makes it impossible to change CopySpec properties to match an other layout. I am not able to change the structure of the config directory on disk and map it to the right structure as it should be in the amp.

I would like to be able to use an alternative configuration layout where I can avoid creating the intermediate directory structure alfresco/modules/$moduleId for my amp.

For example, I place my module-context.xml file directly in src/main/amp/config and copy it in the amp to config/alfresco/modules/$moduleId/module-context.xml while expanding placeholders.

task amp(type: Amp) {
   config {
       from "src/main/amp/config"
       into "alfresco/modules/${moduleId}"
       expand [ "moduleId": moduleId ]
   }
}
@vierbergenlars vierbergenlars added the enhancement New feature or request label Oct 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant