XPath functions in ANT scripts

2004-11-18 Thread Sanjeev_Das
Hi All, Can I use XPath functions in ANT scripts, if yes how? Any examples. Regards, Sanjeev - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Is there a way to turn of javadoc warnings

2004-11-18 Thread Hanousek, Roman
Hi Below is the javadocs task we are using. Is it possible to turn the javadocs warnings of completely so they are not generated. Or if any one know how to stop cruisecontol from picking them up. This is the task we are using: ---

Re: Find value between xml tags

2004-11-18 Thread Brian Agnew
I'd suggest using xmltask ( http://www.oopsconsultancy.com/software/xmltask ) to do XML replacement. It'll handle the below with appropriate XPath expressions. e.g. see starts-with() in http://www.w3schools.com/xpath/xpath_functions.asp although I'd suggest reforming your XML if possible to some

Re: AW: name of running target

2004-11-18 Thread Jeffrey E Care
<[EMAIL PROTECTED]> wrote on 11/18/2004 01:44:01 PM: > Still using the project-object revealed another question: > "The field ProjectComponent.project is deprecated" says my compiler. > What should be used instead? > > I couldn't find any documentation on this issue. Please comment if this > shou

Re: AW: name of running target

2004-11-18 Thread lists
Thank you. I cannot find any entries for scriptdef- or script-task. It seems to be missing that information. However, I have helped myself by writing myself a task in Java that uses project.getOwningTarget() to set a user property: project.setUserProperty("currenttarget", this.getOwningTarget().t

RE: How to access files from Clear case

2004-11-18 Thread Zafarano, Marcus
In the docs under optional tasks. -Original Message- From: Sanjeev_Das [mailto:[EMAIL PROTECTED] Sent: Thursday, November 18, 2004 4:42 AM To: [EMAIL PROTECTED] Subject: How to access files from Clear case Hi All, I was using VSS until now. In that case I used to use the task to acce

Re: AW: name of running target

2004-11-18 Thread Peter Reilly
Check: http://ant.apache.org/manual/install.html#librarydependencies for bsf and rhino (javascript) - note in particular that the required rhino version is *not* the most recent one. Peter [EMAIL PROTECTED] wrote: Thank you Jan, That looks very cool. But I have a problem running it: Some jars are m

Re: jboss tmp directory

2004-11-18 Thread Machiel Groeneveld
I want to quickly redeploy my jps's so I don't have to wait 30 seconds for my application to redeploy just to fix a typo. Charles Hudak wrote: You shouldn't be copying anything to these directories in Jboss. Jboss creates these directories when it deploys your application. All you need to do is

RE: jboss tmp directory

2004-11-18 Thread Charles Hudak
You shouldn't be copying anything to these directories in Jboss. Jboss creates these directories when it deploys your application. All you need to do is redeploy your application and jboss will recreate these directories as needed. -Original Message- From: Machiel Groeneveld [mailto:[

jboss tmp directory

2004-11-18 Thread Machiel Groeneveld
Hi, I'm trying to copy files to multiple directories. The problem is that I don't know their names beforehand. There are always few dirs (for example tmp26155appname, tmp96125appname) to all of which I want to copy my files. The case is copying my jsp files to the tmp directories in jboss. Som

AW: Find value between xml tags

2004-11-18 Thread Jan . Materne
You can use the task, because xml files are (more or less) simple text files. But could also have a look at the external xml tasks [1,2]. Another thing is thinking about your process. WHY do you have to modify that file? Maybe it would be easier to provide a template and use variable parts in tha

Re: Find value between xml tags

2004-11-18 Thread jfuller
"Sanjeev_Das" <[EMAIL PROTECTED]> wrote .. > > Hi All, > > I need to find out the value present in between the xml tags. Is there > any specific task in Ant to do so? If not can anyone suggest a > workaround. you could use antcontrib's regular expression capabilities in its propertyregex task..

Find value between xml tags

2004-11-18 Thread Sanjeev_Das
I have to search & replace values of certain parameters in a XML file. These values i'm reading from a different file. for ex. My XML is like this: abc ="123" xyz ="987" Now i want to change the value of abc from "123" to "345" so, any pointers of doing it in ANT. Regar

AW: Find value between xml tags

2004-11-18 Thread Jan . Materne
Dont know what you mean. Can you give an example? There are several tasks for accessing xml: , , the xml task (see external page) Jan > -Ursprüngliche Nachricht- > Von: Sanjeev_Das [mailto:[EMAIL PROTECTED] > Gesendet am: Donnerstag, 18. November 2004 14:21 > An: [EMAIL PROTECTED] > Betre

Re: How to access files from Clear case

2004-11-18 Thread jfuller
"Sanjeev_Das" <[EMAIL PROTECTED]> wrote .. > > Hi All, > > I was using VSS until now. In that case I used to use the task > to access the files from VSS. Now that I am shifting to Clear Case, I > don't know what commands to use to access the files. Would appreciate > any kind of help regarding w

Find value between xml tags

2004-11-18 Thread Sanjeev_Das
Hi All, I need to find out the value present in between the xml tags. Is there any specific task in Ant to do so? If not can anyone suggest a workaround. Regards, Sanjeev - To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

AW: Writing java.home to file

2004-11-18 Thread Jan . Materne
Jan > -Ursprüngliche Nachricht- > Von: Thomas Saxtoft [mailto:[EMAIL PROTECTED] > Gesendet am: Donnerstag, 18. November 2004 14:08 > An: Ant Users List > Betreff: RE: Writing java.home to file > > Well, for me it works that way as well. I had not tried before. > But my problem pe

RE: Writing java.home to file

2004-11-18 Thread Thomas Saxtoft
Well, for me it works that way as well. I had not tried before. But my problem persists, and what I left out in my former e-mail was that I am using the replaceregexp task. So it must be the replaceregexp task that gives me the problem. I do the following: So the thing is that I probabl

AW: name of running target

2004-11-18 Thread lists
Thank you Jan, That looks very cool. But I have a problem running it: Some jars are missing in my path and I don't know which. Do you know whicch external jars the scriptdef-task depends on? thanks, jacques ___ >Would that be ok? > > > > > > > > > > > > > >

How to access files from Clear case

2004-11-18 Thread Sanjeev_Das
Hi All, I was using VSS until now. In that case I used to use the task to access the files from VSS. Now that I am shifting to Clear Case, I don't know what commands to use to access the files. Would appreciate any kind of help regarding what commands/tasks to use for clear case. Regards, Sanje

Re: Escapign backslash in java.home

2004-11-18 Thread Peter Reilly
Thomas Saxtoft wrote: The thing is that the java.home I get from ant already contains the backslash. My script looks like this: The backslash is an escape character in regexpression land, so it will not work using it in the replace attribute. You need to convert the java.home before using

AW: Writing java.home to file

2004-11-18 Thread Jan . Materne
Works for me ${java.home} --> C:\jdk\142_03\jre Jan > -Ursprüngliche Nachricht- > Von: Thomas Saxtoft [mailto:[EMAIL PROTECTED] > Gesendet am: Donnerstag, 18. November 2004 13:08 > An: Ant Users List > Betreff: Writing java.home to file > > I need to write the ant built-in property ${

Writing java.home to file

2004-11-18 Thread Thomas Saxtoft
I need to write the ant built-in property ${java.home} to a file. How do I do it on a windows machine without loosing the backslash. E.g my java.home right now is c:\j2sdk1.4.2_03. When I write it to a file it becomes c:j2sdk1.4.2_03. So it is not an option replacing characters in the file, because

AW: name of running target

2004-11-18 Thread Jan . Materne
Would that be ok? Jan > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Gesendet am: Donnerstag, 18. November 2004 12:46 > An: [EMAIL PROTECTED] > Betreff: name of running target > > >

name of running target

2004-11-18 Thread lists
Hello everybody, Is there a dynamic property for the name of the current target? I would like to notify another process of the state my build is in. So What I'm looking for is something like: ... ... If possible I want to avoid to introduce a static string in every target that need to

AW: AW: copy

2004-11-18 Thread Jan . Materne
Not tried, but there are two different things combined in your statement: - the selection of files to work on ( selector) - how to handle these files (default setting of ) The second you can modify with s. E.g. the regexp-mapper could be useful. Just a thought:

Re: AW: copy

2004-11-18 Thread Franz-Josef Herpers
Hi Jan, thanks for your answer. Use the nested without the trailing *, so Ant knows that that is a directory and uses the whole tree under that. I now have What I really want is to move every descendent directory and file under sw/apache-ant-* to sw/ant. What I get