On Thu, 2004-01-15 at 19:44, Aleksandr Shneyderman wrote:
> I am trying to merge non-XDoclet xml.
> 
> my ant task is :
>     <echo message="${merge.dir}/resources/hibernate-merge" />
>     <hiberdoclet
>        destdir="${target.generated}"
>        mergeDir="${merge.dir}/resources/hibernate-merge"
>        excludedtags="@version,@author,@todo"
>        addedtags="@xdoclet-generated at ${TODAY}"
>        verbose="true"
>        force="false" >
>        <fileset dir="${module.source.java}">
>          <include name="**/*.java" />
>          <exclude name="**/AppliedProgram.java" />
>        </fileset>
>        <hibernate 
>            version="2.0" 
>            validateXML="false"
>            mergeDir="${module.resources}" />
>     </hiberdoclet>
> 
> now the echo message right before outputs the following:
>      [echo] 
> /home/alex/eclipse30M5/workspace/gls-model/resources/hibernate-merge
> 
> and ls on that directory is
> total 8
> -rw-rw-r--    1 alex     alex          281 Jan 15 13:17 
> hibernate-composite-id-AppliedProgram.xml
> -rw-rw-r--    1 alex     alex          167 Jan 15 14:11 
> hibernate-properties-Address.xml

Unless your classes are in the default package (i.e. you have no package
declaration in their classes), then this is the wrong place.  You should
place them *below* the merge directory, following the same package
structure as their corresponding classes.  Otherwise, if you had classes
foo.SomeClass and bar.SomeClass, their merge files would clash and you'd
be cursing us for not allowing it ;-)


Andrew.



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to