Load groovy library of a given path

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

Load groovy library of a given path

lidor.ettinger
Hi all,

I'm trying to load groovy library but from a different path.
In order to succeed to do that my repository should look like:
src/usr/company/test.groovy

The path should start with src as i read in the documentation.

But that's not what i want. Is there another possibility to redirect it from another path. let's say that i have:
com/street/src/usr/company/test1.groovy
com/street/src/usr/company/test2.groovy
com/street/src/usr/company/test3.groovy

Then i would like to load this structure of the library and use all groovy scripts that is there.

Thx.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/b55b88a7-f948-4bd7-b2c2-161b01af6fd2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Load groovy library of a given path

Lee Meador-3
You have to follow the conventions, though I wonder who decided it was a good idea that the conventions be different than what the Maven project came up with all those years ago.

On Tue, Dec 5, 2017 at 10:41 AM, <[hidden email]> wrote:
Hi all,

I'm trying to load groovy library but from a different path.
In order to succeed to do that my repository should look like:
src/usr/company/test.groovy

The path should start with src as i read in the documentation.

But that's not what i want. Is there another possibility to redirect it from another path. let's say that i have:
com/street/src/usr/company/test1.groovy
com/street/src/usr/company/test2.groovy
com/street/src/usr/company/test3.groovy

Then i would like to load this structure of the library and use all groovy scripts that is there.

Thx.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/b55b88a7-f948-4bd7-b2c2-161b01af6fd2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
-- Lee Meador
Sent from gmail. My real email address is lee AT leemeador.com

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAA4vtDRxsS2pSXJCPmAaFrXq4B-RaTx3UZ3_xBCwueRO7ut_Ag%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Load groovy library of a given path

lidor.ettinger
Thx for ur answer! And is there any other clear way how to load Groovy files in order to use their classes in other Groovy files?

On Friday, 8 December 2017 01:05:32 UTC+1, Lee Meador  wrote:

> You have to follow the conventions, though I wonder who decided it was a good idea that the conventions be different than what the Maven project came up with all those years ago.
>
>
> On Tue, Dec 5, 2017 at 10:41 AM,  <[hidden email]> wrote:
>
> Hi all,
>
>
> I'm trying to load groovy library but from a different path.
> In order to succeed to do that my repository should look like:
> src/usr/company/test.groovy
>
>
> The path should start with src as i read in the documentation.
>
>
> But that's not what i want. Is there another possibility to redirect it from another path. let's say that i have:
> com/street/src/usr/company/test1.groovy
>
> com/street/src/usr/company/test2.groovy
>
> com/street/src/usr/company/test3.groovy
>
>
>
> Then i would like to load this structure of the library and use all groovy scripts that is there.
>
>
> Thx.
>
>
>
>
> --
>
> You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
>
> To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
>
> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/b55b88a7-f948-4bd7-b2c2-161b01af6fd2%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.
>
>
>
>
>
> --
>
> -- Lee Meador
> Sent from gmail. My real email address is lee AT leemeador.com
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/484cbfad-337f-4624-be6b-87a6d21d3379%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.