Re: ANT Custom tasks - difference between using getProject() and "new Project()"

2013-05-27 Thread Antoine Levy Lambert
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

ANT Custom tasks - difference between using getProject() and "new Project()"

2013-05-26 Thread WebServices Development
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

Re: AntResolver Significance - In Custom Tasks

2009-11-09 Thread Stefan Bodewig
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

Harvest custom tasks?

2006-11-14 Thread David . Priebe
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

sharing dbConnection object between 2 custom tasks

2006-06-12 Thread Karl Jay Garcia
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

Re: Custom tasks

2006-02-08 Thread chuanjiang lo
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

Re: Custom tasks

2006-02-07 Thread Patrick Martin
: 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

RE: Custom tasks

2006-02-07 Thread bill/wilandra
, 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 [

RE: Custom tasks

2006-02-07 Thread Anderson, Rob (Global Trade)
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

AW: Custom tasks

2006-02-07 Thread Jan.Materne
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

Custom tasks

2006-02-07 Thread chuanjiang lo
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

AW: Making custom tasks globally available

2006-01-25 Thread Jan.Materne
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

Re: Making custom tasks globally available

2006-01-25 Thread Tommy Nordgren
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?

Re: Making custom tasks globally available

2006-01-25 Thread Steve Loughran
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

Re: Making custom tasks globally available

2006-01-24 Thread Stefan Bodewig
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

Making custom tasks globally available

2006-01-24 Thread Tommy Nordgren
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

AW: Logging from custom tasks

2005-11-14 Thread Jan.Materne
[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

Re: Logging from custom tasks

2005-11-10 Thread Jeffrey E Care
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 (

Re: Logging from custom tasks

2005-11-10 Thread Dominique Devienne
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

Logging from custom tasks

2005-11-10 Thread Cena, Bernard \(IT\)
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 (

RE: seemless integration of custom tasks?

2005-10-10 Thread Stephen McConnell
> -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

Re: seemless integration of custom tasks?

2005-10-10 Thread Dominique Devienne
> 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

Re: seemless integration of custom tasks?

2005-09-26 Thread Ninju Bohra
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

Re: seamless integration of custom tasks?

2005-09-26 Thread Jeffrey E Care
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

seemless integration of custom tasks?

2005-09-26 Thread Andrew Ferguson
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

Re: Custom Tasks/Types in 1.6.2

2004-11-09 Thread Peter Reilly
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

Re: Custom Tasks/Types in 1.6.2

2004-11-08 Thread Ben Edwards
;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

Custom Tasks/Types in 1.6.2

2004-11-08 Thread Ben Edwards
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

custom tasks and security policies

2004-10-25 Thread Benedikt Heinen
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