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

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 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: 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: Using path elements to use jars

2005-10-29 Thread Juergen Hermann
On Fri, 28 Oct 2005 17:48:10 -0700, Telang, Nandan wrote: >However the classpath has all absolute paths (starting with /) >What should the value of dir be in in the zip task ? >If I give it as / all files are ignored Use the form Ciao, Jürgen

Re: Jar or copy files from multiple unknown directories

2005-10-28 Thread Juergen Hermann
On Fri, 28 Oct 2005 11:44:50 +0200, arcus(x) - Cornelius Buschka wrote: >I would like to jar up files from these directories into one jar. Not >the whole contents but a selection of files from each folder only. > > > and add a (regex) mapper that removes everything up to /src/ from the file

Re: Classpath problem on a unix system

2005-10-26 Thread Juergen Hermann
On Wed, 26 Oct 2005 18:04:14 +0200, [EMAIL PROTECTED] wrote: >Any clue? >Any help would be really welcome. Try to find out how the shell wrapper (ant) on your system builds up the classpath. On SuSE f.x., ant has an --execdebug option to show the classpath used to launch Ant. And also there,

RE: CVS - get files by their label

2005-10-26 Thread Juergen Hermann
On Wed, 26 Oct 2005 15:49:09 +0200, Remo Liechti wrote: >But it works if I execute this command using WinCVS, a fat client for >CVS on Windows... >Strange... Not strange, but a bug in that client. Create an alias tag for that invalid tag, with a proper name, and it'll work. Ciao, Jürgen

Re: Exec with getlogin

2005-10-21 Thread Juergen Hermann
On Fri, 21 Oct 2005 10:49:15 -0700, Telang, Nandan wrote: >I'm trying to call a perl script with the Ant exec task.. The script tries to get the userid by using getlogin() (Unix) When the script is run directly, it returns my loginname, however when run through ant, it returns undef... hmm, wha

RE:

2005-10-20 Thread Juergen Hermann
On Thu, 20 Oct 2005 14:29:20 +0200, Mikael Petterson (KI/EAB) wrote: >I need to replace "R11A02" in my xxx.html file with >R12A02 and next time R13A02 . I need to do a search and replace. You should consider to NOT replace a value by a new value, but a @token@ by the current value, using cop

Re: Conditionally create a path reference id

2005-10-19 Thread Juergen Hermann
/ maven.It dynamically choses to create a path refid if I so choose to. I'm guessing mavne2's antlib, which has custom ant tasks, doesn't jibe when using reference ids. On 10/19/05, Juergen Hermann <[EMAIL PROTECTED]> wrote: On Wed, 19 Oct 2005 15:34:48 -0600, sporty

Re: Conditionally create a path reference id

2005-10-19 Thread Juergen Hermann
On Wed, 19 Oct 2005 15:34:48 -0600, sporty wrote: ^> > > >That's when I ran into this error: >C:\development\eclipse 3.0\workspace\hibernate-3\common.xml:7: Reference ID >project.classpath.runtime already exists How is project.dependency.runtime set? You should do it via a condition, and then

Re: set property values using my own task

2005-10-19 Thread Juergen Hermann
On Tue, 18 Oct 2005 12:49:48 +0200, Mikael Petterson (KI/EAB) wrote: >The purose of my task is to set the values for properties arch, product_number and product_revision. Hmmm, why do you need a custom task for this?

Re: indirect property evaluation

2005-10-19 Thread Juergen Hermann
On Wed, 19 Oct 2005 12:59:47 -0700 (PDT), Matt Benson wrote: >This should "just work," in a properties file, >according the the manual page. If not you >should file a bug report. Nothing in the docs indicates that evaluation happens as long as no futher replacement is possible, and that nested

Re: indirect property evaluation

2005-10-19 Thread Juergen Hermann
On Wed, 19 Oct 2005 12:31:18 -0700, Alexey N. Solofnenko wrote: >A simple can do that. Builtins can do it, too: [echo] testfw.db.system = Solid >>> build.properties: db.system=solid # --- for Solid testfw.solid.system=Solid testfw.db.system=${testfw.${db

RE: make properites of data in file

2005-10-19 Thread Juergen Hermann
On Mon, 17 Oct 2005 14:15:59 +0200, Mikael Petterson (KI/EAB) wrote: >Since it is it is too much work to try the javascript installation I will go for >writing my own task. loadfile and antfile:propertyregex wil do what you want. and concat plus a tokenfilter will do it using only ant core, b

Re: Import and Macro Warnings

2005-10-06 Thread Juergen Hermann
On Thu, 6 Oct 2005 15:22:12 -0400, Alan Gutierrez wrote: >Duplicated project name in import. Project mix defined first in >/Users/alan/svn/xopen/enfilade/mix/mix.ant.xml and again in >/Users/alan/svn/xopen/xstrategy/mix/mix.ant.xml >It's hard to imagine why I'd use the import fac

Re: AW: Check directory exists

2005-10-04 Thread Juergen Hermann
On Tue, 4 Oct 2005 08:02:05 +0200, Frank Henry wrote: >Just wanted to step out from lurking and add an example > > > > > > > 2 comments: 1) you could use directly in the if, and 2) you should use instead of Ciao, Jürgen

Re: set a property if files of a particular type are present

2005-09-27 Thread Juergen Hermann
On Tue, 27 Sep 2005 15:46:49 -0700, Anand Krishniyer wrote: use a combo of , and . >Hi >I need to set a property if files of a particular type (extension) are >present in a particular dir. >Is there a simple way of doing it. >pl note I don't know the names of the files, only the extension. >Th

Re: if then

2005-09-26 Thread Juergen Hermann
On Mon, 26 Sep 2005 07:41:14 +0200, Nicolas Vervelle wrote: done.if the requirement were a little more complicated, you'd use , only if all that fails, you need antcontrib (or a 3-target construction). >Check ant-contrib, it's a library with several additional ant tasks, for >example >http

Re: Solved: copy: "fileset dir" copies only file

2005-09-03 Thread Juergen Hermann
On Sat, 03 Sep 2005 14:28:00 +0200, Mark Wiehland wrote: >> ${distdir} = "./build/dist" >> ${imagedir}= "./resources/img", with a file "testimg.png" inside. > > > > >Ant will create the folder then. Still, I think this is not the way it >should be...shouldn't I be able to just copy a dir

Re: Comparing two files

2005-09-02 Thread Juergen Hermann
On Fri, 02 Sep 2005 19:03:53 +0200, Nicolas Vervelle wrote: loadfile them into 2 properties and then use a condition. >Hi, >there's probably a simple way to do it, but I don't know how. >I want to compare two files (see if they have the same contents, >timestamp can be different) and then if

Re: xslt task fails with : Fatal Error! Content is not allowed in prolog.

2005-09-02 Thread Juergen Hermann
On Thu, 1 Sep 2005 10:27:16 -0700 (PDT), Thomas SMETS wrote: your problem is not the task, but either your .xml or .xsl file, one of them is not well-formed. >My XSLT to transform the XML report from checkstyle fails with the following message : > Fatal Error! Content is not allowed in prolog

Re: filtersets problem

2005-09-01 Thread Juergen Hermann
On Thu, 1 Sep 2005 15:39:36 +0100, Geoff Meakin wrote: well, why don't you the filertsfile into a temp file using expandproperties, and then use the COPY as the filtersfile? >Hi all, >Hoping someone can help me with this frustrating problem. >I have: >1) a file to be copied with a @TOKEN1@ in

Re: Task to delete CVS directories

2005-07-30 Thread Juergen Hermann
On Sat, 30 Jul 2005 09:24:24 -0400, Frank W. Zammetti wrote: > Ciao, Jürgen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: echo foo.txt, like "cat foo.txt"

2005-07-30 Thread Juergen Hermann
On Sat, 30 Jul 2005 08:32:45 +0100, THUFIR HAWAT wrote: >I'm looking at but >don't see how to echo a file to the screen (System.out?). what you'd use in linux, namely . Ciao, Jürgen

Re: Task to delete CVS directories

2005-07-30 Thread Juergen Hermann
On Sat, 30 Jul 2005 00:26:20 -0400, Frank W. Zammetti wrote: It's easier to do . The rest is a matter of case (look really hard ;). >Hmm, I certainly understand what you wrote (didn't know about that >before, but makes perfect sense), but it doesn't seem to have helped. >My complete script is

Re: conditional compilation with Jet

2005-07-29 Thread Juergen Hermann
On Fri, 29 Jul 2005 01:12:56 -0700, Roedy Green wrote: define a . >I am using the Jet compiler which takes a jar and produces an exe. >This works: > > > > > > >This is an time-consuming operation that is not needed if the >converter.exe has a last-modified date after the ja

Re: Improving the manual

2005-07-28 Thread Juergen Hermann
On Wed, 27 Jul 2005 10:18:14 -0700, Roedy Green wrote: IMHO the right place to start this is the wiki, especially since everyone can right now start to contribute, there are no obstacles. Whether the content created there is then incorporated into the docs or not is not so important, HAVING the

Re: Zipfileset problem. Help!

2005-07-26 Thread Juergen Hermann
On Tue, 26 Jul 2005 13:09:30 -0700, S I wrote: >to be included in the final zip file. I want the .rdl files to sit at the >root of the zip file w/o exporting their subfolder names. But I'm not >successful. This is the way I have written the Ant script now: if nothing else works, the files t

Re: yet another problem with windows and '\'

2005-07-26 Thread Juergen Hermann
On Tue, 26 Jul 2005 11:51:11 +0200, Rebhan, Gilbert wrote: >Oops :-( >behaviour as in java when \ has to be masked as \\ >*** What's the reason for that ? *** That is normal behaviour for all property files. If you used echoproperties istead of echo, then this wozld've been no problem, since

Re: While Looping in ANT

2005-07-23 Thread Juergen Hermann
On Fri, 22 Jul 2005 21:11:48 -0700, Jacob, Anil - MWL wrote: >Does anyone know how I implement a loop similar to a while loop? > I want to keep checking to see if a particular property is set in a >target, once that target is executed it can be a while before the >property is finally set, then o

Re: Regexp pattern list

2005-07-22 Thread Juergen Hermann
On Fri, 22 Jul 2005 15:46:39 -0400, Joyce Li wrote: >However, the keyword list grow very long, about 20 or 30 of them. I >tried to separete them into a few separate properties and merge them >into one so I don't have this extremely long line there. >Is there a better way for me to handle this?

RE: javacc on multiple files

2005-07-22 Thread Juergen Hermann
On Fri, 22 Jul 2005 11:47:45 -0700, Bill Rich wrote: >This is untested -- >You can use to generate a list of your *.jj files, then use > to place the list in a property, then use the ant-contrib > to iterate over the property passing each file in the list to javacc. btw, for iterates over files

Re: replaceregexp problem

2005-07-22 Thread Juergen Hermann
On Fri, 22 Jul 2005 14:36:22 -0400 (EDT), Frank W. Zammetti wrote: regex != glob ==> s/*/.*/ >Hi all... having some trouble getting a regex replace to work... I have a >JSP which contains the following line: >Version 3.0Build >306301/01/2005 >I have a task in my build script like so: >match="<

Re: Recursive file matching

2005-07-21 Thread Juergen Hermann
On Fri, 22 Jul 2005 03:40:36 +0200, Danilo Buerger wrote: >is it possible to make sure that for each class a corresponding unit >test class exist? For example: >For these two classes: >/xyz/main.class >/xyz/whatever.class define this as a fileset, use a to map to the test files, iterate over

Re: properties file read programatically

2005-07-21 Thread Juergen Hermann
On Thu, 21 Jul 2005 22:48:38 +0200, javier muguruza wrote: >I haven't found anything in the list about that...is it possible to >use ant programatically to read a property file and at the same time >performing the property substitution like ant does? I would like to >reuse my build.properties for

Re: NullPointerException when adding listener

2005-07-21 Thread Juergen Hermann
On Thu, 21 Jul 2005 11:42:15 -0700 (PDT), Matt Benson wrote: >Looks like your XmlLogger object needs -some- >configuration between instantiation and addition as a >listener. Well, in some twisted way, yes. The XmlLogger does two things: recording seen tasks in "tasks", and recording timing info.

NullPointerException when adding listener

2005-07-21 Thread Juergen Hermann
Hi, the following build script which adds a listener at runtime fails with a NullPointerExcepton. Is this a bug, just not possible or an error in my script? (Tested with ant 1.6.2) Test Adding Logger via Scripting Adding refer

RE: sort or min/max file

2005-07-20 Thread Juergen Hermann
On Wed, 20 Jul 2005 17:29:07 +0200, Schulpen, D.P.H. wrote: >I've been fooling around with this, but it doesn't seem to be able to solve my problem. SortList only seems able to do an ascending lexical sort, which means that the most recent build (the one with the 'highest' build number string)

Re: how to use a fileset with the pack200 task?

2005-07-19 Thread Juergen Hermann
On Tue, 19 Jul 2005 18:11:36 +0200, Ingo Siebert wrote: >I'm looking for an ant task which calls an other task for every file in >the fileset? antcontrib:for. Ciao, Jürgen - To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

RE: scp question - very urgent

2005-07-18 Thread Juergen Hermann
On Mon, 18 Jul 2005 14:57:16 -0700, Anderson, Rob (Global Trade) wrote: >This is an Ant user list. Is your question related to Ant? Only in the way that he should use the right tool for the job, which in this case seems to be a combo or and . Why in the world he uses Ant to sync two machine's

Re: Building projects on FreeBSD machine.

2005-07-18 Thread Juergen Hermann
On Mon, 18 Jul 2005 19:15:13 +0530, Karunakar Chatla wrote: >We wanted to build these projects remotely from a windows box. >Also have to perform file operations on that machine. Look into antcontrib ==> AntServer & RemoteAnt. Ciao, Jürgen

Re: Where is the documentation for ant contrib

2005-07-17 Thread Juergen Hermann
On Sun, 17 Jul 2005 11:34:23 +0200, Gilbert Rebhan wrote: >So, if i understand correctly you may use one of them, >both containing the same tasks. >I use antcontrib, but the docs of antelope ;-) The most interesting tasks in Antelope for me are Suite & TestCase, and those are the ones I don't f

Re: Where is the documentation for ant contrib

2005-07-17 Thread Juergen Hermann
On Sun, 17 Jul 2005 10:13:46 +0200, Gilbert Rebhan wrote: >The antelope project - now hosted @ tigris.org - >was merged into antcontrib some time ago. In the 1.0b2 distribution of antcontrib there are none of the antelope tasks. so is antcontrib merged into antelope, or is the antelope merge CVS

Re: tar archive: varying list of subdirectories as a property?

2005-07-16 Thread Juergen Hermann
On Fri, 15 Jul 2005 22:55:57 -0400 (EDT), R. Lafleche wrote: >Relative to a specific basedir, how do I pass a list >of subdirectories that may vary over time to the tar >task without changing the buildfile, only the >properties file? >For example: subdirOne, subdirTwo subdirThree during >the firs

Re: uptodate help...

2005-07-15 Thread Juergen Hermann
On Fri, 15 Jul 2005 14:27:41 -0400, Mark Lybarger wrote: > (untested) Ciao, Jürgen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: nested property names

2005-07-15 Thread Juergen Hermann
On Fri, 15 Jul 2005 10:18:29 -0500, [EMAIL PROTECTED] wrote: or a . >The idea being that the property's name is actually a property itself. The >above line doesn't seem to work in ant, however. Any ideas? Ciao, Jürgen - T

Re: stripping duplicates in file with

2005-07-15 Thread Juergen Hermann
On Fri, 15 Jul 2005 11:34:46 +0200, Rebhan, Gilbert wrote: Not that I've tried it, but a combo of , , and could do the trick. >i'm parsing the updatelogs from a ClearCase snapshotview with regular >expressions - that works fine, OK >But as i have to parse n logs of one whole day there appear

Re: Creating tasks in Ant for C++ project

2005-07-15 Thread Juergen Hermann
On Fri, 15 Jul 2005 18:32:42 +1200, Simon Kitching wrote: >> >is it easy to create custom tasks in Ant >> with scripting languages, it is easy. >Really?? Writing custom tasks is easy. >Make is essentially a declarative language where the make engine deduces >from the available facts (file ti

Re: Does Ant improves the performance in large c++ project than make?

2005-07-14 Thread Juergen Hermann
On Thu, 14 Jul 2005 17:45:13 -0700, Alexey N. Solofnenko wrote: >It is quite possible. With make it is usually one file at a time >compilation. ANT is smart enough to request a build for several files at >a time. BTW, it sounds as if ccache and/or distributed compiling (ccdist I think) is a be

Re: Creating tasks in Ant for C++ project

2005-07-14 Thread Juergen Hermann
On Thu, 14 Jul 2005 17:32:54 -0700 (PDT), hiren patel wrote: >is it easy to create custom tasks in Ant to achieve the functionaly as provided by make ? >I want to move from make to ANT , so do you have an idea that what it takes to convert the >existing makefile to Ant files? with scriptin

Re: Queries on using ANT

2005-07-13 Thread Juergen Hermann
On Wed, 13 Jul 2005 17:56:29 +0530, Karunakar Chatla wrote: >How can we update that web page from ANT? Is there any task defined to >perform this action? A combination of

Re: Manifestations

2005-07-12 Thread Juergen Hermann
On Tue, 12 Jul 2005 18:11:21 +1000, Kai Hendry wrote: >Ok ${man2} has what I want. Though the JAR take wants a FILE for the >manifest. So how do I dump ${man2} temporarily to a file for the task. I >don't want >to overwrite MANIFEST1.MF or MANIFEST2.MF then do not use loadfile, but concat or co

Re: and listeners: incompatibility?

2005-07-08 Thread Juergen Hermann
On Fri, 8 Jul 2005 15:20:04 +0200, [EMAIL PROTECTED] wrote: >I am using the -listener net.sf.antcontrib.perf.AntPerformanceListener option from antcontrib and at the same time i wanted to record the output of my antscripts to a log file(i don't use the -logfile option because i want the output

Re: Manifestations

2005-07-08 Thread Juergen Hermann
On Fri, 08 Jul 2005 17:37:53 +1000, Kai Hendry wrote: Seems easy enough. use and a filter to load the ear manifest EXCEPT the first line ( I think). btw, you could also load this easy manifest file as a property file, giving you a "class-path" property in memory. then use a 2nd filterchain

Re: Manifestations

2005-07-08 Thread Juergen Hermann
On Fri, 08 Jul 2005 16:23:49 +1000, Kai Hendry wrote: >Is there a way in ant to merge the content of two manifest files? Maybe by some (complex) filterchains, depends on what exactly you want to merge. Ciao, Jürgen - To unsu

Re: antcall task not behing executed.

2005-07-07 Thread Juergen Hermann
On Thu, 7 Jul 2005 09:23:18 -0500, George Dibi wrote: ... ... or use ant-contrib's if. Ciao, Jürgen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: ordered fileset or selective filelist

2005-07-07 Thread Juergen Hermann
On Wed, 6 Jul 2005 08:59:57 -0400, Mark Lybarger wrote: >I've got a macrodef, and am calling it as you mentioned, I just can't seem >to figure out how to conditionally call the subant only if hte file >exists...? Use a fileset, not a buildpath, if the fileset is empty, subant should be a NOP.

Re: Ant Configuration Problem

2005-07-07 Thread Juergen Hermann
On Wed, 6 Jul 2005 11:07:37 -0400, Liying Miao wrote: >C:\UPORTAL>set ANT_HOME=./Ant_1-6-2 Try backslashes, and a FULL path, not a relative one. Ciao, Jürgen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional command

RE: wild card in project.getProperty()

2005-07-05 Thread Juergen Hermann
On Tue, 5 Jul 2005 08:52:11 -0400, Dick, Brian E. wrote: in Ant optional tasks. perfect for a filter file, or loading them into another build script. >PropertySelector in ant-contrib >-Original Message- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >Sent: Tuesday, July 05, 2005 4

Re: xmlvalidate question

2005-07-05 Thread Juergen Hermann
On Tue, 5 Jul 2005 16:41:07 +0200, [EMAIL PROTECTED] wrote: >I was wondering about the following: i am using an task with a System Id for my dtd and... it works. >Why is there nothing on the manual about system ids usage? I guess for the same reason there is no Linux or Windows manual in it. ;

Re: ordered fileset or selective filelist

2005-07-05 Thread Juergen Hermann
On Tue, 5 Jul 2005 10:29:34 -0400, Mark Lybarger wrote: > > > > > > > use macrodef (define a macro that conditionally calls subant), and just list the macro calls in order. Ciao, Jürgen - To unsubscribe, e-mail: [EMAIL PR

Re: [antcontrib] post task, HTTP/1.0 401 Authentication requested

2005-07-05 Thread Juergen Hermann
On Tue, 5 Jul 2005 11:29:28 +0200, Rebhan, Gilbert wrote: >i want to use the post task of antcontrib to >kick off a forced build in CruiseControl via JMX interface. >Are there any other similar http post tasks around that >allow authentification ? Hmmm, why use HTTP when you can use JMX? See the