Hi,
If possible, you should encapsulate the task in a java program i.e. a public
static void main(String[] args]) method.
Then call this via java task with fork="true"
There you can specify the correct classpath.
Regards
Rainer
-Ursprüngliche Nachricht-
Von: Knuplesch, Juergen [mailto:j
ous ne pouvons accepter aucune responsabilité
pour le contenu fourni.
> Subject: AW: Taskdef classloader issue: Solution found
> Date: Thu, 4 Jun 2009 13:45:33 +0200
> From: juergen.knuple...@icongmbh.de
> To: user@ant.apache.org
>
> Hello,
>
> The real solution for my task
ngmbh.de]
Gesendet: Dienstag, 2. Juni 2009 08:39
An: Ant Users List
Betreff: AW: Taskdef classloader issue
Hello Martin
Thanks for the deep insight and your help!
I finally gave up, and used the workaround to put this special jar on the
classpath of ANT (instead of the classpath of taskdef).
;
> Greetings Juergen
>
>
> --
> Jürgen Knupleschwww.icongmbh.de
> icon Systemhaus GmbHTel. +49 711 806098-275
> Sophienstraße 40
> D-70178 Stuttgart Fax. +49 711 806098-299
>
> Geschä
conCodebeamerCVS\lib\cb-api.jar) to Ant it
> works.
>
> This is crazy. Im working now a whole day on this topic and can not find a
> reason.
>
> Has anyone an idea, whats going on or how I can debug deeper what happens?
>
> Greetings
>
> Jürgen
>
> --
&
[mailto:sflo...@nc.rr.com]
Gesendet: Donnerstag, 28. Mai 2009 18:40
An: Ant Users List
Betreff: Re: AW: Taskdef classpath does not work - partII
So, how do you construct your class path?
Also, what is the exception?
On Thu, 28 May 2009, Knuplesch, Juergen wrote:
> Hello,
>
> I
So, how do you construct your class path?
Also, what is the exception?
On Thu, 28 May 2009, Knuplesch, Juergen wrote:
Hello,
I have some additional information:
My classpath is very long.
When I change the classpath order an exception happen somewhere else!
Is there a restriction of the le
Hello,
I have some additional information:
My classpath is very long.
When I change the classpath order an exception happen somewhere else!
Is there a restriction of the length of a classpath that will be handled using
taskdef?
Greetings
Jürgen
--
Jürgen Knuplesch
-Ursprüngliche Nach
Hello Scott,
No, Because, when I add the jar to the Ant classpath (now ist on the classpath
twice), everything works!
Probably my classpath is too long.
Greetings Juergen
--
Jürgen Knupleschwww.icongmbh.de
icon Systemhaus GmbHTel. +49 711 806098-275
Sophi
[EMAIL PROTECTED] wrote:
Ah, I was fooled by the package name indeed. Thanks for
spotting that Jan. I'm not sure there's a process for that,
but shouldn't the batik folks be warned not to use (usurp)
Ant's package names? --DD
Changing the package name is difficult for BWC reasons, but a hint
>Ah, I was fooled by the package name indeed. Thanks for
>spotting that Jan. I'm not sure there's a process for that,
>but shouldn't the batik folks be warned not to use (usurp)
>Ant's package names? --DD
Changing the package name is difficult for BWC reasons, but a hint would
be helpful.
I won
] [mailto:[EMAIL PROTECTED]
>Envoyé : 14 mars 2006 03:48
>À : user@ant.apache.org
>Objet : AW: taskdef, class not found
>
>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]
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].
So this class is to be declared as other external tasks: taskdef or
xmlns (with all
http://ant.apache.org/manual/tutorial-writing-tasks.html#use1
Jan
>-Ursprüngliche Nachricht-
>Von: Matt Benson [mailto:[EMAIL PROTECTED]
>Gesendet: Mittwoch, 12. Oktober 2005 16:44
>An: Ant Users List
>Betreff: Re: taskdef problem
>
>set the classpath on the taskdef itself after having
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.
Or starting Ant with
-lib
Jan
> -Ursprüngliche Nachricht-
> Von: Hyrum [mailto:[EMAIL PROTECTED]
> Gesendet am: F
In line 7 of your buildfile you have something like
but your flagfile-task doesnt have a setFilename(...) method.
Jan
> -Ursprüngliche Nachricht-
> Von: Radha Sangal [mailto:[EMAIL PROTECTED]
> Gesendet am: Montag, 31. Januar 2005 19:05
> An: Ant Users List
> Betreff: taskdef , attri
; > Subject: RE: taskdef
> >
> > yes
> >
> > -Original Message-
> > From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, November 30, 2004 10:23 AM
> > To: [EMAIL PROTECTED]
> > Subject: AW: taskdef
> >
> &g
>
>
> I get the error:
> taskdef class com.util.infrastructure.ant.tasks.PRTagDiff
> cannot be found
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 30, 2004 10:07 AM
> To: [EMAIL PROTECTED]
> Subject: AW: taskdef
>
&
Should be a ClassDefNotFoundException (or so).
That´s why Ant uses another classpath for itself than for running a
program. So you have to provide the info to Ant where the lib is:
Jan
> -Ursprüngliche Nachricht-
> Von: Radha Sangal [mailto:[EMAIL PROTECTED]
> Gesendet am: Dien
19 matches
Mail list logo