Ok, got it!

The web page for this is at
http://avalon.apache.org/central/tools/magic/tasks/common/filter.html.




> -----Original Message-----
> From: Stephen McConnell [mailto:[EMAIL PROTECTED]
> Sent: July 21, 2004 12:30
> To: 'Avalon framework users'; [EMAIL PROTECTED]
> Subject: RE: Embedding - howto
>
>
>
> The @MERLIN-IMPL-SPEC@ is just a token that get replaced as a result of
> the following statement in the build.xml file:
>
>     <x:filter key="avalon-merlin-impl" feature="uri"
>        token="MERLIN-IMPL-SPEC"/>
>
> The actual value that ends up in the compiled source is something like:
>
>   artifact:jar:avalon/merlin/avalon-merlin-impl#SNAPSHOT
>
> Which is basically:
>
>   [protocol]:[type]:[group]/[name]#[version]
>
> Steve.
>
>
>
> -----Original Message-----
> From: David Leangen [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 21, 2004 5:08 AM
> To: Avalon framework users
> Subject: RE: Embedding - howto
> Importance: High
>
>
> Guys,
>
> Thanks so much for your explanations. I understand a lot better now.
>
> However, I am still not sure how the packages are resolved. I am using
> this:
>
>             String spec = "@MERLIN-IMPL-SPEC@";
>             Artifact artifact = Artifact.createArtifact( spec );
>             Builder builder = context.newBuilder( artifact );
>
> But I am getting this error:
>
> org.apache.avalon.repository.RepositoryException: Unable to retrieve the
> metadata for the artifact
> :artifact:jar:@MERLIN-IMPL-SPEC@/@MERLIN-IMPL-SPEC@
>       at
> org.apache.avalon.repository.impl.DefaultRepository.getAttributes(Unknow
> n
> Source)
>       at
> org.apache.avalon.repository.main.DefaultBuilder.<init>(Unknown Source)
>       at
> org.apache.avalon.repository.main.DefaultBuilder.<init>(Unknown Source)
>       at
> org.apache.avalon.repository.main.DefaultInitialContext.newBuilder(Unkno
> wn
> Source)
>       at
> com.konova.expedition.db.splitter.avalon.KFileSplitterComponentTest.test
> File
> Splitter(KFileSplitterComponentTest.java:75)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39
> )
>       at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl
> .java:25)
>       at java.lang.reflect.Method.invoke(Method.java:324)
>       at junit.framework.TestCase.runTest(TestCase.java:154)
>       at junit.framework.TestCase.runBare(TestCase.java:127)
>       at junit.framework.TestResult$1.protect(TestResult.java:106)
>       at junit.framework.TestResult.runProtected(TestResult.java:124)
>       at junit.framework.TestResult.run(TestResult.java:109)
>       at junit.framework.TestCase.run(TestCase.java:118)
>       at junit.framework.TestSuite.runTest(TestSuite.java:208)
>       at junit.framework.TestSuite.run(TestSuite.java:203)
>       at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTe
> stRu
> nner.java:421)
>       at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRun
> ner.
> java:305)
>       at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRu
> nner
> .java:186)
> Caused by: org.apache.avalon.repository.RepositoryException: Unknown
> artifact: [artifact:jar:@MERLIN-IMPL-SPEC@/@[EMAIL PROTECTED]
>       at
> org.apache.avalon.repository.util.LoaderUtils.getResource(Unknown
> Source)
>       at
> org.apache.avalon.repository.impl.DefaultRepository.getResource(Unknown
> Source)
>       ... 20 more
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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

Reply via email to