How is TestCompileMojo.classpathElements constructed?

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

How is TestCompileMojo.classpathElements constructed?

by Joshua ChaitinPollak :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

When stepping through Maven with a debugger, I can't seem to figure  
out how the test classpathElements object is constructed.

The patch I submitted to this bug:

http://jira.codehaus.org/browse/MNG-3559

Works fine when moduleC's test scope only depends on moduleA's test-
jar, but if I add a dependency from moduleC's test-jar to moduleA's  
jar, somehow the compile classpath gets corrupted.

-Josh

--
Joshua ChaitinPollak | Software Engineer
Kiva Systems, Inc., 225 Wildwood Ave, Woburn, MA 01970







Re: How is TestCompileMojo.classpathElements constructed?

by Joshua ChaitinPollak :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Never mind, for some reason I was expecting to see  
MavenProject.getTestCompileClasspathElements(), and it took a while to  
find MavenProject.getTestClasspathElements().

On Apr 30, 2008, at 1:42 PM, Joshua ChaitinPollak wrote:

> Hi,
>
> When stepping through Maven with a debugger, I can't seem to figure  
> out how the test classpathElements object is constructed.
>
> The patch I submitted to this bug:
>
> http://jira.codehaus.org/browse/MNG-3559
>
> Works fine when moduleC's test scope only depends on moduleA's test-
> jar, but if I add a dependency from moduleC's test-jar to moduleA's  
> jar, somehow the compile classpath gets corrupted.
>
> -Josh
>
> --
> Joshua ChaitinPollak | Software Engineer
> Kiva Systems, Inc., 225 Wildwood Ave, Woburn, MA 01970
>
>
>
>
>
>

--
Joshua ChaitinPollak | Software Engineer
Kiva Systems, Inc., 225 Wildwood Ave, Woburn, MA 01970