You should probably workaround, and add it explicetly in your path from your ant script. I mean use test.path that include the ivy exec.classpath and your builded jar (or just the classes directory).
I guess that your ant script has anyway the knowledge to build the jars. So the worksaround should not be a strong limitation. Is it? Gilles > -----Original Message----- > From: Steve Loughran [mailto:[EMAIL PROTECTED] > Sent: Monday, December 11, 2006 5:46 PM > To: [email protected] > Subject: Re: pulling artifacts into classpaths > > Xavier Hanin wrote: > > On 12/9/06, Steve Loughran <[EMAIL PROTECTED]> 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/compone > nts/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-testh > arness-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
