Re: foreach ant task

2010-03-11 Thread Francis GALIEGUE
with , you have to define a subtask; doesn't require it: -- 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: Recording tasks output while silencing stdout

2009-12-07 Thread Francis GALIEGUE
nswer :p Well, I may as well get up to it since the "kbuild way" is gaining steam within the C/C++ community, so why not Java ;) Thanks, -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40 aven

Re: Build failure propogation

2009-12-07 Thread Francis GALIEGUE
ailure, you should throw BuildException. If you do that and it doesn't work, I cannot help any further I'm afraid :/ -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40 avenue

Re: Build failure propogation

2009-12-07 Thread Francis GALIEGUE
nable to fail the entire build (i.e the main build file still says build > successful when the child build file fails or custom task throws the > exception) > How do you invoke other build.xml files? "Chained failures" work for me, and I use . -- Francis Galiegue ONE2TEAM Ingé

Recording tasks output while silencing stdout

2009-12-02 Thread Francis GALIEGUE
like to silence: won't help, since while it will record in a file, it will also echo to stdout... Any hints? -- 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

Re: macro scoping as private

2009-11-02 Thread Francis GALIEGUE
r macro definitions can be overriden (either within a task or within a file). -- 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: Alternative for taks to check a pattern of file existence

2009-10-29 Thread Francis GALIEGUE
rget..  Do i need > to use condition for this?? > Well, no, since if there's no file, there will be no iteration at all... Hence my suggestion. A fileset can be empty. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552

Re: Alternative for taks to check a pattern of file existence

2009-10-29 Thread Francis GALIEGUE
file known. I wanted to check whether *.txt is > present or not.. if present execute a target.. > > Can anyone please help me.. > > Thanks in advance. > One option would be to use an appropriate and loop over it with , but requires ant-contrib. -- Francis Galiegue ONE2TEAM I

Re: Checking whether a file is executable

2009-10-23 Thread Francis GALIEGUE
even if this was far from being obvious in my first mail... By "Where should I start to look if I want to create, say, a condition", I meant where in the code should I start to look. I have thrown an eye to the source, but without success so far. Pointers appreciated ;) -- Francis Galie

Re: Checking whether a file is executable

2009-10-23 Thread Francis GALIEGUE
anExecute() method only appeared in Java 1.6 :( If ant aims to stick to 1.4, or even 1.5, I'm SOL, I guess... -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40 avenue

Checking whether a file is executable

2009-10-23 Thread Francis GALIEGUE
I could fail earlier, finding that a given file is just not executable at all... -- 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: Setting Property to a path containing Space

2009-10-22 Thread Francis GALIEGUE
whatever the OS, the value is one and one argument only. No need to quote, since you use execve() (under Unix like) or the equivalent in Windows. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@one2team.com 40 avenue

Re: Setting Property to a path containing Space

2009-10-22 Thread Francis GALIEGUE
    > >     > > After execution of the above snippet i am getting the below error: > Don't use , as it will split the line attribute with spaces. Use: -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552

Re: regexp-type doesn't work as expected/(advertised?)

2009-10-22 Thread Francis GALIEGUE
write: from="\.old$" to=".new" but: from="'(.*)\.old$" to="\1.new" (although for this particular case, you'd probably want to use a globmapper instead). -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0

Re: regexp-type doesn't work as expected/(advertised?)

2009-10-16 Thread Francis GALIEGUE
on be reviewed to say that the regex must match all the filename. Simply telling "if the file name matches the regex in from" is misleading. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 f...@

Re: problem with using with the javah task

2009-10-15 Thread Francis GALIEGUE
   force="yes" >          verbose="yes" >          > >           >           >         > Have you tried using instead of ? -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel

Re: Tar Task

2009-10-14 Thread Francis GALIEGUE
s in the help section to overwrite the > previous version of ShellScripts.tar. > > > >   >     basedir="shell" >   excludes="**/cvs/**" >  /> >   > > You can just the tarball before recreating it. Delete won't fail if it can't find

Re: Error using Ant

2009-10-14 Thread Francis GALIEGUE
that I can find. > The error message appears to be coming from the first "property" statement. > > > >     > > Any help would be appreciated. > No, it doesn't come from here. It comes from the find that you do a of ant-contrib and don't have ant-contrib

Re: problems importing table...

2009-10-13 Thread Francis GALIEGUE
file=blah.dmp > I think you meant to send that mail to another mailing list :p -- 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: for statement possibilities

2009-10-13 Thread Francis GALIEGUE
On Tue, Oct 13, 2009 at 12:11, EetieD wrote: > > Hi all, > > I am using the 'for-statement' from Ant-Contrib. I have two questions about > it: > > 1. Is it possible to stop within the for statement while it isn't ended yet? Yes it is, with a "catch" - quite literally so:

Re: regexp-type doesn't work as expected/(advertised?)

2009-10-12 Thread Francis GALIEGUE
On Mon, Oct 12, 2009 at 08:40, Francis GALIEGUE wrote: [...] > > Let me be more precise about that. > > If I: > > echo t.xml | sed 's,xml$,txt' > > I get t.txt as an output. As expected. > > I know that Java's .matches() method on a String is a mis

Re: regexp-type doesn't work as expected/(advertised?)

2009-10-11 Thread Francis GALIEGUE
On Mon, Oct 12, 2009 at 08:26, Francis GALIEGUE wrote: > On Mon, Oct 12, 2009 at 07:00, Stefan Bodewig wrote: >> On 2009-10-09, Francis GALIEG

Re: regexp-type doesn't work as expected/(advertised?)

2009-10-11 Thread Francis GALIEGUE
On Mon, Oct 12, 2009 at 07:00, Stefan Bodewig wrote: > On 2009-10-09, Francis GALIEGUE wrote: > >> > >>         >>                 >>                         >>                         >>                 >>         > > means ma

regexp-type doesn't work as expected/(advertised?)

2009-10-09 Thread Francis GALIEGUE
d. So far, so good, that's what is expected. But the second time, it is _also_ executed, and that is totally unexpected. This has been verified with ant 1.6.5 and ant 1.7.1. If I run ant -v, here's what I see in the output: --- check: [uptodate] t.xml added as txt doesn't exist. ---

Re: build failed+ant

2009-10-09 Thread Francis GALIEGUE
On Fri, Oct 9, 2009 at 14:40, srinivas2828 wrote: > > tomcat path is /opt/apache-tomcat-5.5.27 only > Well then what Whatty said: spelling mistake. You wrote /op instead of /opt. -- Francis Galiegue ONE2TEAM Ingénieur système Mob : +33 (0) 683 877 875 Tel : +33 (0) 178

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

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

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: 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

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: 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: 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

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: 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

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: 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: 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: 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: 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: 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
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: 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: 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-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: 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: 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: 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: 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: 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: 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-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

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: 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

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: 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

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: 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

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: 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. >

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
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-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-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: 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: 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: 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
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-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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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
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-06 Thread Francis Galiegue
sible. Have fun! -

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-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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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

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: 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"

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: 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 : +

  1   2   >