AFAIK there is no built-in condition. But writing conditions is easy - just
implement org.apache.tools.ant.taskdefs.condition.Condition (contains only
>>boolean eval() throws BuildException<<).
You get a reference to the actual project instance if you have a
setProject(Project) method. This is
Our Ant build logic would be much cleaner if there was a way to
determine if a particular target was overriden.
Does anyone know how to check for the existence/definition of a
specified target name?
Ideally, we'd like to have something like this:
I searched all the resouces
You never said why it didn't work or what type of error you're
getting. I am assuming you want all the jars in the root of the lib
directory in the war. Specify a element for each directory, and
then include the sub-tasks for the jar files you want. You
can use wildcards if that makes things easi
Try the "isset" task of the task. It can be used with the task
You could also use equals:
[...]
The task is part of antcontrib at
http://ant-contrib.sourceforge.net/. Otherwise, look at the
task. The task allows you to set a pro
I'm having trouble trying to figure out how to make sure a property is not
empty.
So I have a properties file like so
myprop=something.
And if the myprop is not empty (myprop=) then execute something. Does that
make sense? here's some kind of pseudocode.
Just some pseudo code, but get's t
Please ignore that last post, once I thought about it, it became obvious
that they are specified in as such
with the logger being set through the command line argument.
Whatty
-Original Message-
From: Steve Whatmore [mailto:[EMAIL PROTECTED]
Sent: Monday, September 17, 2007 1:56 PM
Not trying to be obtuse of course, the manual pages aren't very explicit
with respect to how you provide the properties to the mail logger.
Is this through properties file somewhere, ANT Task definition or
command line arguments?
Thanks in advance.
Whatty
-Original Message-
From: Anders
The quick solution is MailLogger.
http://ant.apache.org/manual/listeners.html#MailLogger
The best solution is cruise control or hudson.
-Rob A
> -Original Message-
> From: Peter Reilly [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 13, 2007 1:14 PM
> To: Ant Users List
> Subject
Gilbert, That looks pretty cool. Is the code copyrighted? Any chance
this could be added to Ant as a standard feature?
-Rob Anderson
> -Original Message-
> From: Gilbert Rebhan [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 13, 2007 10:41 AM
> To: Ant Users List
> Subject: Re: su
Here you are
Jan
import java.io.File;
import org.apache.tools.ant.Task;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.util.FileUtils;
public class RelpathTask extends Task {
private File basefile;
private File checkfile;
private String propertyname;
Thanks for the solution, I may look at doing this in a custom task to
avoid the BSF dependency but this should work one way or another.
-Eric
[EMAIL PROTECTED] wrote:
There is no task for that, but a core function in Ant's FileUtils which can be
used
There is no task for that, but a core function in Ant's FileUtils which can be
used
File: x/a/b/c/d/e/f/g/file.txt
Base: x/a/b
rel : ${rel
> From: Eric Dalquist [mailto:[EMAIL PROTECTED]
> Sent: 17 September 2007 16:10
>
> I have a full path to a directory that I want to create a
> fileset of and a full path to a sub-directory that I want to exclude.
>
> I've tried the following and some variations on it:
>
>
> No matter what
I figured that was the requirement ... unfortunately I have no control
over the format of either path. All I get is two properties, each is an
absolute path, and I need to make a fileset using one as the dir and
excluding the other.
My other thought was to look into trimming off the first bit
On 9/17/07, Eric Dalquist <[EMAIL PROTECTED]> wrote:
> dir="/a/b/c/"
Not recommended indeed, but if you really can't change that
> excludes="/a/b/c/d/**" />
This is wrong. Needs to be relative to dir attribute above. So should
be d/** only.
--DD
---
I have a full path to a directory that I want to create a fileset of and
a full path to a sub-directory that I want to exclude.
I've tried the following and some variations on it:
No matter what I try I can't seem to get the excludes path to be honored.
I unfortunately do not have the ability
Greetings,
I have a simple Ant Task, which looks up EJB in it.
it works when i run it via Eclipse IDE >run as java app but whne i try to
run it via Ant it gives an NoInitialContextException. Folder structure is
like this
-root
-root/lib
-root/execute.xml
lib folder conatins all the neccesary j
[EMAIL PROTECTED] wrote:
Jan
Or, given that is just a with a prefix, you could add
new zipfilesets
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Jan
>-Ursprüngliche Nachricht-
>Von: Mitja B. [mailto:[EMAIL PROTECTED]
>Gesendet: Montag, 17. September 2007 12:47
>An: Ant Users List
>Betreff: Re: AW: war inlcude problem
>
>hi,
>
>hmm how do you mean that?
>--
>L.P.
>Mitja B.
>
>
>- Original Message
>From
hi,
hmm how do you mean that?
--
L.P.
Mitja B.
- Original Message
From: Ant Users List
To: user@ant.apache.org , [EMAIL PROTECTED]
<[EMAIL PROTECTED]>
Subject: AW: war inlcude problem
Date: 17/09/07 11:50
> multiple s?
>
> Jan
>
> >-Ursprüngliche Nachricht-
> >
multiple s?
Jan
>-Ursprüngliche Nachricht-
>Von: Mitja B. [mailto:[EMAIL PROTECTED]
>Gesendet: Montag, 17. September 2007 11:46
>An: Ant Users List
>Betreff: Re: war inlcude problem
>
>any idea?
>
>thx
>--
>L.P.
>Mitja B.
>
>
>- Original Message
>From: Ant Users List
>
any idea?
thx
--
L.P.
Mitja B.
- Original Message
From: Ant Users List
To: user@ant.apache.org
Subject: war inlcude problem
Date: 14/09/07 13:22
> i want to create war file, but i have problem with including lib files
into
> lib folder
>
> I have lib files in different lib d
http://ant.apache.org/manual/listeners.html
Jan
>-Ursprüngliche Nachricht-
>Von: aatankwadi aatankwadi [mailto:[EMAIL PROTECTED]
>Gesendet: Montag, 17. September 2007 08:28
>An: Ant Users List
>Betreff: How to capture the buildFinished Event
>
>Hi,
>
> Can any one help, how to captu
23 matches
Mail list logo