Hi Tomasz,

The plan is to add the property create/delete events, with the ability to
throw a CancelException in the "before" closures to cancel the action.

For example:

    beforePropertyCreate { item, name, values ->
        echo "Before setting property ${name} to ${values} on
${item.repoPath}"
        if (name?.length() < 2) {
            throw new CancelException("Property name is too short", 400)
        }
    }

    afterPropertyCreate { item, name, values ->
        echo "After setting property ${name} to ${values} on
${item.repoPath}"
    }

    beforePropertyDelete { item, name ->
        echo "Before deleting property ${name} from ${item.repoPath}"
    }

    afterPropertyDelete { item, name ->
        echo "After deleting property ${name} from ${item.repoPath}"
    }


HTH,
-Yoav

On Mon, Nov 12, 2012 at 7:32 PM, Tomasz Majchrowski
<[email protected]>wrote:

> Hi Yoav
>
> Could you drop a little bit more information about new feature, so i will
> have more compleate picture to which directions follows.
> e.g. release date, draft idea behind feature. I would really appreciate
>
> Best regards, Tomasz Majchrowski.
>
>
> 2012/11/9 Tomasz Majchrowski <[email protected]>
>
>>
>> Thank you Yoav for feedback. Could you drop a little bit more info what
>> is behind "capturing properties
>> deployments"?  Is this the same mechanism as that one known from the
>> regular artifacts ? or some
>> other which can provide similar functionality ?
>>
>> --
>> Pozdrawiam/Best regards/Mit freundlichen Grüßen, Tomasz Majchrowski,
>> Information Technology and Services Consultant and Contractor
>>
>> Can you
>> 2012/11/7 Yoav Landman <[email protected]>
>>
>>> Hi,
>>>
>>> At the moment it is not possible to intercept property events, but we
>>> are adding similar hooks for capturing properties deployments. These will
>>> become available very soon, so you will be able to achieve what you are
>>> after.
>>>
>>> HTH,
>>> -Yoav
>>>
>>> On Wed, Nov 7, 2012 at 12:16 PM, Tomasz Majchrowski <
>>> [email protected]> wrote:
>>>
>>>> Dear All
>>>>
>>>> I found User Plugins are very useful. In particular they can handle any
>>>> kind of customization in non-standard environments.
>>>>
>>>> The case that I would like to cover is to skip deployment of metadata.
>>>> This works quite well for regular artifacts (*.jar, *.pom)
>>>> However I'm not able to use the same mechanism to cope with metadata.
>>>> Looks like the hook doesn't work for metadata
>>>>
>>>>  Any hints in this area?
>>>>
>>>> --
>>>> Pozdrawiam/Best regards/Mit freundlichen Grüßen, Tomasz Majchrowski,
>>>> Information Technology and Services Consultant and Contractor
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> LogMeIn Central: Instant, anywhere, Remote PC access and management.
>>>> Stay in control, update software, and manage PCs from one command center
>>>> Diagnose problems and improve visibility into emerging IT issues
>>>> Automate, monitor and manage. Do more in less time with Central
>>>> http://p.sf.net/sfu/logmein12331_d2d
>>>> _______________________________________________
>>>> Artifactory-users mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>>>>
>>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> LogMeIn Central: Instant, anywhere, Remote PC access and management.
>>> Stay in control, update software, and manage PCs from one command center
>>> Diagnose problems and improve visibility into emerging IT issues
>>> Automate, monitor and manage. Do more in less time with Central
>>> http://p.sf.net/sfu/logmein12331_d2d
>>> _______________________________________________
>>> Artifactory-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>>>
>>> --
>>> Pozdrawiam/Best regards/Mit freundlichen Grüßen, Tomasz Majchrowski,
>>> Information Technology and Services Consultant and Contractor
>>>
>>>  <https://lists.sourceforge.net/lists/listinfo/artifactory-users>
>>
>>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_nov
> _______________________________________________
> Artifactory-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>
>
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to