ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Nascimento Santos" <mister...@hotmail.com>
Subject Re: uptodate question
Date Thu, 12 Dec 2002 11:12:48 GMT
Ok, ok, not very intuitive and that portable, but I got it... :-)

After some suffering and some -verbose attempts, I got the solution:

    <target name="check" depends="init">
       <uptodate property="srcs.uptodate">
           <srcfiles dir="${src}" includes="**/*.java" />
           <mapper type="glob" from="*.java" to="../${bkp}/*.java" />
       </uptodate>
    </target>

    <target name="javadoc" depends="check" unless="srcs.uptodate">
        <delete dir="${doc}" />
        <javadoc sourcepath="${src}" destdir="${doc}"
          packagenames="com.company.*"  />
    </target>

I particularly didn't like the mapper sintax:

<mapper type="glob" from="*.java" to="../${bkp}/*.java" />

since it will only work if my ${bkp} points to a sibling folder of ${src}.

Could anyone suggest a more portable solution that works no matter where
${src} and ${bkp} points to? Otherwise, I'll have to live with that... :-)

[]s
Michael

----- Original Message -----
From: "Michael Nascimento Santos" <mister__m@hotmail.com>
To: "Ant Users List" <ant-user@jakarta.apache.org>
Sent: Thursday, December 12, 2002 8:05 AM
Subject: Re: uptodate question


> no, sorry... I've already tried that... :-)
>
> Any other tips?
>
> []s
> Michael
>
> ----- Original Message -----
> From: "Stefan Bodewig" <bodewig@apache.org>
> To: <ant-user@jakarta.apache.org>
> Sent: Thursday, December 12, 2002 4:58 AM
> Subject: Re: uptodate question
>
>
> > On Wed, 11 Dec 2002, Michael Nascimento Santos <mister__m@hotmail.com>
> > wrote:
> >
> > >            <srcfiles dir="${basedir}" />
> > >            <mapper type="glob" from="${src}\*.java" to="${bkp}\*.java"
> />
> >
> > Does
> >
> >   <srcfiles dir="${src}" />
> >   <mapper type="glob" from="*.java" to="${bkp}\*.java" />
> >
> > work?
> >
> > Stefan
> >
> > --
> > To unsubscribe, e-mail:
<mailto:ant-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
<mailto:ant-user-help@jakarta.apache.org>
> >
>

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


Mime
View raw message