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:
…
…
…
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
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
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 .
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
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
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 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
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
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
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
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
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
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
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
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
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]
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
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:
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
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
> > 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
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
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
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
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
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
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
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
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
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
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
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 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 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" >
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
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 .
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
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
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]
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
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
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
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
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
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
--- 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
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
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).
--- 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?
> 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
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
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
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
--- [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
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
> -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
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
> 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 ;-)
>
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
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,
;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
> 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
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
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
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
> 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.
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
Hi,
Is it possible to use uptodate on class files?
//Mikael
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
:[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
70 matches
Mail list logo