avoid duplicates with pathconvert and mappers

2013-04-15 Thread Patrick Martin
Hello, I have a folder looking like: folder1/file-1.txt folder1/file-2.txt folder2/file-1.txt folder2/file-3.txt i'd like to list the file ids: 1,2,3. Trying with pathconvert: However, the id 1 gets dupli

Re: zip from zip with mappers

2012-11-20 Thread Patrick Martin
On Tue, Nov 20, 2012 at 6:05 AM, Stefan Bodewig wrote: > On 2012-11-19, Patrick Martin wrote: > > > I have a situation where I need to create an archive (zip) from an other > > one, but transforming some path inside. I want to avoid using a temporary > > folder stru

zip from zip with mappers

2012-11-19 Thread Patrick Martin
Hello, I have a situation where I need to create an archive (zip) from an other one, but transforming some path inside. I want to avoid using a temporary folder structure as the input files contains a huge amount of entries (about 125000...) and this generates quite a lot of I/Os. I was thinking

wait for sftp resource

2012-08-06 Thread Patrick Martin
Hello, I would like to wait for an sftp resource (file on a SFTP server) availability before doing some actions. As the file would be big, I do not want to download it. Also, I do not know the exact name, only part of it (eg ${prefix}*${timestamp}.zip). I saw the task which allows to transfer fi

Re: Mail task with mail.jar & activation.jar out of lib folder

2011-01-20 Thread Patrick Martin
Thank you all for your feedback, it's much clearer now. Patrick On Thu, Jan 20, 2011 at 6:30 AM, Antoine Levy-Lambert wrote: > On 1/19/11 9:46 PM, Michael Ludwig wrote: >> But I still haven't understood the underlying issue. What's so special about >> mail.jar that it needs special treatment? >

Re: Mail task with mail.jar & activation.jar out of lib folder

2011-01-19 Thread Patrick Martin
Hello, I just realized that the correct class shuold probably be org.apache.tools.ant.taskdefs.email.EmailTask. But I still end up with an error: java.lang.ClassNotFoundException: javax.activation.DataHandler Thanks, Patrick On Wed, Jan 19, 2011 at 10:31 AM, Patrick Martin wrote: > He

Mail task with mail.jar & activation.jar out of lib folder

2011-01-19 Thread Patrick Martin
Hello, Is it possible to use the task without having activation.jar and mail.jar in the ant lib folder? I tried to redefine the mail task this way: But it did not work. I keep on getting the following error: D:\tmp\build.

Re: launch Ant from Java code

2011-01-12 Thread Patrick Martin
tener(antDefaultLogger); >        antProject.executeTarget("targetName"); >    } > > } > Regards, > > Antoine > > On 1/12/11 8:08 AM, Patrick Martin wrote: >> >> Hello and happy new year to you all, >> >> What is the recommended way for lau

launch Ant from Java code

2011-01-12 Thread Patrick Martin
Hello and happy new year to you all, What is the recommended way for launching an Ant script/task from Java code ? It seems to me that the following URL http://ant.apache.org/manual/running.html#viajava rather explains how to launch Ant with java.exe from the command line. Is it also recommended

Re: Copying a static list of files

2010-06-26 Thread Patrick Martin
48 AM, Stefan Bodewig wrote: > >> On 2010-06-25, Patrick Martin wrote: >> >>> I tried that but then, copy (verbose="true") tells me something like: >>> [copy] //host/share/dir1/dir2/one file.txt omitted as >>> //host/share/dir1/dir2/one file.txt is

Re: Copying a static list of files

2010-06-25 Thread Patrick Martin
tribute into account ? On Fri, Jun 25, 2010 at 4:21 PM, Patrick Martin wrote: > I still don't get how will know which basedir to take from the > source files in order to recreate the correct folder structure in the > "todir" folder. > Let's say that my file list co

Re: Copying a static list of files

2010-06-25 Thread Patrick Martin
xt //host/share/dir1/three files.txt I loaded that in my property. Then:         How will copy know it should take files in //host/share/dir1 or in //host/share for example? On Fri, Jun 25, 2010 at 4:08 PM, Stefan Bodewig wrote: > On 2010-06-25, Patrick Martin wrote: > >> This looks

Re: Copying a static list of files

2010-06-25 Thread Patrick Martin
This looks really promising! How do you use it with copy? where is the equivalent of the "dir" attribute of or ? On Fri, Jun 25, 2010 at 3:11 PM, Stefan Bodewig wrote: > On 2010-06-25, Michael Ludwig wrote: > >> Patrick Martin schrieb am 25.06.2010 um 09:06 (+0200): >

Re: Copying a static list of files

2010-06-25 Thread Patrick Martin
n Thu, Jun 24, 2010 at 11:17 PM, Michael Ludwig wrote: > Patrick Martin schrieb am 24.06.2010 um 21:21 (+0200): >> Sorry, I meant to say that "spaces in filenames are unfriendly with >> filelist", not filesets > > Not sure I understand the problem you

Re: Copying a static list of files

2010-06-24 Thread Patrick Martin
Sorry, I meant to say that "spaces in filenames are unfriendly with filelist", not filesets On Thu, Jun 24, 2010 at 9:17 PM, Patrick Martin wrote: > Hello, > > My problem is not so much with slashes and back-slashes (which i am > quite used to deal with), but rather wi

Re: Copying a static list of files

2010-06-24 Thread Patrick Martin
Hello, My problem is not so much with slashes and back-slashes (which i am quite used to deal with), but rather with spaces in filenames which are unfriendly with fileset. With or with resource collections, I don't see how to set the equivalent to the "dir" attribute to make it work properly wi

Copying a static list of files

2010-06-24 Thread Patrick Martin
Hello, I want to copy a big number of files located on a remote server. To avoid scanning the remote directory, I use a locally generated list of absolute file names in a file called fileList.txt. So my fileList.txt contains something like: \\machine\share\dir1\dir2\file1.ext \\machine\share\dir1

multiple mappings and copy

2010-05-02 Thread Patrick Martin
Hello, when using , are the source files read only once or as many times as there are mappings? for example How many times should the file be read? Thanks, Patrick ---

loop replace mapper

2010-05-01 Thread Patrick Martin
Hello, I wrote a small mapper which loops on a string list and replaces a token in the input file name. it can be used (since ant 1.8.1) like this:

Re: using compositemappers with zip

2010-04-21 Thread Patrick Martin
Hello, By the way, do you have any idea when ant 1.8.1 will be publicly released? Last mail I saw on this was 5 days ago, from Antoine. Rgds, On Wed, Apr 21, 2010 at 11:05 AM, Patrick Martin wrote: > Great! thanks a lot. > > On Wed, Apr 21, 2010 at 10:31 AM, Stefan Bodewig wrote: &

Re: using compositemappers with zip

2010-04-21 Thread Patrick Martin
Great! thanks a lot. On Wed, Apr 21, 2010 at 10:31 AM, Stefan Bodewig wrote: > On 2010-04-21, Stefan Bodewig wrote: > >> That being said, it would make absolute sense to implement >> enablemultiplemappings at the level so all tasks would >> benefit from it. > > Added with svn revision 936200 to

using compositemappers with zip

2010-04-20 Thread Patrick Martin
Hello, Is it possible to use compositemappers with zip? The idea is to have a source tree templatized like @dirname@/file1 and to obtain the following in the zip file (in one go): dir1/file1 dir2/file1 I imagined this could be done like this:

Re: Basic question re Antform and conditional execution of tasks

2010-02-26 Thread Patrick Martin
rgets in the 'buildall' target and then rely on the > depends/if to bypass those targets if the property was not set in tne > AntForm? > > I think we're on the right track here but I just need a little more > information in order to get this working correctly. > -- &

Re: Basic question re Antform and conditional execution of tasks

2010-02-25 Thread Patrick Martin
Hello, You probably want to use a booleanProperty instead of a checkSelectionProperty. The checkSelectionProperty allows to select multiple values (you use it only for one). It always set the property (even if empty), so your statements will get executed as they test the property existence and n

Re: AntForm project

2010-02-15 Thread Patrick Martin
Hello, The basic idea is to have a user interface to set ant properties values. For that, you can use a set of widget to set string, file, date or number properties. Task declaration should look like: A usage example would be:

Re: AntForm project

2010-02-14 Thread Patrick Martin
Hello, Thank you for your interest in antform. It's been a while nothing has been done on this project and that's quite unfortunate. I did not realize there was a lot of spam since my google account detects them all. If you need support on antform, do not hesitate to ask me directly. I'll try to

Re: [ant] Determining relative paths resp. substring?

2009-01-30 Thread Patrick Martin
Hello, I think you can strip the prefix by using with a . Cheers, Patrick On Sat, Jan 17, 2009 at 11:32 PM, Georg-Johann Lay wrote: > Georg-Johann Lay schrieb: >> >> Hi, >> >> can anyone assist me in solving this following quite trivial problem? >> >> Given a path A and the current directory

Re: extract properties from file and corresponding template

2007-09-10 Thread Patrick Martin
Indeed, it will certainly be useful. Thanks a lot. Patrick On 9/7/07, Bruce Atherton <[EMAIL PROTECTED]> wrote: > True, if your properties file has embedded ant properties that you > expect to be replaced, what you will get back when you regenerate the > file is not the property but the replacemen

Re: extract properties from file and corresponding template

2007-09-06 Thread Patrick Martin
Therefore you cant parse the resulting file. > > Example: > > template > this @value@ file > property > value=is a sample > result > this is a sample file > > How you would parse the "this is a sample file" string? > > > Jan > >

extract properties from file and corresponding template

2007-09-06 Thread Patrick Martin
Hello, I have a file that was generated from a template and a set of properties using ant filters. Basically, the template contained tokens like @my.property@ which where replaced by the corresponding value of ${my.property}. template + properties >>> file Now, I'd like to be able to get the set

Re: Perform a task for every folder from the file.

2007-04-30 Thread Patrick Martin
cool for me but: I get BUILD FAILED C:\CMApplicationTools2\PackagingTools\build.xml:251: You must supply a property name to set on each iteration in param What to do with that? Patrick Martin-2 wrote: > > Hello, > > I think you don't need to use antcount for that (e

Re: Perform a task for every folder from the file.

2007-04-30 Thread Patrick Martin
Hello, I think you don't need to use antcount for that (even though this is a great task ... ;-)) you should be able to load your file with loadfile, without filtering, and then use ac:for with delimiter="${line.separator}" [...] [...] Rgds, Patrick On 4/30/07, Camer38 <[EMAIL PROTECTED]>

Re: Anyway to make an input task have stars?

2007-01-10 Thread Patrick Martin
Hello, If you need user input *and* have access to a windowed system, you may want to try to have a look at antform: http://antforms.sourceforge.net/ Its textProperty element has a password attribute that will hide user input. Cheers, Patrick On 1/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]>

Re: Access source file from mapper

2006-12-12 Thread Patrick Martin
I guess it would be more like (not tested): is a task i am also working on (antexif @ sourceforge) Thank you, Patrick On 12/11/06, Matt Benson <[EMAIL PROTECTED]> wrote: --- Dominique Devienne <[EMAIL PROTECTED]> wrote: > > I did not find anything :-(. I was just

Re: Access source file from mapper

2006-12-11 Thread Patrick Martin
Hello, On 12/11/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >1. I miss the source folder. As an example task: > > > > >Here, the variable "source" would be something matched by >*.JPG. It does not include the folder C:\B. mmmh ... that works for me: f

Re: Access source file from mapper

2006-12-11 Thread Patrick Martin
ameMapper.java?view=markup >-Ursprüngliche Nachricht- >Von: Patrick Martin [mailto:[EMAIL PROTECTED] >Gesendet: Freitag, 8. Dezember 2006 18:14 >An: Ant User >Betreff: Access source file from mapper > >Hello, > >I am trying to develop a file name mapper which modifi

Access source file from mapper

2006-12-08 Thread Patrick Martin
Hello, I am trying to develop a file name mapper which modifies the file name according to the file content. The idea is to map JPEG file names according to the image EXIF attributes (date, size, ...). The issue I encounter is that the mapper does not have access to the source File object, and t

Re: AntForm question

2006-11-30 Thread Patrick Martin
hat about that the nightly build script should be able to disable the showing of the form even if in the form no "unless" attributes have been used? Maybe by setting a parameter like "walkthrough=true". Its no real fine plan which I have, just brainstorming ideas. Pat

Re: [help] Search a string in a file

2006-11-30 Thread Patrick Martin
: 12.0 Skipped : 0.0 Cheers, Patrick On 11/29/06, Patrick Martin <[EMAIL PROTECTED]> wrote: Hello, You may want to have a look at antcount : http://antcount.sourceforge.net/ Cheers, Patrick On 11/28/06, Rebhan, Gilbert <[EMAIL PROTECTED]> wrote: > > Hi, > > installing JR

Re: AntForm question

2006-11-29 Thread Patrick Martin
property and dateproperty On 11/29/06, Hans Schwaebli <[EMAIL PROTECTED]> wrote: Yes, would be good. Ant scripts must run without interruption if called programmatically, for example from a nightly build with Cruise Control. Then there is noone there to push the ok button. Patrick Mart

RE: AntForm question

2006-11-29 Thread Patrick Martin
Hello, The thing is that antform is meant to be different from . It allows user to override default values. However, I missed the fact that you were using the unless attributes. What we may be able to do is skip the form display if no "widget" (antform sub-element) is to be displayed. Would that

RE: AntForm question

2006-11-29 Thread Patrick Martin
Hello, Yes, that's the way to go. Antform allows to modify properties. The fact that it shows up when the properties are set is normal. Basically, the usual steps are: 1. You set *default* values for your properties (p1 and p2 for example) 2. You open the antform. Values in the antform are the o

Re: [help] Search a string in a file

2006-11-29 Thread Patrick Martin
Hello, You may want to have a look at antcount : http://antcount.sourceforge.net/ Cheers, Patrick On 11/28/06, Rebhan, Gilbert <[EMAIL PROTECTED]> wrote: Hi, installing JRuby = you don't have to install JRuby, means no need for setting JRUBY_HOME and stuff, but for using the

Re: copy files using mapper

2006-08-05 Thread Patrick Martin
Hello, From what I understand you want to remove DirB\DirC from the target files path. Would something like the following match your need (not tested) ? Patrick On 8/5/06, satheesh <[EMAIL PROTECTED]> wrote: I Need to copy files from D:\dirA\dirB\dirC\dirD\*.jsp To D:\dirA\dirD\*.jsp,

Re: Antcount - external filters

2006-07-05 Thread Patrick Martin
urceforge project called antcount >(http://antcount.sourceforge.net/). Antcount is a set of Ant >filters used for gathering statistic information from files or >resources. > > Contact: > http://antcount.sourcef

Re: Count Lines of Text?

2006-06-15 Thread Patrick Martin
Hello, You may want to have a look at antcount: http://antcount.sourceforge.net/ Rgds, Patrick On 6/14/06, Aaron Davies <[EMAIL PROTECTED]> wrote: I've got no problems with ant-contrib; I'm already using several of their tasks. Do they have something to do this? I didn't see one. On 6/14/06,

Use of Project.executeTarget(String)

2006-06-06 Thread Patrick Martin
Hello, Probably a dum question : is is authorized (ie not dangerous) to use the method Project.executeTarget(String) ? The following would create a task that calls a target. The properties set in this target get created in the calling project. public class TargetCaller extends Task { pr

Re: Counting lines in a file

2006-05-12 Thread Patrick Martin
Indeed: Patrick On 5/12/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: And maybe there are some existing tasks you could use, like http://antcount.sourceforge.net/ ;-) Jan >-Ursprüngliche Nachricht- >Von: [EMAIL PRO

Re: SQL task output encoding

2006-05-04 Thread Patrick Martin
I might be wrong on this: Java Reader and Writer always use Unicode by default On 5/4/06, Patrick Martin <[EMAIL PROTECTED]> wrote: Hello, I'd like to know which encoding is used by the SQL task when outputing to a file. I believe it is unicode but I need to be sure... has

SQL task output encoding

2006-05-04 Thread Patrick Martin
if I am not mistaking, the task uses a PrintStream which in turn uses a Writer... Does this certify that the output will be unicode? Thanks, Patrick Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Antcount - external filters

2006-05-02 Thread Patrick Martin
everal files at once split the stream in two for parallel processing Compatibility: Ant 1.6.2 and higher URL: http://antcount.sourceforge.net/";>http://antcount.sourceforge.net/ Contact: http://antcount.sourceforge.net/";>

Re: Ant 1.7 - resources, unzip and copy

2006-04-14 Thread Patrick Martin
limiting to one zip file was quite restrictive. Thanks again, Patrick Martin. On 4/14/06, Matt Benson <[EMAIL PROTECTED]> wrote: > --- Patrick Martin <[EMAIL PROTECTED]> wrote: > > > Hello, > > > > I am having a look at the new resource feature in > >

Ant 1.7 - resources, unzip and copy

2006-04-14 Thread Patrick Martin
ested resource collections (like ) to work on several zip files at the same time. The "Related tasks" in the doc shows that can be replaced by . Is there anything that we can do with but not with ? Thanks, Patrick Martin. -

Re: And I want to input two args at a time through console

2006-03-13 Thread Patrick Martin
Hello, You can also use [1] instead of . It has a element which allows you to select multiple elements from a list. You can then use an ant-contrib or task to loop on the resulting list and do what you want for each item. Rgds, Patrick Martin [1] http://antforms.sourceforge.net/ On 3/12/06

Re: How to give conditions.?

2006-02-23 Thread Patrick Martin
And if you want a nicer GUI than , you can use antform: http://antforms.sourceforge.net/ Patrick M. On 2/23/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >If I want to give conditions like a user i/p which > >decides whther my application is to be deployed in Tomcat or Weblogic >

Re: EJB task problem help please....

2006-02-21 Thread Patrick Martin
Hello, Found at the following link: http://ant.apache.org/manual/OptionalTasks/ejb.html#ejbjar -- The task uses the jakarta-BCEL framework to extract all dependent classes. This means that, in addition to the classes that are mentioned in the deployment descriptor, any classes that these de

Re: ¿How to split a file? Split Task?????

2006-02-21 Thread Patrick Martin
Hello, For splitting a file fixing the number of line, I guess that you could use two using and . Regards, Patrick M. On 2/20/06, David <[EMAIL PROTECTED]> wrote: > Dear members, > > I was looking in to the Ant Bug database and I have found the following > request: > > http://issues.apa

Re: Filesets

2006-02-16 Thread Patrick Martin
Hello, You can have a look at http://ant.apache.org/manual/CoreTypes/fileset.html Rgds, Patrick M. On 2/16/06, bejoy <[EMAIL PROTECTED]> wrote: > > Hi, > > > Please give some examples on fileset and nested fileset. > > Thanks & Regards, > Bejoy > > > > This e-mail and any files transmitted with

Re: Property vs. user property - what's the difference?

2006-02-16 Thread Patrick Martin
Thanks a lot for this very useful and clear information. I am surprised to read that can override properties. Is there a reason for it? Patrick M. On 2/16/06, Stefan Bodewig <[EMAIL PROTECTED]> wrote: > On Wed, 15 Feb 2006, Patrick Martin <[EMAIL PROTECTED]> wrote: > > &g

Re: , but for paths...

2006-02-15 Thread Patrick Martin
Hello, You may want to have a look to antform: http://antforms.sourceforge.net/ Regards, Patrick M. On 2/15/06, Rich Wagner <[EMAIL PROTECTED]> wrote: > I was looking through the online Ant manual recently, looking for > something like , but which would display either an "open" or > "save" dial

Re: Property vs. user property - what's the difference?

2006-02-15 Thread Patrick Martin
Hello, Could you explain the "even more immutable" part of your mail ? Thanks, Patrick M. On 2/15/06, Stefan Bodewig <[EMAIL PROTECTED]> wrote: > On Tue, 14 Feb 2006, Ian Pilcher <[EMAIL PROTECTED]> wrote: > > > Can someone explain the difference between a property and a user > > property (or the

Re: AW: AW: Way to refresh properties?

2006-02-14 Thread Patrick Martin
I am glad to read that! ;-) On 2/14/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > Thanks for that info Patrick! I had kind of worked out the theory of it > in my playing, but nice to have it confirmed. Since my build scripts tend > to be a single target that antcalls all the others, this is

Re: AW: AW: Way to refresh properties?

2006-02-14 Thread Patrick Martin
Hello, If you were using antcall to invoke a target containing antform, it is a normal behaviour. Targets invoked with antcall cannot set properties in the calling target: This will print: p = ${p} if you replace b by a macro or if you set depends="b" on target 'a', it will work.

Re: Change XML by Ant

2006-02-13 Thread Patrick Martin
Hello, You can also try xmltask : http://www.oopsconsultancy.com/software/xmltask/index.html Regards, Patrick M. On 2/13/06, Kees van Dieren <[EMAIL PROTECTED]> wrote: > You can try the Ant xslt task: > http://ant.apache.org/manual/CoreTasks/style.html > > Best regards, > > Kees van Dieren > Se

Re: Displaying the value in a Java class?

2006-02-11 Thread Patrick Martin
Hello again, For info, the latest CVS version of antform includes Matt's fix about nested text. Labels in AntMenu should then work as expected. Patrick Martin. On 2/11/06, Patrick Martin <[EMAIL PROTECTED]> wrote: > Hello, > I reproduced the bug about property expansion in an

Re: Displaying the value in a Java class?

2006-02-11 Thread Patrick Martin
e the linkbar. I'll try to have a look at Matt's suggestion about extending ProjectComponent. Regards, Patrick Martin. On 2/11/06, Rhino <[EMAIL PROTECTED]> wrote: > > - Original Message - > From: "Matt Benson" <[EMAIL PROTECTED]> > To: "A

Re: Custom tasks

2006-02-07 Thread Patrick Martin
Hello, If you want a GUI, I would recommend antform as well. What you are trying to do could be done this way: Regards, Patrick M. On 2/7/06, bill/wilandra <[EMAIL PROTECTED]> wrote: > There is also an OpenSource project on SourceForge.net called AntForm. It > will display a menu or f

Re: AW: AW: loop in ant

2006-01-24 Thread Patrick Martin
Hello, I once tried to implement a while task but I had an issue with some conditions like equal. ... the property used in equal is evaluated before the call to equal, and only once. So it will never change. Is there a way to avoid that? Here is the code I used: public class WhileTask

Re: How to Echo a file contents?

2005-08-25 Thread Patrick Martin
You can also use concat (avoids out of memory errors with big files). On 8/24/05, Jeffrey E Care <[EMAIL PROTECTED]> wrote: > Load the file into a property with , then the property > value. > > -- > Jeffrey E. Care ([EMAIL PROTECTED]) > WebSphere v7 Release Engineer > WebSphere Build Tooling Lea

Re: Eclipse input task -inputhandler

2005-08-05 Thread Patrick Martin
Windowed input can be done with antform [1]. You won't rely on a specific IDE in this case... [1] http://antforms.sourceforge.net/ On 8/5/05, Ivan Ivanov <[EMAIL PROTECTED]> wrote: > Mark, > > You can do it by writing a class that extends > oata.input.InputHandler and in > handleInput(InputReque

Re: regular expression help+tokens instead of words

2005-08-02 Thread Patrick Martin
Hi, You could try to replace the blank character by ' myPrefix' (not the blank before myPrefix). Patrick Martin On 8/2/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > thanks Ahmed it works for the sample string i provided. > My question is how can you avoid special

Re: concealing passwords

2005-08-01 Thread Patrick Martin
Hello, You can also get the user input via an antform [1] UI which can star passwords: Not tested, but something like that should work. [1] http://antforms.sourceforge.net/ On 8/1/05, Steve Loughran <[EMAIL PROTECTED]> wrote: > Roedy Green wrote: > > I notice that in all the scripts I hav

Re: XSLT - Many Input One Output

2005-07-29 Thread Patrick Martin
> easier with this ? > > Can you estimate this ? > > Greets Oliver > > - Original Message - > From: "Patrick Martin" <[EMAIL PROTECTED]> > To: "Ant Users List" ; "KrustyDerClown" > <[EMAIL PROTECTED]> > Sent: Friday, Ju

Re: XSLT - Many Input One Output

2005-07-29 Thread Patrick Martin
Hello, You might want to have a look at xmltask [1]. Regards, Patrick [1] http://www.oopsconsultancy.com/software/xmltask/ On 7/29/05, KrustyDerClown <[EMAIL PROTECTED]> wrote: > Hello, > > i use the task for a XSLT transformation. I have multiple sources (XML > files) and want only one out

Re: No BuildFinished event in subproject

2005-07-28 Thread Patrick Martin
e Engineer > WebSphere Build Tooling Lead (Project Mantis) > > > Patrick Martin <[EMAIL PROTECTED]> wrote on 07/28/2005 05:34:54 AM: > > > Hello, > > > > I am writing a task that runs tasks in background and listens to build > > events in order to make sure

Re: No BuildFinished event in subproject

2005-07-28 Thread Patrick Martin
My other solution is to add the BuildListener to the main project. But I did not find yet how to get its instance when being run from a subproject. On 7/28/05, Patrick Martin <[EMAIL PROTECTED]> wrote: > Hi, > > if I understand well, all BuildListeners set in the main pr

Re: No BuildFinished event in subproject

2005-07-28 Thread Patrick Martin
src/main/org/apache/tools/ant/taskdefs/defaults.properties > [2] > http://cvs.apache.org/viewcvs.cgi/ant/src/main/org/apache/tools/ant/taskdefs/CallTarget.java?view=annotate > > >-Ursprüngliche Nachricht- > >Von: Patrick Martin [mailto:[EMAIL PROTECTED] > >Gesende

No BuildFinished event in subproject

2005-07-28 Thread Patrick Martin
Hello, I am writing a task that runs tasks in background and listens to build events in order to make sure background threads finish before the build ends (as suggested in [1]). The trick works perfectly well when running the task in the main project, but I never get the BuildFinished event when

Re: Scope of property.

2005-07-27 Thread Patrick Martin
Hi, I tried the following: > build.xml > target1.properties a = A and output is: Buildfile: build.xml target1: target2: [echo] a = A BUILD SUCCESSFUL Total time: 0 seconds Which is correct.

Re: wait for background thread

2005-07-26 Thread Patrick Martin
- Ant uses for synchronizing > > Jan > > >-----Ursprüngliche Nachricht- > >Von: Patrick Martin [mailto:[EMAIL PROTECTED] > >Gesendet: Dienstag, 26. Juli 2005 18:08 > >An: user@ant.apache.org > >Betreff: wait for background thread > > > >Hello, >

wait for background thread

2005-07-26 Thread Patrick Martin
Hello, Writing an task, I want to run some stuff in a background thread, and I need ant to wait until the background thread is done before exiting. I thought I would take example on the ant-contrib forget task, but it seems that ant will exit even if the background thread is not finished:

RE: Mapper: renaming + flattening

2004-07-08 Thread Patrick Martin
Sent: jeudi 8 juillet 2004 16:09 > To: Ant Users List > Subject: Re: Mapper: renaming + flattening > > Ah, you are using a version of dos. > > In dos and windows, directories use '\', so the regex or glob needs to > modified to do that. > > Peter > &

RE: Mapper: renaming + flattening

2004-07-08 Thread Patrick Martin
It seems to work on unix but not on windows... > -Original Message- > From: Patrick Martin <[EMAIL PROTECTED]>@SUNGARD > Sent: jeudi 8 juillet 2004 15:57 > To: 'Ant Users List' > Subject: RE: Mapper: renaming + flattening > > I ge

RE: Mapper: renaming + flattening

2004-07-08 Thread Patrick Martin
I get the same problem with ant 1.6.1 and ant 1.6.2beta1. > -Original Message- > From: Patrick Martin <[EMAIL PROTECTED]>@SUNGARD > Sent: jeudi 8 juillet 2004 15:47 > To: 'Ant Users List' > Subject: RE: Mapper: renaming + flattening > &

RE: Mapper: renaming + flattening

2004-07-08 Thread Patrick Martin
dir > Creating /home/preilly/learning/a/copy/Dir-a/subdir/file.template > Creating /home/preilly/learning/a/copy/Dir-b/subdir/file.template > Creating /home/preilly/learning/a/copy/Dir-c/subdir/file.template > Created dir: /home/preilly/learning/a/copy/dest > Copying 3 files to /home/preil

"if" attribute to "arg"

2003-11-07 Thread Patrick Martin
Hi, It seems that there is no "if" attribute to "arg". How is it possible do something like: Thank you, Patrick Confidentiality Notice: The information contained in this e-mail message is intended only for the personal and confidential use of the recipient(s) named above. If the read

Tail -f

2003-09-18 Thread Patrick Martin
Hi, Is there a platform independant way to do a "tail -f " with ant? Here is what the -f option does: Follow. The program will not terminate after the line of the input-file has been copied, but will enter an endless loop, wherein it sleeps for a second and then attempts to read and copy

Merging xml files

2003-08-10 Thread Patrick Martin
Hi, I want to "merge" two (or more) xml files. For example: And Would give:

RE: Ant Pretty Build... (The Return)

2003-08-06 Thread Patrick Martin
your entity line: > > ]> > > If someone can tell me what the "file: " part does exactly, that > would be great! I've googled for some XML references but couldn't find > anything about it. > > David > -Original Message- > From: Patrick