Feature requests: include ant-contrib, unordered file sets, "cp"-like copy task

2008-12-02 Thread Francis Galiegue
and couldn't. So I gave up, and resorted to using ... Resulting in a non portable way of doing things, but it's very simple and it works. It would be very, very useful to have such a task by default. Have fun! -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 6 83 87 7

Re: AW: Feature requests: include ant-contrib, unordered file sets, "cp"-like copy task

2008-12-02 Thread Francis Galiegue
but it seems not too difficult, perhaps I dont know > enough about cp. > What about > > > > > > > I'll try that and report. Thanks! -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 6 83 87 78 75 T

Re: AW: Feature requests: include ant-contrib, unordered file sets, "cp"-like copy task

2008-12-03 Thread Francis Galiegue
Le mardi 02 décembre 2008, Francis Galiegue a écrit : [...] > > > > > 3.I did not try this, but it seems not too difficult, perhaps I dont know > > enough about cp. > > What about > > > > > > > > > > >

Re: AW: Feature requests: include ant-contrib, unordered file sets, "cp"-like copy task

2008-12-03 Thread Francis Galiegue
Le mercredi 03 décembre 2008, Francis Galiegue a écrit : > Le mardi 02 décembre 2008, Francis Galiegue a écrit : > [...] > > > > > > > > 3.I did not try this, but it seems not too difficult, perhaps I dont know > >

Re: how to call the .py from wsadmin using ant

2008-12-10 Thread Francis Galiegue
which is probably not what you want. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 6 83 87 78 75 Tel : +33 (0) 1 78 94 55 52 [EMAIL PROTECTED] 40 avenue Raymond Poincaré 75116 Paris - To unsubscribe, e-mail: [

Re: how to call the .py from wsadmin using ant

2008-12-11 Thread Francis Galiegue
rks with wsadmin at all. Putting this before the can do that for you: -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 6 83 87 78 75 Tel : +33 (0) 1 78 94 55 52 [EMAIL PROTECTED] 40 avenue Raymond Poincaré 75116 Paris --

Re: Ant Task to read directly from a JAR Manifest file

2008-12-12 Thread Francis Galiegue
but why not just make a macro? Like in (NOTE: this example makes use of ant-contrib, for ): -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 6 83 87 78 75

Re: I would like "echo" task to support the "if" and "unless" attribute

2008-12-19 Thread Francis Galiegue
perty Exists > >This Property Don't > Exists > >I think this is a very usefull feature and many people will find > it very useful. > > Thanks and Regards, > Sachin. You could always use ant-contrib's :

Re: ant for and foreach tasks use them or not

2009-01-08 Thread Francis Galiegue
rking without it anymore; and yes, it's very stable. As far as I'm concerned, you needn't hesitate. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 6 83 87 78 75 Tel : +33 (0) 1 78 94 55 52 f...@one2team.com 40 avenue Raymond Poincaré 75116 Paris --

Re: ant for and foreach tasks use them or not

2009-01-12 Thread Francis Galiegue
's and are? What about ? And ? And... And... The more it goes, the more I'm skeptical about this "different development model" schism between ant and ant-contrib. If the ant-contrib project is as dead as it sounds, why not salvage the code and be done with it? Or is th

Re: ant for and foreach tasks use them or not

2009-01-12 Thread Francis Galiegue
Le lundi 12 janvier 2009, Stefan Bodewig a écrit : > On 2009-01-12, Francis Galiegue wrote: > > > The more it goes, the more I'm skeptical about this "different development > > model" schism between ant and ant-contrib. > > Ant == community driven A

Re: Ant accessing xls tasks

2009-01-15 Thread Francis Galiegue
is type of files. I don't know whether an ant task exists for it though. [1] http://jexcelapi.sourceforge.net -- Francis Galiegue f...@one2team.com Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 One2team 40 avenue Ray

Re: doesn't pick up an environment variable

2009-01-15 Thread Francis Galiegue
environment variable CATALINA_HOME is defined: > >$ echo $CATALINA_HOME >/var/lib/tomcat5.5 > Do you export this variable from your source shell? Try: sh echo $CATALINA_HOME And then exit the forked shell (with exit or C-d) If the echo command returns nothing, then you've foun

Re: Ant and rpm_mode

2009-01-23 Thread Francis Galiegue
to work with Ant-Contrib? > Use JPackage[1]. It works wonderfully, and you get to use it with yum/urpmi. [1] http://www.jpackage.org -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 6 83 87 78 75 Tel : +33 (0) 1 78 94 55 52 f...@one2team.com 40 avenue Raymond Poincaré 75116 Pari

Re: xslt Task

2009-03-09 Thread Francis Galiegue
at is a good solution? > Integrate saxon into Ant? How? > What error? -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 6 83 87 78 75 Tel : +33 (0) 1 78 94 55 52 f...@one2team.com 40 avenue Raymond Poincaré 75116 Paris -

Re: Trim leading spaces line by line

2009-03-10 Thread Francis Galiegue
Le mardi 10 mars 2009, Harnack Frank a écrit : > Hello Felix, > > try this: > >file="xyz.txt" > match="\s*" Err... "^\s*" would be better. If there's no leading space, the first series of spaces will be replaced by nothi

Re: Trim leading spaces line by line

2009-03-10 Thread Francis Galiegue
ines know that such a regex won't match anywhere other than the beginning of a line. But this has no influence in this particular case. Sorry for the misguided advice, -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 6 83 87 78 75 Tel : +33 (0) 1 78 94 55 52 f...@one2team.co

"Expanding" XML attributes with ant 1.6.5

2009-03-17 Thread Francis Galiegue
st yet use ant 1.7+. Do you know of another way of doing what I want _without_ using an XSL stylesheet? Have fun, -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 6 83 87 78 75 Tel : +33 (0) 1 78 94 55 52 f...@one2team.com 40 avenue Raymond Poincaré 7

Re: "Expanding" XML attributes with ant 1.6.5

2009-03-17 Thread Francis Galiegue
But I'd rather not use an XSL stylesheet at all. I really, really hate XSL. Unfortunately, I don't see any other way to do it for now. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 6 83 87 78 75 Tel :

Re: "Expanding" XML attributes with ant 1.6.5

2009-03-18 Thread Francis Galiegue
that the order of modules is preserved): where file1.xml, file2.xml are ant build files all requiring the module to be defined to operate. The stylesheet fills the bill for now, but I'd rather not use

Re: "Expanding" XML attributes with ant 1.6.5

2009-03-18 Thread Francis Galiegue
's foreach task, but using seems to be even better (and cleaner). -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 6 83 87 78 75 Tel : +33 (0) 1 78 94 55 52 f...@one2team.com 40 avenue Raymond Poincaré 75116 Paris --

Killing a forked task when sending SIGINT?

2009-03-19 Thread Francis Galiegue
s there any way that I can achieve $subject? -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 6 83 87 78 75 Tel : +33 (0) 1 78 94 55 52 f...@one2team.com 40 avenue Raymond Poincaré 75116 Paris - To unsubscribe, e-mail

Fwd: Killing a forked task when sending SIGINT?

2009-03-30 Thread Francis Galiegue
achieve $subject? [snip] ------- -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 6 83 87 78 75 Tel : +33 (0) 1 78 94 55 52 f...@one2team.com 40 avenue Raymond Poincaré 75116 Paris - To

Re: CVS with SSH

2009-03-30 Thread Francis Galiegue
Le Monday 30 March 2009 18:43:15 Michael Hüttermann, vous avez écrit : > Hello, > > what is the recommended way to connect CVS via SSH using Ant ? > > Thank you ! > You should set CVS_RSH the environment variable to "ssh" (without the quotes, of course). -- Franci

Re: CVS with SSH

2009-03-30 Thread Francis Galiegue
nux), what shell do you use (echo $SHELL at a prompt will tell)? -- Francis Galiegue f...@one2team.com Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 One2team 40 avenue Raymond Poincaré 75116 Paris - To

Re: CVS with SSH

2009-03-31 Thread Francis Galiegue
tch file, but I don't know how to set them for a particular user, though. Oh, and if you find a way to set the environment variable, do not forget that if the ssh command is not in your path, you _must_ put the full path to it in CVS_RSH. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +

Re: is there exitCode in Ant?

2009-03-31 Thread Francis Galiegue
arse(p, buildFile); > p.executeTarget(p.getDefaultTarget()); > p.fireBuildFinished(null); > } catch (BuildException e) { > p.fireBuildFinished(e); > } > > } > Use System.exit(). -- Francis Galiegue

Re: Increasing the memory!

2009-04-07 Thread Francis Galiegue
Le Tuesday 07 April 2009 14:54:20 S G, vous avez écrit : > Hi, >     How to increase the memory while running the ant task.I am getting > OutOfMemoryError.I am not using javac task,for which i know how to > increase. Thanks for the help. export ANT_OPTS="-Xmx $ANT_OPTS"

JUnit and summaries?

2009-04-10 Thread Francis Galiegue
ere another way (an extended task somewhere) that can output these results in, say, properties? Have fun, -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40 avenue Raymond Poinc

Re: JUnit and summaries?

2009-04-11 Thread Francis Galiegue
;ll have to tweak the JUnit source code... Thanks, -- Francis Galiegue f...@one2team.com Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 One2team 40 avenue Raymond Poincaré 75116 Paris - To unsubscribe, e-mai

Re: JUnit and summaries?

2009-04-16 Thread Francis Galiegue
ion... Generate an XML report with , then to apply a stylesheet which sums all tests, failures and errors, and then on the generated file. It works! -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40 avenue Raymond Po

Re: if conditions on numerical values?

2009-04-29 Thread Francis Galiegue
anyone know if ant > support such feature? Thank you very much in advance! You don't need numerical arithmetic for this (if you need it anyway, have a look at ant-contrib's task). You can use plain ant:

Re: if conditions on numerical values?

2009-04-29 Thread Francis Galiegue
Le Wednesday 29 April 2009 20:25:01 Francis Galiegue, vous avez écrit : > > You don't need numerical arithmetic for this (if you need it anyway, have a > look at ant-contrib's task). You can use plain ant: > > > > >

Re: Need help with REPLACING an SSI directive

2009-04-30 Thread Francis Galiegue
Le Thursday 30 April 2009 20:54:24 xak, vous avez écrit : > First off, I am very new to using ANT and I'n not a Java developer but my > needs are very simple ... > > I am creating a web site that is decently large but it must be static. So > I'm thinking that I can develop the site locally using se

Re: Reset BuildNumber

2009-05-02 Thread Francis Galiegue
jor.number and minor.number, but you get the idea. -- Francis Galiegue f...@one2team.com Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 One2team 40 avenue Raymond Poincaré 75116 Paris - To unsubscribe, e-mail:

Re: Reset BuildNumber

2009-05-02 Thread Francis Galiegue
Le Saturday 02 May 2009 10:50:06 Francis Galiegue, vous avez écrit : > Le Friday 01 May 2009 19:46:14 Eric Fetzer, vous avez écrit : > > So to make it work, here's what I had to do.  Seems like an awful lot of > > work to accomplish something simple like this. > > [...

Re: fileset based on paths in file

2009-05-02 Thread Francis Galiegue
hild > within an ivy:buildlist task. > > Any help would be appreciated! > I believe ant 1.7's is what you want. Not sure, though, since I'm stuck with ant 1.6.5. -- Francis Galiegue f...@one2team.com Ingénieur système Mob : +33 (0) 683 877 875 Te

Re: String manipulation (parsing / padding)

2009-05-04 Thread Francis Galiegue
ave been looking for something similar in > Ant, but I have yet to come across anything. I am using Ant v1.7.1. > ant-contrib has propertyregex. You can use it in this case. Here is an example build file: First is ${first} Second is ${se

Re: Reset BuildNumber

2009-05-04 Thread Francis Galiegue
you did already. Expect "my way to do it" in an hour or so. I think you'll find the simplification very attracting ;) -- Francis Galiegue f...@one2team.com Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 One2team 40 avenue Raymond Poincaré 75116 Paris ---

Re: Reset BuildNumber

2009-05-04 Thread Francis Galiegue
like I did in the past ( when ant-contrib is in the classpath already) ;) The solution is in progress, and will be yours in an extensible enough half-hour... I need to test it, but it makes good progress ;) -- Francis Galiegue f...@one2team.com Ingénieur système Mob : +33 (0) 683 877 875 Tel : +

Re: How to kill child process with control-c

2009-05-05 Thread Francis Galiegue
but my guess is that the stdin, stdout and stderr of the fork()ed process(es) are not set to the current terminal. Hence, the INTR signal doesn't propagate to ant's children. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2

Re: Reset BuildNumber

2009-05-06 Thread Francis Galiegue
sible. Have fun! -

Re: Reset BuildNumber

2009-05-07 Thread Francis Galiegue
stuff in my build files to a minimum. I only use var, math and if/then/else, which is already a lot. The switch keyword is nice, too ;) -- Francis Galiegue f...@one2team.com Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (

Re: Reset BuildNumber

2009-05-07 Thread Francis Galiegue
d the whole "xxIncrement" stuff with a single "increment" property. Had you told it earlier... :p Just kidding. Well done! And all the more a pity that I don't have the necessary Java skills to pull up a patch set :( -- Francis Galiegue f...@one2team.com Ingénieur système Mo

Re: Reset BuildNumber

2009-05-07 Thread Francis Galiegue
Le Thursday 07 May 2009 22:41:18 Michael Ludwig, vous avez écrit : > Francis Galiegue schrieb am 06.05.2009 um 23:23:37 (+0200): > > > > > > > > > > I've become curious why one is supposed to write so many lines of code > to generate a number, and

Re: Logging for apply task

2009-05-07 Thread Francis Galiegue
, this is easy: -- Francis Galiegue f...@one2team.com Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 One2team 40 avenue Raymond Poincaré 75116 Paris - To unsubscribe, e-mail: user-unsubscr...@ant.

Re: Ant Target Question

2009-05-09 Thread Francis Galiegue
b's try/catch. Yes, ant-contrib again. -- Francis Galiegue f...@one2team.com Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 One2team 40 avenue Raymond Poincaré 75116 Paris - To unsubscribe, e-mail: us

Re: Unix Home set in Build.xml

2009-05-09 Thread Francis Galiegue
Use ant's with the environment attribute: As you can see, you can source whatever your environment is with a given prefix (here "env", it could have been anything else) and then access any defined environment variable with ${env.}. HOME is

Re: cobertura-instrument--anyone seen this?

2009-05-12 Thread Francis Galiegue
ce (I use emma, not cobertura), the coverage is very dependent from the way your classes are compiled. Do you have debug="true" in your javac task? -- Francis Galiegue f...@one2team.com Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 One2team 40 avenue Raymond Poin

Re: Problem with Ant and MailLogger

2009-05-12 Thread Francis Galiegue
down. Are you dead sure that the mail domain you want to send mails to is actually reachable from your machine? -- Francis Galiegue f...@one2team.com Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 One2team 40 avenu

Re: Problem with Ant and MailLogger

2009-05-12 Thread Francis Galiegue
Le Tuesday 12 May 2009 22:20:19 Francis Galiegue, vous avez écrit : > Le Tuesday 12 May 2009 22:09:09 Richard, Troy, vous avez écrit : > > I'm getting the following error message: > > > > MailLogger failed to send e-mail! > > java.io.IOException: Unexpected reply to

Re: Java in JDK but ANT can't find it!

2009-05-15 Thread Francis Galiegue
/opt/jdk1.6.0_06, no JRE at all. So I was wondering where else could I look > at so I can find where this JRE is set. > > Does anyone know where the method System.getProperty goes to get the > java.home? Like a file or something like that?? > What about JDK_HOME? -- Francis Gali

Re: newlines in property from -D argument

2009-06-26 Thread Francis GALIEGUE
preserved in the build.log property. do i need to massage > the output before i give it to ant as a property? > -- Why don't you just put commands in a script and pass the path to that script as an argument? -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875

Re: newlines in property from -D argument

2009-06-26 Thread Francis GALIEGUE
newlines in the command output: > Err... -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40 avenue Raymond Poincaré 75116 Paris - To u

Re: loading ant macros from external files

2009-06-30 Thread Francis GALIEGUE
em entity. I've done this in the past already... Ant has an task, but it's never cut it out for me. That was with ant pre 1.6.5, I don't know whether the situation is any better with more recent versions since I don't use this kind of mechanism anymore. -- Francis Galiegue O

Re: Making the delete task behave like /bin/rm -rf vis-a-vis symlinks to directories

2009-07-02 Thread Francis GALIEGUE
On Tue, Jun 30, 2009 at 23:19, Andy Stevens wrote: > On 26/06/2009, jscripter wrote: >> >>  The main problem with this is that I don't want to keep track of which >>  symlinks to delete. >>  The tree I am deleting may have lots of symlinks. >> >>  I realize that Java doesn't know about symlinks an

Re: Another options

2009-08-10 Thread Francis GALIEGUE
> > With the fileset…. I’m locked. :S:S > I'd use ant-contrib's and if/then/else: -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0)

Re: Another options

2009-08-11 Thread Francis GALIEGUE
the property "file.found" if the file ${file.name} exists > in the directory ${dir.to.search}. If the property "file.test" is set, the > target "actual.target" will execute. Otherwise, that target will be skipped. > > What's nice about this is that

Re: Another options

2009-08-11 Thread Francis GALIEGUE
with a Fileset and I want to split the result and > extract the path to move across the folders. > > I've looking for about this and I don't found anything and the tests which > I've done don't get it. > > Thank you very much and sorry. > Can you give an ex

Re: Another options

2009-08-11 Thread Francis GALIEGUE
o has try/catch). Note that while looks great, it has a huge drawback: its output is a property, and properties are immutable. At least, they're immutable with ant 1.6.x, I don't know for ant 1.7.x.

Re: CVS authontication ANT + Unix + extssh

2009-08-12 Thread Francis GALIEGUE
server. > > Please give me direction > Set and export the CVS_RSH variable, for instance: export CVS_RSH=ssh -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40

Re: If any one from list then

2009-08-12 Thread Francis GALIEGUE
This is not an easy problem, admittedly. It could be done with two imbricated statements, but that would be an O(n^2) algorithm. It may, or may not, be a problem, depending on the problem size. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 1

Re: Another options

2009-08-12 Thread Francis GALIEGUE
#x27;ve done. > > My code is the next Your code is not the problem. The problem is that you don't have the ant-contrib jar in your classpath when you invoke ant. There are two ways to do that. Unfortunately, I cannot tell you about either right now. -- Francis Galiegue ONE2TEAM Ingénie

Re: If any one from list then

2009-08-14 Thread Francis GALIEGUE
is needed in the block. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40 avenue Raymond Poincaré 75116 Paris - To u

Re: Another options

2009-08-14 Thread Francis GALIEGUE
r classpath, you can: This will define all tasks for you. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40 avenue Raymond Poincaré 75116 Paris - To unsub

Re: If any one from list then

2009-08-14 Thread Francis GALIEGUE
On Fri, Aug 14, 2009 at 18:01, Francis GALIEGUE wrote: > On Wed, Aug 12, 2009 at 18:48, Eric Fetzer wrote: >> OK, so here's how I did it.  It works at least...  Can anyone think of a >> better way (I think it's kind of ugly)? >> > > This is a solution. >

Launching a different java executable from within ant

2009-08-19 Thread Francis GALIEGUE
shell script, that for this particular java task, we want a different JAVA_HOME and/or JDK_HOME? Thanks, -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40 avenue Raymond Poincaré 75116

Re: Launching a different java executable from within ant

2009-08-19 Thread Francis GALIEGUE
On Thu, Aug 20, 2009 at 07:13, wrote: > ... > It did the trick, thanks! I thought it would be more complicated than that... -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40 avenue Raymond Poincaré 75116

How to remove a property from a file

2009-08-20 Thread Francis GALIEGUE
t;pure" ant solution? -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40 avenue Raymond Poincaré 75116 Paris - To unsubscribe, e-mail: user-unsubscr...@ant.

Re: How to remove a property from a file

2009-08-25 Thread Francis GALIEGUE
On Thu, Aug 20, 2009 at 15:04, wrote: [...] > > I added that as in revision > 806154. > I don't know the release schedule for Ant. What version will this revision be available into, and when can I expect it? Thanks in advance, -- Francis Galiegue ONE2TEAM Ingénieur système

Re: Condition to set property value if file exist

2009-08-26 Thread Francis GALIEGUE
"/> >   > > Since properties are immutable, if either of the first two available > tasks sets the property, the later tasks won't do anything. > These tasks will also match on plain files! To be safe, you should specify type="dir" to each tasks. -- Fra

Re: quiete mode for

2009-08-26 Thread Francis GALIEGUE
file, > or delete it completely? Then, it has to be configured inside the script, > working with something like "ant > log.txt" does not work in my context. > > For the task, you have the reallyquiet attribute. It's the equivalent of the -Q option of the cvs co

s unless/if: strangeness in default behaviour (imho) (ant 1.6.5)

2009-08-31 Thread Francis GALIEGUE
execute, but both are executed! Which means that the dependencies of a target are executed before even any if="" or unless="" attributes are taken into account... This is rather counterintuitive to my eyes. Is this really the expected behaviour or is this a bug? -- Francis Gal

Re: s unless/if: strangeness in default behaviour (imho) (ant 1.6.5)

2009-08-31 Thread Francis GALIEGUE
id, it looks pretty much counterintuitive to my eyes. If a property is dependent on the (non)existence of a property and this property does/does not exist, I don't expect this target to be executed at all. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33

Re: s unless/if: strangeness in default behaviour (imho) (ant 1.6.5)

2009-08-31 Thread Francis GALIEGUE
o. What I had to write to accomplish what I wanted is: Which is a lot more confusing. And I don't want to write an extra task to check for the existence of the file I have to send via mail. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0)

Re: s unless/if: strangeness in default behaviour (imho) (ant 1.6.5)

2009-09-01 Thread Francis GALIEGUE
quot;nocoverage" if check to the other target. That's one way > to handle this issue. > OK, this is a clear enough explanation. I'm not really sure about the "programming language vs build system" analogy, though ;) I think I still don'

Re: path env variable for fedora 10 and 11

2009-09-01 Thread Francis GALIEGUE
interpolated by ant at all. The only means of doing what you want is to write a shell script to echo the value of the PATH environment variable. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40 avenue Raymond Poincaré 75116 Pa

Re: Help with bug diagnosis: task takes 30+ minutes to complete

2009-09-01 Thread Francis GALIEGUE
On Tue, Sep 1, 2009 at 15:17, Francis GALIEGUE wrote: > Hello everyone, > > I have > Argh, sorry, keyboard error caused mail to be sent way too soon. So, I'll explain. I have the following setup: * running on CentOS 5, 64 bits; * using ant 1.6.5, packaged by JPackage; * using

Help with bug diagnosis: task takes 30+ minutes to complete

2009-09-01 Thread Francis GALIEGUE
Hello everyone, I have -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40 avenue Raymond Poincaré 75116 Paris - To unsubscribe, e-mail: user-unsubscr

Re: Help with bug diagnosis: task takes 30+ minutes to complete

2009-09-02 Thread Francis GALIEGUE
On Tue, Sep 1, 2009 at 15:31, Francis GALIEGUE wrote: [...] > > I have the following setup: > > * running on CentOS 5, 64 bits; > * using ant 1.6.5, packaged by JPackage; > * using Sun's latest Java 6 (JVM + JDK), 32bit (yes, even though I run > a 64bit OS, but I need t

Re: Proposal for improving Ant output (post-1.7)

2009-09-03 Thread Francis GALIEGUE
bing. That is, if you do, and you invoke target b, the output will be: a: b: I'd prefer: a (from b): b: And more generally: t1 (from t2) (from t3): or alike. I have the habit to separate targets as much as I can and deeply nest them. Such informatio

Re: Proposal for improving Ant output (post-1.7)

2009-09-03 Thread Francis GALIEGUE
ed the fact that there's no need to call a from c, right? So that would be: a (from b) (from d): b (from d): c (from d): d: -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2

Re: search directories and putting search result in a variable

2009-09-04 Thread Francis GALIEGUE
ents as an argument, though, so I don't know whether it takes directories into account. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40 avenue Raymond Poincaré 75116 Paris --

Re: Proposal for improving Ant output (post-1.7)

2009-09-04 Thread Francis GALIEGUE
what depends="" existed in the original targets (but it does remember the if/unless). This is how I understand it: ant has no "stack". Well, that's a way to do things, but I don't see that as a "programming language vs build system" analogy. Make pretty m

Re: calculating relative paths

2009-09-08 Thread Francis GALIEGUE
ng like location="${src.dir}" basedir="${build.dir}" .../>  Is there anything > like this in one of the "extras" libraries, or some other easy way to > achieve it? > > You can use ant-contrib's : -- Franc

Re: Delete N directories that match a regexp

2009-09-08 Thread Francis GALIEGUE
d then the delete does not work. > > Do you have some more magic to make it work on Windows as well? > There is WAY more simple: -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40 avenue Raymond Poincaré 75116 Paris

Re: calculating relative paths

2009-09-08 Thread Francis GALIEGUE
On Tue, Sep 8, 2009 at 21:03, Andy Stevens wrote: > 2009/9/8 Francis GALIEGUE : >> On Tue, Sep 8, 2009 at 08:41, Andy >> Stevens wrote: >>> Hi, >>> >>> Is there an easy way to calculate an arbitrary relative path between two >>> files? >>&g

Re: Newbie question: importing properties from XML file via command line

2009-09-13 Thread Francis GALIEGUE
ire it. > > thanks, > > Scott > There is , which can be very convenient at times. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40 avenue Raymond Poincaré 75116 Paris --

Re: Help with bug diagnosis: task takes 30+ minutes to complete

2009-09-14 Thread Francis GALIEGUE
On Mon, Sep 14, 2009 at 13:25, Steve Loughran wrote: > Francis GALIEGUE wrote: > ort is fairly quick. >>> >>> How can I diagnose the problem precisely? Can I use another XSL >>> processor that will be faster than xalan-j2? >>> >> >> Well,

Re: ant-contribution.jar error

2009-09-16 Thread Francis GALIEGUE
ed putting the ant-contrib jars everywhere I can think of and it > hasn't resolved. Any ideas? > > I am running on Snow Leopard and ant 1.7.0 that comes prebundled with OSX. > Is it actually a zip file? Try and do unzip -l /wherever/is/ant-contrib.jar. -- Francis Galiegue ONE2

Re: use variable params in an antcall

2009-09-18 Thread Francis GALIEGUE
way to add a variable set of params into an antcall? > > I hope someone can help. Thanks! > Use macrodef's , maybe? Untested, but you can try that: -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 6

Re: How To: Java Command to Ant

2009-09-20 Thread Francis GALIEGUE
On Mon, Sep 21, 2009 at 02:34, dr_pompeii wrote: > > Hello supareno > > Thanks for the reply, but no woek :-( > Try this: -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40 avenue R

Feature request: ifbool/unlessbool

2009-09-24 Thread Francis GALIEGUE
t; if it's 0 or false, then the mail is sent. And the target would then read: Comments? -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40 avenue Raymond Poincaré 7

Re: Replace value of a parameter

2009-09-25 Thread Francis GALIEGUE
t to replace is > build > build=0998 > > So how do do I take the value of build in file A and replace the value of > build in file B. > The values are changing constantly so the values are wildcard > > Thanks > Note that operation="=&quo

Re: Need Help urgent

2009-09-25 Thread Francis GALIEGUE
et exist at all? You don't need to have a target just to define properties. Just define them right below , it will make the file simpler (your clean target won't depend on init anymore). -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +3

Re: Need Help urgent

2009-09-25 Thread Francis GALIEGUE
more information. > If you try to copy it to some other directory, say /tmp if you use a Unix-like OS or C:\tmp if you use Windows, do you see the copied file in the target directory? -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0

Re: Wrapping up ?

2009-09-29 Thread Francis GALIEGUE
stribution. I do this all the time with RPM: I build my packages only if necessary (otherwise, that's dag.wieers.com - if you do use RPM, you should throw an eye there), make a virtual package and all I have to do afterwards is "yum -y install thevirtualrpmname". One command, everythin

ant doesn't know about all system properties...

2009-10-04 Thread Francis GALIEGUE
Hello, Unlike what the manual says, it doesn't know of all system properties. I need to have the output of java.library.path in a property, how can I do that without having to write a Java class (even though it would be simple) or use

Re: isset within macrodef...

2009-10-05 Thread Francis GALIEGUE
    >                         [...] > Attributes within macros are not properties! You should use: -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f

Re: AW: How to rename a dir?

2009-10-07 Thread Francis GALIEGUE
On Wed, Oct 7, 2009 at 16:33, Scot P. Floess wrote: > > Ha ha - me neither! > > A little misleading based upon the docs ;) > > On the other hand, you may actually want to move directory d to directory d1 (hence creating d1/d) when you use . Maybe a task? -- Francis

  1   2   >