Re: Zip task doesn't create empty directories on Mac OSX

2004-10-13 Thread Antoine Levy-Lambert
Hello, In ant 1.6.2, there is a bug [1] preventing empty directories from being zipped. This bug is fixed in CVS on the ANT_16_BRANCH and on the main branch. Which means that you can use ant 1.6.1 or patch your ant 1.6.2 using the diffs [2] I would bet that you are using a different (maybe older

should have been SocketException -> Re: CopyStreamException on FTP task

2004-10-13 Thread Robert Koberg
[EMAIL PROTECTED] wrote: Robert, I had trouble with the ftp task a while ago. In my case however, I could use the scp task instead, which works very well. So if you should try to use the ssh copy (scp) task, your environment permitting of course. Yea :( I do that with my own servers, but the c

Re: CopyStreamException on FTP task

2004-10-13 Thread suma . bhat
Robert, I had trouble with the ftp task a while ago. In my case however, I could use the scp task instead, which works very well. So if you should try to use the ssh copy (scp) task, your environment permitting of course. Eg: Thanks, Suma "Robert

Zip task doesn't create empty directories on Mac OSX

2004-10-13 Thread Kelly Davis
For some reason the zip task is not consisten between platforms. When I zip up a directory with some empty directories under it, in Linux, the empty directories get included in the zip. When I run the same task on OSX, the empty directories are not created. -

CopyStreamException on FTP task

2004-10-13 Thread Robert Koberg
Hi, When executing the FTP task, I consistently get a SocketException: Connection reset I have no problem uploading the files with other FTP clients using the same host, username and password. This is going to a windows server (I have sent a request for the logs but I doubt the client knows ho

RE: flatten mapper for scp task?

2004-10-13 Thread Ivan Ivanov
Hello Robs, > > As far as I know, there are no plans to add this > feature. The scp task is not really a variant of the > copy task, although the do perform similar > functions. The scp task was created to duplicate the > features of command line scp. The feature you speak > of does not exist in

RE: flatten mapper for scp task?

2004-10-13 Thread Anderson, Rob (Global Trade)
> Are there plans > to enhance the scp task in this way? (It would make sense since scp is > basically a variant of the copy task, with the exception that scp is > primarily determined for copying files to remote machines.) As far as I know, there are no plans to add this feature. The scp task is

Re: flatten mapper for scp task?

2004-10-13 Thread Ivan Ivanov
--- Holger Rauch <[EMAIL PROTECTED]> wrote: > Hi Ivan! > > First of all, thanks a lot for your quick reply! > > I verified your suggestion and it works indeed. > Thanks a lot! > Nevertheless, I still think something like a > flatten="true" attribute or > a corresponding element could save a lo

Re: flatten mapper for scp task?

2004-10-13 Thread Holger Rauch
Hi Ivan! First of all, thanks a lot for your quick reply! On Wed, 13 Oct 2004, Ivan Ivanov wrote: > How about first copying the files to a temporary > directory and then scp'ing to the server and finally > deleting then from tmp: > [...] I verified your suggestion and it works indeed. Thanks a

setErrorPrintStream on DefaultLogger not working

2004-10-13 Thread Kelly Davis
I am using ant 1.6.2 doing a build through the api. I am creating an instance of DefaultLogger. When I call setErrorPrintStream to a file for output, and then have a build with a compile error in it, the error output doesn't go to the file, but to my console. Any ideas on why this may be happeni

Re: buildStarted & buildFinished events not happening

2004-10-13 Thread Stefan Bodewig
On Wed, 13 Oct 2004, Kelly Davis <[EMAIL PROTECTED]> wrote: > In that case, how do I find out if there were any exceptions during > the execution of the target? excuteTarget will throw it. Stefan - To unsubscribe, e-mail: [EMAIL

Re: buildStarted & buildFinished events not happening

2004-10-13 Thread Kelly Davis
In that case, how do I find out if there were any exceptions during the execution of the target? Stefan Bodewig wrote: On Tue, 12 Oct 2004, Kelly Davis <[EMAIL PROTECTED]> wrote: project.executeTarget( "build" ); For some reason the buildStarted & buildFinished methods never seem to get cal

Re: flatten mapper for scp task?

2004-10-13 Thread Ivan Ivanov
How about first copying the files to a temporary directory and then scp'ing to the server and finally deleting then from tmp: HTH Ivan --- Holger Rauch <[EMAIL PROTECTED]> wrote: > Hi! > > I'm using the scp task of Ant 1.6.2 in order to copy > some

flatten mapper for scp task?

2004-10-13 Thread Holger Rauch
Hi! I'm using the scp task of Ant 1.6.2 in order to copy some SQL scripts which are stored in various directories on the source system to a target system. On the target system, I want all .sql files to appear below a single directory. How can I achieve this if scp doesn't support neither nor

RE: Substring / regex on a package name?

2004-10-13 Thread Ivan Ivanov
Hi Ben, If it is possible for you, why don't you simply rename/refactor the name of your pages, using some IDE. Eclipse, IntelliJIdea do this quite decently as well as many others. If it is not possible to use an IDE, here are some basic steps (untested however): 1) Use ant task ReplaceRegExp[1] t

AW: Substring / regex on a package name?

2004-10-13 Thread Jan . Materne
Try the optional task. Jan > -Ursprüngliche Nachricht- > Von: Ben Gill [mailto:[EMAIL PROTECTED] > Gesendet am: Mittwoch, 13. Oktober 2004 12:35 > An: Ant Users List > Betreff: RE: Substring / regex on a package name? > > Thanks Ivan, that is great... > > Re: the repackage - move certa

RE: Substring / regex on a package name?

2004-10-13 Thread Ben Gill
Thanks Ivan, that is great... Re: the repackage - move certainly would be a start, but I was looking for a repackage task that would recurse from a point (ie. '.') and move all dirs/java sources/props files etc.. into a new package structure... Ie. From com.oldapp to com.newapp .. But also, I wo

AW: "ant init " command giving error

2004-10-13 Thread Jan . Materne
Missing the backslash before T in "E:\softwareTDK_2.3" Jan > -Ursprüngliche Nachricht- > Von: project member [mailto:[EMAIL PROTECTED] > Gesendet am: Mittwoch, 13. Oktober 2004 12:18 > An: [EMAIL PROTECTED] > Betreff: "ant init " command giving error > > hello all, > it would be great if

"ant init " command giving error

2004-10-13 Thread project member
hello all, it would be great if anyone could tell me why i am getting this exception when i run " ant init " E:\software\TDK_2.3\webapps\my_App\WEB-INF\build\build.xml:371: Basedir E:\softwareTDK_2.3 does not exist i have cheked environment variables ( i know if they were wrong i wouldnt hav

Re: Substring / regex on a package name?

2004-10-13 Thread Ivan Ivanov
Hello, > Hi, > > I have two questions: > > 1) I have a property called "com.myapp" within my > build.xml file (or at > least loaded in at runtime), and I want to strip off > everything past the > first dot (to get the base package name com)... > > Is that possible? You can use ant-contrib[1] t

Substring / regex on a package name?

2004-10-13 Thread Ben Gill
Hi, I have two questions: 1) I have a property called "com.myapp" within my build.xml file (or at least loaded in at runtime), and I want to strip off everything past the first dot (to get the base package name com)... Is that possible? 2) Is there a rename packages ANT task? Th

Re: buildStarted & buildFinished events not happening

2004-10-13 Thread Stefan Bodewig
On Tue, 12 Oct 2004, Kelly Davis <[EMAIL PROTECTED]> wrote: > project.executeTarget( "build" ); > > For some reason the buildStarted & buildFinished methods never seem > to get called, while the other methods do. Why might this be > happening? because executeTarget doesn't fire them. When y