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 ?

Andy,
Yes, when I launch from ajc it runs correctly:

E:\aspectj\bin\ajc -inpath E:\eclipse\workspace\perfStats13\inpath -d
E:\eclipse\workspace\perfStats13\outpath -source 1.3 -target 1.3 -verbose
-argfile E:\eclipse\workspace\perfStats13\src\args3.lst  -classpath
E:\eclipse\workspace\perfStats13\perfAspects13.jar;E:\eclipse\workspace\perf
Stats13\lib\aspectjrt.jar;E:\eclipse\workspace\perfStats13\lib\aspectjtools.
jar;E:\eclipse\workspace\perfStats13\lib\emory-util-collections.jar;E:\eclip
se\workspace\perfStats13\lib\commons-pool-1.3.jar;E:\eclipse\workspace\perfS
tats13\lib\commons-dbcp-1.2.2.jar;E:\eclipse\workspace\perfStats13\lib\jolt.
jar;E:\eclipse\workspace\perfStats13\lib\axis.jar;E:\eclipse\workspace\perfS
tats13\lib\jaxrpc.jar;E:\eclipse\workspace\perfStats13\exemple1.jar

 In the inpath folder there is the unpackaged  classes. After running the
classes are still here.

Whith the antTask the classes in the inpath are removed, and there is
nothing in the outpath folder except the Aspect.

I join the two outputs ( OK and KO)  as Andrew told to me.
 
Jean-Louis Pasturel

 

-----Message d'origine-----
De : aspectj-users-bounces@xxxxxxxxxxx
[mailto:aspectj-users-bounces@xxxxxxxxxxx] De la part de Andy Clement
Envoyé : lundi 7 juillet 2008 21:34
À : aspectj-users@xxxxxxxxxxx
Objet : 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
>
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users


*********************************
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.
********************************

Attachment: outpathOK.zip
Description: Zip compressed data

Attachment: outpathKO.zip
Description: Zip compressed data


Back to the top