ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tstrall <ted.str...@orbitz.com>
Subject Re: Execution classpath question for taskdef
Date Tue, 22 Feb 2011 21:31:25 GMT

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


Mime
View raw message