Den mandag den 21. oktober 2013 21.02.38 UTC+2 skrev Stephen Connolly:
>
>
>
> On Monday, 21 October 2013, Jesse Glick wrote:
>
>> On Mon, Oct 21, 2013 at 1:25 PM, Ronni Elken Lindsgaard
>> <[email protected]> wrote:
>> > Is it safe to typecast an AbstractProject to Project?
>>
>> Well, it is safe to check if the project is a Project. But it
>> certainly may not be, for example if it was a Maven moduleset or
>> module, or a multibranch literate project.
>
>
> The branches and environments of literate are extending from Project IIRC, 
> but I doubt he's dealing with literate as that would need going through 
> BranchProperty to inject his BuildWrapper
>  
>
>>  
I think that for the current scope, it is sufficient to check whether it is 
castable to a Project and fail otherwise. Thanks for the help :)

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to