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 - does the same thing happen if you just do it from the
command line using ajc with all the same options?

Andy.

2008/7/7 Andrew Eisenberg <andrew@xxxxxxxxxxxx>:
> Please post the output of running both ant tasks.  That will help me
> see what is going on.
>
> On Mon, Jul 7, 2008 at 10:25 AM, Jean-Louis.Pasturel
> <jean-louis.pasturel@xxxxxxxxx> wrote:
>> Andrew Eisenberg a écrit :
>>
>>> 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.
>>>
>>
>> Yes, your understand is correct
>>
>>> 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.
>>>
>>>
>>
>> jlp/exemple1/jvm13/<classes of exemple1.jar >
>> is the result of jar xvf exemple1.jar
>> launched in the inpath folder. am i more clear ?
>>
>> and yes the classes in the inpath/jlp/exemple1/jvm13/ folder are deleted
>> after compiling and there is no output except the Aspect byte code in the
>> destdir folder
>>
>>> 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
>>>>
>>>>
>>>>
>>>
>>> _______________________________________________
>>> aspectj-users mailing list
>>> aspectj-users@xxxxxxxxxxx
>>> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>>>
>>> ---------------------------------------------------------------------------------------
>>> Orange vous informe que cet  e-mail a ete controle par l'anti-virus mail.
>>> Aucun virus connu a ce jour par nos services n'a ete detecte.
>>>
>>>
>>>
>>>
>>
>>
>> _______________________________________________
>> aspectj-users mailing list
>> aspectj-users@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>


Back to the top