Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] AspectJ Ant task bug ?

Jean-Louis,

I'm not exactly sure I understand what you are saying.  Is this correct:

1. When you run the iajc ant task with a jar on the inpath. the task
runs propertly.  But, when you run it with a class folder on the in
path, the task does not run properly.

2. Are you saying that the iajc actually deletes the classes on the
inpath after it runs?

Several possibilities for answering #1.  It seems like you may not be
specifying the proper in path folder.  Are you specifying the package
root?  I notice an extra space in the second task's inpath attribute.
This could be a problem.

If you are still having problems, paste the output from both ant runs
in your next email.

On Mon, Jul 7, 2008 at 2:00 AM,  <jeanlouis.pasturel@xxxxxxxxxxxxxxxxxx> wrote:
> I have two folder
>
> inpath :
>
>             exemple1.jar
>
>             jlp/exemple1/jvm13/<classes of exemple1.jar >
>
>
>
> outpath :
>
>
>
> and a concrete Aspect :
> iep.perf.aspect13.concreteAspect.DurationSimpleMethod.aj
>
>
>
> this Ant Task runs fine :
>
> <iajc inpath="${basedir}\inpath\exemple1.jar" failonerror="true"
> source="1.3"  argfiles="src/args3.lst"
>
>                   destdir="${basedir}/outpath"
> classpath="${basedir}/lib/aspectjrt.jar;${basedir}/perfAspects13.jar"
>
>                   verbose="true" fork="true" maxmem="512m">
>
>
>
>
>
>                               <forkclasspath refid="ajde.classpath" />
>
>
>
>                         </iajc>
>
> The args3.lst constains only :
> iep/perf/aspect13/concreteAspect/DurationSimpleMethod.aj
>
> The pointcut is : public pointcut methods():execution(public *
> jlp.exemple1.jvm13.*.*(..));
>
> With specifying a jar file in the inpath attribute, the woven classes are
> correctly generated in the outpath folder
>
>
>
> With this Ant task :
>
> <iajc inpath="${basedir}\inpath " failonerror="true" source="1.3"
> argfiles="src/args3.lst"
>
>                   destdir="${basedir}/outpath"
> classpath="${basedir}/lib/aspectjrt.jar;${basedir}/perfAspects13.jar"
>
>                   verbose="true" fork="true" maxmem="512m">
>
>
>
>
>
>                               <forkclasspath refid="ajde.classpath" />
>
>
>
>                         </iajc>
>
> It doesn't run, the folder $basedir/inpath/jlp/exemple1/jvm13/ is empty
> after the compilation, and there is no classes generated in the outpath
> folder except the Aspect.
>
>
>
>
>
> Cordialement / Best regards
>
>
>
> Jean-Louis Pasturel
> jeanlouis.pasturel@xxxxxxxxxxxxxxxxxx
>
>
>
>
>
> *********************************
> This message and any attachments (the "message") are confidential and
> intended solely for the addressees.
> Any unauthorised use or dissemination is prohibited.
> Messages are susceptible to alteration.
> France Telecom Group shall not be liable for the message if altered, changed
> or falsified.
> If you are not the intended addressee of this message, please cancel it
> immediately and inform the sender.
> ********************************
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>


Back to the top