From: "Rebhan, Gilbert" Date: 2007-02-07T19:28:03+09:00 Subject: Re: Parse csv similar file Hi, -----Original Message----- From: Brian Candler [mailto:B.Candler@pobox.com] Sent: Wednesday, February 07, 2007 10:41 AM To: ruby-talk ML Subject: Re: Parse csv similar file thanks Brian, works like a charm :-) i had to add the Extension .txt (this may be altered) to the filename and did it like that = require 'fileutils' SRCDIR="/path_to_src" DSTDIR="/path_to_dst" #EXT=".extension" EXT=".txt" def copy_ticket(filename, folder, ticket, user, date, time) srcdir = SRCDIR + File::SEPARATOR + folder dstdir = DSTDIR + File::SEPARATOR + ticket + File::SEPARATOR + folder filename=filename< task jruby gives no error, it just don't work, nothing happens ?! Possible workaround = i can create an executable via rubyscript2exe.rb and call that .exe in my antscript. But therefore the .exe has to accept the parameters SRCDIR, DSTDIR,EXT when calling it How to alter your class to achieve that ? Regards, Gilbert P.S. : i hope you are open for stupid questions here on the list ;-), as i'm quite new to ruby (used it some month but only for small purposes in ant scripts) , coming from java. -----Original Message----- From: Brian Candler [mailto:B.Candler@pobox.com] Sent: Wednesday, February 07, 2007 10:41 AM To: ruby-talk ML Subject: Re: Parse csv similar file