Hi,

Thanks for the response! 

Yes, I examined the implementation of the FilePath and found the same, so I 
had a cheat sheet :). It worked!

Thanks,
Ogi

On Thursday, October 11, 2012 6:16:22 PM UTC+2, Mads Nielsen wrote:
>
> Hey,
>
> The way i understood remote fileops is that you do it like this. 
>
> build.getWorkspace().act(FileCallable)
>
> The remote operation is performed in the class which implement the 
> FileCallable interface.
>
> The FileCallable interface has one method: invoke(File f) that file, f is 
> the remote workspace dir, and is executed remotely. You can use that with 
> your directory scanner. 
>
> Regards,
> Mads
>
> On Thu, Oct 11, 2012 at 3:22 PM, Ognjen Bubalo 
> <[email protected]<javascript:>
> > wrote:
>
>> I forgot to mention, that I need to pass the basedir 
>> (build.getWorkspace()) to DirectoryScanner, but the DS only accepts File or 
>> String object, so I think I have to execute the whole DS on the remote 
>> somehow.
>>
>>
>> On Thursday, October 11, 2012 3:04:23 PM UTC+2, Ognjen Bubalo wrote:
>>>
>>> I have a problem with remote management. DirectoryScanner works, but it 
>>> should be executed to work with slaves too. 
>>> I was wondering to try something with FilePath.FileCallable, but did not 
>>> work, also I cannot extend FilePath because it is final. I tried the 
>>> FilePath.list(includes) too but did not work.
>>>
>>> Could somebody help me?
>>>
>>> Thanks,
>>> Ogi
>>>
>>> On Thursday, October 4, 2012 8:23:51 PM UTC+2, Ognjen Bubalo wrote:
>>>>
>>>> That worked! Thanks Jesse!
>>>>
>>>> 2012. szeptember 21., péntek 19:21:36 UTC+2 időpontban Jesse Glick a 
>>>> következőt írta:
>>>>>
>>>>> On 09/21/2012 03:03 AM, Ognjen Bubalo wrote: 
>>>>> > So I am writing a plugin and I want to get list of directories which 
>>>>> match the pattern given on the configuration page. 
>>>>>
>>>>> You can use DirectoryScanner directly I think. 
>>>>>
>>>>
>
>
> -- 
> *
> * 
> *Mads Nielsen
> Trainee and Wizard
> Praqma A/S
> *
>
> *Tel: +45 50 98 18 09
> Mail: [email protected] <javascript:>
> web: www.praqma.net*
>
> 

Reply via email to