RE: Frequent java.lang.OutOfMemoryError: Java heap space error

2009-12-07 Thread vinothofindia
Hi, I have been encountering same issue. I got "java.lang.OutOfMemoryError: Java heap space" when I tried to compile my code with ANT. So, I tried setting ANT_OPTS env var, that doesn't resolve the issue permanently and the issue occurred intermittently. Then I tried setting fork attribute in m

Re: making Sphinx4 apps with Ant

2009-12-07 Thread supareno
johnyjj2, May I have your answer, please? yes you can have an answer but you have to be patient. We are not working for you :-) So, i read what you posted (and sorry i don't speak polish so i didn't understand the second link!) in your third link, you write: "And what I'd like to do is to

Re: Ant provides incorrect POM

2009-12-07 Thread Sebastian Hennebrueder
Hello Antoine, thank you for the proposal. I used vim to check the file so there wasn't a browser problem.. It is a 1.6.5 version which is in our Maven Proxy but I cannot tell you from where we got it. ant/ant/1.6.5/ant-1.6.5.pom Anyway the newer versions 1.7.x are all fine. -- Best Regards

RE: RegExp help needed!

2009-12-07 Thread Jowie
Hi again Gilbert, That updated Xpath worked a treat... Thank you very much for your patience and help! :-) Hopefully that will be it now... ;-) Cheers again! :-Joe -- View this message in context: http://old.nabble.com/RegExp-help-needed%21-tp26676257p26679471.html Sent from the Ant - Users

RE: RegExp help needed!

2009-12-07 Thread Jowie
I think the problem that I have is that the @Media property isn't always set. In which case it fails when it tries to look at a node with no Media property. Can anyone think of a workaround? :-/ Thanks! -- View this message in context: http://old.nabble.com/RegExp-help-needed%21-tp26676257p266

RE: RegExp help needed!

2009-12-07 Thread Rebhan, Gilbert
-Original Message- From: Jowie [mailto:joe.n...@mac.com] Sent: Monday, December 07, 2009 4:06 PM To: user@ant.apache.org Subject: RE: RegExp help needed! /* Hi Gilbert, What I am trying to say is... I have done exactly how you say, despite what my last message says (some weird URL enco

RE: RegExp help needed!

2009-12-07 Thread Jowie
Hopefully it will work this time... This is my code: and I get back: [echo] img = /brain_games_main/Image.ashx?ID=647 [echo] img = /brain_games_main/Image.ashx?ID=647 [echo] img = /brain_games_main/Image.ashx?ID=647 [echo] img = /brain_games_main/Image.ashx?ID=647 [ech

RE: RegExp help needed!

2009-12-07 Thread Jowie
Hopefully it will work this time... This is my code: img = @{img} ]]> and I get back: I get back: [echo] img = /brain_games_main/Image.ashx?ID=647 [echo] img = /brain_games_main/Image.ashx?ID=647

RE: RegExp help needed!

2009-12-07 Thread Jowie
Hi Gilbert, What I am trying to say is... I have done exactly how you say, despite what my last message says (some weird URL encoding is deleting one of my lines!) and it returns a list of repeating [echo] img = /brain_games_main/Image.ashx?ID=647 [echo] img = /brain_games_main/Image.a

RE: RegExp help needed!

2009-12-07 Thread Jowie
AGH!! I am posting another line here... I have done *exactly* what you say - that line gap is a weird mistake! But I get back a load of repeating echoes ... Cheers Jowie wrote: > > Hi Gilbert, > > Sorry my copied code was completely wrong! Have no idea why! It should > have been: > >

RE: RegExp help needed!

2009-12-07 Thread Jowie
Hi Gilbert, Sorry my copied code was completely wrong! Have no idea why! It should have been: img = @{img}

RE: RegExp help needed!

2009-12-07 Thread Jowie
Hi Gilbert, Sorry my copied code was completely wrong! Have no idea why! It should have been: img = @{img}

RE: RegExp help needed!

2009-12-07 Thread Rebhan, Gilbert
-Original Message- From: Jowie [mailto:joe.n...@mac.com] Sent: Monday, December 07, 2009 3:28 PM To: user@ant.apache.org Subject: RE: RegExp help needed! /* [...] Games\Main\ant\update_offline.xml:77: required attribute img not set But... If I do

RE: RegExp help needed!

2009-12-07 Thread Jowie
Thanks Gilbert... I have now got this... img = @{img} which returns: BUILD

RE: RegExp help needed!

2009-12-07 Thread Rebhan, Gilbert
P.S. : will hit all Media=... attributes und /Question/Answers, if you need all Media Attributes you need to use = Regards, Gilbert - To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands,

RE: RegExp help needed!

2009-12-07 Thread Rebhan, Gilbert
-Original Message- From: Jowie [mailto:joe.n...@mac.com] Sent: Monday, December 07, 2009 1:40 PM To: user@ant.apache.org Subject: RE: RegExp help needed! /* txt txt txt txt - So from this, I need to: 1. Find any Media attribute, nested o

RE: RegExp help needed!

2009-12-07 Thread Jowie
Okay... So back to my original request (thanks for all the help so far! :)) Here's my code so far: -

Re: Recording tasks output while silencing stdout

2009-12-07 Thread Francis GALIEGUE
On Mon, Dec 7, 2009 at 14:38, Antoine Levy Lambert wrote: > Hello Francis, > > you might want to write your own logger, and start ant specifying your > logger on the command line. > > This way, you can handle output the way you want. > Somehow, I feared that this was the answer :p Well, I may as

Re: Ant provides incorrect POM

2009-12-07 Thread Antoine Levy Lambert
Hello Sebastian, if you select the "view source" option in your web browser, you will see this : http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";> Thi

Re: RegExp help needed!

2009-12-07 Thread Jowie
Okay, So I've sorted it, but it was a weird one! One of the questions was badly formatted, and looked like this: [Media} [Media} [Media} [Media} Notice the "[Media}"... Now the weird thing is that this caused an error on a large file, but not on a s

Re: RegExp help needed!

2009-12-07 Thread Antoine Levy Lambert
Hi, uhhm, in this case maybe the error you are encountering is a disguised Out of Memory, or a bug with the XML parser. you might want to try with different JDKs. I do not know whether the xercesImpl.jar which ships with ant is actually used to parse XML files in custom tasks or whether it w

Re: RegExp help needed!

2009-12-07 Thread Jowie
Hi there, Just so you know, I created a file which was bigger than my original file as a test, and that worked fine... So I'm a bit confused as to how this XML file will not work when it is supposedly well formatted... ?? -- View this message in context: http://old.nabble.com/RegExp-help-neede

Re: Recording tasks output while silencing stdout

2009-12-07 Thread Antoine Levy Lambert
Hello Francis, you might want to write your own logger, and start ant specifying your logger on the command line. This way, you can handle output the way you want. Regards, Antoine Francis GALIEGUE wrote: Hello everyone, I have a system which works OK, but now I want to go a step further

Re: RegExp help needed!

2009-12-07 Thread Jowie
Hi Antopine, Yes the XML file loads fine in a browser. I am even declaring UTF-8 at the top of the file. And when I split the file down the middle and test both halves (keeping the header of course) it works fine too. Hello, the error below would not be an ant of xmltask error. The message I

Re: RegExp help needed!

2009-12-07 Thread Antoine Levy Lambert
Hello, the error below would not be an ant of xmltask error. The message Invalid byte 3 of 3-byte UTF-8 sequence means that your XML file is not matching the UTF-8 convention. Does your XML file specify UTF-8 in the XML declaration ? Can you read your XML file using another tool than ant, fo

Re: RegExp help needed!

2009-12-07 Thread Jowie
> That looks to me like your XML is not properly encoded. I > suspect that if you use a command-line tool like xmlstarlet > it'll confoirm that by giving you a very similar error. The > below isn't size-related. Thanks for the info. If you are right, this could still be a problem because the

RE: RegExp help needed!

2009-12-07 Thread Joe Nash
> That looks to me like your XML is not properly encoded. I > suspect that if you use a command-line tool like xmlstarlet > it'll confoirm that by giving you a very similar error. The > below isn't size-related. Thanks for the info. If you are right, this could still be a problem because the X

Re: FTP works in 1.6.5, fails in 1.7.1

2009-12-07 Thread Antoine Levy Lambert
Hello Ken, would you mind sending a stack trace ? If you run your build with ant -verbose, the output will finish with the stack trace. Maybe this is a new, unknown bug, which should be entered in bugzilla. Regards, Antoine Ken Turner wrote: I have the following code snippet:

Re: RegExp help needed!

2009-12-07 Thread Brian Agnew
That looks to me like your XML is not properly encoded. I suspect that if you use a command-line tool like xmlstarlet it'll confoirm that by giving you a very similar error. The below isn't size-related. On 07/12/2009 13:15, Jowie wrote: Doh... Looks like I have a problem using xmltask anyway

FTP works in 1.6.5, fails in 1.7.1

2009-12-07 Thread Ken Turner
I have the following code snippet: With Ant 1.6.5, this works fine, but with Ant 1.7.1 it appears to successfully copy one file, and then falls ov

RE: RegExp help needed!

2009-12-07 Thread Jowie
Doh... Looks like I have a problem using xmltask anyway unfortunately... The GetAllQuestions.xml is too big for it to handle :-( it's nearly 1MB in size. At least I'm pretty sure that's why, since if I run another piece of XML which is a lot smaller it works fine. But in this case I get the error:

RE: RegExp help needed!

2009-12-07 Thread Jowie
Hi Gilbert, Thanks very much for taking the time to help me out. Unfortunately I've not used Xpath before and don't really have time to learn :( but if I give you an example of my XML, could you perhaps point me in the right direction? Here is an example: -- txt txt

RE: RegExp help needed!

2009-12-07 Thread Rebhan, Gilbert
-Original Message- From: Jowie [mailto:joe.n...@mac.com] Sent: Monday, December 07, 2009 1:02 PM To: user@ant.apache.org Subject: RegExp help needed! /* so you would go like that = ... /* hit the send button to soon, should be = so you would go like that = ..

RE: RegExp help needed!

2009-12-07 Thread Rebhan, Gilbert
-Original Message- From: Jowie [mailto:joe.n...@mac.com] Sent: Monday, December 07, 2009 1:02 PM To: user@ant.apache.org Subject: RegExp help needed! /* Hi all, I'm fumbling my way around Ant and finding the help on the web really confusing. I am using Ant simply as a macro copy/downlo

RegExp help needed!

2009-12-07 Thread Jowie
Hi all, I'm fumbling my way around Ant and finding the help on the web really confusing. I am using Ant simply as a macro copy/download/find-replace utility and am an ActionScript programmer, not a Java one. Anyway... There's one bit I'm stuck on and really need your help please! I have used An

Re: Build failure propogation

2009-12-07 Thread Raja Nagendra Kumar
Initially we were throwing new BuildException() as this did not work, we now have the code like this project.fireBuildFinished(error) This approach is resulting build fail error for the current ant programmatic ant execution but the same failure is not getting propagated to the build file which

Re: Build failure propogation

2009-12-07 Thread Francis GALIEGUE
On Mon, Dec 7, 2009 at 12:12, Raja Nagendra Kumar wrote: > > We use with in build file also in with custom task , we use ant class > task as api. In this place it fails. > > new Ant() etc.. and calling execute() method. > Well, from what I know, if you want to propagate a failure, you should thr

Re: Build failure propogation

2009-12-07 Thread Raja Nagendra Kumar
We use with in build file also in with custom task , we use ant class task as api. In this place it fails. new Ant() etc.. and calling execute() method. Regards, Nagendra -- View this message in context: http://old.nabble.com/Build-failure-propogation-tp2990p26675759.html Sent from the An

Re: Build failure propogation

2009-12-07 Thread Francis GALIEGUE
On Sun, Dec 6, 2009 at 18:23, Raja Nagendra Kumar wrote: > > Hi, > > Are there good documents and pointers to understand the build failure > prorogation, when custom executor, custom tasks and one build file invoking > others (n level of chained build.xml invokes). > > Unable to fail the entire bu