You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Brian E. Fox" <br...@reply.infinity.nu> on 2007/12/27 21:12:08 UTC

what's up with "artifactHandler.isAddedToClasspath()" ?

I'm debugging a problem that happens in both 2.0.8/9-SNAPSHOT and
2.1-SNAPSHOT...that is project.getRunTimeArtifacts returns an empty list
even when it clearly should not. I debug into the project and I see that
all the getXXXArtifacts make a call like this:

 

  if ( a.getArtifactHandler().isAddedToClasspath() )

            {

 

 

The trouble is, I cannot find any place that the backing variable
addedToClasspath is set.  (and it's not exposed via a setter in the
ArtifactHandler interface) Am I blind or is there something else going
on here? It seems to me like all these new get[Scope]Artifacts must be
broken.

 

--Brian


RE: what's up with "artifactHandler.isAddedToClasspath()" ?

Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
Hrm missed that, but it confirms that something is wrong because it is
correctly set to true. Guess I'll keep digging...

-----Original Message-----
From: Tom Huybrechts [mailto:tom.huybrechts@gmail.com] 
Sent: Thursday, December 27, 2007 3:35 PM
To: Maven Developers List
Subject: Re: what's up with "artifactHandler.isAddedToClasspath()" ?

It's set in the ArtifactHandler configuration in components.xml.


On Dec 27, 2007 9:12 PM, Brian E. Fox <br...@reply.infinity.nu> wrote:

> I'm debugging a problem that happens in both 2.0.8/9-SNAPSHOT and
> 2.1-SNAPSHOT...that is project.getRunTimeArtifacts returns an empty
list
> even when it clearly should not. I debug into the project and I see
that
> all the getXXXArtifacts make a call like this:
>
>
>
>  if ( a.getArtifactHandler().isAddedToClasspath() )
>
>            {
>
>
>
>
>
> The trouble is, I cannot find any place that the backing variable
> addedToClasspath is set.  (and it's not exposed via a setter in the
> ArtifactHandler interface) Am I blind or is there something else going
> on here? It seems to me like all these new get[Scope]Artifacts must be
> broken.
>
>
>
> --Brian
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: what's up with "artifactHandler.isAddedToClasspath()" ?

Posted by Tom Huybrechts <to...@gmail.com>.
It's set in the ArtifactHandler configuration in components.xml.


On Dec 27, 2007 9:12 PM, Brian E. Fox <br...@reply.infinity.nu> wrote:

> I'm debugging a problem that happens in both 2.0.8/9-SNAPSHOT and
> 2.1-SNAPSHOT...that is project.getRunTimeArtifacts returns an empty list
> even when it clearly should not. I debug into the project and I see that
> all the getXXXArtifacts make a call like this:
>
>
>
>  if ( a.getArtifactHandler().isAddedToClasspath() )
>
>            {
>
>
>
>
>
> The trouble is, I cannot find any place that the backing variable
> addedToClasspath is set.  (and it's not exposed via a setter in the
> ArtifactHandler interface) Am I blind or is there something else going
> on here? It seems to me like all these new get[Scope]Artifacts must be
> broken.
>
>
>
> --Brian
>
>