ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dimitris Mouchritsas <dimitris.mouchrit...@eurodyn.com>
Subject Trying to intersect resources(?)
Date Thu, 21 Feb 2008 10:49:41 GMT
Hi all,
I'm trying to write an uptodate target for an xdoclet target to depend 
upon, so xdoclet doesn't get called every time.
The objects I'm trying to check for have hibernate mapping files. The 
problem is, not all of them have corresponding
mapping files. So for example the following target:

    <target name="domain-generated-sources">
        <uptodate property="domain.doclet.not.needed">
            <srcfiles dir="${src.dir}">       
                <include name="**/domain/**/*.java"/>
                <include name="**/web/bean/*.java"/>
                <include name="**/hibernate/type/**/*.java"/>
            </srcfiles>
            <chainedmapper>
                <globmapper from="*" to="${domain.build.dir}/" />
                <globmapper from="*.java" to="*.hbm.xml" />
            </chainedmapper>
        </uptodate>

        <echo>${domain.doclet.not.needed}</echo>
    </target>

doesn't work, because there are java files that don't have the 
corresponding .hbm.xml file.
Is there a way I could say in srcfiles: "Include all the files that I'm 
telling you (using <include name...)
but who also have a corresponding *.hbm.xml file in the 
${domain.build.dir}?" I tried to take a look at
intersect but there are zero examples I could find. Thanks.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message