maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brett Porter <br...@apache.org>
Subject Re: Adding custom Ant tasks inside Maven
Date Thu, 03 Jun 2004 00:29:47 GMT
Don't put the jar in the maven lib directory. Instead, add "classpath" to the
taskdef.

One way is to add it as a dependency of the project and add:
classpathref="maven.dependency.classpath"
to the taskdef

Quoting Ian Neruda <ianeruda@yahoo.com>:

> Hi.
> 
> I need to extend ant with custom task(obfuscation) and
> use that task inside Maven. I added jar in
> MAVEN_HOME/lib, and added that jar to classpath(in
> maven.bat).
> 
> After that I put task definition in maven.xml:
> <goal name="crm:obfuscate">
>  <ant:taskdef name="obfuscate"
> classname="com.yworks.yguard.ObfuscatorTask"/>        
> </goal>
> 
> I get error message "taskdef class
> com.yworks.yguard.ObfuscatorTask cannot be found".
> 
> Do I need to put jar somewhere else or I have taskdef
> in wrong file?
> 
> Thanks, Ian.
> 
> 
> 
> 
> 
> 	
> 		
> __________________________________
> Do you Yahoo!?
> Friends.  Fun.  Try the all-new Yahoo! Messenger.
> http://messenger.yahoo.com/ 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message