You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Thomas SMETS <sm...@yahoo.com> on 2006/02/10 01:31:25 UTC

Usage of JBlanket

Dear,
 
 I would like to define a target to use JBlanket but the default install advises to copy the needed jars in the  ${ANT_HOME}/lib while I would prefere to place the jar's in a external directory like "wrongly" shown herebelow with 2 different configs :
 
   <path id="jblanket.path">
     <fileset dir="${jblanket.basedir}">
       <include name="**/*.jar" />
     </fileset>
   </path>
   <taskdef name="jblanket"
            classname="csdl.jblanket.ant.JBlanketModifyTask">
     <path refid="jblanket.path" />
   </taskdef>
 
 BUILD FAILED
 /home/tsmets/workspace/CodeCoverage/JBlanket.xml:24: The <taskdef> type doesn't support the nested "path" element.
 
 If I defined the task as such :
   <taskdef name="jblanket"
            classname="csdl.jblanket.ant.JBlanketModifyTask"
            classpathref="jblanket.path"
            loaderref="lib.path.loader"/>
 I have this :
 BUILD FAILED
 /home/tsmets/workspace/CodeCoverage/JBlanket.xml:26: taskdef class csdl.jblanket.ant.JBlanketModifyTask cannot be found
 
 Any help would appreciated ;)
 
 \T,
 
 
 
--  
 Any fool can write code that a computer can understand.  
 Good programmers write code that humans can understand.                                                    
 Martin Fowler  
 T. : +32 (0)2 742 05 94 
 M. : +32 (0)497 44 68 12 
 @  : duvelbier-tsmets@yahoo.com 
 Do you skype too ... ?



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Usage of JBlanket

Posted by Stefan Bodewig <bo...@apache.org>.
On Thu, 9 Feb 2006, Thomas SMETS <sm...@yahoo.com> wrote:

>    <taskdef name="jblanket"
>             classname="csdl.jblanket.ant.JBlanketModifyTask">
>      <path refid="jblanket.path" />
>    </taskdef>
>  
>  BUILD FAILED /home/tsmets/workspace/CodeCoverage/JBlanket.xml:24:
>  The <taskdef> type doesn't support the nested "path" element.

The element's name is <classpath>, not <path>.

>  If I defined the task as such :
>
>  <taskdef name="jblanket"
>           classname="csdl.jblanket.ant.JBlanketModifyTask"
>           classpathref="jblanket.path" loaderref="lib.path.loader"/>
>
>  I have this : BUILD FAILED
>  /home/tsmets/workspace/CodeCoverage/JBlanket.xml:26: taskdef class
>  csdl.jblanket.ant.JBlanketModifyTask cannot be found

Run ant -debug to see which class ant ries to load using which
classloader, at the end you may find that you either don't have all
the jars you need or Ant is trying to load a class from to high in the
classloader hierarchy to find the class.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


RE: Usage of JBlanket

Posted by Stephen McConnell <mc...@dpml.net>.
 

> -----Original Message-----
> From: Thomas SMETS [mailto:smetsthomas@yahoo.com] 
> Sent: Friday, 10 February 2006 11:01 AM
> To: Ant Users
> Subject: Usage of JBlanket
> 
> 
> Dear,
>  
>  I would like to define a target to use JBlanket but the 
> default install advises to copy the needed jars in the  
> ${ANT_HOME}/lib while I would prefere to place the jar's in a 
> external directory like "wrongly" shown herebelow with 2 
> different configs :
>  
>    <path id="jblanket.path">
>      <fileset dir="${jblanket.basedir}">
>        <include name="**/*.jar" />
>      </fileset>
>    </path>
>    <taskdef name="jblanket"
>             classname="csdl.jblanket.ant.JBlanketModifyTask">
>      <path refid="jblanket.path" />
>    </taskdef>

Remove the path element and add the 'classpathref' attribute to the taskdef
element. See typedef task usage docs for an example.

/Steve.



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org