Rekl bych, ze jeste chybi dat do classpath knihovnu aspectjrt.jar, alespon
tak to mam v jednom projektu:

<ajc srcdir="${build.source}" destdir="${build}" debug="on" source="1.5">
  <classpath>
  <path refid="libsPath"/>
  <pathelement location="${ant.home}/lib/aspectjrt.jar"/>
  <pathelement path="${build}"/>
  </classpath>
</ajc>

Je to priklad pro kompilator, pocitam, ze pro post-compile to bude
obdobne...

vice 
zde<http://www.eclipse.org/aspectj/doc/released/devguide/antTasks-install.html>
.

Petr

On Fri, Oct 10, 2008 at 8:15 AM, Petr Roubal <[EMAIL PROTECTED]> wrote:

>  Ahoj,
> mám problém s antem a AcpectJ
>
> mám definovou user task:
>
> <taskdef
>       resource="org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties">
>             <classpath>
>                 <pathelement
> location="c:\aspectj1.6\lib\acpectjtoolsjar"/>
>             </classpath>
> </taskdef>
>
> v -post-jar targetu volám
>
> <iajc destDir="${dist.dir}/modules"
> inpath="${dist.dir}/modules" source="1.5" verbose="true"/>
>
> výstup je:
>
> ajc [-d, C:\project\dist\modules, -source, 1.5, -verbose, -inpath,
> C:\project\dist\modules]
> info directory classpath entry does not exist: C:\Program
> Files\Java\jdk1.6.0_10\jre\lib\sunrsasign.jar
> info zipfile classpath entry does not exist: C:\Program
> Files\Java\jdk1.6.0_10\jre\classes
> info Pipelining compilation
> info weaver operating in reweavable mode.  Need to verify any required
> types exist.
> info Compiler took 31ms
> jar:
> BUILD SUCCESSFUL (total time: 53 seconds)
>
> ještě jsem zkoušel task použít v targetu -post-compile
> a to takto:
> <iajc destDir="${build.classes.dir}}/planit"
> inpath="${build.classes.dir}/planit"
>             source="1.5" verbose="true"/>
>
> ale výsledek byl jen
>
> ajc [-d, C:\project\build\classes}\planit, -source, 1.5, -verbose, -inpath,
> C:\project\build\classes\planit]
> info directory classpath entry does not exist: C:\Program
> Files\Java\jdk1.6.0_10\jre\lib\sunrsasign.jar
> info zipfile classpath entry does not exist: C:\Program
> Files\Java\jdk1.6.0_10\jre\classes
> info Pipelining compilation
> info weaver operating in reweavable mode.  Need to verify any required
> types exist.
> info woven aspect planit.AspectLog (from
> C:\project\build\classes\planit\AspectLog.class)
> info woven class planit.IZP.MinInflace (from
> C:\project\build\classes\planit\IZP\MinInflace.class)
> ...
>
> vzdycky to skonci build sucesfull
> ale kdyz spustim program ve kterem mam pod @Log
>
> package planit;
>
>
> public @interface Log {
>
> }
>
> a
>
> package planit;
>
> import ...
>
> @Aspect
> public class AspectLog {
>     @Before ("execution(@Log * *(..))")
> public void entering(JoinPoint jp) {
>         String pr ="Entering " + jp;
>         System.out.println(pr);
>  }
>     @AfterReturning (pointcut="execution(@Log * *(..))", returning="o")
> public void leaving(JoinPoint jp, Object o) {
>         String pr ="Returning " + jp;
>         System.out.println(pr);
> }
>     @AfterThrowing (pointcut="execution(@Log * *(..))", throwing="e")
> public void throwing(JoinPoint jp, RuntimeException e) {
>         String pr ="Throwing " + jp;
>         System.out.println(pr);
> }
>
> }
>
> tak se nic na obrayovku nevypíše.
>
> Nemohl by někdo poradit v čem dělám chybu?
> už jen rozchodit ant s acpectJ aby načetl taskdef byl docela porod.
>
> Budu vděčnej za každou radu
>
> Díky Petr
>
>
>
>
>
> ----------
> www.inpage.cz - www stranky za 3 Kc a za chvilku.
>

Odpovedet emailem