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
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
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
-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
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 ?
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
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
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
%
--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
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
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
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
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
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
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
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.
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
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
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
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
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
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*,
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
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
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
--- "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
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
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
>
--- "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
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
--- "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
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.
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
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
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
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
> 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.
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
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
> 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
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
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
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
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
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
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
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
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
>
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
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
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
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.
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.
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
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
> 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
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
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
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
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
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
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
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
>
>
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
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
65 matches
Mail list logo