Re: Execute the target only if source files have changed

2015-01-05 Thread Dominique Devienne
On Fri, Jan 2, 2015 at 9:17 PM, YuGiOhJCJ Mailing-List < yugiohjcj-mailingl...@laposte.net> wrote: > Oh, I have not read correctly the documentation of the task: > "multiple target files are specified using a nested element" > I always recommend using Ant-Contrib's task instead of Ant's older

Re: Execute the target only if source files have changed

2015-01-02 Thread YuGiOhJCJ Mailing-List
Oh, I have not read correctly the documentation of the task: "multiple target files are specified using a nested element" So this is the correct target: It seems to work :) On Fri, 2 Jan 2015 21:04:25 +0100 YuGiOhJCJ Mailing-List wrote: >

Re: Execute the target only if source files have changed

2015-01-02 Thread YuGiOhJCJ Mailing-List
In fact, yes, there is a mistake at this line. It should be: targetfile="png/*.png" It is corrected now but the problem is the same. Here is my file hierarchy: $ tree . |-- build.xml |-- png | `-- icon.png `-- xcf |-- background.xcf `-- icon.xcf Why each time I run ant, my "png" target

Re: Execute the target only if source files have changed

2015-01-02 Thread Harold Putman
your targetfile attribute on uptodate looks wrong targetfile="png/**.*.png Should that first dot be a slash? invoking ant with -d should give you an idea on why it is always setting png-uptodate On Tue, Dec 30, 2014 at 6:17 PM, YuGiOhJCJ Mailing-List < yugiohjcj-mailingl...@laposte.net> wrote:

Execute the target only if source files have changed

2014-12-30 Thread YuGiOhJCJ Mailing-List
Hello, I have a target that transforms files XCF into PNG by calling the "convert" command. I would like that this target does not execute if source files (i.e., the XCF files ) have changed. I have tried with the "uptodate" task but it does not work. Each time I run ant, the "convert" command i