Just to be clear, I do this in my mojo's execute() method, right?

allan ramirez wrote:
> 
> try this
> 
> List classpathElements = project.getCompileClasspathElements();
> classpathElements.add( your directory );
> 
> where your project is MavenProject
> 
> Regards
> -allan
> 
> 
> On 1/18/07, matthewadams <[EMAIL PROTECTED]> wrote:
>>
>> My mojo allows the user to define an extra property ("private File
>> licenseFileDirectory"), which is a directory, that I'd like to add to the
>> classpath when my mojo runs so that I can find a resource (a license
>> file)
>> in the given directory.
>>
>> How can I programatically add this to the classpath in my mojo?  Is there
>> some best practice for this?
>>
>> Thanks,
>> Matthew
>> --
>> View this message in context:
>> http://www.nabble.com/How-do-I-programatically-add-an-element-to-my-plugin%27s-classpath--tf3029052s177.html#a8416113
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> ==========================================================
> - alramirez
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-do-I-programatically-add-an-element-to-my-plugin%27s-classpath--tf3029052s177.html#a8425308
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to