Worked out a way to do it, but its not pretty, e.g:

  <preGoal name="xdoc:transform">
    <ant:mkdir dir="${maven.docs.src}"/>
    <ant:copy todir="${maven.docs.src}">
      <ant:fileset dir="${xdoc.dir}">
        <ant:include name="**/*.xml"/>
      </ant:fileset>
      <ant:filterset>
        <ant:filter token="VERSION" value="${pom.currentVersion}"/>
      </ant:filterset>
    </ant:copy>
    <ant:copy todir="${maven.docs.src}">
      <ant:fileset dir="${xdoc.dir}">
        <ant:include name="**/*"/>
        <ant:exclude name="**/*.xml"/>
      </ant:fileset>
    </ant:copy>
  </preGoal>

I can't see a simpler way - anyone got any better ideas?

Thanks,

Tim

> -----Original Message-----
> From: Tim Anderson [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 3 July 2003 6:00 PM
> To: Maven Users List
> Subject: Replacing tags in xdocs
> 
> 
> Hi,
>     I would like to replace embedded tags within 
> my xdocs, prior to them being transformed to html. 
> Whats the recommended approach for doing this?
> Its not clear to me which goal I need to hook in to. 
> Alternatively, does anyone have a reference to a 
> maven.xml which does this already?
> 
> Thanks,
> 
> Tim
> 
> 
> 
> ---------------------------------------------------------------------
> 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