How to use class from external Jar?

View: New views
4 Messages — Rating Filter:   Alert me  

How to use class from external Jar?

by Marc Guillemot :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I couldn't find any documentation on how to use a class from a Jar file
that is *not* in my "normal" classpath.

I have for instance a property containing the path to the jar and I'd
like to define a local classpath with this jar and to use some classes
of this Jar. Is it possible?

Cheers,
Marc.
--
Web: http://www.efficient-webtesting.com
Blog: http://mguillem.wordpress.com

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: How to use class from external Jar?

by Adam Murdoch-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



Marc Guillemot wrote:
> Hi,
>
> I couldn't find any documentation on how to use a class from a Jar file
> that is *not* in my "normal" classpath.
>
>  

Where do you want to use the class? In your build file? a web app? a test?

> I have for instance a property containing the path to the jar and I'd
> like to define a local classpath with this jar and to use some classes
> of this Jar. Is it possible?
>
> Cheers,
> Marc.
>  

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: How to use class from external Jar?

by Marc Guillemot :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Adam,

sorry if it wasn't clear.

I want to use a class from an external jar in my gradle build file.

Cheers,
Marc.

Adam Murdoch wrote:

>
>
> Marc Guillemot wrote:
>> Hi,
>>
>> I couldn't find any documentation on how to use a class from a Jar file
>> that is *not* in my "normal" classpath.
>>
>>  
>
> Where do you want to use the class? In your build file? a web app? a test?
>
>> I have for instance a property containing the path to the jar and I'd
>> like to define a local classpath with this jar and to use some classes
>> of this Jar. Is it possible?
>>
>> Cheers,
>> Marc.
>>  
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: How to use class from external Jar?

by hdockter :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Marc,

On Jun 9, 2009, at 9:12 AM, Marc Guillemot wrote:

> Hi Adam,
>
> sorry if it wasn't clear.
>
> I want to use a class from an external jar in my gradle build file.

See UG 25.2: http://gradle.org/0.6.1/docs/userguide/organizing_build_logic.html

- Hans

--
Hans Dockter
Gradle Project Manager
http://www.gradle.org


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email