Does anyone have a working example of a depend selector that uses a
regexp mapper? I must be getting the syntax wrong somehow. Here's
what I have:
from="${testRep}/(.*)s\.([^/]+)$$"
to="${testSrc}/\1\2"/>
You can do something like:
(or maybe some other condition)
...
...
The "if" means the target will only run if foundErrors was set to true.
--Paul
-Original Message-
From: Paul Munsey (pmunsey) <[EMAIL PROTECTED]>
To: 'Ant Users List'
Sent: Tue, 16 Aug 2005 12:27:49
Look for the task in ant-contrib:
http://ant-contrib.sourceforge.net/
moran
> -Original Message-
> From: Paul Munsey (pmunsey) [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 16, 2005 3:28 PM
> To: 'Ant Users List'
> Subject: Conditional tasks
>
> I'm trying to figure out how to call
I've solved the problem by grabbing the ant sources, and moving the ssh
tasks under:
src\main\org\apache\tools\ant\taskdefs\optional\ssh\external
this was more hackish, but easier than moving it to
external.org.apache.tools.ant.taskdefs... where i think it really belongs.
this created an ant-j
I'm trying to figure out how to call a task, conditionally. From what I see
I can set properties with a condition, but how can I traslate that to a
task. For example, I only want to send mail to people if errors were found
in the build log file. I'll create my own code for parsing the build log,
bu
I have logged a bug for this issue and attached a patch...
http://issues.apache.org/bugzilla/show_bug.cgi?id=36207
Committers: Please review the proposed fix and commit the change if you approve.
Thanks,
-Rob Anderson
> -Original Message-
> From: Anderson, Rob (Global Trade)
> Sent:
That patch does not seem to work. setPassword() is only called once when
connecting to the same host again. I have made the following change to fix this
issue.
$ diff -p SSHUserInfo.java.orig SSHUserInfo.java
*** SSHUserInfo.java.orig Thu Jun 2 15:20:06 2005
--- SSHUserInfo.javaTue Au
Ok, I think i've worked out the namespace issues and have read a bit on ant
namespaces for tasksdef's. It seems that namespaces/uri is used with
taskdefs so that scp, and my:scp will allow the definition of both the
ant-lib supplied:
scp=org.apache.tools.ant.taskdefs.optional.ssh.Scp
and perha
I'm trying to write a target that will update files from a version
control system called "Razor", which is SCCS-based. I have one
directory, some-path/SCCS, which is a tree of version control files,
and one directory other-path/src, which contains the corresponding
source files. What I would
Hello,
I'm trying desperately to overwrite files from a source directory if they exist
in a target directory.
The source and target directory have not the same hierarchy, source is flat and
directory has sublevels.
Example of hierarchy:
root/source/A.html
root/source/B.html
root/source/C.html
--- Matt Benson <[EMAIL PROTECTED]> wrote:
[SNIP]
>
>
>
>
>
That is,
>
> -Matt
>
> >
> > Just a quick shot ...
> >
> >
> > Jan
> >
> >
> >
> > >-Ursprüngliche Nachricht-
> > >Von: Bailey, David
> > [mailto:[EMAIL PROTECTED]
> > >Gesendet: Dienstag, 16. August 2
--- [EMAIL PROTECTED] wrote:
> AntContrib
>
> input="${versionstring}"
> regex="\d{1}\.\d{1}\.\d{1-2}" replace=""/>
> if="version.wrong"/>
Have to use a condition probably... version.wrong
would be set in any event. Easiest might be to add
defaultValue="wrong" to propertyregex, then:
--- Leon Pu <[EMAIL PROTECTED]> wrote:
[SNIP]
> Is there any other way or tool can be used to
> configure the include and
> exclude of tar task outside of build xml file?
>
Have a look at the includesfile and excludesfile
attributes of tar/tarfileset.
-Matt
>
> Best regards,
> Leon
>
>
>
Valid.bat
setlocal
set app_ver=%1
set app_ver=%app_ver:1=0%
set app_ver=%app_ver:2=0%
set app_ver=%app_ver:3=0%
set app_ver=%app_ver:4=0%
set app_ver=%app_ver:5=0%
set app_ver=%app_ver:6=0%
set app_ver=%app_ver:7=0%
set app_ver=%app_ver:8=0%
set app_ver=%app_ver:9=0%
if "%app_ver%" == "0.0.0"
AntContrib
Just a quick shot ...
Jan
>-Ursprüngliche Nachricht-
>Von: Bailey, David [mailto:[EMAIL PROTECTED]
>Gesendet: Dienstag, 16. August 2005 18:28
>An: 'user@ant.apache.org'
>Betreff: Pattern matching the value of a property
>
>
>I have a wrapper which expects to receive a
build.properties:
tar.dir=.
tar.includes=**/*.txt
tar.excludes=**/*.bak,**/*~*
build.xml
What´s wrong with using properties?
Jan
>-Ursprüngliche Nachricht-
>Von: Leon Pu [mailto:[EMAIL PROTECTED]
>Gesendet: Dienstag, 16. August 2005 18:30
>An: Ant Usenet
>Betref
Hello,
[1] task might be useful for you.
Regards
Ivan
[1]http://ant.apache.org/manual/CoreTasks/recorder.html
--- Leon Pu <[EMAIL PROTECTED]> wrote:
> Hi Jeremie,
>
> the screen outputs I want to record are come from
> some java tasks, so I
> think echo task maybe cannot accomplish it.
>
>
Hi Jeremie,
the screen outputs I want to record are come from some java tasks, so I
think echo task maybe cannot accomplish it.
Best regards,
Leon
--- BOUSQUET Jeremie <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I think you can use the "echo" task with "file" attribute to write in
> a log file.
>
>
Hi all,
currently we cannot use ant-contrib's task inside the tarfileset,
so I have to hard code the includes and excludes in the build xml file.
But it's better to write these setting in the properties file.
Is there any other way or tool can be used to configure the include and
exclude of tar
I have a wrapper which expects to receive a version string
(\d{1}\.\d{1}\.\d{1-2}), and pass it to Ant as a -DPROPERTY=VALUE pair. I
want to perform validation on the version string to insure that it actually
matches the specified pattern.
So far as I am aware, I can't do this validation in the
Hi,
I think you can use the "echo" task with "file" attribute to write in a log
file.
Best regards
Jeremie
> -Original Message-
> From: Leon Pu [mailto:[EMAIL PROTECTED]
> Sent: mardi 16 août 2005 18:17
> To: user@ant.apache.org
> Subject: Is it possible to trigger a output log file w
Hi all,
is it possible to trigger a output log file while running a target? Not
output log file by command ant.
Best regards,
Leon
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
--
i have both jsch.jar and ant-jsch.jar in mylibfolder, but i don't see that
i've tied the xmlns:my etc to my ant-jsch.xml
perhaps i need a taskdev using the my: namespace so that it can see the xml
and .properties files. i'm not quite sure how this would look.
On 8/16/05, [EMAIL PROTECTED] <[E
sure - see http://ant.apache.org/manual/install.html#librarydependencies
Jan
>-Ursprüngliche Nachricht-
>Von: Mark Lybarger [mailto:[EMAIL PROTECTED]
>Gesendet: Dienstag, 16. August 2005 16:28
>An: Ant Users List
>Betreff: Re: optional tasks without disturbing the ant/lib folder
>
>very
very interesting!
i created an antlib.xml file in mylibdir/antlib.xml
also mylibdir/ant-jsch.properties
scp=org.apache.tools.ant.taskdefs.optional.ssh.Scp
sshexec=org.apache.tools.ant.taskdefs.optional.ssh.SSHExec
and build.xml:
...
wrote:
>
> >what would be really nice is if there
>what would be really nice is if there were two "namespaces"
>available for a given optional task. such that the task in the
>ant/lib/ant-jsch.jar would
>have:
>
>
>
>and perhaps an ant/external/lib/ant-jsch.jar would have:
>
>
>
>thoughts/ideas?
XML namespaces.
is defined in
[$ANT_HOME/lib/an
i'm interested in using some of the ant optional tasks without distrubing
the ant-lib folder. basically, i want to provide all the needed jars as part
of my tools area, and not have each machine that runs the bulid have to
update it's ant/lib folder. the current task i'm after is the scp task. b
Try this:
http://sjobic.club.fr/ant/index.html
Ben
-Original Message-
From: Yasseen, Omar [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 16, 2005 3:34 AM
To: Ant Users List
Subject: Comparing Jar Files
Hi All,
This is not directly related to Ant but I would be grateful if someone
Have a look at s s ...
Jan
>-Ursprüngliche Nachricht-
>Von: Mark Lybarger [mailto:[EMAIL PROTECTED]
>Gesendet: Dienstag, 16. August 2005 13:07
>An: Ant Users List
>Betreff: Re: regexpreplace help...
>
>thanks for the thoughts. i'll give it a go. would love to set
>to rest the current ba
thanks for the thoughts. i'll give it a go. would love to set to rest the
current bash/sed/awk implementation.
On 8/16/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> just thoughts:
> - load the file into property
> - extract only \5
> - increment that property
> - use the result-propert
Frank W. Zammetti wrote:
or you make every target conditional
unless="compile.disabled"
and then turn on and off on the command line
For the way I work, this isn't feasible... I don't use an IDE, I use
UltraEdit... I have a single keystroke that executes the script, and I
don't have the oppo
Hi All,
This is not directly related to Ant but I would be grateful if someone
can tell me how to compare two Jar files to find out the set of files
that are in one jar but not the other.
Regards
Omar
-
This email message, together with any attachments, is for the exclusi
32 matches
Mail list logo