AW: AW: dynamic targets

2006-10-24 Thread Jan.Materne
mmm ... just had a look into the testcode - failonerror is already implemented (incl testcases). SubAntTest.java public void testMultipleTargetsOneDoesntExist_FOEfalse() { executeTarget("multipleTargetsOneDoesntExist_FOEfalse"); assertLogContaining("Target \"three\" does not

AW: AW: dynamic targets

2006-10-24 Thread Jan.Materne
I think a failonerror (default=true for bwc) would help and would be easily to implement. So just should do the job? Jan >-Ursprüngliche Nachricht--

Re: how do i group files in different directories?

2006-10-24 Thread Jacob Kjome
At 06:31 AM 10/24/2006, you wrote: >Scot P. Floess wrote: >> You can define a >> >> ... >> >> >> Your path can contain file sets, etc... >> >> Then you can simply refer to id... >> >> >> >> >> teknokrat wrote: >>> I would like to define a group of jar files and then reference this >>> group in

Re: AW: dynamic targets

2006-10-24 Thread Jacob Kjome
At 08:05 AM 10/24/2006, you wrote: >same - write a common buildfile (maybe with empty implementation) and all the >projects have all needed targets. Web project could overwrite the >target implementation. > >Jan > Yep, is powerful and extremely useful and I use it all the time. I tried to ke

[Solution]: error loading a mysqldump file using ant sql task's src

2006-10-24 Thread Hunter Peress
While pouring through the source,I found a solution! Heres a basic way to read most mysql dumps using the sql task's src: whether it be triggers,storedprocs,fields that contain comments... -put all triggers and stored procedures in their own file. and use the task's delimiter attribute (requires

Re: Example: error loading a mysqldump file

2006-10-24 Thread Scot P. Floess
Hunter: OK, I see what you are saying now... Sorry :( Apparently I wasn't paying attention to what you were saying... Its odd to me the implementation isn't taking the character stream verbatim and hading through to JDBC - thus allowing JDBC to parse and do the right thing...so I guess Ant

Re: Example: error loading a mysqldump file

2006-10-24 Thread Martin Gainty
then the delimiter attribute needs to be specified right? we've all coded Java statements on one line ..as long as the semicolon delimiter is visible to the parser then the parser knows that this at least should be a new SQL statement when it sees the of semicolon does this look familiar? int fo

Re: Example: error loading a mysqldump file

2006-10-24 Thread Hunter Peress
It is treating each line as ONE sql statement. By using the -line continuation- character, it should fix the problem - namely the \ character. So? I gave 2 statements each on its own line. the problem is that ant thinks the string inside the first quote is an actual sql comment the problem is

Re: Example: error loading a mysqldump file

2006-10-24 Thread Scot P. Floess
Honestly, this is an implementation issue IMHO with regards to Ant. It is treating each line as ONE sql statement. By using the -line continuation- character, it should fix the problem - namely the \ character. Placing SQL statements in a file makes perfect sense...perhaps he is trying to pu

Re: Example: error loading a mysqldump file

2006-10-24 Thread Scot P. Floess
Hunter: Did you use the \ character between each line? I swear this is exactly the same problem I had with postgres... Ant is treating each line as ONE sql statement. If your sql statement doesnt end properly, it will complain... So, since you span multiple lines...its an issue. Hunter

Re: Example: error loading a mysqldump file

2006-10-24 Thread Martin Gainty
Hunter If Im not mistaken I think you just answered your own question so when you put all the SQL statements together on one line then ant can parse the SQL if you break the SQL apart with some varying number of unknown delimiters ant cannot understand your file contents if you absolutely must u

Example: error loading a mysqldump file

2006-10-24 Thread Hunter Peress
Ant file: use what; wtf.sql: insert into properties (value) values(""); insert into properties (value) values("Hi"); Ok so if in mysql console you source wtf.sql there are no problems, its valid mysql. But ant bombs on it. Ant can handle each line ,but put them togeth

copy performance for .properties vs .other file type

2006-10-24 Thread Sean \(Xuong\) Phu
Anyone know why is it taking 9 seconds to copy 800 files that ends with ".properties" but if I renamed these files with ".blah", it only takes me 3 seconds? Thanks Here are the two different tests I used: ___

Re: Copy / Move Files

2006-10-24 Thread work
Thanks, running down the regexpmapper does exactly what I want. Dominique Devienne writes: directory. In other words, the distribution structure will not contain the oracle or postgres directories, but the sql files in those directories will be in the appropriate tables/indices directorie

Re: Which Class.method Does Ant Use to Strip Out \ and /

2006-10-24 Thread Martin Gainty
+1 underneath the covers Ant implements the reg-exp parser using the underlying Java Regular Expression Pattern as defined here http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.html Note what they say about the backslash character '\' Backslashes, escapes, and quoting The backslash

Re: Copy / Move Files

2006-10-24 Thread Dominique Devienne
directory. In other words, the distribution structure will not contain the oracle or postgres directories, but the sql files in those directories will be in the appropriate tables/indices directories. Given that I don't really want to change the build.xml file if I add a new directory, is there

Copy / Move Files

2006-10-24 Thread work
Ok, here is what I want to do. I have a directory structure something like: dbname base tables oracle postgres indices oracle postgres inside of tables/indices directories are a number of standard sql files for cr

Re: Which Class.method Does Ant Use to Strip Out \ and /

2006-10-24 Thread Dominique Devienne
On 10/24/06, Robert Pepersack <[EMAIL PROTECTED]> wrote: Does anyone know which method in which class Ant uses to strip out slashes and back-slashes? I would like to see if I can reuse it in my own custom task. You may want to look at FileUtils, and methods with normalize in their name, and al

RE: Build successful but nothing produced

2006-10-24 Thread Tom Corcoran
-Original Message- From: EJ Ciramella [mailto:[EMAIL PROTECTED] Sent: 20 October 2006 18:28 To: Ant Users List Subject: RE: Build successful but nothing produced >Most builds have a build directory associated with them. So src would >get compiled into classes (so src/com/package/

Which Class.method Does Ant Use to Strip Out \ and /

2006-10-24 Thread Robert Pepersack
Does anyone know which method in which class Ant uses to strip out slashes and back-slashes? I would like to see if I can reuse it in my own custom task. Thanks, Bob Robert Pepersack Senior Lead Developer Maryland Insurance Administration 410-468-2054 --

Re: error loading a mysqldump file

2006-10-24 Thread Martin Gainty
I know if I edit on windo and port to nix I will have appended at end of each line for small files vi -b will show you the extra CR and you can easily delete the CR (which show up as ^M) chars for comprehensive treatment of entire files to unix run the dostounix utility check out this link fro

Re: error loading a mysqldump file

2006-10-24 Thread Scot P. Floess
More specifically if I had multiple SQL statements, I had to do this: create table foo \ ( \ bar as int \ ); create table alpha \ ( \ beta as int \ ); Note that the \ is used until the ; Scot P. Floess wrote: Can you elaborate more on the error? Some years ago I was using the sql task and ha

Re: error loading a mysqldump file

2006-10-24 Thread Scot P. Floess
Can you elaborate more on the error? Some years ago I was using the sql task and had a file full of SQL statements... When I tried to use the sql task I was getting errors as well. The solution, if memory serves, is that I had to use a \ character at the end of each line until SQL terminati

Re: dynamic targets

2006-10-24 Thread Dominique Devienne
On 10/24/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: same - write a common buildfile Can I say me too? ;-) is a good solution I think. FTR, I did in the past create targets dynamically, just so they were ordered dynamically (along internal module dependency lines), but this was hackish

RE: Re: how do i group files in different directories?

2006-10-24 Thread Burgess, Benjamin
Have you tried Ben -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of teknokrat Sent: Tuesday, October 24, 2006 7:31 AM To: user@ant.apache.org Subject: Re: how do i group files in different directories? Scot P. Floess wrote: > You can define a > > ... > > > Your

AW: dynamic targets

2006-10-24 Thread Jan.Materne
same - write a common buildfile (maybe with empty implementation) and all the projects have all needed targets. Web project could overwrite the target implementation. Jan >-Ursprüngliche Nachricht- >Von: Markus M. May [mailto:[EMAIL PROTECTED] >Gesendet: Dienstag, 24. Oktober 2006 09:1

Re: how do i group files in different directories?

2006-10-24 Thread teknokrat
Scot P. Floess wrote: You can define a ... Your path can contain file sets, etc... Then you can simply refer to id... teknokrat wrote: I would like to define a group of jar files and then reference this group in the lib task. However, these jars are all in different directories and nei

Re: Persistence of properties between ant targets

2006-10-24 Thread Peter Reilly
On 10/24/06, Adam Downer <[EMAIL PROTECTED]> wrote: Hi, I have a build file with a target which runs the standard JUnit task. This task sets a property (using errorproperty & failureproperty attributes) if any of the tests do not pass. The target containing the JUnit task is called, using antcal

Persistence of properties between ant targets

2006-10-24 Thread Adam Downer
Hi, I have a build file with a target which runs the standard JUnit task. This task sets a property (using errorproperty & failureproperty attributes) if any of the tests do not pass. The target containing the JUnit task is called, using antcall, by a separate, higher level target. Hopefully this

Re: Using Ant commands in a batch file; having problem; ant exits

2006-10-24 Thread Steve Loughran
Res Pons wrote: Hi everyone I'm trying to run a batch file consisted of 3 or more lines below and cd into different build folders of different projects and run a specific ant target as listed below. But the problem is that after the first instance of ant is run successfully, the batch file ex

Re: mimemail question

2006-10-24 Thread Steve Loughran
Chun Ji wrote: I have set a mimemail target, in my build.xml file, which sends out the test results in a html format file. This morning, that target does not work any more. I believe it was our IT people that reset our mail server or port number during the weekend, which cause my target faiure. T

Re: antcall / depends

2006-10-24 Thread Peter Reilly
On 10/24/06, Markus M. May <[EMAIL PROTECTED]> wrote: So, after I did some restructuring (we throw out some depend-attributes on targets that get called via antcall) and after the recompilation of ANT the build runs fine, even with CruiseControl. The build was running, after the restructre, sm

Re: antcall / depends

2006-10-24 Thread Markus M. May
So, after I did some restructuring (we throw out some depend-attributes on targets that get called via antcall) and after the recompilation of ANT the build runs fine, even with CruiseControl. The build was running, after the restructre, smoothly, but when we run the build via CC we still got me

RE: "A zip file cannot include itself" though exclude

2006-10-24 Thread Lars Monsees
> > Lars Monsees wrote: >> Hello, >> >> I get the above mentioned error on building this target: >> >> > description="Create distributable file"> > destfile="${dist}/${zip.filename}"> > prefix="src"/> >> >>

Re: dynamic targets

2006-10-24 Thread Markus M. May
Hello Jacob, why don't you just import a common build file and define the common target there. Only when the target is not defined in the build file, the common target gets executed. R, Markus M. May Original-Nachricht Datum: Mon, 23 Oct 2006 22:28:35 -0500 Von: Jacob Kjome