You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Michael Nascimento Santos <mi...@hotmail.com> on 2002/12/11 20:01:22 UTC
uptodate question
Hi,
I want to do a few things if my backup dir content is older than my source
dir content.
I am trying to use the uptodate task, with no success, like this:
<target name="check" depends="init">
<uptodate property="srcs.changed">
<srcfiles dir="${basedir}" />
<mapper type="glob" from="${src}\*.java" to="${bkp}\*.java" />
</uptodate>
</target>
<target name="javadoc" depends="check" if="srcs.changed">
<delete dir="${doc}" />
<javadoc sourcepath="${src}" destdir="${doc}"
packagenames="com.company.*" />
</target>
I thought that maybe my concept of from and to attributes in the uptodate
task was wrong, but nothing happened when I exchanged their values.
I have several tasks that depend on the srcs.changed property being
correctly set.
All the properties above are properly defined and refer to directories below
${basedir}.
What am I missing???
[]s
Michael Nascimento Santos
Sun Certified Programmer for the Java 2 Platform
Sun Certified Programmer for the Java 2 Platform 1.4
Sun Certified Web Component Developer for J2EE
Moderador SouJava - www.soujava.org.br
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: uptodate question
Posted by Michael Nascimento Santos <mi...@hotmail.com>.
no, sorry... I've already tried that... :-)
Any other tips?
[]s
Michael
----- Original Message -----
From: "Stefan Bodewig" <bo...@apache.org>
To: <an...@jakarta.apache.org>
Sent: Thursday, December 12, 2002 4:58 AM
Subject: Re: uptodate question
> On Wed, 11 Dec 2002, Michael Nascimento Santos <mi...@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: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: uptodate question
Posted by Stefan Bodewig <bo...@apache.org>.
On Wed, 11 Dec 2002, Michael Nascimento Santos <mi...@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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>