Changeset 3029


Ignore:
Timestamp:
Dec 14, 2006, 9:23:36 AM (16 years ago)
Author:
Nicklas Nordborg
Message:

References #412: Fix build.xml to make it more developer-friendly

Detection that triggers update to Hibernate mapping files is now more robust.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/build.xml

    r3027 r3029  
    405405    <uptodate
    406406      property="nohibernate"
    407       srcfile="${core.src}/net/sf/basedb/core/data/UserData.java"
    408       targetfile="${core.build}/net/sf/basedb/core/data/UserData.hbm.xml"
    409     />
     407      >
     408      <srcfiles dir="${core.src}/net/sf/basedb/core/data" includes="**/*.java">
     409        <contains text="@hibernate.class" />
     410      </srcfiles>
     411      <mapper type="glob" from="*.java" to="${core.build}/net/sf/basedb/core/data/*.hbm.xml" />
     412    </uptodate>
    410413    <condition property="hibernate.message"
    411414      value="up to date; skipping"
     
    427430    unless="nohibernate"
    428431    >
     432    <delete>
     433      <fileset dir="${core.build}" includes="**/*.hbm.xml" />
     434    </delete>
     435    <copy todir="${core.build}"
     436      description="Hardcoded *.hbm.xml files">
     437      <fileset dir="${core.src}" includes="**/*.hbm.xml" />
     438    </copy>
    429439    <hibernatedoclet
    430440      destdir="${core.build}"
Note: See TracChangeset for help on using the changeset viewer.