RE: Using mappers with delete task

2005-11-09 Thread Juergen Hermann
On Wed, 9 Nov 2005 16:17:01 -0600, Brown, Carlton wrote: >I'm working from 2 print references and neither mentions that the present selector supports mappers. Obviously you've got better information, do you mind sharing a link to it? The HTML docs that are on the homepage and in the distribu

Re: Converting PropertySet to a Property

2005-11-09 Thread Juergen Hermann
On Wed, 9 Nov 2005 15:06:38 -0800, Telang, Nandan wrote: >Is there a way to convert a PropertySet in Ant to a ":" separated list of values ? antcontrib:propertyselector i guess. Ciao, Jürgen - To unsubscribe, e-mail: [EMAIL

Converting PropertySet to a Property

2005-11-09 Thread Telang, Nandan
Is there a way to convert a PropertySet in Ant to a ":" separated list of values ? -Nandan

RE: Using mappers with delete task

2005-11-09 Thread Brown, Carlton
I'm working from 2 print references and neither mentions that the present selector supports mappers. Obviously you've got better information, do you mind sharing a link to it? > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 09, 2005

Re: Cpptasks help

2005-11-09 Thread Dominique Devienne
> Is there a specialized help group/archive for this topic (cc)? > > No matter what I do, it (cc) always wants to recompile everything in the > source file list. In other words, there's no dependency checking. Is > there something I'm missing? The ant-contrib list should be used for cc, and we'll

RE: Using mappers with delete task

2005-11-09 Thread Juergen Hermann
On Wed, 9 Nov 2005 15:03:27 -0600, Brown, Carlton wrote: You need to tell if you want us to narrate the docs: The tag supports the use of a contained element to define the location of the file to be tested against. If no element is specified, the identity type mapper is used. >> -Origin

RE: Using mappers with delete task

2005-11-09 Thread Brown, Carlton
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 09, 2005 2:24 PM > To: Ant Users List; Brown, Carlton > Subject: Re: Using mappers with delete task > > On Wed, 9 Nov 2005 12:46:27 -0600, Brown, Carlton wrote: > > >To accomplish this, I

Re: Cpptasks help

2005-11-09 Thread Dominique Devienne
> Is there a specialized help group/archive for this topic (cc)? > > No matter what I do, it (cc) always wants to recompile everything in the > source file list. In other words, there's no dependency checking. Is > there something I'm missing? The ant-contrib list should be used for cc, and we'll

Re: Using mappers with delete task

2005-11-09 Thread Juergen Hermann
On Wed, 9 Nov 2005 12:46:27 -0600, Brown, Carlton wrote: >To accomplish this, I tried using a mapper with the delete task, but I >got an error saying the delete doesn't support the use of mappers. >Without a mapper, I can't see how this would be done. use delete with a fileset and a present selec

Re: passing the name of a property file as parameter

2005-11-09 Thread Juergen Hermann
On Wed, 09 Nov 2005 19:37:37 +0100, Lothar Krenzien wrote: >I've red some tutorials before where the command was used. But I always found out the command line option you said and now it works ;). As I understood both commands should be the same - or not ? No, the semantics are different, espe

RE: ANT cvs tag error

2005-11-09 Thread Anderson, Rob (Global Trade)
Since you are doing an export to get the package, CVS will not know anything about the files in you local workspace. Try using "rtag" to tag the repository directly. If you must use "tag" you will need to checkout the package first. -Rob Anderson > -Original Message- > From: client [mailt

ANT cvs tag error

2005-11-09 Thread client
Hi, I am having a problem while executing the cvs tag operation in ant. Syntax is as below: cvsRoot="${env.CVSROOT}" package="testRepository" /> ERROR is as below: [cvs] Using cvs passfile: C:\Documents and Settings\Preetham\.cvspass [cvs] -f server: nothing know

RE: Using mappers with delete task

2005-11-09 Thread RADEMAKERS Tanguy
you could use a nested fileset with an excludes attribute. something like: /t >-Original Message- >From: Brown, Carlton [mailto:[EMAIL PROTECTED] >Sent: Wednesday, November 09, 2005 7:46 PM >To: Ant Users List >Subject: Using mappers with delete task > >If I have a number of

Using mappers with delete task

2005-11-09 Thread Brown, Carlton
If I have a number of files in /src with a suffix of .foo, then how can I specify to delete the un-suffixed files in /build ? For example, if I have files /src/Script1.foo and /src/Script2.foo, files to be deleted would be /build/Script1 and /build/Script2 To accomplish this, I tried us

Re: passing the name of a property file as parameter

2005-11-09 Thread Lothar Krenzien
I've red some tutorials before where the command was used. But I always found out the command line option you said and now it works ;). As I understood both commands should be the same - or not ? "Ant Users List" schrieb am 09.11.05 19:26:51: > > On Wed, 09 Nov 2005 17:43:49 +0100, Lothar

Re: passing the name of a property file as parameter

2005-11-09 Thread Juergen Hermann
On Wed, 09 Nov 2005 17:43:49 +0100, Lothar Krenzien wrote: >I forgott to say that was my first attemp. But I just realized that I made another mistake. So it works now. >But now I can't access the values in the properties file. >-- deploy.bat > ant -Dproperties.file=properties.win Any reason t

Re: how to get one class file into classpath in ant?

2005-11-09 Thread Ray Tayek
At 06:47 AM 11/9/2005, you wrote: >description="runusingjar"> > > > > > > > > > anybody got a clu

RE: passing the name of a property file as parameter

2005-11-09 Thread Jon Skeet
> I forgott to say that was my first attemp. But I just > realized that I made another mistake. So it works now. > But now I can't access the values in the properties file. Which version of Ant are you using? It works fine with Ant 1.6.5 (see my other post for a short but complete example). J

Re: passing the name of a property file as parameter

2005-11-09 Thread Lothar Krenzien
Hi Jeffrey, I forgott to say that was my first attemp. But I just realized that I made another mistake. So it works now. But now I can't access the values in the properties file. -- deploy.bat ant -Dproperties.file=properties.win -- properties.win tomcat.dir=D:\prog\jakarta-tomcat-5.5.4 -

RE: passing the name of a property file as parameter

2005-11-09 Thread Jon Skeet
> I don't remember the exact source I found the information, > but essentially this does not work. The token will not work > with a variable :( Firstly, the should *certainly* have worked. Nothing in the original post actually said he was trying to load the properties file. Secondly, it works

RE: passing the name of a property file as parameter

2005-11-09 Thread Silberman, Michael
I don't remember the exact source I found the information, but essentially this does not work. The token will not work with a variable :( -Original Message- From: Lothar Krenzien [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 09, 2005 8:06 AM To: user@ant.apache.org Subject: passing

Re: passing the name of a property file as parameter

2005-11-09 Thread Jeffrey E Care
-- Jeffrey E. Care ([EMAIL PROTECTED]) WebSphere v7 Release Engineer WebSphere Build Tooling Lead (Project Mantis) Lothar Krenzien <[EMAIL PROTECTED]> wrote on 11/09/2005 11:06:09 AM: > > Hi, > > I have an Ant script which should use a property file. But I want > to pass the name of the f

passing the name of a property file as parameter

2005-11-09 Thread Lothar Krenzien
Hi, I have an Ant script which should use a property file. But I want to pass the name of the file as an argument from a script. I've red the FAQ but can't get it working :( Here's an example of what I want to do: --windows.bat ant deploy -Dproperty.file=properties.win --linux.bat ant deploy

Re: Bulk token substitution

2005-11-09 Thread Ninju Bohra
Have you looked that the propertyfile attribute of the task. It allows you define a file (in JAVA property file format) that contains all the replacements instructions. --- "Brown, Carlton" <[EMAIL PROTECTED]> wrote: > Hello, > > > > I'm looking to do bulk replacement of tokens in a file.

Creating an ant task from xml fragment

2005-11-09 Thread Ashley Williams
Hi, I have a fragment of ant xml and would like to create a task or target from it in my java code. For example here is the xml text:

Re: Bulk token substitution

2005-11-09 Thread Matt Benson
Hmm... read http://ant.apache.org/manual/CoreTypes/filterset.html specifically the element of . -Matt --- "Brown, Carlton" <[EMAIL PROTECTED]> wrote: > Hello, > > > > I'm looking to do bulk replacement of tokens in a > file. This is to > replace a perl-based build solution.I have > cre

Bulk token substitution

2005-11-09 Thread Brown, Carlton
Hello, I'm looking to do bulk replacement of tokens in a file. This is to replace a perl-based build solution.I have created the single-replacement solution in ant, but I am somewhat stumped as to how to do a bulk substitution. The following code copies all files named *.src to a ne

Task to create EJB file in webspher 5.1.2

2005-11-09 Thread Bozorgdadeh, Afshin
Hi Folks, I am very new to Ant and I apologize in advance if this is a repeated question. Is there a task to create an EJB file in Unix platform for webspher 5.12.. Our developers are using WAS in Windows and our servers are on Unix. I am hopping to do the build packaging on the Unix side ? Best R

Re: how to get one class file into classpath in ant?

2005-11-09 Thread Dominique Devienne
> > > > > > > > > > anybody got a clue? I'm afraid you don't understand what a Java classpath is.

Re: ant and eclipse CDT

2005-11-09 Thread Dominique Devienne
> > I try to get my ant build scripts run under eclipse CDT (C++) but > > without success. > > Why use ant for building C++, if I may ask ? CDT has integration with > make. Because CppTasks works really nicely to compile C++ ;-) I've done a lot of it at my former job. It's not obvious to get start

Re: Macrodef Problem Urgent

2005-11-09 Thread Dominique Devienne
> i'm using ant 1.6.0 This should be working then. You may have a mix of Ant versions then. Are you running from the command line or an IDE? Windows or *nix? I'd check you ant setup. Also, try a minimal build file with an hello word macro that reproduces the problem, and send this whole build. Ju

Re: Macrodef Problem Urgent

2005-11-09 Thread Andrei
i'm using ant 1.6.0 From: "Steve Loughran" <[EMAIL PROTECTED]> To: "Ant Users List" Sent: Wednesday, November 09, 2005 2:57 PM Subject: Re: Macrodef Problem Urgent Andrei wrote: Hi guys. I have a problem with macrodef usage. I declared a macrodef to start jBoss descriptio

Re: Macrodef Problem Urgent

2005-11-09 Thread Steve Loughran
Andrei wrote: Hi guys. I have a problem with macrodef usage. I declared a macrodef to start jBoss and here is the target who uses

Macrodef Problem Urgent

2005-11-09 Thread Andrei
Hi guys. I have a problem with macrodef usage. I declared a macrodef to start jBoss and here is the target who uses this macro:

RE: The good ol' JUnit problem

2005-11-09 Thread Jon Skeet
> --- Jon Skeet <[EMAIL PROTECTED]> wrote: > [SNIP] > > I've made the change (as well as fixing up some HTML > > problems) and > > mailed the file to Steve for check-in. It looks like I > don't have SVN > > access after all - either that, or I've got a different username or > > password to befor

Re: password input task

2005-11-09 Thread Peter Reilly
In java 1.6 there will be a Console.readPassword which may be useful for this purpose. Peter On 11/9/05, Petar Tahchiev <[EMAIL PROTECTED]> wrote: > > On 09/11/05, Ninju Bohra <[EMAIL PROTECTED]> wrote: > > > > Nope...not possible to do that in a platform-neutral fashion ;-( > > > > P.S. This que

RE: ant and eclipse CDT

2005-11-09 Thread Cena, Bernard \(IT\)
Yves Willems wrote: > Hi all, > > > > I try to get my ant build scripts run under eclipse CDT (C++) but > without success. Why use ant for building C++, if I may ask ? CDT has integration with make. > It seems like eclipse can't find the full path to ant, although the > ant settings list all

ant and eclipse CDT

2005-11-09 Thread Yves Willems
Hi all, I try to get my ant build scripts run under eclipse CDT (C++) but without success. It seems like eclipse can't find the full path to ant, although the ant settings list all jar files required. If there is anyone who managed to get this going? Thanks already Yves