I added some verbose information and realized that the way dotuml looks
for packages in the sourcetree is the problem. It all works fine, when I
execute the dotuml goal on a single project. If this project
participates in a multiproject it can't deal with constructed pathnames
(contains /../).
If someone can point me to an example on how to find packages in the
source path that would be great. Meanwhile, I'm looking for a solution
myself.

<j:forEach items="${jfiles.iterator()}" var="jfile">
  <j:set var="pkgdir" value="${jfile.parentFile.path}" />
  <j:if test="${!pkgdirs.contains(pkgdir)}" >
    <j:set var="rc" value="${pkgdirs.add(pkgdir)}" />
  </j:if>
</j:forEach>
<j:set var="rembase" value="${basedir}/src/java/" />
<ant:echo>rembase ${rembase}</ant:echo>

<!-- generate the UML diagrams in .dot and a specified image format for
all packages -->
<j:forEach items="${pkgdirs.iterator()}" var="pkgd">
  <ant:echo>${pkgd}</ant:echo>
  <j:set var="pkgreld" value="${pkgd.substring(rembase.length())}" />
  <ant:echo>${pkgreld}</ant:echo>
  <util:replace var="maven.dotuml.packagename" value="${pkgreld}"
oldChar="/" newChar="." />
  <ant:echo>process package ${maven.dotuml.packagename}</ant:echo>
  <j:set var="maven.dotuml.dotout"
value="${maven.dotuml.packagename}.dot"/>
  <attainGoal name="dotuml:generate"/>
</j:forEach>



Thx,
Dominik



On Mon, 2003-10-06 at 04:18, [EMAIL PROTECTED] wrote:
> How is the includes being derived?
> --
> dIon Gillard, Multitask Consulting
> Blog:      http://blogs.codehaus.org/people/dion/
> 
> 
> Dominik Dahlem <[EMAIL PROTECTED]> wrote on 04/10/2003 01:24:10 AM:
> 
> > Hi,
> > 
> > I'm playing with the dotuml plugin. With the changes I submitted it
> > works fine when running "maven site" on a particular project. If I run
> > the multiproject:site goal the dotuml plugin bellies up. The output
> > below states a wrong DirSet. The includes list contains a path which is
> > cut at the beginning. It should be "ie.tcd.persl..." but is "ersl...". I
> > assume this is the reason why my build fails.
> > Are there similar issues with the multiproject plugin and if so is there
> > a fix available?
> > 
> > Thx,
> > Dominik
> > 
> > 
> > dotuml:generate:
> >     [record] [DEBUG] setting a recorder for name
> > /home/dahlemd/projects/mainline/container/main/..
> > /core/target/docs/dotuml/report.txt
> >     [javadoc] [DEBUG] scanning
> > /home/dahlemd/projects/mainline/container/core/src/java for packages.
> >     [javadoc] [DEBUG] DirSet: Setup scanner in dir
> > /home/dahlemd/projects/mainline/container/core/src/java with patternSet{
> > includes: [ersl/container/core/internals/defaults] excludes: [] }
> >     [javadoc] [VERBOSE]
> > /home/dahlemd/projects/mainline/container/core/src/java doesn't contain
> > any packages, dropping it.
> > 
> > 
> > 
> > 
> > ---------------------------------------------------------------------
> > 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