Hi,
in a custom task you usually do not need to use a new Ant project instance, so
I would use getProject() to access the project attached to the current ant task.
If you are programming a piece of code to execute an Ant task or ant Ant build
file from a Java class or framework which is not r
I am trying to create a custom ant task to copy files to a specified location
based on some criteria provided to the task.
I am using ANT's Copy task for my custom task. I have seen some discussion
about using one of the two - getProject() and "new Project()" but haven't found
any discussio
On 2009-11-06, Raja Nagendra Kumar wrote:
> What is the significance of AntResolver when compared to directly creating
> Ant() task.
Are you talking about
org.apache.tools.ant.taskdefs.optional.extension.resolvers.AbtResolver?
This class doesn't have any significance beyond the jarlib-resolve ta
I am using Harvest for SCM. I didn't see any existing ant tasks for
Harvest. Does anyone have any they'd like to share? I'm making the
assumption that I'm not the first one to need to create custom tasks for
Harvest.
Thanks,
Dave Priebe
declare one or several instance(s) of your custom
datatype(s) with the id attribute set; in your custom tasks, add a an
attribute which would be a reference to your custom datatype
something like this :
in the source code of ant, this type of mechanisms is used a lot; for
instance the javac ta
form that can be used for input. I found it
> fairly
> > easy to use although it has some idiosyncrasies about how it places
> objects
> > in the dialog window.
> >
> > Bill
> >
> > -Original Message-
> > From: Anderson, Rob (Global Trade) [mailto
: Tuesday, February 07, 2006 9:34 AM
> To: Ant Users List
> Subject: RE: Custom tasks
>
> You could probably accomplish what you are trying to do with the and
> tasks. Give it a try.
>
> -Rob Anderson
>
> > -Original Message-
> > From: chuanjiang lo [mail
, Rob (Global Trade) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 07, 2006 9:34 AM
To: Ant Users List
Subject: RE: Custom tasks
You could probably accomplish what you are trying to do with the and
tasks. Give it a try.
-Rob Anderson
> -Original Message-
> From: chuanjiang lo [
You could probably accomplish what you are trying to do with the
and tasks. Give it a try.
-Rob Anderson
> -Original Message-
> From: chuanjiang lo [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 07, 2006 5:28 AM
> To: user@ant.apache.org
> Subject: Custom tasks
&g
aths
http://ant.apache.org/manual/tutorial-tasks-filesets-properties.html
These should answer most of the questions.
Jan
>-Ursprüngliche Nachricht-
>Von: chuanjiang lo [mailto:[EMAIL PROTECTED]
>Gesendet: Dienstag, 7. Februar 2006 14:28
>An: user@ant.apache.org
>Be
I would like to ask what is the steps of creating a task like this.
In the ant build file i have something,
Compile
Javadoc
and the output on the console would be the menu items and asking for user
input
I know how to create simple task, but how should i tackle the items within
the tag.
Is
With xml includes you can include a part of a xml file.
With you imports another buildfile.
With you define tasks.
What Stefan was:
- your buildfile s sales.xml and common.xml
- these two files have s for declaring the tasks,
maybe set some s or make some <[macro|preset|script]def>s.
To get
On Jan 25, 2006, at 4:39 AM, Tommy Nordgren wrote:
Quoting the following example from "Extreme Programming with Ant"
]>
.
&common;
&sales;
Where can I put files for entities, so that they are available to
ALL my projects?
Tommy Nordgren wrote:
Quoting the following example from "Extreme Programming with Ant"
]>
.
&common;
&sales;
Where can I put files for entities, so that they are available to ALL my
projects?
I would use on Ant1.6+, rather than XML includes. Then u
On Wed, 25 Jan 2006, Tommy Nordgren <[EMAIL PROTECTED]> wrote:
> Quoting the following example from "Extreme Programming with Ant"
Unfortunately that advice is not that good anymore. If you are using
Ant 1.6.0 or later, use instead of entity includes.
> Where can I put files for entities, so t
Quoting the following example from "Extreme Programming with Ant"
]>
.
&common;
&sales;
Where can I put files for entities, so that they are available to ALL
my projects?
-
This sig is ded
[EMAIL PROTECTED]
>Gesendet: Donnerstag, 10. November 2005 18:46
>An: Ant Users List
>Betreff: Re: Logging from custom tasks
>
>I can't remember off the top of my head about -q, but the
>default level is INFO which would give you ERROR, WARNING &
>INFO. The -v flag gives y
I can't remember off the top of my head about -q, but the default level is
INFO which would give you ERROR, WARNING & INFO. The -v flag gives you
that plus VERBOSE, while -d gives you everything.
--
Jeffrey E. Care ([EMAIL PROTECTED])
WebSphere v7 Release Engineer
WebSphere Build Tooling Lead (
normal mode ==> shows INFO and above (ERR and WARN)
-v adds VERBOSE
-d adds DEBUG
-q logs only ERR and WARN (I think. I used it seldomly)
one "best practice" is to be silent if the task does nothing, when
everything's up to date for example.
When it does something, log at the default level (INFO
Are there any "best practices" for which logging levels to use from
custom ant tasks ?
The 5 levels: MSG_ERR, MSG_WARN, MSG_INFO, MSG_VERBOSE and MSG_DEBUG are
self explanatory, but I'm not certain which levels appear when ? I'm
asking which levels are visible depending on options supplied to ant
(
> -Original Message-
> From: Andrew Ferguson [mailto:[EMAIL PROTECTED]
> Sent: Monday, 26 September 2005 8:58 PM
> To: user@ant.apache.org
> Subject: seemless integration of custom tasks?
>
> hi,
>
> does anyone know if its possible to write ant tasks
> Without modifying the "core" ANT distribution this is not possible...
Well, it is possible to use a task/type without a taskdef if you
package your tasks/types as an antlib and use XML namespaces in the
buildfile, with the Magic antlib:package-to-antlib-xml-file
namespaces.
It's not in the stri
Without modifying the "core" ANT distribution this is not possible...if you are
willing to modify the "core" distribution I would guess you would need only
upadate the defaults.properties file located in the
org.apache.tools.ant.taskdefs directory in the ant.jar in incl
The closest thing is to use antlibs + namespaces.
Autoloading is being debated on the developer list.
--
Jeffrey E. Care ([EMAIL PROTECTED])
WebSphere v7 Release Engineer
WebSphere Build Tooling Lead (Project Mantis)
"Andrew Ferguson" <[EMAIL PROTECTED]> wrote on 09/26/2005 07:28:08
AM:
> hi
hi,
does anyone know if its possible to write ant tasks in a jar file with
some configuration data such that you don't need to insert a
declaration into each script that needs to use them?
i.e. once you've dropped your jar file into the ant distribution's lib
directory, then the new task is a
ment.java:158)
at org.apache.tools.ant.Task.perform(Task.java:363)
... 5 more
Thanks...
Original message
Date: Mon, 8 Nov 2004 14:10:34 -0500
From: Ben Edwards <[EMAIL PROTECTED]>
Subject: Custom Tasks/Types in 1.6.2
To: [EMAIL PROTECTED]
I'm trying to run Ant from
;Date: Mon, 8 Nov 2004 14:10:34 -0500
>From: Ben Edwards <[EMAIL PROTECTED]>
>Subject: Custom Tasks/Types in 1.6.2
>To: [EMAIL PROTECTED]
>
>
>I'm trying to run Ant from within Java. I've used code
>similar to that in org.apache.tools.ant.Main and thin
I'm trying to run Ant from within Java. I've used code
similar to that in org.apache.tools.ant.Main and things
worked fine in 1.6.0, but then break in 1.6.2.
I think it has something to do with class-loading/namespace
stuff, but I can't find any good documentation or anyone
who's encounter
Does ant support a good solution to having a separate security policy for
a custom ant task? Or can I provide a global security policy for ant's
security manager?
If not, what's the "common practice", if any?
Benedikt
ABRUPT, adj. Sudden, without ceremony, like the arrival of a
29 matches
Mail list logo