Re: Magic - included resources for custom Ant task (magic plugin?)

Niclas Hedhman <[email protected]>
Newsgroups gmane.comp.jakarta.avalon.user
Organization Private
Message-ID <[email protected]>
On Monday 16 August 2004 11:12, Cameron Taggart wrote:
> I just stumbled upon a major problem with the approach I have taken.
> The taskdef requires that the library already by present in the
> classpath.  After a fresh checkout in another environment, I need Magic
> to download those neccessary libraries first.  It can't make it to that
> step.  Some info on setting up a Magic plugin would be greatly appreciated!

This is Stephen's department. He told me he is investigating your previous 
question.

To download external dependecies, you need to define a <resource> in your 
index.xml. You probably then just define a plugin section in your project.

Ex from planet/facilities/index.xml

  <project basedir="console/impl">
    <info>
      <group>avalon/console</group>
      <name>avalon-console-impl</name>
      <version>1.0.0</version>
      <status>SNAPSHOT</status> 
    </info>
    <dependencies>
      <include key="avalon-framework-api"/>
      <include key="avalon-console-api"/>
      <include key="avalon-composition-api"/>
    </dependencies>
    <plugins>
      <include key="avalon-meta-tools"/>
    </plugins>
  </project>


What is important is that the key for the <plugins> refers to the external 
resurce or internal project.

Does this makes sense?


Cheers
Niclas
-- 
   +------//-------------------+
  / http://www.bali.ac        /
 / http://niclas.hedhman.org / 
+------//-------------------+
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.