Re: taskdef defined in project or target

2012-05-16 Thread Simon Murcott
Generally speaking, one does not care about the memory usage of Ant unless you're working with a task that gets repeated a LOT. Just out of interest, I tried the two scenarios whilst tracing the class loader. Yes in the case where the taskef is inside a target, the class gets loaded later. But

Re: taskdef class org.tigris.subversion.svnant.SvnTask cannot be found

2012-04-24 Thread SimpleSolution
If your running the build.xml from eclipse, here are two possible solutions: 1: rightClick on build.xml->classpath tab (Here you add each svnant jar explicitly)-> Add External Jar(add all svnant jars)->Run 2: rightClick on build.xml->Environment->Select button->Then select the env variable explici

Re: taskdef A class needed by class X cannot be found: Task

2011-09-14 Thread Saturno
I'm facing a similar problem, and, after some researches I 've found this explanation: http://ant.apache.org/faq.html#delegating-classloader I will try it now. Best regards. -- View this message in context: http://ant.1045680.n5.nabble.com/taskdef-A-class-needed-by-class-X-cannot-be-found-Task

Re: taskdef A class needed by class X cannot be found: Task

2011-07-11 Thread Robert Larsen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Dominique, thanks for the reply. On 2011-07-08 15:40, Dominique Devienne wrote: > I'm no expert, but have you tried -noclasspath and/or -nouserlib > described here: http://ant.apache.org/manual/running.html ? Just did but without any luck. The -no

Re: taskdef A class needed by class X cannot be found: Task

2011-07-08 Thread Dominique Devienne
On Fri, Jul 8, 2011 at 7:02 AM, Robert Larsen wrote: > I am having a problem with an Ant installation on my Ubuntu 11.04. > > I have a task which I have made myself and it has always worked (and > actually still does) but now I am getting the below error: [...] > Any ideas what I should do next ?

Re: taskdef and onerror -- possible ant 1.7.0 bug

2009-08-06 Thread Norman Gray
Greetings. On 2009 Aug 6, at 20:20, Stefan Bodewig wrote: This is not taskdef telling you off, it is fileset. You'll need erroronmissingdir="false" on the fileset. It turns out that @erroronmissingdir is a attribute introduced in 1.7.1. Hrumph. I can't help feeling that the default fo

Re: taskdef and onerror -- possible ant 1.7.0 bug

2009-08-06 Thread Stefan Bodewig
On 2009-08-06, Scot P. Floess wrote: >> The @onerror attribute to doesn't seem to work as >> advertised. Is this a bug (and whether it is or not, can anyone >> suggest a workaround?) >> Consider the following build.xml >> % cat test-build.xml >> >> >> >> >> >> >> >> >> % >> BUILD

Re: taskdef and onerror -- possible ant 1.7.0 bug

2009-08-06 Thread Scot P. Floess
Is the path defined by default? On Thu, 6 Aug 2009, Norman Gray wrote: Greetings. The @onerror attribute to doesn't seem to work as advertised. Is this a bug (and whether it is or not, can anyone suggest a workaround?) Consider the following build.xml % cat test-build.xml %

RE: Taskdef classloader issue

2009-05-29 Thread Cole, Derek E
--Original Message- From: Martin Gainty [mailto:mgai...@hotmail.com] Sent: Friday, May 29, 2009 11:27 AM To: Ant Users List Subject: RE: Taskdef classloader issue here is the testcase: package org.apache.tools.ant; public class AntClassLoaderTest extends BuildFileTest { private

RE: Taskdef classloader issue

2009-05-29 Thread Martin Gainty
at org.apache.tools.ant.Project.executeTarget(Project.java:1306) > at > org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) > at org.apache.tools.ant.Project.executeTargets(Project.java:1189) > at org.apache.tools.ant.Main.runBuild(Main.java:758) > at or

RE: Taskdef classpath still does not work - partIII

2009-05-29 Thread Martin Gainty
können Sie versuchen: Subject: Taskdef classpath still does not work - partIII > Date: Fri, 29 May 2009 14:46:39 +0200 > From: juergen.knuple...@icongmbh.de > To: user@ant.apache.org > > Hello, > > My taskdef classpath still does not work (it sometimes worked). > > I d

Re: Taskdef classpath does nor work

2009-05-28 Thread Scot P. Floess
Is there some supplementary class that that class requires that isn't there when you use it as you have it defined? On Thu, 28 May 2009, Knuplesch, Juergen wrote: Hello, I do a taskdef with 1.7.1 like: When I display the classpath referenced in java.classpathid I see a certain jar. W

Re: taskdef class org.tigris.subversion.svnant.SvnTask cannot be found

2009-05-14 Thread Brian Pontarelli
774) wrote: Yes. These lib are added in ANT_HOME/lib. Regards,Rajesh -Original Message- From: Brian Pontarelli [mailto:br...@pontarelli.com] Sent: Wednesday, May 13, 2009 7:33 PM To: Ant Users List Subject: Re: taskdef class org.tigris.subversion.svnant.SvnTask cannot be found Did you ad

RE: taskdef class org.tigris.subversion.svnant.SvnTask cannot be found

2009-05-13 Thread Rajesh Kumar (IN4774)
Yes. These lib are added in ANT_HOME/lib. Regards,Rajesh -Original Message- From: Brian Pontarelli [mailto:br...@pontarelli.com] Sent: Wednesday, May 13, 2009 7:33 PM To: Ant Users List Subject: Re: taskdef class org.tigris.subversion.svnant.SvnTask cannot be found Did you add these to

Re: taskdef class org.tigris.subversion.svnant.SvnTask cannot be found

2009-05-13 Thread Brian Pontarelli
Did you add these to the ANT_HOME/lib directory? -bp On May 13, 2009, at 1:24 AM, Rajesh Kumar (IN4774) wrote: I got following error in when I execute one target in ant... file:/data/stage2/BUILDFOPS/build.xml:6: taskdef class org.tigris.subversion.svnant.SvnTask cannot be found I have f

Re: taskdef not receiving the classpath properly?

2008-04-16 Thread Kathryn Rivard
On Wed, Apr 16, 2008 at 7:19 AM, Steve Loughran <[EMAIL PROTECTED]> wrote: > It was probably the RPM version getting in ahead of anything else...we > changed the scripts in Ant1.7 so your own installation gets in there first. Whatever you changed, it didn't work 100% for my system. To get Ant1.

Re: taskdef not receiving the classpath properly?

2008-04-16 Thread Steve Loughran
Kathryn Rivard wrote: Turns out upgrading to Ant 1.7.0 (and clearing out all the crud in Fedora 7 that makes you use the rpm version) fixed the problem -- no taskdef classpath, no CLASSPATH environment variable necessary, it works exactly how I want it to. It was probably the RPM version gettin

Re: taskdef not receiving the classpath properly?

2008-04-11 Thread supareno
Kathryn Rivard a écrit : Turns out upgrading to Ant 1.7.0 (and clearing out all the crud in Fedora 7 that makes you use the rpm version) fixed the problem -- no taskdef classpath, no CLASSPATH environment variable necessary, it works exactly how I want it to. Katie Great ! i forgot to say th

Re: taskdef not receiving the classpath properly?

2008-04-11 Thread Kathryn Rivard
Turns out upgrading to Ant 1.7.0 (and clearing out all the crud in Fedora 7 that makes you use the rpm version) fixed the problem -- no taskdef classpath, no CLASSPATH environment variable necessary, it works exactly how I want it to. Katie On Fri, Apr 11, 2008 at 12:09 PM, Kathryn Rivard <[EMAI

Re: taskdef not receiving the classpath properly?

2008-04-11 Thread Kathryn Rivard
On Fri, Apr 11, 2008 at 11:59 AM, supareno <[EMAIL PROTECTED]> wrote: > my question is: if you use 'ant deploy' in a terminal, do you always have > the exception?? > I always build from a terminal (and not from eclipse). I think by "deploy" you mean whatever our main build target is, right? If

Re: taskdef not receiving the classpath properly?

2008-04-11 Thread supareno
Katie, sorry, i did not read all the thread :-) are you doing the deploiement with and editor (eclipse for example???) the thing is if you can see *catalina-ant.jar* with the command line 'ant -diagnostics', so if you type 'ant deploy', NORMALLY, it will not throw an exception because *catalin

Re: taskdef not receiving the classpath properly?

2008-04-11 Thread Kathryn Rivard
On Fri, Apr 11, 2008 at 10:24 AM, supareno <[EMAIL PROTECTED]> wrote: > Kathryn Rivard a écrit : > > > I'm having bizarre problems getting ant to find the class referenced > > in a taskdef (specifically with tomcat, if it matters). The jar shows > > up in the classpath reported by -diagnostics*,

Re: taskdef not receiving the classpath properly?

2008-04-11 Thread supareno
Kathryn Rivard a écrit : I'm having bizarre problems getting ant to find the class referenced in a taskdef (specifically with tomcat, if it matters). The jar shows up in the classpath reported by -diagnostics*, but ant can't find the class during a build unless I explicitly set the classpath in

Re: taskdef question - only usable at project level?

2008-03-12 Thread Scot P. Floess
Andrew: Namespace isn't really an issue...I just like using it ;) I think it makes it clearer where things originate... Anyway... I did figure out a way to do what I had intended. I am actually able to download Ant contrib dynamically, install it and then use it... If you are interested

Re: taskdef question - only usable at project level?

2008-03-12 Thread Andrew n marshall
I am also trying to develop something like what Scot described and running into similar problems. However, I am not using the namespace notation. My version looks something like this: Defined task I currently get the

Re: taskdef question - only usable at project level?

2008-03-11 Thread Matt Benson
--- "Scot P. Floess" <[EMAIL PROTECTED]> wrote: > So...to be honest... > > I am working on something that will allow me to > download whole projects > and install...only if not installed. Yes, I know > about Ivy ;) And will > be incorporating soon... > In Ant's distro (I think, else in SVN

Re: taskdef question - only usable at project level?

2008-03-11 Thread Scot P. Floess
So...to be honest... I am working on something that will allow me to download whole projects and install...only if not installed. Yes, I know about Ivy ;) And will be incorporating soon... So, what I was trying to do was...if something is installed, download it, unpack it and then taskdef

Re: taskdef question - only usable at project level?

2008-03-11 Thread Peter Reilly
Most likely the typedef has been called from an or an . peter On Tue, Mar 11, 2008 at 5:01 PM, Matt Benson <[EMAIL PROTECTED]> wrote: > > --- "Scot P. Floess" <[EMAIL PROTECTED]> wrote: > > > I'd like to call either in a or a > > . > > However, when doing so it seems as if the call is >

Re: taskdef question - only usable at project level?

2008-03-11 Thread Matt Benson
--- "Scot P. Floess" <[EMAIL PROTECTED]> wrote: > Yeah it definitely doesn't work. It gets even > better... If I try to do > something after the - for example > "FOO" unset = "true"/> I get this kind of error: Not sure about your problem, and it probably bears looking into, but if you're j

Re: taskdef question - only usable at project level?

2008-03-11 Thread Scot P. Floess
Yeah it definitely doesn't work. It gets even better... If I try to do something after the - for example "FOO" unset = "true"/> I get this kind of error: /home/rdu/sfloess/development/test/ant2/build.xml:2: The following error occurred while executing this line: /home/rdu/sfloess/developmen

Re: taskdef question - only usable at project level?

2008-03-11 Thread Matt Benson
--- "Scot P. Floess" <[EMAIL PROTECTED]> wrote: > I'd like to call either in a or a > . > However, when doing so it seems as if the call is > ignored or forgotten > afterward: That shouldn't be the case. If you can create a small and reproducible example, pop it into Bugzilla. Regards, Ma

Re: Taskdef NullPointerException

2006-05-18 Thread Steve Loughran
subir bhaumik wrote: Hi I am trying to execute a simple java code for a build using Ant API rather than writing build.xml.When executing the code it throws NullPointerException for the line tinstaller.setClasspath(class_path); in the code. It is for the class "org.

RE: Taskdef

2006-05-17 Thread Anderson, Rob (Global Trade)
I would not recommend this aproach. Write a build.xml. -Rob A > -Original Message- > From: subir bhaumik [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 16, 2006 10:39 PM > To: Ant Users List > Subject: RE: Taskdef > > > I am trying to write java code to use

RE: Taskdef

2006-05-16 Thread subir bhaumik
I am trying to write java code to use the API rather than writing a build.xml.I am doing this for testing purpose so i have hardcoded. The following line in the code throws NullPointerException while executing the code.The class_path is of type Path.But while converting class_path to Str

RE: Taskdef

2006-05-16 Thread Anderson, Rob (Global Trade)
I'm not sure what you are trying to do with this code, or what the context is. Where are you wrong? To start with, you have hardcoded a lot of things into your code. Are you trying to write java code to use the API rather than writing a build.xml? -Rob A > -Original Message- > From: subir

Re: taskdef, class not found

2006-03-14 Thread Steve Loughran
Dominique Devienne wrote: The classname you provided sounds like one of Ant's, because Ant uses org.apache.tools.ant as main package. But the default file for taskdefs [1] does not list that class. And there is no such class in the repo [2]. Ah, I was fooled by the package name indeed. Thanks f

Re: taskdef, class not found

2006-03-14 Thread Dominique Devienne
> The classname you provided sounds like one of Ant's, because Ant uses > org.apache.tools.ant as > main package. But the default file for taskdefs [1] does not list that > class. And there is no such class in the repo [2]. Ah, I was fooled by the package name indeed. Thanks for spotting that Jan.

RE: taskdef, class not found

2006-03-14 Thread François
Thanks, I did follow the directives in [3], but it lead to multiple failures. Went with a java task with all args necessary, using the rasterizer jar, and all went fine. F. -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Envoyé : 14 mars 2006 03:48 À : user@ant.ap

RE: taskdef, class not found

2006-03-14 Thread François
2006 21:58 À : Ant Users List Objet : Re: taskdef, class not found > classname="org.apache.tools.ant.taskdefs.optional.RasterizerTask" /> This is not necessary. It's implicitly done by Ant, for all core and optional task. > Now, when I run the task, ant keeps complaining

Re: taskdef, class not found

2006-03-13 Thread Dominique Devienne
> classname="org.apache.tools.ant.taskdefs.optional.RasterizerTask" /> This is not necessary. It's implicitly done by Ant, for all core and optional task. > Now, when I run the task, ant keeps complaining that the RasterizerTask > cannot find one of the classes it relies upon (which I have found

Re: taskdef with classpathref not working

2006-01-11 Thread Michael Alexander
Thanks to Steve and Stefan! In experimenting, I had put the axis-ant.jar in $ANT_HOME/lib and that was the root of the classloading problem as described in the faq. I was able to quickly determine this to be the case by running an "ant -diagnostics". Steve Loughran wrote: Michael Alexander w

Re: taskdef with classpathref not working

2006-01-11 Thread Steve Loughran
Michael Alexander wrote: I want to be able to define task's that use either the axis-1_1 or the axis-1_2_1 jars depending upon the value of a property. The intent is to avoid having users explicitly set their CLASSPATH before invoking the build. I have found examples such as the following that ap

Re: taskdef with classpathref not working

2006-01-10 Thread Stefan Bodewig
On Tue, 10 Jan 2006, Michael Alexander <[EMAIL PROTECTED]> wrote: > I want to be able to define task's that use either the axis-1_1 or > the axis-1_2_1 jars depending upon the value of a property. The > intent is to avoid having users explicitly set their CLASSPATH > before invoking the build. I

RE: taskdef classpath problem

2005-12-31 Thread Gunnar Sigurdsson
Thanks for you help. Your suggestion did the trick ... Gunnar On Thu, 29 Dec 2005, Rainer Noack wrote: > [cut] > > The ThreadContextClassloader is typically not your task's classloader. > > You can set the ThreadContextClassloader before instantiating > ClassPathXmlApplicationContext. > > Do

RE: taskdef classpath problem

2005-12-30 Thread Rainer Noack
o ant ;-) Cheers Rainer > -Original Message- > From: Gunnar Sigurdsson [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 29, 2005 7:12 PM > To: Ant Users List > Subject: Re: taskdef classpath problem > > > I am not loading the resources directly, that happens as

Re: taskdef classpath problem

2005-12-29 Thread Gunnar Sigurdsson
I am not loading the resources directly, that happens as a side effect of GenDDL using a class from one of these other jars. The full details are like this. Lets say GenDDL.class is in GenDDL.jar, and GenDDL.class calls a class Context.class which is in Context.jar, and that same jar contains a te

Re: taskdef classpath problem

2005-12-29 Thread Stefan Bodewig
On Wed, 28 Dec 2005, Gunnar Sigurdsson <[EMAIL PROTECTED]> wrote: > The GenDDL class depends on other jar files that are in the same > "lib" directory. When the "ddl" target is executed, ant finds the > GenDDL class and executes it, but it does not find resources in the > other jar files. How

Re: taskdef problem

2005-10-12 Thread Matt Benson
set the classpath on the taskdef itself after having compiled the class. HTH, Matt --- Tomasz Anuszewski <[EMAIL PROTECTED]> wrote: > Hi, > I want to compile my custom task and in the same > build.xml file script > use it in another target. Is this possible or I have > to write another >

RE: taskdef & log4j (precompiled jsp & jasper)

2005-07-13 Thread Keith Hatton
Do you simply need a that points to a directory where your properties file is? The you have defined consists solely of jar files. Hope this helps Keith -Original Message- From: Prasad Iyer [mailto:[EMAIL PROTECTED] Sent: 13 July 2005 12:01 To: user@ant.apache.org Subject: taskdef & lo

RE: taskdef can't find junit.framework.Test

2005-06-03 Thread Hyrum
For anyone who is interested, the solution I found to this problem is to add the junit.jar and tools.jar(from the java jdk) to Global Entries on the classpath tab in Eclipse's Window->Preferences->Ant->Runtime, rather than to Ant Home Entries. The Eclipse ant editor will still give you a warning t

RE: taskdef can't find junit.framework.Test

2005-06-03 Thread Hyrum
For anyone who is interested, the solution I found to this problem is to add the junit.jar and tools.jar(from the java jdk) to Global Entries on the classpath tab in Eclipse's Window->Preferences->Ant->Runtime, rather than to Ant Home Entries. The Eclipse ant editor will still give you a warning t

RE: taskdef can't find junit.framework.Test

2005-06-03 Thread Hyrum
I have done . JUnit is on the classpath. And we have verified that the jar does in fact have Test.class. --- Begin Message --- To really ensure that JUnit is on Ant´s classpath, you could print it out classpath: ${java.class.path} But putting junit.jar into ${user.home}/.ant/lib should help.

RE: taskdef can't find junit.framework.Test

2005-06-03 Thread Hyrum
I have done . JUnit is on the classpath. And we have verified that the jar does in fact have Test.class. --- Begin Message --- To really ensure that JUnit is on Ant´s classpath, you could print it out classpath: ${java.class.path} But putting junit.jar into ${user.home}/.ant/lib should help.

RE: Re: taskdef-classpath fails to add jars to classpath

2005-04-04 Thread cknell
Thanks. I suppose I'll use a batch file to temporarily set CLASSPATH. It's ugly, but workable. -- Charles Knell [EMAIL PROTECTED] - email -Original Message- From: Antoine Levy-Lambert <[EMAIL PROTECTED]> Sent: Mon, 04 Apr 2005 19:24:45 +0200 To: Ant Users Li

Re: taskdef-classpath fails to add jars to classpath

2005-04-04 Thread Antoine Levy-Lambert
Hello, the fact that the class org/apache/avalon/framework/logger/Logger is not found might indicate that this class is loaded directly or undirectly by another class, which is using your startup classloader. this is documented under http://ant.apache.org/faq.html#delegating-classloader This kind

RE: taskdef failing when classpathref contains a non existent directory

2005-01-28 Thread Dominique Devienne
> From: Shatzer, Larry [mailto:[EMAIL PROTECTED] > > Is it possible to have non existent directories listed in your path, and > not have taskdef blow up on it? Of course! Any non-existent is silently ignored. What you can't have is non-existent fileset dirs ;-) One work around you can use is to

Re: taskdef failing when classpathref contains a non existent directo ry

2005-01-28 Thread Antoine Levy-Lambert
Hello Larry, the issue is not one of taskdef. fileset s are not happy when basedir does not exist. I think there is a bug report of other(s) users having trouble with this. Cheers, Antoine > Consider the following directory structure and build file: > > You have a build.xml in the root direct

Re: Taskdef in in macrodef

2004-12-10 Thread Peter Reilly
Ivan Ivanov wrote: Dear Colleagues, I am currently writing some macrodef that will be used in our team and I wonder abouth the follwing situation: let's have My question is: if the above macrodef is called sevetal times, will the taskdef will be "instantiated" ever

RE: taskdef

2004-11-30 Thread Radha Sangal
61) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56) -Original Message- From: Ivan Ivanov [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 30, 2004 11:24 AM To: Ant Users List Subject: RE: taskdef

RE: taskdef

2004-11-30 Thread Ivan Ivanov
dont need a > on the > . > > That directory is included in Ant´s classpath. > > > Jan > > > -Ursprüngliche Nachricht- > > Von: Radha Sangal [mailto:[EMAIL PROTECTED] > > Gesendet am: Dienstag, 30. November 2004 17:06 > > An: Ant Users Li

RE: taskdef

2004-11-30 Thread Radha Sangal
s classpath. Jan > -Ursprüngliche Nachricht- > Von: Radha Sangal [mailto:[EMAIL PROTECTED] > Gesendet am: Dienstag, 30. November 2004 17:06 > An: Ant Users List > Betreff: RE: taskdef > > My lib dir was on the same level as the dir which contained > the ant script

RE: taskdef

2004-11-30 Thread Radha Sangal
Daniels [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 30, 2004 10:35 AM To: 'Ant Users List' Subject: RE: taskdef You also need to include in your any jars that PRTagDiff depends upon. Since your class is a Task (I assume), I believe that means you need to include the ant jar file at

RE: taskdef

2004-11-30 Thread Charles Daniels
can't find, but some dependency that it cannot find (perhaps the ant Task class). > -Original Message- > From: Radha Sangal [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 30, 2004 8:25 AM > To: Ant Users List > Subject: RE: taskdef > > yes > >

RE: taskdef

2004-11-30 Thread Radha Sangal
t; Von: Radha Sangal [mailto:[EMAIL PROTECTED] > Gesendet am: Dienstag, 30. November 2004 16:19 > An: Ant Users List > Betreff: RE: taskdef > > Thanks, but it did not work , I did the following for the > class in lib directory... > > classname="com.util

RE: taskdef

2004-11-30 Thread Radha Sangal
Thanks, but it did not work , I did the following for the class in lib directory... I get the error: taskdef class com.util.infrastructure.ant.tasks.PRTagDiff cannot be found -Original Mes