[Magic] Transitive Dependencies

Cameron Taggart cameron.taggart at gmail.com
Fri May 6 16:28:51 EDT 2005


Sorry, I had a harddrive crash which casued some delay in me
responding to this.

The resulting .module file is 

<?xml version="1.0" encoding="ISO-8859-1"?>

<module uri="artifact:module:company/services#SNAPSHOT">

  <header>
    <publisher name=""/>
    <home href=""/>
    <docs href=""/>
    <legal>
      <license href=""/>
      <notice href=""/>
    </legal>
    <svn href=""/>
    <repository href=""/>
  </header>

  <resources>

    <!-- module resources -->

  </resources>

</module>

As you can see it has no resources.  I do not have a modules.xml file.
 From what I can tell, it is simply a build.xml file with another
name.  Within my build.xml file I have:

  <target name="build" depends="standard.build">
    <x:module index="index.xml">
    </x:module>
  </target>

My index.xml file currently has:

  <project basedir=".">
    <info>
      <group>dwango</group>
      <name>cornerpiece-core</name>
      <version>1.2.0</version>
      <type>module</type>
    </info>
    <dependencies>
      <include key="spring"/>
      <include key="hibernate"/>
      <include key="commons-beanutils"/>
      <include key="commons-lang"/>
---snip---

Does the type need to be "module" when I want the project to create a
.jar and a .module file?  Do you need to declare any dependencies
runtime="true" or something?

Cameron

On 5/3/05, Niclas Hedhman <niclas at hedhman.org> wrote:
> On Tuesday 03 May 2005 23:54, Cameron Taggart wrote:
> > I am trying to avoid explicit versioning of the required resources for each
> > dependency. In the Service Project I would like to do something like:
> >
> > <import uri="artifact:module:com/company/daos-1.2" />
> >
> > and have it magically use all of the resources which that version was
> > released with.
> 
> Yes, that is the intent.
> 
> > I just have not been able to successfully set this up yet.
> > The .module file that I end up creating doesn't end up containing any
> > resource entries.
> 
> Can you post the index.xml, module.xml and the resulting .module file??
> 
> 
> Cheers
> Niclas
> _______________________________________________
> dev-dpml mailing list
> dev-dpml at lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/dev-dpml
>



More information about the dev-dpml mailing list