RE: Nexus Taskdef question

2014-02-05 Thread Martin Gainty
aven cache and grabs what is appropriate, instead of getting the absolute latest one. Is there an ant taskdef to download the most recent (snapshot) artifact from Nexus? Danke, Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confi

Re: Error message while using ant-contrib.jar - "taskdef A class needed by class net.sf.antcontrib.platform.ShellScriptTask cannot be found: ExecTask"

2012-11-23 Thread abhishek2803
You can try something like this as well. -- View this message in context: http://ant.1045680.n5.nabble.com/Error-message-while-using-ant-contrib-jar-taskdef-A-class-needed-by-class-net-sf-antcontrib-platform-tp1356639p5713690.html Sent from the Ant - Users mailing list archive at Nabble.com

Re: taskdef defined in project or target

2012-05-16 Thread Simon Murcott
gt; If I defined a for a custom task at the project-level (outside > of a macro or target), does that consume a significant amount of memory? > > > > > Would defining in a target and have the targets that use it > depend on it (thus, the taskdef init would only run when the

taskdef defined in project or target

2012-05-16 Thread Perrier, Nathan
If I defined a for a custom task at the project-level (outside of a macro or target), does that consume a significant amount of memory? Would defining in a target and have the targets that use it depend on it (thus, the taskdef init would only run when the target runs) be a better

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

2012-04-24 Thread SimpleSolution
t the env variable explicitly->OK->Run Hope this is helpful guys -- View this message in context: http://ant.1045680.n5.nabble.com/taskdef-class-org-tigris-subversion-svnant-SvnTask-cannot-be-found-tp1354816p5662347.html Sent from the Ant - Users mailing li

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-canno

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 ?

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

2011-07-08 Thread Robert Larsen
1.6.0_24" Java(TM) SE Runtime Environment (build 1.6.0_24-b07) Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode) javac 1.6.0_24 Apache Ant version 1.8.1 compiled on October 13 2010 $ ant -f spritemap.xml Buildfile: /home/robert/code/test/spritemap.xml BUILD FAILED /home/robert/code/test/

Re: Execution classpath question for taskdef

2011-02-22 Thread tstrall
I would concur that with Ant 1.8 the classpath which is being used in the taskdef definition does not seem to be the same as the classpath used for executing the task later. In my case the taskdef is: But when the task is called it returns the error: java.lang.ClassNotFoundException

Re: Execution classpath question for taskdef

2011-01-20 Thread Antoine Levy-Lambert
On 1/20/11 5:27 PM, dave.alvar...@cartridgeorder.com wrote: > Thanks for this recommendation. A couple of follow up questions ... > > 1 If I add the classloader task to my custom task, does that classloader take > precedence over the classes loaded by ${ANT_HOME}/lib ? > 2. How do I add the class

Re: Execution classpath question for taskdef

2011-01-20 Thread dave.alvarado
, - Dave > ---Original Message--- > From: Antoine Levy-Lambert > To: Ant Users List > Subject: Re: Execution classpath question for taskdef > Sent: Jan 19 '

Re: Execution classpath question for taskdef

2011-01-19 Thread Antoine Levy-Lambert
Martin87 ├─> > F 19.01.11 13:51+0100 Michael Ludwig75 └─> The classpath attribute or nested element of taskdef works but cannot solve the case of some classes loaded by factories of the JVM (JDBC drivers, mail.jar, activation.jar). These classes have to be either in the

Re: Execution classpath question for taskdef

2011-01-19 Thread Antoine Levy-Lambert
On 1/19/11 3:26 PM, dave.alvar...@cartridgeorder.com wrote: > Let me ask this clarification question before answering yours ... > > 1. The taskdef "classpath" attribute is NOT what is used when the taskdef is > actually executed. Correct? Wrong, the classpath nested elemen

Re: Execution classpath question for taskdef

2011-01-19 Thread dave.alvarado
Let me ask this clarification question before answering yours ... 1. The taskdef "classpath" attribute is NOT what is used when the taskdef is actually executed. Correct? The output of what I get from running my custom task is below. Note that the NoClassDefFoundError is complaini

Re: Execution classpath question for taskdef

2011-01-19 Thread Michael Ludwig
dave.alvar...@cartridgeorder.com schrieb am 19.01.2011 um 13:30 (-0600): > I have discovered that the "classpath" and "claspathref" elements that > are part of the taskdef are not used during run time Are you sure? How did you discover that? There was another thread

Execution classpath question for taskdef

2011-01-19 Thread dave.alvarado
I have discovered that the "classpath" and "claspathref" elements that are part of the taskdef are not used during run time, so I am grateful for anyone to tell me how to include classes when the tas

AW: Taskdef and classpath

2010-03-30 Thread Rainer Noack
h, Juergen [mailto:juergen.knuple...@icongmbh.de] Gesendet: Dienstag, 30. März 2010 10:04 An: Ant Users List Betreff: Taskdef and classpath Hello, I have an ANT-task that I call inside my buildfiles. I have access to the source of this task. I have problems with elements on the classpath, because I use

Taskdef and classpath

2010-03-30 Thread Knuplesch, Juergen
), that I want, especially there should not be all the elements of ANT on this classpath? What is the correct / best way: 1.just define a classpath in the taskdef task (this does not seem to work) 2.create a separate classloader in this task. But how do I configure it in a way, that I get rid of

RE: Loading Groovy TaskDef/ScriptDef in Sub Builds

2010-03-29 Thread Murray, Mike
I filed bug report 49021: TaskDef/ScriptDef in Sub Build = Memory Disaster https://issues.apache.org/bugzilla/show_bug.cgi?id=49021 From: Murray, Mike [mailto:m...@ptc.com] Sent: Saturday, March 27, 2010 12:02 PM To: Ant Users List Subject: Loading Groovy TaskDef/ScriptDef in Sub Builds

Loading Groovy TaskDef/ScriptDef in Sub Builds

2010-03-27 Thread Murray, Mike
I have not been able to upgrade past Groovy 1.5.8, due to massive memory issues. I've identified the exact scenario that cause problems, but I don't know if it is a bug, or what the solution is. The task can be used as long as the taskdef is done once, or the taskdef uses loaderref

Re: Error message while using ant-contrib.jar - "taskdef A class needed by class net.sf.antcontrib.platform.ShellScriptTask cannot be found: ExecTask"

2010-03-24 Thread Ritu Ritu
That's some great information! Thanks a lot Gilbert! Ritu - Original Message - From: "Gilbert Rebhan" To: "Ant Users List" Sent: Wednesday, March 24, 2010 3:35:46 PM Subject: Re: Error message while using ant-contrib.jar - "ta

Re: Error message while using ant-contrib.jar - "taskdef A class needed by class net.sf.antcontrib.platform.ShellScriptTask cannot be found: ExecTask"

2010-03-24 Thread Gilbert Rebhan
Original Message Subject: Re: Error message while using ant-contrib.jar - "taskdef A class needed by class net.sf.antcontrib.platform.ShellScriptTask cannot be found: ExecTask" From: Ritu Ritu To: Ant Users List Date: 23.03.2010 22:00 > Thanks a lot Srikanth!

Re: Error message while using ant-contrib.jar - "taskdef A class needed by class net.sf.antcontrib.platform.ShellScriptTask cannot be found: ExecTask"

2010-03-23 Thread Ritu Ritu
quot; Sent: Tuesday, March 23, 2010 4:00:53 PM Subject: Re: Error message while using ant-contrib.jar - "taskdef A class needed by class net.sf.antcontrib.platform.ShellScriptTask cannot be found: ExecTask" Thanks a lot Srikanth! No luck even after specifying the taskdef in this ma

Re: Error message while using ant-contrib.jar - "taskdef A class needed by class net.sf.antcontrib.platform.ShellScriptTask cannot be found: ExecTask"

2010-03-23 Thread Ritu Ritu
Thanks a lot Srikanth! No luck even after specifying the taskdef in this manner as well...sighs! Regards, Ritu - Original Message - From: "Srikanth Chakravarthy" To: "Ant Users List" Sent: Tuesday, March 23, 2010 4:14:11 AM Subject: RE: Error message while u

RE: Error message while using ant-contrib.jar - "taskdef A class needed by class net.sf.antcontrib.platform.ShellScriptTask cannot be found: ExecTask"

2010-03-23 Thread Chakravarthy, Srikanth
Hi Ritu, This is how I have defined the taskdef for "for". The ant-contrib.jar is in the ANT_HOME\lib folder. I run it through my IDE and this is all the settings required for it. This is on Windows. You might have to replace the same with "ExecTask" as in

Re: Error message while using ant-contrib.jar - "taskdef A class needed by class net.sf.antcontrib.platform.ShellScriptTask cannot be found: ExecTask"

2010-03-23 Thread Ritu Ritu
\AMMA\Eclipse3.3\FORANT\forant.xml:31: The following error occurred while executing this line: jar:file:C:/apache-ant-1.8.0/lib/ant-contrib.jar!/net/sf/antcontrib/antlib.xml:3: taskdef A class needed by class net.sf.antcontrib.platform.ShellScriptTask cannot be found: ExecTask using the classl

Re: Error message while using ant-contrib.jar - "taskdef A class needed by class net.sf.antcontrib.platform.ShellScriptTask cannot be found: ExecTask"

2010-03-23 Thread christoph . grothaus
> P.S. I have already tried the following: > > 1) copying ant-contrib.jar in the \apache-ant-1.8.0\lib folder > > 2) removing the namespace xmlns:ac="antlib:net.sf.antcontrib" and > specifying "for" instead of "ac:for" > > 3) specifying the complete path for "resource" in the "typedef" tag. >

Re: Error message while using ant-contrib.jar - "taskdef A class needed by class net.sf.antcontrib.platform.ShellScriptTask cannot be found: ExecTask"

2010-03-22 Thread Ritu Ritu
R MESSAGE* Buildfile: C:\AMMA\Eclipse3.3\PDSL\Automate.xml [echo] The file 'C:/AMMA/Eclipse3.3/PDSL/Samples/circuit2.pdsl' has 3 lines. [taskdef] Could not load definitions from resource

Re: Error message while using ant-contrib.jar - "taskdef A class needed by class net.sf.antcontrib.platform.ShellScriptTask cannot be found: ExecTask"

2010-03-22 Thread Ritu Ritu
; in the "typedef" tag. - Original Message - From: "Ritu Ritu" To: user@ant.apache.org Sent: Monday, March 22, 2010 5:04:52 AM Subject: Error message while using ant-contrib.jar - "taskdef A class needed by class net.sf.antcontrib.platform.ShellScriptTask canno

Error message while using ant-contrib.jar - "taskdef A class needed by class net.sf.antcontrib.platform.ShellScriptTask cannot be found: ExecTask"

2010-03-22 Thread Ritu Ritu
:/Documents%20and%20Settings/ritu/.ant/lib/ant-contrib.jar!/net/sf/antcontrib/antlib.xml:3: taskdef A class needed by class net.sf.antcontrib.platform.ShellScriptTask cannot be found: ExecTask using the classloader AntClassLoader[] Code Snippet

AW: Classpath and taskdef

2009-11-17 Thread Knuplesch, Juergen
: Dienstag, 17. November 2009 15:32 An: Ant Users List Betreff: RE: Classpath and taskdef javap bytecode listing of xercesImpl.jar which i have that is packaged with $ANT_HOME/lib/xercesImpl.jar 09/08/2009 07:16 PM 1,223,877 xercesImpl.jar public class

RE: Classpath and taskdef

2009-11-17 Thread Martin Gainty
Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. > Subject: Classpath and taskdef > Date: Tue, 17 Nov 2009 13:49:31 +0100

Classpath and taskdef

2009-11-17 Thread Knuplesch, Juergen
Hello, I created a task called dope-task. This task gets the following exception, but only when I use Ant. I have the same functionality without Ant and everything works fine. I fear that this is a classptah issue. It happen s when parsing XML. I want to use the xmlparser of Java 1.6.0_17, but

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 feel

Re: taskdef and onerror -- possible ant 1.7.0 bug

2009-08-06 Thread Stefan Bodewig
.xml >> % cat test-build.xml >> >> >> >> >> >> >> >> >> % >> BUILD FAILED >> /checkouts/skua.googlecode.com/trunk/code/qsac/test-build.xml:5: >> /not/a/path not found. This is not taskdef telling you off, it is fileset. You'll need erroronmiss

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 %

taskdef and onerror -- possible ant 1.7.0 bug

2009-08-06 Thread Norman Gray
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 onerror='ignore'> % Note that the classpath mentioned contai

Re: How to pass Java system properties to a task defined in a taskdef ?

2009-07-24 Thread Avlesh Singh
> Are you trying to set it within your build.xml - like so: > >> > >>>> > >> > >>>> > >> > >>>> > >> > >>>> If so, I don't think that is going to work... > >> > >>>&g

Re: How to pass Java system properties to a task defined in a taskdef ?

2009-07-24 Thread Jean-Noël Rivasseau
>>>> >> > >>>> >> > >>>> >> > >>>> If so, I don't think that is going to work... >> > >>>> >> > >>>> For example try this out: >> > >>>> >> > >>&g

Re: How to pass Java system properties to a task defined in a taskdef ?

2009-07-23 Thread Jean-Noël Rivasseau
t;>> > > >>>> > > >>>> > > >>>> When I run this, I get: > > >>>> > > >>>> Buildfile: build.xml > > >>>>[echo] /home/sfloess > > >>>> > > >>>> However, if I do this: > &g

Re: How to pass Java system properties to a task defined in a taskdef ?

2009-07-23 Thread Avlesh Singh
>>>> ant -Duser.home="bar" > >>>> > >>>> I get: > >>>> > >>>> Buildfile: build.xml > >>>>[echo] bar > >>>> > >>>> Unless I am wrong, once Ant starts and those default propertie

Re: How to pass Java system properties to a task defined in a taskdef ?

2009-07-23 Thread Jean-Noël Rivasseau
;>>[echo] bar >>>> >>>> Unless I am wrong, once Ant starts and those default properties are set >>>> (in >>>> this case from Java system properties), it won't be reset to the new >>>> value. >>>> However,

Re: How to pass Java system properties to a task defined in a taskdef ?

2009-07-23 Thread Scot P. Floess
Jean-Noël Rivasseau wrote: Hello, I am launching Ant with a modified user.home property. This property is apparently not passed down to one of my tasks, defined in a taskdef. Why? Does Ant fork a new VM for executing such tasks? In any case, how can I pass this property to the task being exec

Re: How to pass Java system properties to a task defined in a taskdef ?

2009-07-23 Thread Scot P. Floess
On Thu, 23 Jul 2009, Scot P. Floess wrote: Just curious - you mention a modified user.home property... How are you modifying it? On Thu, 23 Jul 2009, Jean-Noël Rivasseau wrote: Hello, I am launching Ant with a modified user.home property. This property is apparently not passed down to on

Re: How to pass Java system properties to a task defined in a taskdef ?

2009-07-23 Thread Avlesh Singh
t P. Floess wrote: > > >> Just curious - you mention a modified user.home property... How are you >> modifying it? >> >> On Thu, 23 Jul 2009, Jean-Noël Rivasseau wrote: >> >> Hello, >>> >>> I am launching Ant with a modified user.ho

Re: How to pass Java system properties to a task defined in a taskdef ?

2009-07-23 Thread Scot P. Floess
urious - you mention a modified user.home property... How are you modifying it? On Thu, 23 Jul 2009, Jean-Noël Rivasseau wrote: Hello, I am launching Ant with a modified user.home property. This property is apparently not passed down to one of my tasks, defined in a taskdef. Why? Does A

Re: How to pass Java system properties to a task defined in a taskdef ?

2009-07-23 Thread Scot P. Floess
Just curious - you mention a modified user.home property... How are you modifying it? On Thu, 23 Jul 2009, Jean-Noël Rivasseau wrote: Hello, I am launching Ant with a modified user.home property. This property is apparently not passed down to one of my tasks, defined in a taskdef. Why

How to pass Java system properties to a task defined in a taskdef ?

2009-07-23 Thread Jean-Noël Rivasseau
Hello, I am launching Ant with a modified user.home property. This property is apparently not passed down to one of my tasks, defined in a taskdef. Why? Does Ant fork a new VM for executing such tasks? In any case, how can I pass this property to the task being executed, it's essential for m

RE: AW: Taskdef classloader issue: Solution found

2009-06-04 Thread Martin Gainty
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

AW: Taskdef classloader issue: Solution found

2009-06-04 Thread Knuplesch, Juergen
Hello, The real solution for my taskdef problem looks like: David Wood writes about a similar problem and solved it by using: > > // Get the task class loader we used to load this tag. > AntClassLoader taskloader = > (AntClassLoader)this.getClass().getClassLoader(); > >

AW: Taskdef classloader issue

2009-06-02 Thread Knuplesch, Juergen
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). This works, but I do not really understand why. Maybe I will find out after Pentacoast (how do you spell this

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
st vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufg

Taskdef classloader issue

2009-05-29 Thread Knuplesch, Juergen
Hello, As I inspected the stacktrace, I found out that this exception could happen, when you access a class with a classloader, that did not load the class. So the taskdef loads the file. Is taskdef using a different classloader than the classloade, who runs my task? How can I use the same

AW: Taskdef classpath still does not work - partIII

2009-05-29 Thread Knuplesch, Juergen
cant see, what the problem is. Greetings Jürgen -- Jürgen Knuplesch -Ursprüngliche Nachricht- Von: Martin Gainty [mailto:mgai...@hotmail.com] Gesendet: Freitag, 29. Mai 2009 15:23 An: Ant Users List Betreff: RE: Taskdef classpath still does not work - partIII können Sie versuchen

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 some

Taskdef classpath still does not work - partIII

2009-05-29 Thread Knuplesch, Juergen
Hello, My taskdef classpath still does not work (it sometimes worked). I do the following In the end Ant tells me: BUILD FAILED D:\Entwicklung\Build\DopeBuildServer\dopebuild_ant2.xml:376: java.lang.IllegalArgumentException: interface

AW: AW: Taskdef classpath does not work - partII

2009-05-28 Thread Knuplesch, Juergen
Hello, I use getEclipseClasspath to realize the classpath. If I run the class withot Ant inside Eclipse it works with the classpath I defined in Eclipse. It also works if I add the jar to the Ant classpath. It does not work if I only use the Eclipse classpath for the taskdef together with Ant

Re: AW: Taskdef classpath does not work - partII

2009-05-28 Thread Scot P. Floess
length of a classpath that will be handled using taskdef? Greetings Jürgen -- Jürgen Knuplesch -Ursprüngliche Nachricht- Von: Knuplesch, Juergen [mailto:juergen.knuple...@icongmbh.de] Gesendet: Donnerstag, 28. Mai 2009 16:50 An: Ant Users List Betreff: Taskdef classpath does nor work

AW: Taskdef classpath does not work - partII

2009-05-28 Thread Knuplesch, Juergen
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

AW: Taskdef classpath does nor work

2009-05-28 Thread Knuplesch, Juergen
Users List Betreff: Re: Taskdef classpath does nor work 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: > > cl

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 certai

Taskdef classpath does nor work

2009-05-28 Thread Knuplesch, Juergen
Hello, I do a taskdef with 1.7.1 like: When I display the classpath referenced in java.classpathid I see a certain jar. When I run the task it fails, because it can not find a class that is based in that certain jar. When I add the jar in the classpath of Ant it works. This is strange

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

taskdef jars, unloading & deleting

2009-05-13 Thread Sam Berlin
Hi Folks, I have an issue with ant 1.7.1 where I need to delete jars that were loaded as a taskdef through a call to to run a separate project's build scripts. The scenario is: master script: 1) Downloads code from CVS to a temporary directory 2) Runs preparation tasks 3) Runs:

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

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

2009-05-13 Thread Rajesh Kumar (IN4774)
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 following files added in path ganymed.jar svnClientAdapter.jar svnant.jar svnjavahl.jar Any Solution

Re: Initializing Task variables at taskdef time?

2008-08-19 Thread cowwoc
t;> there doesn't seem to be a way to do it... is there a way for me to pass >> parameters to my custom task at taskdef (initialization time)? >> >> One obvious use-case is grabbing the classpath used in the taskdef during >> the task execution time, but thi

Re: Initializing Task variables at taskdef time?

2008-08-19 Thread Evgeny
ems like such an obvious use-case but from what I read in this forum > there doesn't seem to be a way to do it... is there a way for me to pass > parameters to my custom task at taskdef (initialization time)? > > One obvious use-case is grabbing the classpath used in the taskdef dur

Re: Initializing Task variables at taskdef time?

2008-08-19 Thread Dominique Devienne
On Tue, Aug 19, 2008 at 7:56 AM, cowwoc <[EMAIL PROTECTED]> wrote: > This seems like such an obvious use-case but from what I read in this forum > there doesn't seem to be a way to do it... is there a way for me to pass > parameters to my custom task at taskdef (initializ

Initializing Task variables at taskdef time?

2008-08-19 Thread cowwoc
Hi, This seems like such an obvious use-case but from what I read in this forum there doesn't seem to be a way to do it... is there a way for me to pass parameters to my custom task at taskdef (initialization time)? One obvious use-case is grabbing the classpath used in the taskdef durin

taskdef parsed before properties expansion if use property files?

2008-07-24 Thread Brent
I need to use JAXB to autogenerate java source files from an xml schema. The canonical way to do this in ant, judging from a recent websearch, is the following fragment that you need to put in your build file:

Strange problem with taskdef and antlib.xml

2008-06-26 Thread Rebhan, Gilbert
Hi, i've written a bunch of anttasks. Those tasks are collected in a jar. The Jar has an antlib.xml with a mapping of the classnames to tasknames ... The jar lies under %ANT_HOME%/lib the taskdefs are imported via = Yesterday a workmate added a new task and also referenced it in the

Taskdef and custom classloader

2008-05-03 Thread hdockter
= new AntClassLoader(); loader.setClassPath(taskClasspath); loader.setParentFirst(false); project.addReference(name,loader); I do get ClassCastExceptions. Has anybody an idea how I completely isolate a taskdef from an existing classpath? - Hans -- View this message in context: http://www.nabbl

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

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

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

Re: taskdef not receiving the classpath properly?

2008-04-11 Thread Kathryn Rivard
ur main build target is, right? If so, then yes -- unless I put ant/lib/catalina-ant.jar in the classpath of the taskdef, or in the CLASSPATH environment variable, I always get the exception. That's what makes it so weird -- it *appears* as if catalina-ant.jar is the path, but to get it to

Re: taskdef not receiving the classpath properly?

2008-04-11 Thread supareno
ving 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 the taskdef tag**, or put it in

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

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 cl

taskdef not receiving the classpath properly?

2008-04-11 Thread Kathryn Rivard
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 the taskdef tag

taskdef not receiving the classpath properly?

2008-04-10 Thread Kathryn Rivard
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 the taskdef tag

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
> In Ant's distro (I think, else in SVN HEAD) you can check out the cooperation between fetch.xml and get-m2.xml . This does something like what you're talking about. > 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 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

taskdef question - only usable at project level?

2008-03-11 Thread Scot P. Floess
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: Either: "http://ant-contrib.sourceforge.net"; description = "Needed to use ant-contrib."> "/local/sfloess/test/lib/ant-cont

Re: Ant taskdef works in one build.xml but not another

2007-09-10 Thread david
Hello Kevin, yep your right: the actually works in both build.xml at the command-line. The difference is the Eclipse build path is errant and issues warnings. Trusting Eclipse is ill-advised. Thanks, David. Kevin Jackson wrote .. > Hi, > > Can you add the build.xml inline as the list removes a

Re: Ant taskdef works in one build.xml but not another

2007-09-10 Thread Kevin Jackson
Hi, Can you add the build.xml inline as the list removes attachments? When you say it runs at the command line, this means that you aren't launching ant through eclipse in anyway? Thanks, Kev - To unsubscribe, e-mail: [EMAIL PR

Ant taskdef works in one build.xml but not another

2007-09-10 Thread david
. All particulars follow. Thanks in advance and please advise, David. OS: Windows XP IDE: Eclipse 3.3 (Europa) Ant: 1.7.0 ant.home = env.ANT_HOME Java: 1.6.0_02 taskdef class com.jera.anttasks.Query cannot be found - To

Ant 1.7.0 specific error: failed to create task or type taskdef

2007-05-30 Thread ryan
setAntfile("build.xml"); antV.setTarget(fooName); Everything builds properly but at runtime we get the following error when invoking foo: The following error occurred while executing this line: /home/ryano/svn-ws/spider/bin/build.xml:11: Problem: failed to create task or typ

Re: help! taskdef class.org.apache.catalina.ant.DeployTask cannot be found

2007-02-05 Thread James Abley
na-ant.jar" /> Teasel wrote: Anil Philip wrote: I am trying to run the Quartz webapp from Sun Java Studio 8.1 using Tomcat. I am using the ant scripts that come with Quartz webapp. When I try to Run (in Sun Studio 8.1), I get "taskdef class.org.apache.catalina.ant.DeployTask cannot be fo

  1   2   3   >