Re: Updating jar fails

2005-08-25 Thread Gad Abraham
Stefan Bodewig wrote: > On Fri, 19 Aug 2005, Gad Abraham <[EMAIL PROTECTED]> wrote: > > >> >> >> >> >> >update="true" >> includes="dest/e3/e30.class" /> >> > > > I don't see a basedir attribute on the jar task, where does it point > to? I've tried both with and without

ANT 1.5.1 and 1.6.1 delete task problem

2005-08-25 Thread koden (sent by Nabble.com)
When running the delete task on ANT 1.5.1 I get a Unable to delete error, but on 1.6.1 I can delete. It has something to do with my remoteant task as well. The below code works on 1.6.1 fine, but on 1.5.1 it won't work. I'm testing this on localhost, could that be one of the problems?

RE: sql task sp_dboptions problem

2005-08-25 Thread RADEMAKERS Tanguy
hth since you (probably) don't want to overwrite your file each time, also take a look at using the task with the various filtering possibilities. It's the same (basic) idea, but instead of doing something like "first copy the base file, then use replace to specialize the copy" you wind up with

Re: Another simple one perhaps: zip tasl

2005-08-25 Thread Frank W. Zammetti
I am *SO* hating myself right now. ;) Thank you Jeff, perfect! -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Thu, August 25, 2005 3:47 pm, Jeffrey E Care said: > basedir="${ddir}"> > > > > -- > Jeffrey E. Care ([EMAIL PROTECTE

Re: ReplaceRegExp with windows filenames

2005-08-25 Thread Neil Benn
Hello, Thanks for the responses Gilbert and Andrew, a concise description of the issue I have is that I have a section such as : 1 = ,"DropPaqEtc",,"C:\Documents and Settings\Neil Benn\My Documents\svnfiles\trunk\DropPaq\installer\CE" ; The etc directory which contains all image and th

Re: Another simple one perhaps: zip tasl

2005-08-25 Thread Jeffrey E Care
-- Jeffrey E. Care ([EMAIL PROTECTED]) WebSphere v7 Release Engineer WebSphere Build Tooling Lead (Project Mantis) "Frank W. Zammetti" <[EMAIL PROTECTED]> wrote on 08/25/2005 03:38:07 PM: > I'll probably feel silly after this one to, but here goes... > > I'm trying to use the task, and

Another simple one perhaps: zip tasl

2005-08-25 Thread Frank W. Zammetti
I'll probably feel silly after this one to, but here goes... I'm trying to use the task, and I've done this: This works fine, I get a file named project_v6_beta_bin.zip out (v6_beta is the value of project_version_filename). Here's the problem... what I want to happen is when this archive is

RE: sql task sp_dboptions problem

2005-08-25 Thread Rizwan Merchant
Hmmm...that looks like a good idea. Thanks... -Original Message- From: RADEMAKERS Tanguy [mailto:[EMAIL PROTECTED] Sent: Thursday, August 25, 2005 3:06 PM To: Ant Users List Subject: RE: sql task sp_dboptions problem we... (more than one way to skin a cat) if the cleanD

Re: Copy task that excludes directories

2005-08-25 Thread Frank W. Zammetti
Ugh. That did it. I wish it was something more complex so I didn't have to feel so stupid right now :( Thank you Alexey! -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Thu, August 25, 2005 3:20 pm, Alexey N. Solofnenko said: > You need

Re: Copy task that excludes directories

2005-08-25 Thread Alexey N. Solofnenko
You need to put a slash at the end. For example: name="WEB-INF/src/" - Alexey. Frank W. Zammetti wrote: Hi all, I'm trying to set up a task that will copy an entire directory tree starting at a given root directory, but which will EXCLUDE certain directories in the tree. I started with the en

Copy task that excludes directories

2005-08-25 Thread Frank W. Zammetti
Hi all, I'm trying to set up a task that will copy an entire directory tree starting at a given root directory, but which will EXCLUDE certain directories in the tree. I started with the entire copy: Basically, I'm trying to exclude a single directory: src in WEB-

RE: sql task sp_dboptions problem

2005-08-25 Thread RADEMAKERS Tanguy
we... (more than one way to skin a cat) if the cleanDB.sql file has db-specific references, you could "specialize" this file before running it using the task. that would work if we're talking about changing names... it could be made to work if we're talking about selectively exec

RE: sql task sp_dboptions problem

2005-08-25 Thread Rizwan Merchant
I don't think so, because the cleanDB.sql file still refers to a specific database. What I want to do is somehow pass a parameter to the cleanDB.sql file so that the file can be generic. -Original Message- From: RADEMAKERS Tanguy [mailto:[EMAIL PROTECTED] Sent: Thursday, August 25, 2005

RE: sql task sp_dboptions problem

2005-08-25 Thread RADEMAKERS Tanguy
wouldn't this work? >-Original Message- >From: Moran Ben-David [mailto:[EMAIL PROTECTED] >Sent: Thursday, August 25, 2005 8:43 PM >To: 'Ant Users List' >Subject: RE: sql task sp_dboptions problem > >Sorry Razwan, > >I am not familiar with the task enough to help you on >that. Howeve

RE: sql task sp_dboptions problem

2005-08-25 Thread Rizwan Merchant
Thanks Moran, I thought of that but I have around 1 lines of sql script that I need to run :) would be tough maintaining the ant script if I embed the sql script inside it. I am not sure, but I am thinking I can use the exec command instead to call the sql function with arguments... -Ori

RE: sql task sp_dboptions problem

2005-08-25 Thread Moran Ben-David
Sorry Razwan, I am not familiar with the task enough to help you on that. However, one thing I can suggest is that instead of using the tasks' "src" attribute, you put the sql from cleanDB.sql in you're ant file as such: -- example code from cleanDB.sql DROP DATABASE ${the.da

Could not create task or type of type: telnet.

2005-08-25 Thread koden (sent by Nabble.com)
I get this error when using the telnet task: Could not create task or type of type: telnet. I have both the updated jakarta-oro-2.0.8 and the commons-net-1.4.0 jars in my ANT\lib directory, and my ANT\lib directory is added as an environment variable. What else do I need to get this to work?

[url] Have an (fish)eye on ant ;-)

2005-08-25 Thread Gilbert Rebhan
Hi, in case you don't already know = http://fisheye.cenqua.com/ especially = http://fisheye.cenqua.com/viewrep/ant bye4now, Gilbert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

RE: sql task sp_dboptions problem

2005-08-25 Thread Rizwan Merchant
Hi Moran, Thanks for the suggestion. I set autocommit to true and it works fine now. I had posted another question about sql task but didn't get a response yet. Please can you have a quick look to see if you have any suggestions? I have attached the question below...thanks for all your help. Appr

RE: sql task sp_dboptions problem

2005-08-25 Thread Moran Ben-David
Sounds like you're issue is with the SQL Server connection properties. Query Analyzer tends to have different defaults for the connection settings than your Ant initiated connections. Look up the error in a sql site like "www.sqlmag.com", I'm sure there will be an explanation like set AutoCommit o

sql task sp_dboptions problem

2005-08-25 Thread Rizwan Merchant
Hi, I am trying to run an sql task which contains the following command exec sp_dboption N'on_develop', N'autoclose', N'false' I can run this command from SQL Query Analyzer without any problems, but when I try to run this via ant sql task I get the following error: [sql] Failed to exe

Re: Referencing External .class Files In Classpath

2005-08-25 Thread Stephen Morrison
On 25 Aug 2005, at 15:41, Petar Tahchiev wrote: On 25/08/05, Stephen Morrison <[EMAIL PROTECTED]> wrote: On 25 Aug 2005, at 07:07, Petar Tahchiev wrote: On 24/08/05, Stephen Morrison <[EMAIL PROTECTED]> wrote: On 24 Aug 2005, at 16:56, Petar Tahchiev wrote: On 24/08/05, Stephen Morris

Re: Test

2005-08-25 Thread Ondrej Svetlik
This list is probably moderated, so a post from unregistered address must be approved by it's moderator. That's why it can take a long time. -oxs Bill Rich wrote: I sometimes have this problem when I post from an email account that is not the one I used to register on the listserv. Many times

RE: Adding to the ant classpath from within a project

2005-08-25 Thread Nestor Dutko
I was wrong, this did not work as expected - I had JAVA_HOME pointing to a non 1.2 JDK. Can anyone see what is wrong with the attached and why the regexp.jar was not found and added? If I set this exact same path as the CLASSPATH value before invoking ant, it works. Is the class being interprette

moving folders under a folder

2005-08-25 Thread Taner Diler
Hi, I have folder structure like that ROOTFOLDER | -> OLD_FOLDERS | ->FOLDER_1 ->FOLDER_2 -> ... ->FOLDER_N . I want to write a target that moves FOLDER_1, FOLDER_2,...,FOLDER_N under OLD_FOLDERS folder. I wrote

RE: Test

2005-08-25 Thread Bill Rich
I sometimes have this problem when I post from an email account that is not the one I used to register on the listserv. Many times it takes a day or so to get my post back. HTH Bill -Original Message- From: Petar Tahchiev [mailto:[EMAIL PROTECTED] Sent: Thursday, August 25, 2005 7:43 AM

RE: how can I change value of property in runtime?

2005-08-25 Thread Bill Rich
I think part of the answer to this question is another question - why do you need to change the value of the property? In Ant properties are immutable. The targets are rule based which implies that all rules have an equal chance of firing based on the conditions at the time of evaluation. Can you

Re: Test

2005-08-25 Thread Petar Tahchiev
On 25/08/05, Dick, Brian E. <[EMAIL PROTECTED]> wrote: > > Sorry about this message, but I am having some kind of problem with > posting messages to this listserv. I am getting messages posted by > others, but I am not seeing my own messages being posted. > > Later, > BEDick I have the same "pr

Re: Referencing External .class Files In Classpath

2005-08-25 Thread Petar Tahchiev
On 25/08/05, Stephen Morrison <[EMAIL PROTECTED]> wrote: > > > On 25 Aug 2005, at 07:07, Petar Tahchiev wrote: > > > On 24/08/05, Stephen Morrison <[EMAIL PROTECTED]> wrote: > >> > >> > >> On 24 Aug 2005, at 16:56, Petar Tahchiev wrote: > >> > >>> On 24/08/05, Stephen Morrison <[EMAIL PROTECTED]

Re: Referencing External .class Files In Classpath

2005-08-25 Thread Stephen Morrison
On 25 Aug 2005, at 07:07, Petar Tahchiev wrote: On 24/08/05, Stephen Morrison <[EMAIL PROTECTED]> wrote: On 24 Aug 2005, at 16:56, Petar Tahchiev wrote: On 24/08/05, Stephen Morrison <[EMAIL PROTECTED]> wrote: On 24 Aug 2005, at 16:20, Petar Tahchiev wrote: On 24/08/05, Stephen Morris

Test

2005-08-25 Thread Dick, Brian E.
Sorry about this message, but I am having some kind of problem with posting messages to this listserv. I am getting messages posted by others, but I am not seeing my own messages being posted. Later, BEDick

Does failonerror="false" not work then?

2005-08-25 Thread Robin Darby
Hello, Does failonerror="false" not work for symlink then ("file exists" breaks the rule)? i.e. resource="${conf}/forms/search.xml" failonerror="false"/> [symlink] ln -s /export/home/www/instantweb_modules/search/ search_1.0/conf/forms/search.xml /apps/home/www/instantweb/docroot/ a

Re: how can I change value of property in runtime?

2005-08-25 Thread Ondrej Svetlik
Hello, cannot change property value, try to use from ant-contrib instead. Best regards, O. Svetlik Taner Diler wrote: Hi, I have a problem with properties that defined in xml. I'm reading a property (has "test-0" value) from properties file and I try to change its value by using ' '.

how can I change value of property in runtime?

2005-08-25 Thread Taner Diler
Hi, I have a problem with properties that defined in xml. I'm reading a property (has "test-0" value) from properties file and I try to change its value by using ' '. when I display value of the property by using echo, "test-0" is still being displayed. How can I change value of the proper

AW: Error from ftp chmod action

2005-08-25 Thread Rüegsegger Martin
Hi Below you find an example of a file ftp upload with simultanenous modification of file attributes. I remember that I had some problems getting this far. I think that it may be important to use numbers (e.g 775) for the umask instead of something like "u+x". If your "deployment files" are up

Re: Is it possible to get the CPU usage and memory usage from JAVA?

2005-08-25 Thread Yves Martin
James Mao <[EMAIL PROTECTED]> writes: > Anyone know how to get the CPU usage and meory usage for a specified command > line from JAVA? I do not understand your question. Do you want to monitor CPU and memory of a JVM or of any other running process ? (the process initiated by your command l

Is it possible to get the CPU usage and memory usage from JAVA?

2005-08-25 Thread James Mao
Hi , Anyone know how to get the CPU usage and meory usage for a specified command line from JAVA? Cheers, James. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How to Echo a file contents?

2005-08-25 Thread Patrick Martin
You can also use concat (avoids out of memory errors with big files). On 8/24/05, Jeffrey E Care <[EMAIL PROTECTED]> wrote: > Load the file into a property with , then the property > value. > > -- > Jeffrey E. Care ([EMAIL PROTECTED]) > WebSphere v7 Release Engineer > WebSphere Build Tooling Lea