[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.ajdt] Re: Aspectj export fails because IMessageHandler cannot be found

I believe that the weaver and aspectj runtime are required by ajde and so
must be in the target platform as well.


On 28/08/09 10:18 AM, in article
d8d722417b058cbf62b78ca7f10@xxxxxxxxxxxxxxxx, "Ivica Loncar"
<iloncar.mlIQTEST@xxxxxxxxx> wrote:

> Hello Andrew,
> 
>> Hi Ivica,
>> 
>> org.aspectj.ajde must be in the target platform in order for the build
>> to work.  So, add that bundle to the target platform and it should
>> work.
>> 
> 
> Hi Andrew, 
> 
> I have tried to add ajde to the target platform and it doesn't work.
> 
> I have added ajde to the target platform and generated build.xml looks like
> this:
> 
> <!-- compile the source code -->
> <path id="ajde.classpath">
> <pathelement 
> path="../uredsko_platform_341/ajde/org.aspectj.ajde_1.6.5.20090618034232/ajde.
> jar"/>
> </path>
> <taskdef resource="org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties">
> <classpath refid="ajde.classpath" />
> </taskdef>
> <property name="ajcArgFile" value=""/>
> <iajc destDir="${temp.folder}/@dot.bin" failonerror="true"
> argfiles="${ajcArgFile}"
> verbose="true" fork="true" maxmem="512m" debug="${javacDebugInfo}"
> bootclasspath="${bundleBootClasspath}"
> source="${bundleJavacSource}" target="${bundleJavacTarget}">
> <forkclasspath refid="@dot.classpath" />
> <forkclasspath refid="ajde.classpath" />
> <src path="src/"   />
> </iajc>
> 
> 
> iajc fails with error:
> 
> net.croz.aspect\build.xml:139: taskdef A class needed by class
> org.aspectj.tools.ant.taskdefs.AjcTask
> cannot be found: org/aspectj/bridge/IMessageHandler
> 
> Total time: 281 milliseconds
> 
> If we just get ajde dependencies without trying to resolve them ajde.classpath
> will be created as expected.
> Why ${ajde.classpath} bundles have to be resolved from the target platform?
>