ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject Re: pulling artifacts into classpaths
Date Mon, 11 Dec 2006 16:45:33 GMT
Xavier Hanin wrote:
> On 12/9/06, Steve Loughran <stevel@apache.org> wrote:
>>
>>
>> How do I get generated artifacts into my test classpath?
>>
>> That is, if I associate a Jar artfact with the "master" configuration,
>> how do I get that artifact pulled into the test config. Is it as simple
>> as saying that the test configuration extends master?
>>
> Yes!
> 

Well, I can't seem to get it working.

I have a config file: 
http://svn.sourceforge.net/viewvc/smartfrog/trunk/core/components/xml/ivy.xml?view=markup

it generates artifacts in the master build

    <publications>
      <artifact conf="master"/>
    </publications>

And the test conf depends on it

     <conf name="test" extends="default,parser"
          description="the classpath needed to run tests"/>

Which I then pull in
<ivy:cachepath pathid="exec.classpath" conf="test" />

but I dont see the artifacts in the resulting classpath. dependents yes, 
artifact no

      [echo] exec.classpath=/home/slo/.ivy/cache/xom/xom/jars/xom-1.1.jar:
  home/slo/.ivy/cache/jaxen/jaxen/jars/jaxen-1.1-beta-8.jar:
/home/slo/.ivy/cache/org.smartfrog/smartfrog/jars/smartfrog-3.10.slo-private.jar:
/home/slo/.ivy/cache/org.smartfrog/smartfrog/jars/sfServices-3.10.slo-private.jar:
/home/slo/.ivy/cache/org.smartfrog/smartfrog/jars/sfExamples-3.10.slo-private.jar:
/home/slo/.ivy/cache/xerces/xercesImpl/jars/xercesImpl-2.6.2.jar:
/home/slo/.ivy/cache/xerces/xmlParserAPIs/jars/xmlParserAPIs-2.6.2.jar:/
home/slo/.ivy/cache/org.smartfrog/sf-testharness/jars/sf-testharness-3.10.slo-private.jar:
/home/slo/.ivy/cache/junit/junit/jars/junit-3.8.2.jar

How do i get the Jar I'm building into the classpath of the test 
compile/run?

-steve

Mime
View raw message