You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by tstrall <te...@orbitz.com> on 2011/02/22 22:31:25 UTC

Re: Execution classpath question for taskdef

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:

<taskdef classname="com.orbitz.insurance.engine.taskdefs.RebuildRulesTask"
name="rebuild-rulebase">
<classpath>
<path refid="classpath.build">
<pathelement location="${dir.compile}">
</pathelement></path></classpath>
</taskdef>

But when the task is called it returns the error:

java.lang.ClassNotFoundException:
com.orbitz.insurance.engine.services.impl.DroolsInsuranceServices

Both com.orbitz.insurance.engine.taskdefs.RebuildRulesTask and
com.orbitz.insurance.engine.services.impl.DroolsInsuranceServices
are in the same place on the classpath.

This worked with Ant 1.7. Any help would be appreciated.

-- 
View this message in context: http://ant.1045680.n5.nabble.com/Execution-classpath-question-for-taskdef-tp3348395p3396187.html
Sent from the Ant - Users mailing list archive at Nabble.com.

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