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

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

files attribute problem in mail task

2005-06-09 Thread ArchitP
Hi , I am trying to send mail through the mail 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

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

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: files attribute problem in mail 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 mail task Hi , I am trying to

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 user@ant.apache.org schrieb am 09.06.05 09:44:37: Hej, Need an

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 -

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: files attribute problem in mail task

2005-06-09 Thread ArchitP
Yes, it works for property task, but creates problem for the files attribute in the mail 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,

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 of

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 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: -

RE: files attribute problem in mail 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: user@ant.apache.org

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 loaderref

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

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

[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: [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 include/ and exclude/ nested elements to define which dirs should stay and which should be deleted

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

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:

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 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

recursive property is inconsistent

2005-06-09 Thread Henrik Gemal
In my build.xml file I have: property file=build.properties / 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:

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

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

2005-06-09 Thread James Fuller
Rebhan, Gilbert wrote: Hi, i've tried with = delete verbose=true includeemptydirs=true defaultexcludes=false fileset dir=c:/test include name =**/*/ exclude name=jars/ /fileset /delete [delete] DEPRECATED - Use

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

2005-06-09 Thread Jan.Materne
As the manual for delete sais: defaultexcludes : Deprecated Move that to fileset 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

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

2005-06-09 Thread Rebhan, Gilbert
Hi, i've tried with = delete verbose=true includeemptydirs=true defaultexcludes=false fileset dir=c:/test include name =**/*/ exclude name=jars/ /fileset /delete [delete] DEPRECATED - Use of the implicit FileSet

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

2005-06-09 Thread Rebhan, Gilbert
Hi, OK then i moved defaultexcludes delete verbose=true includeemptydirs=true fileset dir=c:/test defaultexcludes=no include name =**/*/ exclude name=jars/ /fileset /delete no DEPRECATED anymore, but there are still

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

2005-06-09 Thread James Fuller
Rebhan, Gilbert wrote: Hi, OK then i moved defaultexcludes delete verbose=true includeemptydirs=true fileset dir=c:/test defaultexcludes=no include name =**/*/ exclude name=jars/ /fileset /delete no DEPRECATED

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:

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 able to

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

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 to

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 have

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 false,

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 Thanks a lot

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 Jun 2005 10:32:51 +0100

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

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

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 base / 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

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 project name=TABS default=all basedir=. target name=pvcs-get description=Get from PVCS pvcs

RE: ANT CVS 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 CVS Task Here's then another question: Normally, I tag cvs repository as soon as I checkout since I do not lock the

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

RE: Baseline Get from PVCS

2005-06-09 Thread Hardacker, Andrew
Unless the pvcs 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 exec. For example, we use this to get code from Merant Version Manager 8 (the new name of PVCS). exec

Re: Baseline Get from PVCS

2005-06-09 Thread David TROGDON
I use something similar to this property name=build.root value=C:\BUILD_ROOT/ property name=build.folder value=${folder.name}/ property name=build.source.dir value=${build.root}\${build.folder}\source/ property name=cvsrootproject value=:pserver:[EMAIL

RE: ANT CVS 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 user@ant.apache.org To: Ant Users List user@ant.apache.org Subject: RE: ANT CVS Task Date: Thu, 9

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 control

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. AB Project); now I get error messages that I can not delete or edit it.

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,

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: 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.

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