[jira] [Comment Edited] (OFBIZ-7898) Create a (short term) Gradle "cleanAnt" task to remove old build dirs

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Comment Edited] (OFBIZ-7898) Create a (short term) Gradle "cleanAnt" task to remove old build dirs

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-7898?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15384186#comment-15384186 ]

Taher Alkhateeb edited comment on OFBIZ-7898 at 7/19/16 2:09 PM:
-----------------------------------------------------------------

For reference, this can be useful in any groovy iteration over all components.
{code:java}
    ['framework', 'specialpurpose', 'applications'].each { componentGroup ->
        file(componentGroup).eachDir { component ->
        //do whatever you want to the component directory here.
    }
{code}


was (Author: taher):
For reference, this can be useful in any groovy iteration over all components.

    ['framework', 'specialpurpose', 'applications'].each { componentGroup ->
        file(componentGroup).eachDir { component ->
        //do whatever you want to the component directory here.
    }

> Create a (short term) Gradle "cleanAnt" task to remove old build dirs
> ---------------------------------------------------------------------
>
>                 Key: OFBIZ-7898
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-7898
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: framework
>            Reporter: Jacques Le Roux
>            Assignee: Jacques Le Roux
>            Priority: Minor
>
> The idea is to adapt the "old" Ant "clean*" targets in order to allow to remove old build dirs. It's not a problem if you have done an Ant clean just before removing Ant whith a "svn up" but I guess most of us did not.
> We will then also remove the related svn:ignore (build dirs)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)