Help with uptodate

2011-11-13 Thread Kelvin Chung
I'm trying to use ant to manage a group of zip files that must be kept up to date. Suppose I have a folder full of files, and I have a bunch of targets that puts different subsets of those files in a zip file. Like so: … … …

Re: uptodate when it isn't

2009-07-03 Thread Eric Fetzer
Move over to NAnt and use the task. http://nant.sourceforge.net/   From: "Ina, Antoine" To: Ant Users List Sent: Thursday, July 2, 2009 2:45:18 PM Subject: RE: uptodate when it isn't Hello All, I am a new ant user and I need help solvin

Re: uptodate when it isn't

2009-07-03 Thread Andy Stevens
2009/7/2 Dominique Devienne : > On Thu, Jul 2, 2009 at 12:21 PM, Andy > Stevens wrote: >> I've got a bit of a puzzle with an uptodate task, and I'm hoping I've >> just missed something obvious... > > To cut to the chase, do yourself a favor and use Ant-Co

RE: uptodate when it isn't

2009-07-02 Thread Ina, Antoine
ist Subject: Re: uptodate when it isn't On Thu, Jul 2, 2009 at 12:21 PM, Andy Stevens wrote: > I've got a bit of a puzzle with an uptodate task, and I'm hoping I've > just missed something obvious... To cut to the chase, do yourself a favor and use Ant-Contrib's .

Re: uptodate when it isn't

2009-07-02 Thread Dominique Devienne
On Thu, Jul 2, 2009 at 12:21 PM, Andy Stevens wrote: > I've got a bit of a puzzle with an uptodate task, and I'm hoping I've > just missed something obvious... To cut to the chase, do yourself a favor and use Ant-Contrib's . If you want to keep using , run in verbose mo

uptodate when it isn't

2009-07-02 Thread Andy Stevens
Hi, I've got a bit of a puzzle with an uptodate task, and I'm hoping I've just missed something obvious... Part of my build script "compiles" various database objects by copying them with token replacement, to substitute the environment-specific database name at various

RE: Uptodate task not working

2009-01-15 Thread Martin Gainty
necessarily endorse content contained within this transmission. > Date: Thu, 15 Jan 2009 07:55:06 -0800 > From: fadedmaxi...@gmail.com > To: user@ant.apache.org > Subject: Re: Uptodate task not working > > > Looking at the mappers that are provided: identity, fla

Re: Uptodate task not working

2009-01-15 Thread Faded-Maximus
re using the default mapper here. They have a single target file, .jar, where mine is a .zip, and a directory of source files, which I also have. Brian Stephenson wrote: > > You need to write a mapper for the srcfiles element, that will present the > files as you need them presented to the

Re: Uptodate task not working

2009-01-15 Thread Brian Stephenson
You need to write a mapper for the srcfiles element, that will present the files as you need them presented to the UpToDate task. What wrappers are and what they do is something difficult to encapsulate in a single message. I usually dislike answers that just deflect someone to another reference

Re: Uptodate task not working

2009-01-15 Thread Faded-Maximus
e the most uptodate files. Do you have any ideas about how I can implement this? Brian Stephenson wrote: > > Hope that wasn't a direct cut-and-paste from the XML file, an > important typo in there (the double quotes to open > the "Required" property name). > > Neve

Re: Uptodate task not working

2009-01-14 Thread Brian Stephenson
Hope that wasn't a direct cut-and-paste from the XML file, an important typo in there (the double quotes to open the "Required" property name). Nevertheless, I think that your problem relates to your use of the srcfiles element in the uptodate task. As quoted in the AN

Uptodate task not working

2009-01-14 Thread Faded-Maximus
I am trying to use the uptodate task to see if I need to rebuild my program. [code] [/code] Based on my understanding. If the

Re: Uptodate working one way only

2008-08-12 Thread Evgeny
s > that have changed? > > So you're copying the idl files to and then from that > generating various java files? If the copy doesn't do anything, then > again, you'll have to test for the uptodate status of the idl files and > then and only then generate n

RE: Uptodate working one way only

2008-08-12 Thread EJ Ciramella
Maybe I'm still not understanding, but doesn't copy only copy over bits that have changed? So you're copying the idl files to and then from that generating various java files? If the copy doesn't do anything, then again, you'll have to test for the uptodate status of t

Re: Uptodate working one way only

2008-08-12 Thread Evgeny
onality of , is there any other way that I am missing? Regards, Evgeny On Wed, Aug 6, 2008 at 5:20 PM, Evgeny <[EMAIL PROTECTED]> wrote: > Hi Ant users, > > I wish there was a way to use the uptodate task in the other > direction, not check source against target but check target a

Uptodate working one way only

2008-08-06 Thread Evgeny
Hi Ant users, I wish there was a way to use the uptodate task in the other direction, not check source against target but check target against source. Since my list of files in source comes from a list in a text file, and it's easy to use a mapping to map them to the place where they are c

symlinks and uptodate

2008-03-06 Thread Neil Lott
Is there a way for the up to date task to follow symlinks? Neil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: help with uptodate and hibernate doclet

2007-11-20 Thread David Weintraub
The problem with uptodate is that it can only have a single "target" file to check against. Look at the AntContrib's task. The task can take more than a single target, and (as an added bonus), it can define the tasks to run if an outofdate condition is detected. No more setting

Re: help with uptodate and hibernate doclet

2007-11-20 Thread Steve Loughran
a the resulting files in the build dir might look like: User.class User.hbm.xml Account.class Account.hbm.xml Login.class So not all classes have a hibernate configuration file. My problem is how can I use uptodate to check these? I've tried this:

help with uptodate and hibernate doclet

2007-11-20 Thread Dimitris Mouchritsas
d dir might look like: User.class User.hbm.xml Account.class Account.hbm.xml Login.class So not all classes have a hibernate configuration file. My problem is how can I use uptodate to check these? I've tried this: But I guess this mapper n

Using uptodate to control xdoclet.

2007-11-19 Thread Dimitris Mouchritsas
Hi everyone. I'd like some help to improve on an existing project. Currently it contains a target war.webdoclet were the webdoclet task is called. The webdoclet task produces at least 3 different xml files. web.xml, struts-config.xml and validation.xml. Now, I'm trying to write an upt

Re: Ant uptodate?

2007-09-10 Thread Lionel van den Berg
> > in combination with selector or selector. > > > > > > Jan > > > > >-Ursprüngliche Nachricht- > > >Von: Lionel van den Berg [mailto:[EMAIL PROTECTED] > > >Gesendet: Montag, 10. September 2007 00:46 > > >An: user@ant.apac

Re: Ant uptodate?

2007-09-10 Thread Peter Reilly
check with and > > > > in combination with selector or selector. > > > > > > Jan > > > > >-Ursprüngliche Nachricht- > > >Von: Lionel van den Berg [mailto:[EMAIL PROTECTED] > > >Gesendet: Montag, 10. September 2007 00:46

Re: Ant uptodate?

2007-09-10 Thread Peter Reilly
ombination with , . > > The "changed" files you maybe could check with and > > in combination with selector or selector. > > > Jan > > >-Ursprüngliche Nachricht- > >Von: Lionel van den Berg [mailto:[EMAIL PROTECTED] > >Gesendet: Monta

AW: Ant uptodate?

2007-09-09 Thread Jan.Materne
CTED] >Gesendet: Montag, 10. September 2007 00:46 >An: user@ant.apache.org >Betreff: Ant uptodate? > >Hi all, > >I sent two other emails but I don't think they went through. > >I've tried using the ant uptodate and dependset tasks but >haven't solved

Ant uptodate?

2007-09-09 Thread Lionel van den Berg
Hi all, I sent two other emails but I don't think they went through. I've tried using the ant uptodate and dependset tasks but haven't solved my problem. I've googled, tried heaps of solutions but still can't do it, so here is the problem: Assume for each of the f

Ant uptodate?

2007-09-03 Thread Lionel van den Berg
I sent another email but I don't think it went through. I've tried using the ant uptodate and dependset tasks but haven't solved my problem. I've googled, tried heaps of solutions but still can't do it, so here is the problem: Assume for each of the following we are in

Uptodate without fixed name for target file

2007-08-26 Thread S.B. Mak
I want to use 'uptodate', but I do not know the exact name of the target file to be used for checking the date. All I know is its location, and that it ends with 'dmi'. Can this be done? I tried to use a nested globmapper with target *.dmi, but that didn't wo

Re: Best Practices Using uptodate?

2007-02-14 Thread Andrew Close
On 2/14/07, Sam Hendley <[EMAIL PROTECTED]> wrote: How do you all use in your build scripts? I am using it to see if a build should be performed. I am getting the correct value in the property specified by uptodate but I am having some trouble determining the correct way to structure my

Best Practices Using uptodate?

2007-02-14 Thread Sam Hendley
How do you all use in your build scripts? I am using it to see if a build should be performed. I am getting the correct value in the property specified by uptodate but I am having some trouble determining the correct way to structure my build file to avoid using antcall's. I have it working

AW: uptodate

2006-12-04 Thread Jan.Materne
Try the selector instead of a mapper. Jan >-Ursprüngliche Nachricht- >Von: Bailey, David [mailto:[EMAIL PROTECTED] >Gesendet: Dienstag, 5. Dezember 2006 01:05 >An: Ant Users List >Betreff: uptodate > >This seems like a problem which must have a very simple >so

uptodate

2006-12-04 Thread Bailey, David
This seems like a problem which must have a very simple solution, but I can't find it. A single XML file is used to generate a large number of HTML files. And I actually have nearly 100 such XML files. These XML files rarely change, so I'd like to save time by using to only regenerate the HT

Re: uptodate with a target directory

2006-03-09 Thread Daniel Smith
ice that the only difference is in the "uptodate" command): unless="generated" > srcfile="source" /> —Dan Smith On Mar 7, 2006, at 2:04 PM, Daniel Smith wrote: uptodate does not seem to handle targe

uptodate with a target directory

2006-03-07 Thread Daniel Smith
uptodate does not seem to handle target directories properly. It will incorrectly determine that a generated directory with an out-of- date timestamp is actually up to date. Example script: unless="generated" >

uptodate with a target directory

2006-03-07 Thread Daniel Smith
uptodate does not seem to handle target directories properly. It will incorrectly determine that a generated directory with an out-of- date timestamp is actually up to date. Example script: unless="generated" >

Re: Uptodate task

2006-01-23 Thread Stefan Bodewig
On Fri, 20 Jan 2006, shreedhar natarajan <[EMAIL PROTECTED]> wrote: > I have a question regarding using task that is being used > as a part of task. I have a set of src files say one.src, > two.src and they generate one.target and two.target. If any of the > source is updated both target has to

Uptodate task

2006-01-20 Thread shreedhar natarajan
Hi Guys, I have a question regarding using task that is being used as a part of task. I have a set of src files say one.src, two.src and they generate one.target and two.target. If any of the source is updated both target has to be re-generated. I have problem matching multiple target files .

Re: UPTODATE file-by-file on 2 directories ?

2005-12-29 Thread Stefan Bodewig
On Thu, 29 Dec 2005, Elijah Baley <[EMAIL PROTECTED]> wrote: > check that file "a/b/c/foo.x" is uptodate when compared with > file "a/b/c/foo.y" for EACH file/sub-folder - in other words, > assume that source and target folders have same struc

UPTODATE file-by-file on 2 directories ?

2005-12-29 Thread Elijah Baley
Hi - I suspect I ask something rather simple, but I am looking to use the UPTODATE task to check files in 2 directories as follows: check that file "a/b/c/foo.x" is uptodate when compared with file "a/b/c/foo.y" for EACH file/sub-folder - in other words, assume tha

Re: uptodate help...

2005-07-15 Thread Juergen Hermann
On Fri, 15 Jul 2005 14:27:41 -0400, Mark Lybarger wrote: > (untested) Ciao, Jürgen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

uptodate help...

2005-07-15 Thread Mark Lybarger
i'm trying to get an uptodate task working. i'm pretty sure i've got the mapping wrong. my setup is: Web Content/behavior/*.xml Web Content/behavior/compiled/*.xml I need to see if any files in the first folder are newer than their matching file in the &q

Uptodate task documentation confusing

2005-07-14 Thread Ninju Bohra
Hello all, First time working with the task and I think there is a problem with the doc (v1.6.2 docs) and I just want to make sure I am reading the docs correctly. First off, at the to of the docs for the task the following paragraph: By default, the value of the property is set to true if the

uptodate not working

2005-07-13 Thread Neeraj Kumar
h.isUpToDate2: ${h.isUpToDate2} h.isUpToDate3: ${h.isUpToDate3} Both the uptodate are checking for the same thing. But no matter what I do the value of isUpToDate3 is never true even when the value of isUpToDate2 is true. What am I missing here? I believe the value of

Re: uptodate using .xml to .java but not 1 to 1

2005-05-04 Thread EJ Ciramella
I did something a little different. I do the generation then touch a file. Then I can use the merge mapper from xml to touched file name. On May 4, 2005, at 12:50 PM, Alexey N. Solofnenko wrote: In general you will need a mapper, if there are a many source and destination files. If you can s

Re: uptodate using .xml to .java but not 1 to 1

2005-05-04 Thread Alexey N. Solofnenko
In general you will need a mapper, if there are a many source and destination files. If you can select one destination file out of many (if several destination files are generated together), you can just use plain . Otherwise please look at task. - -Alexey. EJ Ciramella wrote: Every once in a

uptodate using .xml to .java but not 1 to 1

2005-05-04 Thread EJ Ciramella
Every once in a while I stumble across this problem where a tool reads in xml and generates java files. We have a custom written tool here that does this but there is no up to date check so the java files are created each time. Do I need to write a custom mapper or is there a simple way to do

Re: Pb with uptodate and files with spaces

2005-03-18 Thread Matt Benson
--- CLAVIER Remi RD-CORE-LAN <[EMAIL PROTECTED]> wrote: > I've some problems using uptodate when with srcfiles > where one or more > of the files pointed by the srcfiles are spaces in > the name. > In this case, files are note tacking into account > for the decis

Pb with uptodate and files with spaces

2005-03-18 Thread CLAVIER Remi RD-CORE-LAN
I've some problems using uptodate when with srcfiles where one or more of the files pointed by the srcfiles are spaces in the name. In this case, files are note tacking into account for the decision. It's seems me a normal behaviour because srcfiles in like a file list and space is a se

Re: Yay! got uptodate to work, thanks all

2005-03-07 Thread Peter Reilly
Dominique Devienne wrote: Hmmm, can you explain this one Peter? exposes an iterator() method that returns the list of out-of-date files, is that it? I didn't know that. How do you document this kind of unusual synergy between tasks? --DD It is in the doc (in cvs) for the task (as an example).

RE: Yay! got uptodate to work, thanks all

2005-03-04 Thread Matt Benson
--- Dominique Devienne <[EMAIL PROTECTED]> wrote: [SNIP] > Yeah, since we persist on not providing an > equivalent for > ... Agreed, I personally see no harm in it. One of those oft-debated issues, though... -Matt __ Do You Yahoo!? Tired of spam?

RE: Yay! got uptodate to work, thanks all

2005-03-04 Thread Dominique Devienne
> From: Matt Benson [mailto:[EMAIL PROTECTED] > > --- [EMAIL PROTECTED] wrote: > [SNIP] > > So i guess my question is how do i do what the javac > > task does, namely give a > > directory, for each item in the directory, see if > > it's output file is up to > > date, and if not build it. > > How

RE: Yay! got uptodate to work, thanks all

2005-03-04 Thread Dominique Devienne
Hmmm, can you explain this one Peter? exposes an iterator() method that returns the list of out-of-date files, is that it? I didn't know that. How do you document this kind of unusual synergy between tasks? --DD > -Original Message- > From: Peter Reilly [mailto:[EMAIL PROTECTED] > > Yo

Re: Yay! got uptodate to work, thanks all

2005-03-04 Thread Peter Reilly
eally need to do process uptodate and build per file, like javac does. I see the tag that ant-contrib provides, but must assume that there is a way to do this with the regular ant tasks. So i guess my question is how do i do what the javac task does, namely give a directory, for each item in the dire

Re: Yay! got uptodate to work, thanks all

2005-03-04 Thread dbrosius
Quoting Matt Benson <[EMAIL PROTECTED]>: > --- [EMAIL PROTECTED] wrote: > [SNIP] > > So i guess my question is how do i do what the javac > > task does, namely give a > > directory, for each item in the directory, see if > > it's output file is up to > > date, and if not build it. > > How do you

Re: Yay! got uptodate to work, thanks all

2005-03-04 Thread Matt Benson
--- [EMAIL PROTECTED] wrote: [SNIP] > So i guess my question is how do i do what the javac > task does, namely give a > directory, for each item in the directory, see if > it's output file is up to > date, and if not build it. How do you build it? If, by chance, it is using the exec task you coul

Yay! got uptodate to work, thanks all

2005-03-04 Thread dbrosius
But now i realize i've got another problem, in that i really need to do process uptodate and build per file, like javac does. I see the tag that ant-contrib provides, but must assume that there is a way to do this with the regular ant tasks. So i guess my question is how do i do what the

RE: Problems with task uptodate

2005-03-03 Thread Dominique Devienne
> -Original Message- > > It's your mapper the pb I bet. I'm not sure of what you want to achieve > > exactly, I'd have to know where the files are to be sure, but try > > > > from="*.xml" to="../../foo/*.java". > > > > well that did something. now the property is never set. > Hmm perhaps

RE: Problems with task uptodate

2005-03-03 Thread dbrosius
Quoting Dominique Devienne <[EMAIL PROTECTED]>: > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > I must say i'm puzzled as to the > > format of the uptodate task. > > It doesn't make sense, to my little brain. > > It took me a while to figu

RE: Problems with task uptodate

2005-03-03 Thread Dominique Devienne
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > I must say i'm puzzled as to the > format of the uptodate task. > It doesn't make sense, to my little brain. It took me a while to figure it out too. Actually, I use Ant-Contrib's instead ;-) >

Re: Problems with task uptodate

2005-03-03 Thread dbrosius
Quoting Jeffrey E Care <[EMAIL PROTECTED]>: > I don't see you setting @from; that is probably the problem. > OK, i added the from, and that fixed my NPE. But now the property seems to be always set to true, even when it shouldn't. I must say i'm puzzled as to the

RE: Problems with task uptodate

2005-03-03 Thread dbrosius
Quoting Dominique Devienne <[EMAIL PROTECTED]>: > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > > > > > > > but looking at setFrom, it seems the only possible NPE would be if the > > parameter (from) was null. > > Well, I don't see a 'from' attribute in your mapper above ;-) --DD Oh,

Re: Problems with task uptodate

2005-03-03 Thread Jeffrey E Care
;Ant Users List" To user@ant.apache.org cc Subject Problems with task uptodate I am using 1.6.2 on windows xp w/1.4.2_06 I generate java files from xml files, and only want to do this if the xml files have changed. Task udtodate seemed what i wanted. The base xml and java files na

RE: Problems with task uptodate

2005-03-03 Thread Dominique Devienne
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > > > but looking at setFrom, it seems the only possible NPE would be if the > parameter (from) was null. Well, I don't see a 'from' attribute in your mapper above ;-) --DD

Problems with task uptodate

2005-03-03 Thread dbrosius
I am using 1.6.2 on windows xp w/1.4.2_06 I generate java files from xml files, and only want to do this if the xml files have changed. Task udtodate seemed what i wanted. The base xml and java files names match, so i tried I

Improve 'Uptodate' documentation

2004-12-13 Thread Yves Martin
Hello, As the new Ant 1.6.2 allows composite mapper, I would have find it interesting to read the following example in the 'Uptodate' task documentation (of course because I need such a check): The idea: check that many generated files are up-to-date compared to "sour

RE: uptodate usage

2004-11-05 Thread Mark Lybarger
there is a task, and i'm looking into adding timestamping into it. > -Original Message- > From: Dominique Devienne [mailto:[EMAIL PROTECTED] > Sent: Friday, November 05, 2004 9:53 AM > To: Ant Users List > Subject: RE: uptodate usage > > > > From: Mark L

RE: uptodate usage

2004-11-05 Thread Dominique Devienne
> From: Mark Lybarger [mailto:[EMAIL PROTECTED] > > i'm trying to determine if a set of target files are current compared to a > source xsd file. can i use uptodate to accomplish this? i have an xml > schema, myschema.xsd, which is used by castor to generate some classes.

uptodate usage

2004-11-05 Thread Mark Lybarger
i'm trying to determine if a set of target files are current compared to a source xsd file. can i use uptodate to accomplish this? i have an xml schema, myschema.xsd, which is used by castor to generate some classes. i only want to run the generation if the schema has changed. upt

Use Uptodate on class files

2004-07-16 Thread Mikael Petterson (KI/EAB)
Hi, Is it possible to use uptodate on class files? //Mikael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: uptodate question

2004-05-13 Thread Mani G. Iyer
:[EMAIL PROTECTED] Sent: Wednesday, May 12, 2004 11:00 AM To: [EMAIL PROTECTED] Subject: uptodate question Hi! I use tag to compare timestamps of sql files in two direcories ${checkUptodate.dbUptodate} is true is sql files in target