RE: Uff VSS, hanging

2005-01-27 Thread Pritesh Saharey
No boss its not working, as I think vssget is trying to get the latest source code from local m/c, as I am failing to understand that how come VssGet task come's to know that it has to get the latest source from remote m/c untill and unless you supply some m/c name or its IP, beacuse I navigated

Why won't classfileset recurse?

2005-01-27 Thread Rhino
Does classfileset recurse to find dependencies of dependencies, even if they are in a different directory than the 'root' classname? I'm trying to use classfileset to build a jar for the first time but it doesn't seem to be recursing the way I expected. This is my target: Whe

Re: Echo: How to include a \t.

2005-01-27 Thread Nat Gross
Matt Benson wrote: --- Nat Gross <[EMAIL PROTECTED]> wrote: Hi; How can I embed a \t within an echo string? I tried to console and file, with and without message attribute, to no avail. I believe this is an XML thing. You might find an XML parser that would preserve a hard tab character i

taskdef failing when classpathref contains a non existent directo ry

2005-01-27 Thread Shatzer, Larry
Consider the following directory structure and build file: You have a build.xml in the root directory, with a directory named lib1 with the ant-contrib jar file found in there. Here is your build file:

Re: java task - invalid flag

2005-01-27 Thread Douglas Kramer
Thanks for your help. A comment below. Dominique Devienne wrote: -Original Message- From: Douglas Kramer [mailto:[EMAIL PROTECTED] Sent: Thursday, January 27, 2005 4:53 PM To: user@ant.apache.org Subject: Ant: java task - invalid flag The following java task fails with this error: javadoc:

Re: Echo: How to include a \t.

2005-01-27 Thread Matt Benson
--- Nat Gross <[EMAIL PROTECTED]> wrote: > Hi; > How can I embed a \t within an echo string? > I tried to console and file, with and without > message attribute, to no > avail. I believe this is an XML thing. You might find an XML parser that would preserve a hard tab character in a buildfile,

RE: retrive value in listener

2005-01-27 Thread Dominique Devienne
You don't do that. A listener listens to what tasks print or log, and takes that string and meta-data about where it's coming from, to decide what to do with it. It has no business introspecting the event's source Task or Type for its attributes or nested elements, even if it can be done. Anyways.

Re: Ant: java task - invalid flag

2005-01-27 Thread Matt Benson
--- Douglas Kramer <[EMAIL PROTECTED]> wrote: > Instant success!! Thank you. > > Any explanation for why the anomaly that > cannot contain a value > space-separated parameters, contrary to the > documentation: > >value a single command-line argument; can > contain space characters. > >

retrive value in listener

2005-01-27 Thread Radha Sangal
This might not be specific to ant, but if someone has implemented this , how do we retrieve a value from the custom task made in listener Eg. In xml : In listener: something similar to this , this one doesn't work ... public void messageLogged( BuildEvent event ) {

Re: Ant: java task - invalid flag

2005-01-27 Thread Douglas Kramer
Instant success!! Thank you. Any explanation for why the anomaly that cannot contain a value space-separated parameters, contrary to the documentation: value a single command-line argument; can contain space characters. Perhaps because Ant thinks it is an argument to java, not javadoc? -Doug

RE: up-to-date-ness and cmd-line args

2005-01-27 Thread Panchal, Archanaa
Hi, Thanks for this. I used it for the first time to do a task I had been doing for over 2 months now. The output was very interesting... Archie -Original Message- From: Dominique Devienne [mailto:[EMAIL PROTECTED] Sent: Thursday, January 27, 2005 6:03 PM To: Ant Users List Subject: RE

RE: java task - invalid flag

2005-01-27 Thread Dominique Devienne
> -Original Message- > From: Douglas Kramer [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 27, 2005 4:53 PM > To: user@ant.apache.org > Subject: Ant: java task - invalid flag > > The following java task fails with this error: > > javadoc: error - invalid flag: -doclet > com.sun.tools

RE: up-to-date-ness and cmd-line args

2005-01-27 Thread Dominique Devienne
Turn on -verbose or -debug, and study the output when it's scanning for the files. Fileset works like this by design... Most things in Ant revolve around fileset, so you'd better understand it cold ;-) Study it's doc. If you want absolute paths, use a instead (with nested ) and that, but won't

Re: up-to-date-ness and cmd-line args

2005-01-27 Thread michael sorens
I'll check on that... in order to do that, however, how can I dump what is in the fileset (for debugging) ? And why do absolute paths not work? That seems like an odd restriction... On Thu, 27 Jan 2005 16:27:53 -0600, Dominique Devienne <[EMAIL PROTECTED]> wrote: From: michael sorens [mailto:[EM

Re: Ant: java task - invalid flag

2005-01-27 Thread Matt Benson
--- Douglas Kramer <[EMAIL PROTECTED]> wrote: > The following java task fails with this error: > > javadoc: error - invalid flag: -doclet > com.sun.tools.doclets.formats.mif.MIFDoclet > > which is a perfectly valid option for javadoc. [SNIP] > > Could something be wrong with the > lines? > Ca

Echo: How to include a \t.

2005-01-27 Thread Nat Gross
Hi; How can I embed a \t within an echo string? I tried to console and file, with and without message attribute, to no avail. Thanks, -nat - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

Re: Question about depend task

2005-01-27 Thread Rhino
Dominique, Thanks for replying. Actually, I *thought* classfileset was the right approach too but when I ran it, it only gave me the immediate dependencies and wouldn't recurse any further; my immediate dependencies have many dependencies of their own. I sent a question about that a few minutes b

Re: list from text file?

2005-01-27 Thread Nat Gross
Thanks, it works great. -nat Matt Benson wrote: (um, he wrote quite a bit!) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Ant: java task - invalid flag

2005-01-27 Thread Douglas Kramer
The following java task fails with this error: javadoc: error - invalid flag: -doclet com.sun.tools.doclets.formats.mif.MIFDoclet which is a perfectly valid option for javadoc. Notice java calls javadoc Main, which then

RE: problem with accesing listeners

2005-01-27 Thread Dominique Devienne
Hmm Hmm... After -listener, there should be a class *name* (just MyBuildListener is its source doesn't have a package declaration, or .MyBuildListener if it does), *NOT* a class *file name*. Please read my previous message carefully ;-) --DD > -Original Message- > From: Radha Sangal [mai

RE: Question about depend task

2005-01-27 Thread Dominique Devienne
> From: Rhino [mailto:[EMAIL PROTECTED] > > I've been looking at the 'depend' task and wonder if I can use it to > determine all of the dependencies that a given class has - INCLUDING the > dependents of the dependents of the dependents, etc. NOT JUST the first > generation dependents. > > Unfort

RE: problem with accesing listeners

2005-01-27 Thread Radha Sangal
I did that , see .. C:\EclipsePRWorkspace\LogDatabase>echo %CLASSPATH% c:\EclipsePRWorkspace\LogDatabase\bin I have MyBuildListener.class in that dir Still the error !! ;-(( -Original Message- From: Dominique Devienne [mailto:[EMAIL PROTECTED] Sent: Thursday, January 27, 2005 5:42 PM To

Question about depend task

2005-01-27 Thread Rhino
I've been looking at the 'depend' task and wonder if I can use it to determine all of the dependencies that a given class has - INCLUDING the dependents of the dependents of the dependents, etc. NOT JUST the first generation dependents. Unfortunately, the manual article about 'depend' is more conf

RE: problem with accesing listeners

2005-01-27 Thread Dominique Devienne
> From: Radha Sangal [mailto:[EMAIL PROTECTED] > > This should be easy. I am trying to add my listener class > MyBuildListener but ant doesn't seem to find it. I tried giving complete > paths but still getting same error. This is like some classpath issue ? > > I m following this tutorial > http:

problem with accesing listeners

2005-01-27 Thread Radha Sangal
This should be easy. I am trying to add my listener class MyBuildListener but ant doesn't seem to find it. I tried giving complete paths but still getting same error. This is like some classpath issue ? I m following this tutorial http://www.onjava.com/pub/a/onjava/2001/02/22/open_source.html?

Problem with classfileset

2005-01-27 Thread Rhino
I'm trying to use classfileset to build a jar for the first time but it doesn't seem to be recursing the way I expected. This is my target: When I run it, the jar contains only three class files (and a manifest): mydomain.foo.Foo.class mydomain.foo.FooConstants.class mydomain

RE: up-to-date-ness and cmd-line args

2005-01-27 Thread Dominique Devienne
> From: michael sorens [mailto:[EMAIL PROTECTED] > > I had an open question on this issue several days ago for which no one has > taken up the gauntlet. Well, in fact I did answer... > To make it very brief, I want to use a set of files in two places: inside > an checker, > and as s to a task.

Re: up-to-date-ness and cmd-line args

2005-01-27 Thread michael sorens
I had an open question on this issue several days ago for which no one has taken up the gauntlet. To make it very brief, I want to use a set of files in two places: inside an checker, and as s to a task. The build file fragment shown here works for the check, but the js.plain.files property c

Re: list from text file?

2005-01-27 Thread Nat Gross
Matt Benson wrote: --- Nat Gross <[EMAIL PROTECTED]> wrote: ? How is that? I don't have a property style file to load. DD didn't mean loadproperties, he meant loadfile. Oh. ok. [scurrying off to explore loadfile.] Say I have a 'myFile.txt" as follows. -- This is line 1 of

Re: list from text file?

2005-01-27 Thread Matt Benson
--- Nat Gross <[EMAIL PROTECTED]> wrote: > ? How is that? I don't have a > property style file to load. DD didn't mean loadproperties, he meant loadfile. > Say I have a 'myFile.txt" as follows. > -- > This is line 1 of the file. > This is another line. > This is the last line of myFile S

Re: list from text file?

2005-01-27 Thread Nat Gross
Dominique Devienne wrote: From: Nat Gross [mailto:[EMAIL PROTECTED] Hi; In a loop, instead of "list=a,b,c,d,", I would like to get a,b,c,d from a text file, with each element on its own line. (Something like list=file:myFile.txt.) Can it be done? Yes. Simply load the file into a prope

RE: list from text file?

2005-01-27 Thread Matt Benson
--- Dominique Devienne <[EMAIL PROTECTED]> wrote: > > From: Nat Gross > [mailto:[EMAIL PROTECTED] > > > > Hi; > > In a loop, instead of "list=a,b,c,d,", I > would like to get > a,b,c,d > > from a text file, with each element on its own > line. > > (Something like list=file:myFile.txt.) > > Can i

RE: list from text file?

2005-01-27 Thread Dominique Devienne
> From: Nat Gross [mailto:[EMAIL PROTECTED] > > Hi; > In a loop, instead of "list=a,b,c,d,", I would like to get a,b,c,d > from a text file, with each element on its own line. > (Something like list=file:myFile.txt.) > Can it be done? Yes. Simply load the file into a property first, using . --DD

list from text file?

2005-01-27 Thread Nat Gross
Hi; In a loop, instead of "list=a,b,c,d,", I would like to get a,b,c,d from a text file, with each element on its own line. (Something like list=file:myFile.txt.) Can it be done? Thanks -nat - To unsubscribe, e-mail: [EMAIL PROT

Re: AW: Last element of current directory name.

2005-01-27 Thread Nat Gross
Thank you much. -nat [EMAIL PROTECTED] wrote: With Ant 1.6 I would write a scriptdef doing the upper-/lowercase. Jan

Re: perform operations on two databases simultaneously?

2005-01-27 Thread galenboyerdev
Maciej Zywno <[EMAIL PROTECTED]> writes: > Parallel task is used to perform operations that are independent, right? They perform task in parallel. If they are independent is up to you. > In an sql task I specify a connection to one database. However I would > like to run sql that let's say copy

RE: Writing filelists to a file?

2005-01-27 Thread Dominique Devienne
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Lukas Bradley > > Thank you for the help. The following works correctly: > > >${toString:class-list} Be advised that the ${toString:referenceId} construct is experimental, and may be removed in the future. Better to use: ${class-lis

Re: Writing filelists to a file?

2005-01-27 Thread Lukas Bradley
Thank you for the help. The following works correctly: ${toString:class-list} - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Last element of current directory name.

2005-01-27 Thread Dave Bartmess
It might be simpler, and probably less problematic, to create a new ant task and use it instead of the javascript. I've had nothing but problems with using javascript, the least of which is getting all the dependencies correctly installed. Try this: * MyProperty.java package

AW: Last element of current directory name.

2005-01-27 Thread Jan . Materne
With Ant 1.6 I would write a scriptdef doing the upper-/lowercase. Jan > -

Re: Writing filelists to a file?

2005-01-27 Thread Lukas Bradley
Is it possible to write a filelist to a text file? Should be no problem using the pathconvert and echo tasks. Thanks Matt, I had no idea echo could write to a file. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

Re: Last element of current directory name.

2005-01-27 Thread Stefan Bodewig
On Thu, 27 Jan 2005, michael sorens <[EMAIL PROTECTED]> wrote: > Is there another library I am missing...? No, just caught in a versioning nightmare. (1) Ant 1.6.x will need Apache BSF, not IBM's. (2) The only release of Apache BSF so far (a release candidate, actually) will not work with th

RE: Writing filelists to a file?

2005-01-27 Thread Matt Benson
--- Dominique Devienne <[EMAIL PROTECTED]> wrote: [SNIP] > Hmmm, aren't you confusing and ? > > I haven't used much, but it's files > attributes is supposed to > be a comma separated list of files that must exists, > not patterns like > *.class. :) I didn't even look at the attributes to see t

Re: Last element of current directory name.

2005-01-27 Thread michael sorens
I tried your JavaScript example; after adding bsf.jar and js.jar to my ant/lib directory, I still had this runtime error: java.lang.NoSuchMethodError: org.mozilla.javascript.Context.getDebuggableEngine()Lorg/mozilla/javascript/debug/DebuggableEngine; This was the piece of JavaScript in question:

RE: Writing filelists to a file?

2005-01-27 Thread Dominique Devienne
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Lukas Bradley > > Is it possible to write a filelist to a text file? Given the following: > > > > Is there presently a way to write all those file paths to some other > text file? > > Seems like an easy request; I was just hoping somethi

Re: Writing filelists to a file?

2005-01-27 Thread Matt Benson
--- Lukas Bradley <[EMAIL PROTECTED]> wrote: > Is it possible to write a filelist to a text file? Should be no problem using the pathconvert and echo tasks. -Matt __ Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more. http:/

Writing filelists to a file?

2005-01-27 Thread Lukas Bradley
Is it possible to write a filelist to a text file? Given the following: Is there presently a way to write all those file paths to some other text file? Seems like an easy request; I was just hoping something existed so I wouldn't have to write my own taskdef. -

AW: AW: How to copy from one remote directory to another remote d irec tory?

2005-01-27 Thread Jan . Materne
O-k-a-y - that´s a point. Comparable with starting the build via a mobile phone :) Your basic idea is "let remote1 copy the files to remote2". The only way to instruct remote1 is via the shell commands (telnet, ssh, ...). So I suggest using . Jan > -Ursprüngliche Nachricht- > Von: Dave

Re: AW: How to copy from one remote directory to another remote direc tory?

2005-01-27 Thread Dave Bartmess
Sorry should have mentioned that because of the size of the transfers (over 50Megs each time) I can't copy from remote to local, then back again... It would take > 1 hour for the build, vs 20 minutes without it. The remote site is across the continent, and we're trying to avoid massive transfers du

RE: Uff VSS, hanging

2005-01-27 Thread Velagapudi, Murali
This may happen when you give the wrong login,password,re-check that once again (case-sensitivity etc) and also try by mapping your \\intell59\C\Program Files\Microsoft Visual Studio\Common\VSS to x: drive and keep the value as serverPath="x:\" and make sure you connect to that dirve before y

AW: How to copy from one remote directory to another remote direc tory?

2005-01-27 Thread Jan . Materne
copy from remote1 to local copy from local to remote2 delete from local But why no ssh? You could place the copy statement via . Jan > -Ursprüngliche Nachricht- > Von: Dave Bartmess [mailto:[EMAIL PROTECTED] > Gesendet am: Donnerstag, 27. Januar 2005 15:24 > An: user@ant.apache.org > Be

How to copy from one remote directory to another remote directory?

2005-01-27 Thread Dave Bartmess
I see in the ant tasks that scp and ftp are available, but they only copy from a local source to a remote destination. I'm trying to copy files between two remote directories, and not finding any tasks to do that. I know I can use ssh, but I'm trying to avoid that one for security purposes. I c

Re: perform operations on two databases simultaneously?

2005-01-27 Thread Maciej Zywno
Parallel task is used to perform operations that are independent, right? In an sql task I specify a connection to one database. However I would like to run sql that let's say copy data from a table in one database to a table to another database on the same database server. Can anyone help? On Th

Re: perform operations on two databases simultaneously?

2005-01-27 Thread Maciej Zywno
thanks! On Thu, 27 Jan 2005 08:12:31 -0500, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Maciej Zywno <[EMAIL PROTECTED]> writes: > > > Hi all, > > > > Is it possible to perform operations on two databases simultaneously > > by means of Ant? > > There is the parallel task as well as the sql t

Re: perform operations on two databases simultaneously?

2005-01-27 Thread galenboyerdev
Maciej Zywno <[EMAIL PROTECTED]> writes: > Hi all, > > Is it possible to perform operations on two databases simultaneously > by means of Ant? There is the parallel task as well as the sql task, so yes. > I would like to schedule nightly denormalization of one database and > put it denormalized

AW: include source with jar

2005-01-27 Thread Jan . Materne
does not include source files nor class files. It includes only files :-) So you have to specify where the sources are. Jan > -Ursprüngliche Nachricht- > Von: THUFIR HAWAT [mailto:[EMAIL PROTECTED] > Gesendet am: Donnerstag, 27. Januar 2005 13:26 > An: user@

include source with jar

2005-01-27 Thread THUFIR HAWAT
I'd like to change the .jar file created to include all the source code, but can't find the syntax. How do I do that, pls?

perform operations on two databases simultaneously?

2005-01-27 Thread Maciej Zywno
Hi all, Is it possible to perform operations on two databases simultaneously by means of Ant? I would like to schedule nightly denormalization of one database and put it denormalized form into the second database. I would like to use cruisecontrol that triggers ant task at certain moments. Is it

Uff VSS, hanging

2005-01-27 Thread Pritesh Saharey
Hi All I am trying to get latest code from VSS but it hangs after Username, this is what Iam doing Console output: C:\downloads\take>ant build.xml Buildfile: build.xml vssget-source: [vssget] Username: login After this nothing happans, I also gone through h

RE: putting value in txtfile

2005-01-27 Thread Rebhan, Gilbert
Hi, Matt thx for your suggestion! Well, the txtfile i have to alter has actually >40 lines so with your solution i would have a lot of And there's also another detail i forgot to mention. The pattern 'bla' exists 2 times in that txtfile. the first match is ... bla 1234 ... and some lines be