RE: Embedding - howto

"David Leangen" <[email protected]>
Newsgroups gmane.comp.jakarta.avalon.user
Message-ID <[email protected]>
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]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.