RE: How to read a a particular log file and echo the message from "Build.xml" ?

2005-06-09 Thread Rebhan, Gilbert
Hi, -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 5:03 PM To: Ant Users List Subject: How to read a a particular log file and echo the message from "Build.xml" ? /* >From Build.xml,How to read a particular log file(which is in the

Re: StarTeam checkout task change

2005-06-09 Thread Steve Cohen
Burgess, Benjamin wrote: Currently the StarTeam Checkout Ant task has an attribute named "forced" with the description: If true, checkouts will occur regardless of the status that StarTeam is maintaining for the file. If false, status will be used to determine which files to check out. Defau

valid characters for target names

2005-06-09 Thread ralapa
Hi, Could someone please clarify what is a valid characters for a target name? I have been using spaces in the target names, e.g. "install server", because it is more readable, and since I only invoke ant through my IDE (IntelliJ) I don't care that spaces make it harder to use on the commandline.

valid characters for target names

2005-06-09 Thread ralapa
Hi, Could someone please clarify what is a valid characters for a target name? I have been using spaces in the target names, e.g. "install server", because it is more readable, and since I only invoke ant through my IDE (IntelliJ) I don't care that spaces make it harder to use on the commandline.

Re: AntHill Question

2005-06-09 Thread Alexey N. Solofnenko
If the name is stored in XML try renaming it manually, then deleting it via GUI. I think the reason for the failure is the failure to encode ampersand. Try putting HTML or XML its encodings. Also maybe AntHill is already fixed. Did you try its latest version? - Alexey. S I wrote: Sorry, don'

Comparing classpaths

2005-06-09 Thread Kai Hendry
I wrote a Web app to aid people who are moving their ANT builds over to a Unix type platform. http://classpath.dabase.com/ I am new to Ant. I found the way it showed the classpath sucked. It is also could do a better job of uniforming paths between Windows and Unix for comparison. It took m

AntHill Question

2005-06-09 Thread S I
Sorry, don't know where to post this. It's really an Anthill question. I created a schedule in anthill (http://localhost:8080/anthill/ and running tomcat) on my winXP and I embedded the an ampersand in the name(e.g. A&B Project); now I get error messages that I can not delete or edit it. Anyo

Re: Ant task to clean up files not in svn

2005-06-09 Thread Paul Elschot
On Thursday 09 June 2005 20:38, Adam Messinger wrote: > I was wondering if anyone out there had a task which deleted all > files not under svn's control? The basic thing is that parts of our > build generate .java files back into the source tree (I know it is > bad practice, but I don't cont

RE: ANT Task

2005-06-09 Thread S I
Great Rob. Thank you very much. Your explanation made it very clear. Thanks again :) Original Message Follows From: "Anderson, Rob (Global Trade)" <[EMAIL PROTECTED]> Reply-To: "Ant Users List" To: "Ant Users List" Subject: RE: ANT Task Date: Thu, 9 Jun 2005 11:12:46 -0700 MIME-Versio

Re: Baseline Get from PVCS

2005-06-09 Thread David TROGDON
I use something similar to this if you you want a specific tagged version then: Good Luck DT |-+> | | | | |

RE: Baseline Get from PVCS

2005-06-09 Thread Hardacker, Andrew
Unless the task has been updated recently, I doubt you will be able to use it against Dimensions. If you can do whatever you have to do from the command line, use . For example, we use this to get code from Merant Version Manager 8 (the new name of PVCS). Andy Hardacker -Or

Ant task to clean up files not in svn

2005-06-09 Thread Adam Messinger
I was wondering if anyone out there had a task which deleted all files not under svn's control? The basic thing is that parts of our build generate .java files back into the source tree (I know it is bad practice, but I don't control is). I would like to have a task which cleaned these up

RE: ANT Task

2005-06-09 Thread Anderson, Rob (Global Trade)
Comments below... > -Original Message- > From: S I [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 08, 2005 4:30 PM > To: user@ant.apache.org > Subject: Re: ANT Task > > > Here's then another question: > > Normally, I tag cvs repository as soon as I checkout since I > do not lock th

Baseline Get from PVCS

2005-06-09 Thread pritesh.saharey
Hi All, I want to use ants PVCS task but unable to use it, as I am not getting what all has to be there, I tried doing something like this Don't know its working or not But unable to sucessed in getting the cod

Re: What is the difference between a nested element and a nested type?

2005-06-09 Thread Peter Reilly
Eric Tchepannou wrote: Hi Peter, As my base class is an abstract class, I have no interest to use a My hope is to do the following: Reflect.java -- package my; public class Reflect extends org.apache.tools.ant.Task { List types = new ArrayList(); public void add(BaseType bt) {

RE: Alternative to PropertyTask from Ant delivery

2005-06-09 Thread Bill Rich
A property file is a PropertyResourceBundle. You could look that up in the Java docs. Bill -Original Message- From: Young Matthew [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 6:08 AM To: Ant Users List Subject: RE: Alternative to PropertyTask from Ant delivery Wonder if there

How to read a a particular log file and echo the message from "Build.xml" ?

2005-06-09 Thread venkatesan_gandhi
Hi All, >From Build.xml,How to read a particular log file(which is in the same folder) and echo the message of a particular field in the log file from "Build.xml"? Is ant provide those facility andshould i have to read a script for this ? Thanks, Venkat. This transmission may contain inf

Re: What is the difference between a nested element and a nested type?

2005-06-09 Thread Eric Tchepannou
On 6/9/05, Peter Reilly <[EMAIL PROTECTED]> wrote: > Antoine Levy-Lambert wrote: > > >>--- Ursprüngliche Nachricht --- > >>Von: Eric Tchepannou <[EMAIL PROTECTED]> > >>An: user@ant.apache.org > >>Betreff: Re: What is the difference between a nested element and a nested > >>type? > >>Datum: Thu, 9

Re: What is the difference between a nested element and a nested type?

2005-06-09 Thread Eric Tchepannou
On 6/9/05, Antoine Levy-Lambert <[EMAIL PROTECTED]> wrote: > > --- Ursprüngliche Nachricht --- > > Von: Eric Tchepannou <[EMAIL PROTECTED]> > > An: user@ant.apache.org > > Betreff: Re: What is the difference between a nested element and a nested > > type? > > Datum: Thu, 9 Jun 2005 10:32:51 +0100 >

StarTeam checkout task change

2005-06-09 Thread Burgess, Benjamin
Currently the StarTeam Checkout Ant task has an attribute named "forced" with the description: If true, checkouts will occur regardless of the status that StarTeam is maintaining for the file. If false, status will be used to determine which files to check out. Defaults to "false". When fal

Re: cc task(bis)

2005-06-09 Thread James Fuller
[EMAIL PROTECTED] wrote: >Thanks for the answer james. >And have you ever targeted mainframe environments for c builds for instance? > > yes, this can be quite an experience to get things right...if the mainframe is *just* a deployment target then life is made a mite easier, though everytime I h

Re: What is the difference between a nested element and a nested type?

2005-06-09 Thread Peter Reilly
Antoine Levy-Lambert wrote: --- Ursprüngliche Nachricht --- Von: Eric Tchepannou <[EMAIL PROTECTED]> An: user@ant.apache.org Betreff: Re: What is the difference between a nested element and a nested type? Datum: Thu, 9 Jun 2005 10:32:51 +0100 Thanks a lot for that Antoine. That was very clear t

RE: cc task(bis)

2005-06-09 Thread hind.lwahhabi
Thanks for the answer james. And have you ever targeted mainframe environments for c builds for instance? -Original Message- From: James Fuller [mailto:[EMAIL PROTECTED] Sent: Thu 6/9/2005 1:36 PM To: Ant Users List Subject: Re: cc task(bis) [EMAIL PROTECTED] wrote: >Hello gentle peop

Re: What is the difference between a nested element and a nested type?

2005-06-09 Thread Antoine Levy-Lambert
> --- Ursprüngliche Nachricht --- > Von: Eric Tchepannou <[EMAIL PROTECTED]> > An: user@ant.apache.org > Betreff: Re: What is the difference between a nested element and a nested > type? > Datum: Thu, 9 Jun 2005 10:32:51 +0100 > > Thanks a lot for that Antoine. That was very clear to me. > I was a

RE: Alternative to PropertyTask from Ant delivery

2005-06-09 Thread Young Matthew
Wonder if there is a general Java module that handles property files. Then all that is left is to write an Ant wrapper around it. / Matthew -Ursprungligt meddelande- Från: Wolfgang Häfelinger [mailto:[EMAIL PROTECTED] Skickat: den 9 juni 2005 09:51 Till: Ant Users List Ämne: Re: Alt

RE: [delete] dir, delete all but one subdir

2005-06-09 Thread Rebhan, Gilbert
Hi, works like it should. But to be honest : some files couldn't be deleted cause i had accessed them in an editor on my other machine (working with a switch). What a shame - argh ;-) Pleased accept my apologie

Re: [delete] dir, delete all but one subdir

2005-06-09 Thread James Fuller
Rebhan, Gilbert wrote: > >Hi, > >OK then i moved defaultexcludes > > > > > > > > >no DEPRECATED anymore, but there are still some dirs remaining >that should be deleted. > > ok, if u are expecting all directories named

RE: [delete] dir, delete all but one subdir

2005-06-09 Thread Rebhan, Gilbert
Hi, OK then i moved defaultexcludes no DEPRECATED anymore, but there are still some dirs remaining that should be deleted. All that dirs have a /CVS subfolder with cvs metainf I'm using Ant 1.6.5 / jdk 1.4.2_05

RE: [delete] dir, delete all but one subdir

2005-06-09 Thread Rebhan, Gilbert
Hi, i've tried with = [delete] DEPRECATED - Use of the implicit FileSet is deprecated. Use a nested fileset element instead. BUILD SUCCESSFUL Total time: 1 second But i'm using a nested fileset and few

AW: [delete] dir, delete all but one subdir

2005-06-09 Thread Jan.Materne
As the manual for sais: defaultexcludes : Deprecated Move that to and you should get rid off that message. Jan >-Ursprüngliche Nachricht- >Von: James Fuller [mailto:[EMAIL PROTECTED] >Gesendet: Donnerstag, 9. Juni 2005 14:22 >An: Rebhan, Gilbert >Cc: Ant Users List >Betreff: Re:

Re: [delete] dir, delete all but one subdir

2005-06-09 Thread James Fuller
Rebhan, Gilbert wrote: >Hi, > >i've tried with = > >defaultexcludes="false"> > > > > > > >[delete] DEPRECATED - Use of the implicit FileSet is deprecated. Use a >nested fileset element instead. > > here is the m

Re: What is the difference between a nested element and a nested type?

2005-06-09 Thread Eric Tchepannou
Thanks a lot for that Antoine. That was very clear to me. I was able to check at http://www.oracle.com/technology/pub/articles/bodewig_taskwriters.html and I think the correct syntax (at least the one used there) to nest types is public void addSomething(BaseType t); I have been using public void

"recursive" property is inconsistent

2005-06-09 Thread Henrik Gemal
In my "build.xml" file I have: in my "build.properties" I have: project=launchy [EMAIL PROTECTED]@-gemal when I do my copy from within "build.xml" the @guid@ are replaced with "launchy-gemal" which is nice. but in my "build.xml" I cant use: ${ext.project}-gemal.dk this echos "${ext.project}

Re: cc task(bis)

2005-06-09 Thread James Fuller
[EMAIL PROTECTED] wrote: >Hello gentle people! >I just found out that there are c/c++ tasks in the ant-contrib project.(and by >the way is the sourceforge server down) >Is there another resource for such a task? > > ant-contrib c/c++ are the best I have used... gl, Jim Fuller ---

Re: remoteAnt vs. rant

2005-06-09 Thread James Fuller
[EMAIL PROTECTED] wrote: >I need to make a decision what to use for my distributed build-system that >synchronously builds C++ on Mac and WIn and a large java project also on mac >and win. > > IMHO, RemoteAnt within ant-contrib lib wins hands down for stability etc...though if want you want is

RE: cc task(bis)

2005-06-09 Thread hind.lwahhabi
Hello gentle people! I just found out that there are c/c++ tasks in the ant-contrib project.(and by the way is the sourceforge server down) Is there another resource for such a task? If someone already tried this non-java gymnastic please help. Many thanks. -Original Message- From: [EMAIL

remoteAnt vs. rant

2005-06-09 Thread lists
Hello Robert, What is the difference between RemoteAnt provided in com.rjmpsmith.ant compared to ant-contrib's rant? I need to make a decision what to use for my distributed build-system that synchronously builds C++ on Mac and WIn and a large java project also on mac and win. Thanks for help

Re: [delete] dir, delete all but one subdir

2005-06-09 Thread James Fuller
Rebhan, Gilbert wrote: >Hi, > >i want to delete all subdirs but one dir should remain. > >for example : > >test > sub1 > sub2 > jars > >i want delete sub1 and sub2 but /jars should stay > > use and nested elements to define which dirs should stay and which should be deleted using

[delete] dir, delete all but one subdir

2005-06-09 Thread Rebhan, Gilbert
Hi, i want to delete all subdirs but one dir should remain. for example : test sub1 sub2 jars i want delete sub1 and sub2 but /jars should stay I know how to include filenamepatterns with include / exclude but how to deal with directorys ? Gilbert --

RE: putting cmd args in ant.bat

2005-06-09 Thread Rebhan, Gilbert
Hi, Jan sorry didn't get it yet i have no antrc_pre.bat / antrc_post.bat in my .../bin folder the background of my question = i'm kicking off an antscript out off Cruise Control. Normally i start my scripts with a batchfile like that = /* @ echo off set ANT_OPTS=-Xmx1024m set ANT_HOME=C:\a

AW: putting cmd args in ant.bat

2005-06-09 Thread Jan.Materne
The call of the batch file antrc_pre.bat in your home directory is the first thing the Ant startup script does. antrc_post.bat is the last. So you could do some extra work there. The environment variable ANT_OPTS is given as argument: "%_JAVACMD%" %ANT_OPTS% -classpath "%ANT_HOME%\lib\an

Re: type not supported by task?

2005-06-09 Thread Eric Tchepannou
Thanks for this Peter. I had started in another thread a theory to explain myself this error. But this is definitely sth. I will have to try out. Eric On 6/9/05, Peter Reilly <[EMAIL PROTECTED]> wrote: > I meant to reply yesterday - but my battery ran out. > You need to use the attribute "loader

RE: "files" attribute problem in task

2005-06-09 Thread Antoine Levy-Lambert
Nest a fileset instead of using the files attribute. I guess the files attribute may accept several files, which are space separated. So does not work for files locating in pathes with spaces. Cheers, Antoine > --- Ursprüngliche Nachricht --- > Von: <[EMAIL PROTECTED]> > An: > Betreff: RE: "files

Re: type not supported by task?

2005-06-09 Thread Peter Reilly
I meant to reply yesterday - but my battery ran out. You need to use the attribute "loaderref" so that the same classloader is used for both the typedef and the taskdef. Otherwise, different classloaders will be used, and so the the classes will not be compatible. Example: - b

Re: type not supported by task?

2005-06-09 Thread Eric Tchepannou
I have checked http://www.oracle.com/technology/pub/articles/bodewig_taskwriters.html I think I should rather use addMyBaseType(MyBaseType t) instead of addConfigured(...) ? Could it be that this new syntax is now only valid with Ant 1.6 + ? On 6/9/05, Eric Tchepannou <[EMAIL PROTECTED]> wrote: >

Re: type not supported by task?

2005-06-09 Thread Eric Tchepannou
Thanks for that Matt. I have checked my code again and managed to have it working with the createXXX() Method. The addConfigured(..) still fails... :( On 6/8/05, Matt Benson <[EMAIL PROTECTED]> wrote: > Eric: > Without consulting the code (much)... if you want > your custom task to recognize any

RE: "files" attribute problem in task

2005-06-09 Thread ArchitP
Yes, it works for property task, but creates problem for the "files" attribute in the task. And ANT documentation doesn't mention anything like this for the "files" attribute Regards, Archit -Original Message- From: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005

What is the difference between a nested element and a nested type?

2005-06-09 Thread Eric Tchepannou
Hi all, I was wondering if someone could enlighten me on this? I tried to implement a custom type and use it in my build file but everytime I get the error message that the nested "Element" is not supported by the task. Basically, I have something like this: public class MyTask extends Task {

RE: putting cmd args in ant.bat

2005-06-09 Thread Rebhan, Gilbert
Hi, Jan sorry i don't understand could you provide me with some more details ? Gilbert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 10:10 AM To: user@ant.apache.org Subject: AW: putting cmd args in ant.bat - %HOME%\antrc_pre.ba

Re: Alternative to PropertyTask from Ant delivery

2005-06-09 Thread Wolfgang Häfelinger
The alternative would be to install your own PropertyHelper. However, had no luck in get this up and running properly. I posted a message to this list a couple of weeks ago but didn't get any response. "Ant Users List" schrieb am 09.06.05 09:44:37: > > Hej, > > Need an alternative to the Prope

RE: "files" attribute problem in task

2005-06-09 Thread Rebhan, Gilbert
Maybe '${user.home}' works i do that for property that contain spaces Regards, Gilbert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 9:57 AM To: user@ant.apache.org Subject: "files" attribute problem in task Hi , I am trying to se

AW: putting cmd args in ant.bat

2005-06-09 Thread Jan.Materne
- %HOME%\antrc_pre.bat" - %ANT_OPTS% Jan >-Ursprüngliche Nachricht- >Von: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] >Gesendet: Donnerstag, 9. Juni 2005 09:48 >An: Ant Users List >Betreff: RE: putting cmd args in ant.bat > > >Sorry forgot : > >i'm speaking of antinstall_dir/bin/ant.bat >

RE: putting cmd args in ant.bat

2005-06-09 Thread Rebhan, Gilbert
Sorry forgot : i'm speaking of antinstall_dir/bin/ant.bat -Original Message- From: Rebhan, Gilbert [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 9:18 AM To: user@ant.apache.org Subject: putting cmd args in ant.bat Hi, what's the right point to put the argument -lib path

"files" attribute problem in task

2005-06-09 Thread ArchitP
Hi , I am trying to send mail through the task. I am using the "files" attribute to set the attachement file. If I set the attribute as files = "${user.home}/test.txt" on windows XP, then ant throws this error "File "and" does not exist or is not readable.". ${user.home} is "C:/

Alternative to PropertyTask from Ant delivery

2005-06-09 Thread Young Matthew
Hej, Need an alternative to the PropertyTask that comes with Ant. Problem with the PropertyTask is that comments are lost, text replacement of special characters (like backslashes) are handled nicely, and unless every date formated property is specified they are badly transformed. Any suggestions

putting cmd args in ant.bat

2005-06-09 Thread Rebhan, Gilbert
Hi, what's the right point to put the argument -lib path/to/my/extralibs in, if idon't want to put that path into %PATH% ? [ ... ] :end set _JAVACMD= set ANT_CMD_LINE_ARGS=-lib path/to/my/extralibs <- here ? [ ... ] With space after '=' or right behind like above ? The manual only spee