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
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
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
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
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?
>
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
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.
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
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
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
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
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
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):
>
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
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
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
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
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
---
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:
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:
&
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
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:
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.
> --
&
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
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:
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
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
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
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
>
>
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
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
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]>
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]>
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
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
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
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
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
: 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
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
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
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
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
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,
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
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,
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
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
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
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
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/";>
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
> >
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.
-
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
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
>
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
> 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
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
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
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
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
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
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.
- 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,
>
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:
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
>
&
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
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
>
&
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
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
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
Hi,
I want to "merge" two (or more) xml files.
For example:
And
Would give:
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
89 matches
Mail list logo