Home » Language IDEs » AspectJ » producing a "deployable plugin with AspectJ support" fails
| |
Re: producing a "deployable plugin with AspectJ support" fails [message #67871 is a reply to message #67850] |
Fri, 17 November 2006 14:37 |
Matt Chapman Messages: 429 Registered: July 2009 |
Senior Member |
|
|
Hi Michael,
That export wizard does the equivalent of the non-AspectJ version, which
is to generate a build.xml file and then run it, in order to create the
deployable plugin in the same way as in an automated PDE build process.
If you don't want this rebuild step, you could export the project as a
zip file and choose the contents manually.
The log messages confirm that the AJC ant task is correctly being used
instead of the regular Javac task. But unfortunately it's not telling us
what those 14 compiler errors, plus it cleans up the generated build.xml
as you discovered.
To diagnose this further, you should ensure you have an accurate
build.properties file for your plugin, and then right-click on the
plugin.xml or MANIFEST.MF file and select "PDE Tools > Create Ant Build
File with AspectJ support". You should then have a build.xml file which
you can run, and see the output in the console.
Regards,
Matt.
Michael Moser wrote:
> Maybe this helps analyzing this problem: the log shows a couple of error
> messages that read e.g.:
>
> ----------------------------
> ...
> C:\Documents and
> Settings\mmo\workspace\.metadata\.plugins\org.eclipse.pde.co re\temp\org.eclipse.pde.container.feature\build.xml:29:
> The following error occurred while executing this line:
> C:\Documents and
> Settings\mmo\workspace\.metadata\.plugins\org.eclipse.pde.co re\temp\org.eclipse.pde.container.feature\build.xml:10:
> The following error occurred while executing this line:
> C:\JavaDevt\myproject\build.xml:195: The following error occurred while
> executing this line:
> C:\JavaDevt\myproject\build.xml:170: compile errors: 14
> at
> org.apache.tools.ant.ProjectHelper.addLocationToBuildExcepti on(ProjectHelper.java:539)
>
> at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:384)
> at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget. java:107)
> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
> at org.apache.tools.ant.Task.perform(Task.java:364)
> at org.apache.tools.ant.Target.execute(Target.java:341)
> at org.apache.tools.ant.Target.performTasks(Target.java:369)
> at org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
> at org.apache.tools.ant.Project.executeTarget(Project.java:1185 )
> at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:40)
>
> at
> org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
>
> at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
> at
> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:706)
>
> at
> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:457)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:64)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
>
> at java.lang.reflect.Method.invoke(Method.java:615)
> at org.eclipse.ant.core.AntRunner.run(AntRunner.java:356)
> at
> org.eclipse.ajdt.internal.core.exports.FeatureExportOperatio n.runScript(FeatureExportOperation.java:307)
>
> at
> org.eclipse.ajdt.internal.core.exports.FeatureExportOperatio n.doExport(FeatureExportOperation.java:196)
>
> at
> org.eclipse.ajdt.internal.core.exports.FeatureBasedExportOpe ration.run(FeatureBasedExportOperation.java:47)
>
> at
> org.eclipse.ajdt.internal.ui.wizards.exports.AJFeatureExport Job.run(AJFeatureExportJob.java:54)
>
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
> Caused by: C:\Documents and
> Settings\mmo\workspace\.metadata\.plugins\org.eclipse.pde.co re\temp\org.eclipse.pde.container.feature\build.xml:10:
> The following error occurred while executing this line:
> ...
> (this continue about 3 times, every 2 or 3 "Caused by: ..." there is a
> line "Nested Exception:" and then things seem to repeat from the
> beginning again. This continues about 3 times, except for the last
> segment which finally reads:
> ...
> --- Nested Exception ---
> C:\JavaDevt\myproject\build.xml:170: compile errors: 14
> at
> org.aspectj.tools.ant.taskdefs.AjcTask.executeInOtherVM(AjcT ask.java:1414)
> at org.aspectj.tools.ant.taskdefs.AjcTask.execute(AjcTask.java: 1082)
> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
> at org.apache.tools.ant.Task.perform(Task.java:364)
> at org.apache.tools.ant.Target.execute(Target.java:341)
> at org.apache.tools.ant.Target.performTasks(Target.java:369)
> at org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
> at
> org.apache.tools.ant.helper.SingleCheckExecutor.executeTarge ts(SingleCheckExecutor.java:37)
>
> at
> org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor .executeTargets(EclipseSingleCheckExecutor.java:30)
>
> at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
> at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
> at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget. java:107)
> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
> at org.apache.tools.ant.Task.perform(Task.java:364)
> at org.apache.tools.ant.Target.execute(Target.java:341)
> at org.apache.tools.ant.Target.performTasks(Target.java:369)
> at org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
> at
> org.apache.tools.ant.helper.SingleCheckExecutor.executeTarge ts(SingleCheckExecutor.java:37)
>
> at
> org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor .executeTargets(EclipseSingleCheckExecutor.java:30)
>
> at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
> at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
> at org.apache.tools.ant.Task.perform(Task.java:364)
> at org.apache.tools.ant.Target.execute(Target.java:341)
> at org.apache.tools.ant.Target.performTasks(Target.java:369)
> at org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
> at
> org.apache.tools.ant.helper.SingleCheckExecutor.executeTarge ts(SingleCheckExecutor.java:37)
>
> at
> org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor .executeTargets(EclipseSingleCheckExecutor.java:30)
>
> at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
> at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
> at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget. java:107)
> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
> at org.apache.tools.ant.Task.perform(Task.java:364)
> at org.apache.tools.ant.Target.execute(Target.java:341)
> at org.apache.tools.ant.Target.performTasks(Target.java:369)
> at org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
> at org.apache.tools.ant.Project.executeTarget(Project.java:1185 )
> at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:40)
>
> at
> org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
>
> at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
> at
> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:706)
>
> at
> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:457)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:64)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
>
> at java.lang.reflect.Method.invoke(Method.java:615)
> at org.eclipse.ant.core.AntRunner.run(AntRunner.java:356)
> at
> org.eclipse.ajdt.internal.core.exports.FeatureExportOperatio n.runScript(FeatureExportOperation.java:307)
>
> at
> org.eclipse.ajdt.internal.core.exports.FeatureExportOperatio n.doExport(FeatureExportOperation.java:196)
>
> at
> org.eclipse.ajdt.internal.core.exports.FeatureBasedExportOpe ration.run(FeatureBasedExportOperation.java:47)
>
> at
> org.eclipse.ajdt.internal.ui.wizards.exports.AJFeatureExport Job.run(AJFeatureExportJob.java:54)
>
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
> ----------------------------
>
> Strange enough - there is no "build.xml" file (mentioned in lines 3 & 4)
> in my project! Or is this file temporarily created only?
>
> Michael
>
>
> "Michael Moser" <mmo@zurich.ibm.com> wrote in message
> news:ejjrla$c0o$1@utils.eclipse.org...
>> I have finalized a plugin (i.e. it works fine when I start it in the
>> runtime workbench) and so I would now like to convert it into some
>> distributable form.
>>
>> Thus, I started with File => Export.... and selected "Deployable
>> plugins and fragments with AspectJ support". I select my project and
>> enter the .zip file name into which to pack up everything and also
>> selected to save the procedure as ant script and then pressed "Finish".
>>
>> That runs for a while and then for some - to me inexpliccable - reason
>> that process terminates telling me that there were 14 compile errors.
>> And no .zip is produced.
>>
>> ???? But this compiled and ran fine before! So where do these compile
>> errors suddenly come from? And why does this recompile things in the
>> first place? It should just export (i.e. pack and wrap up) things - at
>> least that's what I would have expected...
>>
>> Any ideas?
>>
>> This is on eclipse 3.2.1 and I tried this with the same result using
>> ajdt_1.4_for_eclipse_3.2.zip (i.e. the latest release) and also with
>> 1.4.1.200611081052 for Eclipse 3.2 (i.e. the latest developer build
>> provided).
>>
>> Michael
>>
>
|
|
|
Re: producing a "deployable plugin with AspectJ support" fails [message #67892 is a reply to message #67871] |
Fri, 17 November 2006 16:19 |
Michael Moser Messages: 914 Registered: July 2009 |
Senior Member |
|
|
Followed your advice, but using that generated build.xml I now have 998
errors! 8-O
But at least I can now see, that it's apparently deeply diving down the
type tree and produces tons of message like:
<some.jar> [error] can't determine whether missing type
org.eclipse.hyades.logging.events.cbe.CreateSituation is an instance of
<some type>
etc. etc.
That's apparently all stuff from some logging and other libraries that I
am using. Seems, I have to work on my classpaths again (Aaargh! Compared
with Java's constant classpath issues any DLL-hell I ever encountered
was a piece of cake, but that's a different story...).
But why does this behavior differ from normal compilation, i.e. why can
I happily compile and even run things otherwise? Why is this
export-build different? Puzzles over puzzles...
Can one somehow tell AJDT to leave .jar files alone, i.e. cut this
analysis short at some level?
Michael
"Matt Chapman" <mpchapman@gmail.com> wrote in message
news:ejkhf8$nus$1@utils.eclipse.org...
> Hi Michael,
>
> That export wizard does the equivalent of the non-AspectJ version,
> which is to generate a build.xml file and then run it, in order to
> create the deployable plugin in the same way as in an automated PDE
> build process. If you don't want this rebuild step, you could export
> the project as a zip file and choose the contents manually.
>
> The log messages confirm that the AJC ant task is correctly being used
> instead of the regular Javac task. But unfortunately it's not telling
> us what those 14 compiler errors, plus it cleans up the generated
> build.xml as you discovered.
>
> To diagnose this further, you should ensure you have an accurate
> build.properties file for your plugin, and then right-click on the
> plugin.xml or MANIFEST.MF file and select "PDE Tools > Create Ant
> Build File with AspectJ support". You should then have a build.xml
> file which you can run, and see the output in the console.
>
> Regards,
>
> Matt.
>
> Michael Moser wrote:
>> Maybe this helps analyzing this problem: the log shows a couple of
>> error messages that read e.g.:
>>
>> ----------------------------
>> ...
>> C:\Documents and
>> Settings\mmo\workspace\.metadata\.plugins\org.eclipse.pde.co re\temp\org.eclipse.pde.container.feature\build.xml:29:
>> The following error occurred while executing this line:
>> C:\Documents and
>> Settings\mmo\workspace\.metadata\.plugins\org.eclipse.pde.co re\temp\org.eclipse.pde.container.feature\build.xml:10:
>> The following error occurred while executing this line:
>> C:\JavaDevt\myproject\build.xml:195: The following error occurred
>> while executing this line:
>> C:\JavaDevt\myproject\build.xml:170: compile errors: 14
>> at
>> org.apache.tools.ant.ProjectHelper.addLocationToBuildExcepti on(ProjectHelper.java:539)
>> at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:384)
>> at
>> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget. java:107)
>> at
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
>> at org.apache.tools.ant.Task.perform(Task.java:364)
>> at org.apache.tools.ant.Target.execute(Target.java:341)
>> at org.apache.tools.ant.Target.performTasks(Target.java:369)
>> at
>> org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
>> at org.apache.tools.ant.Project.executeTarget(Project.java:1185 )
>> at
>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:40)
>> at
>> org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
>> at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
>> at
>> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:706)
>> at
>> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:457)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:64)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:615)
>> at org.eclipse.ant.core.AntRunner.run(AntRunner.java:356)
>> at
>> org.eclipse.ajdt.internal.core.exports.FeatureExportOperatio n.runScript(FeatureExportOperation.java:307)
>> at
>> org.eclipse.ajdt.internal.core.exports.FeatureExportOperatio n.doExport(FeatureExportOperation.java:196)
>> at
>> org.eclipse.ajdt.internal.core.exports.FeatureBasedExportOpe ration.run(FeatureBasedExportOperation.java:47)
>> at
>> org.eclipse.ajdt.internal.ui.wizards.exports.AJFeatureExport Job.run(AJFeatureExportJob.java:54)
>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
>> Caused by: C:\Documents and
>> Settings\mmo\workspace\.metadata\.plugins\org.eclipse.pde.co re\temp\org.eclipse.pde.container.feature\build.xml:10:
>> The following error occurred while executing this line:
>> ...
>> (this continue about 3 times, every 2 or 3 "Caused by: ..." there is
>> a line "Nested Exception:" and then things seem to repeat from the
>> beginning again. This continues about 3 times, except for the last
>> segment which finally reads:
>> ...
>> --- Nested Exception ---
>> C:\JavaDevt\myproject\build.xml:170: compile errors: 14
>> at
>> org.aspectj.tools.ant.taskdefs.AjcTask.executeInOtherVM(AjcT ask.java:1414)
>> at org.aspectj.tools.ant.taskdefs.AjcTask.execute(AjcTask.java: 1082)
>> at
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
>> at org.apache.tools.ant.Task.perform(Task.java:364)
>> at org.apache.tools.ant.Target.execute(Target.java:341)
>> at org.apache.tools.ant.Target.performTasks(Target.java:369)
>> at
>> org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
>> at
>> org.apache.tools.ant.helper.SingleCheckExecutor.executeTarge ts(SingleCheckExecutor.java:37)
>> at
>> org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor .executeTargets(EclipseSingleCheckExecutor.java:30)
>> at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
>> at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
>> at
>> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget. java:107)
>> at
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
>> at org.apache.tools.ant.Task.perform(Task.java:364)
>> at org.apache.tools.ant.Target.execute(Target.java:341)
>> at org.apache.tools.ant.Target.performTasks(Target.java:369)
>> at
>> org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
>> at
>> org.apache.tools.ant.helper.SingleCheckExecutor.executeTarge ts(SingleCheckExecutor.java:37)
>> at
>> org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor .executeTargets(EclipseSingleCheckExecutor.java:30)
>> at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
>> at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
>> at
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
>> at org.apache.tools.ant.Task.perform(Task.java:364)
>> at org.apache.tools.ant.Target.execute(Target.java:341)
>> at org.apache.tools.ant.Target.performTasks(Target.java:369)
>> at
>> org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
>> at
>> org.apache.tools.ant.helper.SingleCheckExecutor.executeTarge ts(SingleCheckExecutor.java:37)
>> at
>> org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor .executeTargets(EclipseSingleCheckExecutor.java:30)
>> at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
>> at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
>> at
>> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget. java:107)
>> at
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
>> at org.apache.tools.ant.Task.perform(Task.java:364)
>> at org.apache.tools.ant.Target.execute(Target.java:341)
>> at org.apache.tools.ant.Target.performTasks(Target.java:369)
>> at
>> org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
>> at org.apache.tools.ant.Project.executeTarget(Project.java:1185 )
>> at
>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:40)
>> at
>> org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
>> at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
>> at
>> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:706)
>> at
>> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:457)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:64)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:615)
>> at org.eclipse.ant.core.AntRunner.run(AntRunner.java:356)
>> at
>> org.eclipse.ajdt.internal.core.exports.FeatureExportOperatio n.runScript(FeatureExportOperation.java:307)
>> at
>> org.eclipse.ajdt.internal.core.exports.FeatureExportOperatio n.doExport(FeatureExportOperation.java:196)
>> at
>> org.eclipse.ajdt.internal.core.exports.FeatureBasedExportOpe ration.run(FeatureBasedExportOperation.java:47)
>> at
>> org.eclipse.ajdt.internal.ui.wizards.exports.AJFeatureExport Job.run(AJFeatureExportJob.java:54)
>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
>> ----------------------------
>>
>> Strange enough - there is no "build.xml" file (mentioned in lines 3 &
>> 4) in my project! Or is this file temporarily created only?
>>
>> Michael
>>
>>
>> "Michael Moser" <mmo@zurich.ibm.com> wrote in message
>> news:ejjrla$c0o$1@utils.eclipse.org...
>>> I have finalized a plugin (i.e. it works fine when I start it in the
>>> runtime workbench) and so I would now like to convert it into some
>>> distributable form.
>>>
>>> Thus, I started with File => Export.... and selected "Deployable
>>> plugins and fragments with AspectJ support". I select my project and
>>> enter the .zip file name into which to pack up everything and also
>>> selected to save the procedure as ant script and then pressed
>>> "Finish".
>>>
>>> That runs for a while and then for some - to me inexpliccable -
>>> reason that process terminates telling me that there were 14 compile
>>> errors. And no .zip is produced.
>>>
>>> ???? But this compiled and ran fine before! So where do these
>>> compile errors suddenly come from? And why does this recompile
>>> things in the first place? It should just export (i.e. pack and wrap
>>> up) things - at least that's what I would have expected...
>>>
>>> Any ideas?
>>>
>>> This is on eclipse 3.2.1 and I tried this with the same result using
>>> ajdt_1.4_for_eclipse_3.2.zip (i.e. the latest release) and also with
>>> 1.4.1.200611081052 for Eclipse 3.2 (i.e. the latest developer build
>>> provided).
>>>
>>> Michael
>>>
>>
|
|
|
Re: producing a "deployable plugin with AspectJ support" fails [message #67912 is a reply to message #67892] |
Fri, 17 November 2006 16:45 |
Michael Moser Messages: 914 Registered: July 2009 |
Senior Member |
|
|
Grrrr - down by 18, i.e. still 980 errors. :-(
Why is this thing telling telling me almost 1000 times, that it is
unable to check, whether some javax.* or commonj.timers.* or
org.eclipse.hyades.logging.* or whatever other types my 25+ .jar
libraries contain is an instance of one of my interfaces??? The answer
to all these can easily be given and is "certainly not!". I urgently
need some way to stop this!
Michael
"Michael Moser" <mmo@zurich.ibm.com> wrote in message
news:ejknea$lp$1@utils.eclipse.org...
> Followed your advice, but using that generated build.xml I now have
> 998 errors! 8-O
>
> But at least I can now see, that it's apparently deeply diving down
> the type tree and produces tons of message like:
> <some.jar> [error] can't determine whether missing type
> org.eclipse.hyades.logging.events.cbe.CreateSituation is an instance
> of <some type>
> etc. etc.
>
> That's apparently all stuff from some logging and other libraries that
> I am using. Seems, I have to work on my classpaths again (Aaargh!
> Compared with Java's constant classpath issues any DLL-hell I ever
> encountered was a piece of cake, but that's a different story...).
>
> But why does this behavior differ from normal compilation, i.e. why
> can I happily compile and even run things otherwise? Why is this
> export-build different? Puzzles over puzzles...
>
> Can one somehow tell AJDT to leave .jar files alone, i.e. cut this
> analysis short at some level?
>
> Michael
>
>
> "Matt Chapman" <mpchapman@gmail.com> wrote in message
> news:ejkhf8$nus$1@utils.eclipse.org...
>> Hi Michael,
>>
>> That export wizard does the equivalent of the non-AspectJ version,
>> which is to generate a build.xml file and then run it, in order to
>> create the deployable plugin in the same way as in an automated PDE
>> build process. If you don't want this rebuild step, you could export
>> the project as a zip file and choose the contents manually.
>>
>> The log messages confirm that the AJC ant task is correctly being
>> used instead of the regular Javac task. But unfortunately it's not
>> telling us what those 14 compiler errors, plus it cleans up the
>> generated build.xml as you discovered.
>>
>> To diagnose this further, you should ensure you have an accurate
>> build.properties file for your plugin, and then right-click on the
>> plugin.xml or MANIFEST.MF file and select "PDE Tools > Create Ant
>> Build File with AspectJ support". You should then have a build.xml
>> file which you can run, and see the output in the console.
>>
>> Regards,
>>
>> Matt.
>>
>> Michael Moser wrote:
>>> Maybe this helps analyzing this problem: the log shows a couple of
>>> error messages that read e.g.:
>>>
>>> ----------------------------
>>> ...
>>> C:\Documents and
>>> Settings\mmo\workspace\.metadata\.plugins\org.eclipse.pde.co re\temp\org.eclipse.pde.container.feature\build.xml:29:
>>> The following error occurred while executing this line:
>>> C:\Documents and
>>> Settings\mmo\workspace\.metadata\.plugins\org.eclipse.pde.co re\temp\org.eclipse.pde.container.feature\build.xml:10:
>>> The following error occurred while executing this line:
>>> C:\JavaDevt\myproject\build.xml:195: The following error occurred
>>> while executing this line:
>>> C:\JavaDevt\myproject\build.xml:170: compile errors: 14
>>> at
>>> org.apache.tools.ant.ProjectHelper.addLocationToBuildExcepti on(ProjectHelper.java:539)
>>> at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:384)
>>> at
>>> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget. java:107)
>>> at
>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
>>> at org.apache.tools.ant.Task.perform(Task.java:364)
>>> at org.apache.tools.ant.Target.execute(Target.java:341)
>>> at org.apache.tools.ant.Target.performTasks(Target.java:369)
>>> at
>>> org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
>>> at org.apache.tools.ant.Project.executeTarget(Project.java:1185 )
>>> at
>>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:40)
>>> at
>>> org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
>>> at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
>>> at
>>> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:706)
>>> at
>>> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:457)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:64)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:615)
>>> at org.eclipse.ant.core.AntRunner.run(AntRunner.java:356)
>>> at
>>> org.eclipse.ajdt.internal.core.exports.FeatureExportOperatio n.runScript(FeatureExportOperation.java:307)
>>> at
>>> org.eclipse.ajdt.internal.core.exports.FeatureExportOperatio n.doExport(FeatureExportOperation.java:196)
>>> at
>>> org.eclipse.ajdt.internal.core.exports.FeatureBasedExportOpe ration.run(FeatureBasedExportOperation.java:47)
>>> at
>>> org.eclipse.ajdt.internal.ui.wizards.exports.AJFeatureExport Job.run(AJFeatureExportJob.java:54)
>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
>>> Caused by: C:\Documents and
>>> Settings\mmo\workspace\.metadata\.plugins\org.eclipse.pde.co re\temp\org.eclipse.pde.container.feature\build.xml:10:
>>> The following error occurred while executing this line:
>>> ...
>>> (this continue about 3 times, every 2 or 3 "Caused by: ..." there is
>>> a line "Nested Exception:" and then things seem to repeat from the
>>> beginning again. This continues about 3 times, except for the last
>>> segment which finally reads:
>>> ...
>>> --- Nested Exception ---
>>> C:\JavaDevt\myproject\build.xml:170: compile errors: 14
>>> at
>>> org.aspectj.tools.ant.taskdefs.AjcTask.executeInOtherVM(AjcT ask.java:1414)
>>> at org.aspectj.tools.ant.taskdefs.AjcTask.execute(AjcTask.java: 1082)
>>> at
>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
>>> at org.apache.tools.ant.Task.perform(Task.java:364)
>>> at org.apache.tools.ant.Target.execute(Target.java:341)
>>> at org.apache.tools.ant.Target.performTasks(Target.java:369)
>>> at
>>> org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
>>> at
>>> org.apache.tools.ant.helper.SingleCheckExecutor.executeTarge ts(SingleCheckExecutor.java:37)
>>> at
>>> org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor .executeTargets(EclipseSingleCheckExecutor.java:30)
>>> at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
>>> at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
>>> at
>>> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget. java:107)
>>> at
>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
>>> at org.apache.tools.ant.Task.perform(Task.java:364)
>>> at org.apache.tools.ant.Target.execute(Target.java:341)
>>> at org.apache.tools.ant.Target.performTasks(Target.java:369)
>>> at
>>> org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
>>> at
>>> org.apache.tools.ant.helper.SingleCheckExecutor.executeTarge ts(SingleCheckExecutor.java:37)
>>> at
>>> org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor .executeTargets(EclipseSingleCheckExecutor.java:30)
>>> at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
>>> at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
>>> at
>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
>>> at org.apache.tools.ant.Task.perform(Task.java:364)
>>> at org.apache.tools.ant.Target.execute(Target.java:341)
>>> at org.apache.tools.ant.Target.performTasks(Target.java:369)
>>> at
>>> org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
>>> at
>>> org.apache.tools.ant.helper.SingleCheckExecutor.executeTarge ts(SingleCheckExecutor.java:37)
>>> at
>>> org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor .executeTargets(EclipseSingleCheckExecutor.java:30)
>>> at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
>>> at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
>>> at
>>> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget. java:107)
>>> at
>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
>>> at org.apache.tools.ant.Task.perform(Task.java:364)
>>> at org.apache.tools.ant.Target.execute(Target.java:341)
>>> at org.apache.tools.ant.Target.performTasks(Target.java:369)
>>> at
>>> org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
>>> at org.apache.tools.ant.Project.executeTarget(Project.java:1185 )
>>> at
>>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:40)
>>> at
>>> org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
>>> at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
>>> at
>>> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:706)
>>> at
>>> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:457)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:64)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:615)
>>> at org.eclipse.ant.core.AntRunner.run(AntRunner.java:356)
>>> at
>>> org.eclipse.ajdt.internal.core.exports.FeatureExportOperatio n.runScript(FeatureExportOperation.java:307)
>>> at
>>> org.eclipse.ajdt.internal.core.exports.FeatureExportOperatio n.doExport(FeatureExportOperation.java:196)
>>> at
>>> org.eclipse.ajdt.internal.core.exports.FeatureBasedExportOpe ration.run(FeatureBasedExportOperation.java:47)
>>> at
>>> org.eclipse.ajdt.internal.ui.wizards.exports.AJFeatureExport Job.run(AJFeatureExportJob.java:54)
>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
>>> ----------------------------
>>>
>>> Strange enough - there is no "build.xml" file (mentioned in lines 3
>>> & 4) in my project! Or is this file temporarily created only?
>>>
>>> Michael
>>>
>>>
>>> "Michael Moser" <mmo@zurich.ibm.com> wrote in message
>>> news:ejjrla$c0o$1@utils.eclipse.org...
>>>> I have finalized a plugin (i.e. it works fine when I start it in
>>>> the runtime workbench) and so I would now like to convert it into
>>>> some distributable form.
>>>>
>>>> Thus, I started with File => Export.... and selected "Deployable
>>>> plugins and fragments with AspectJ support". I select my project
>>>> and enter the .zip file name into which to pack up everything and
>>>> also selected to save the procedure as ant script and then pressed
>>>> "Finish".
>>>>
>>>> That runs for a while and then for some - to me inexpliccable -
>>>> reason that process terminates telling me that there were 14
>>>> compile errors. And no .zip is produced.
>>>>
>>>> ???? But this compiled and ran fine before! So where do these
>>>> compile errors suddenly come from? And why does this recompile
>>>> things in the first place? It should just export (i.e. pack and
>>>> wrap up) things - at least that's what I would have expected...
>>>>
>>>> Any ideas?
>>>>
>>>> This is on eclipse 3.2.1 and I tried this with the same result
>>>> using ajdt_1.4_for_eclipse_3.2.zip (i.e. the latest release) and
>>>> also with 1.4.1.200611081052 for Eclipse 3.2 (i.e. the latest
>>>> developer build provided).
>>>>
>>>> Michael
>>>>
>>>
>
|
|
|
Re: producing a "deployable plugin with AspectJ support" fails [message #67933 is a reply to message #67912] |
Fri, 17 November 2006 17:51 |
Matt Chapman Messages: 429 Registered: July 2009 |
Senior Member |
|
|
Compiling via the iajc ant task should be the same as via the builder in
Eclipse. Can you check that the ant task in the build.xml is referring
to the right version of the aspectj plugins - in case you have multiple
versions installed. Have you set any AspectJ compiler options in your
project's properties?
--Matt
Michael Moser wrote:
> Grrrr - down by 18, i.e. still 980 errors. :-(
>
> Why is this thing telling telling me almost 1000 times, that it is
> unable to check, whether some javax.* or commonj.timers.* or
> org.eclipse.hyades.logging.* or whatever other types my 25+ .jar
> libraries contain is an instance of one of my interfaces??? The answer
> to all these can easily be given and is "certainly not!". I urgently
> need some way to stop this!
>
> Michael
>
>
> "Michael Moser" <mmo@zurich.ibm.com> wrote in message
> news:ejknea$lp$1@utils.eclipse.org...
>> Followed your advice, but using that generated build.xml I now have
>> 998 errors! 8-O
>>
>> But at least I can now see, that it's apparently deeply diving down
>> the type tree and produces tons of message like:
>> <some.jar> [error] can't determine whether missing type
>> org.eclipse.hyades.logging.events.cbe.CreateSituation is an instance
>> of <some type>
>> etc. etc.
>>
>> That's apparently all stuff from some logging and other libraries that
>> I am using. Seems, I have to work on my classpaths again (Aaargh!
>> Compared with Java's constant classpath issues any DLL-hell I ever
>> encountered was a piece of cake, but that's a different story...).
>>
>> But why does this behavior differ from normal compilation, i.e. why
>> can I happily compile and even run things otherwise? Why is this
>> export-build different? Puzzles over puzzles...
>>
>> Can one somehow tell AJDT to leave .jar files alone, i.e. cut this
>> analysis short at some level?
>>
>> Michael
>>
>>
>> "Matt Chapman" <mpchapman@gmail.com> wrote in message
>> news:ejkhf8$nus$1@utils.eclipse.org...
>>> Hi Michael,
>>>
>>> That export wizard does the equivalent of the non-AspectJ version,
>>> which is to generate a build.xml file and then run it, in order to
>>> create the deployable plugin in the same way as in an automated PDE
>>> build process. If you don't want this rebuild step, you could export
>>> the project as a zip file and choose the contents manually.
>>>
>>> The log messages confirm that the AJC ant task is correctly being
>>> used instead of the regular Javac task. But unfortunately it's not
>>> telling us what those 14 compiler errors, plus it cleans up the
>>> generated build.xml as you discovered.
>>>
>>> To diagnose this further, you should ensure you have an accurate
>>> build.properties file for your plugin, and then right-click on the
>>> plugin.xml or MANIFEST.MF file and select "PDE Tools > Create Ant
>>> Build File with AspectJ support". You should then have a build.xml
>>> file which you can run, and see the output in the console.
>>>
>>> Regards,
>>>
>>> Matt.
>>>
>>> Michael Moser wrote:
>>>> Maybe this helps analyzing this problem: the log shows a couple of
>>>> error messages that read e.g.:
>>>>
>>>> ----------------------------
>>>> ...
>>>> C:\Documents and
>>>> Settings\mmo\workspace\.metadata\.plugins\org.eclipse.pde.co re\temp\org.eclipse.pde.container.feature\build.xml:29:
>>>> The following error occurred while executing this line:
>>>> C:\Documents and
>>>> Settings\mmo\workspace\.metadata\.plugins\org.eclipse.pde.co re\temp\org.eclipse.pde.container.feature\build.xml:10:
>>>> The following error occurred while executing this line:
>>>> C:\JavaDevt\myproject\build.xml:195: The following error occurred
>>>> while executing this line:
>>>> C:\JavaDevt\myproject\build.xml:170: compile errors: 14
>>>> at
>>>> org.apache.tools.ant.ProjectHelper.addLocationToBuildExcepti on(ProjectHelper.java:539)
>>>> at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:384)
>>>> at
>>>> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget. java:107)
>>>> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
>>>> at org.apache.tools.ant.Task.perform(Task.java:364)
>>>> at org.apache.tools.ant.Target.execute(Target.java:341)
>>>> at org.apache.tools.ant.Target.performTasks(Target.java:369)
>>>> at org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
>>>> at org.apache.tools.ant.Project.executeTarget(Project.java:1185 )
>>>> at
>>>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:40)
>>>> at
>>>> org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
>>>> at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
>>>> at
>>>> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:706)
>>>> at
>>>> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:457)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:64)
>>>> at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
>>>> at java.lang.reflect.Method.invoke(Method.java:615)
>>>> at org.eclipse.ant.core.AntRunner.run(AntRunner.java:356)
>>>> at
>>>> org.eclipse.ajdt.internal.core.exports.FeatureExportOperatio n.runScript(FeatureExportOperation.java:307)
>>>> at
>>>> org.eclipse.ajdt.internal.core.exports.FeatureExportOperatio n.doExport(FeatureExportOperation.java:196)
>>>> at
>>>> org.eclipse.ajdt.internal.core.exports.FeatureBasedExportOpe ration.run(FeatureBasedExportOperation.java:47)
>>>> at
>>>> org.eclipse.ajdt.internal.ui.wizards.exports.AJFeatureExport Job.run(AJFeatureExportJob.java:54)
>>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
>>>> Caused by: C:\Documents and
>>>> Settings\mmo\workspace\.metadata\.plugins\org.eclipse.pde.co re\temp\org.eclipse.pde.container.feature\build.xml:10:
>>>> The following error occurred while executing this line:
>>>> ...
>>>> (this continue about 3 times, every 2 or 3 "Caused by: ..." there is
>>>> a line "Nested Exception:" and then things seem to repeat from the
>>>> beginning again. This continues about 3 times, except for the last
>>>> segment which finally reads:
>>>> ...
>>>> --- Nested Exception ---
>>>> C:\JavaDevt\myproject\build.xml:170: compile errors: 14
>>>> at
>>>> org.aspectj.tools.ant.taskdefs.AjcTask.executeInOtherVM(AjcT ask.java:1414)
>>>>
>>>> at org.aspectj.tools.ant.taskdefs.AjcTask.execute(AjcTask.java: 1082)
>>>> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
>>>> at org.apache.tools.ant.Task.perform(Task.java:364)
>>>> at org.apache.tools.ant.Target.execute(Target.java:341)
>>>> at org.apache.tools.ant.Target.performTasks(Target.java:369)
>>>> at org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
>>>> at
>>>> org.apache.tools.ant.helper.SingleCheckExecutor.executeTarge ts(SingleCheckExecutor.java:37)
>>>> at
>>>> org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor .executeTargets(EclipseSingleCheckExecutor.java:30)
>>>> at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
>>>> at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
>>>> at
>>>> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget. java:107)
>>>> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
>>>> at org.apache.tools.ant.Task.perform(Task.java:364)
>>>> at org.apache.tools.ant.Target.execute(Target.java:341)
>>>> at org.apache.tools.ant.Target.performTasks(Target.java:369)
>>>> at org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
>>>> at
>>>> org.apache.tools.ant.helper.SingleCheckExecutor.executeTarge ts(SingleCheckExecutor.java:37)
>>>> at
>>>> org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor .executeTargets(EclipseSingleCheckExecutor.java:30)
>>>> at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
>>>> at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
>>>> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
>>>> at org.apache.tools.ant.Task.perform(Task.java:364)
>>>> at org.apache.tools.ant.Target.execute(Target.java:341)
>>>> at org.apache.tools.ant.Target.performTasks(Target.java:369)
>>>> at org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
>>>> at
>>>> org.apache.tools.ant.helper.SingleCheckExecutor.executeTarge ts(SingleCheckExecutor.java:37)
>>>> at
>>>> org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor .executeTargets(EclipseSingleCheckExecutor.java:30)
>>>> at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
>>>> at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
>>>> at
>>>> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget. java:107)
>>>> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
>>>> at org.apache.tools.ant.Task.perform(Task.java:364)
>>>> at org.apache.tools.ant.Target.execute(Target.java:341)
>>>> at org.apache.tools.ant.Target.performTasks(Target.java:369)
>>>> at org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
>>>> at org.apache.tools.ant.Project.executeTarget(Project.java:1185 )
>>>> at
>>>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:40)
>>>> at
>>>> org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
>>>> at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
>>>> at
>>>> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:706)
>>>> at
>>>> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:457)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:64)
>>>> at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
>>>> at java.lang.reflect.Method.invoke(Method.java:615)
>>>> at org.eclipse.ant.core.AntRunner.run(AntRunner.java:356)
>>>> at
>>>> org.eclipse.ajdt.internal.core.exports.FeatureExportOperatio n.runScript(FeatureExportOperation.java:307)
>>>> at
>>>> org.eclipse.ajdt.internal.core.exports.FeatureExportOperatio n.doExport(FeatureExportOperation.java:196)
>>>> at
>>>> org.eclipse.ajdt.internal.core.exports.FeatureBasedExportOpe ration.run(FeatureBasedExportOperation.java:47)
>>>> at
>>>> org.eclipse.ajdt.internal.ui.wizards.exports.AJFeatureExport Job.run(AJFeatureExportJob.java:54)
>>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
>>>> ----------------------------
>>>>
>>>> Strange enough - there is no "build.xml" file (mentioned in lines 3
>>>> & 4) in my project! Or is this file temporarily created only?
>>>>
>>>> Michael
>>>>
>>>>
>>>> "Michael Moser" <mmo@zurich.ibm.com> wrote in message
>>>> news:ejjrla$c0o$1@utils.eclipse.org...
>>>>> I have finalized a plugin (i.e. it works fine when I start it in
>>>>> the runtime workbench) and so I would now like to convert it into
>>>>> some distributable form.
>>>>>
>>>>> Thus, I started with File => Export.... and selected "Deployable
>>>>> plugins and fragments with AspectJ support". I select my project
>>>>> and enter the .zip file name into which to pack up everything and
>>>>> also selected to save the procedure as ant script and then pressed
>>>>> "Finish".
>>>>>
>>>>> That runs for a while and then for some - to me inexpliccable -
>>>>> reason that process terminates telling me that there were 14
>>>>> compile errors. And no .zip is produced.
>>>>>
>>>>> ???? But this compiled and ran fine before! So where do these
>>>>> compile errors suddenly come from? And why does this recompile
>>>>> things in the first place? It should just export (i.e. pack and
>>>>> wrap up) things - at least that's what I would have expected...
>>>>>
>>>>> Any ideas?
>>>>>
>>>>> This is on eclipse 3.2.1 and I tried this with the same result
>>>>> using ajdt_1.4_for_eclipse_3.2.zip (i.e. the latest release) and
>>>>> also with 1.4.1.200611081052 for Eclipse 3.2 (i.e. the latest
>>>>> developer build provided).
>>>>>
>>>>> Michael
>>>>>
>>>>
>>
>
|
|
| | | | |
Re: producing a "deployable plugin with AspectJ support" fails [message #595373 is a reply to message #67850] |
Fri, 17 November 2006 14:37 |
Matt Chapman Messages: 429 Registered: July 2009 |
Senior Member |
|
|
Hi Michael,
That export wizard does the equivalent of the non-AspectJ version, which
is to generate a build.xml file and then run it, in order to create the
deployable plugin in the same way as in an automated PDE build process.
If you don't want this rebuild step, you could export the project as a
zip file and choose the contents manually.
The log messages confirm that the AJC ant task is correctly being used
instead of the regular Javac task. But unfortunately it's not telling us
what those 14 compiler errors, plus it cleans up the generated build.xml
as you discovered.
To diagnose this further, you should ensure you have an accurate
build.properties file for your plugin, and then right-click on the
plugin.xml or MANIFEST.MF file and select "PDE Tools > Create Ant Build
File with AspectJ support". You should then have a build.xml file which
you can run, and see the output in the console.
Regards,
Matt.
Michael Moser wrote:
> Maybe this helps analyzing this problem: the log shows a couple of error
> messages that read e.g.:
>
> ----------------------------
> ...
> C:\Documents and
> Settings\mmo\workspace\.metadata\.plugins\org.eclipse.pde.co re\temp\org.eclipse.pde.container.feature\build.xml:29:
> The following error occurred while executing this line:
> C:\Documents and
> Settings\mmo\workspace\.metadata\.plugins\org.eclipse.pde.co re\temp\org.eclipse.pde.container.feature\build.xml:10:
> The following error occurred while executing this line:
> C:\JavaDevt\myproject\build.xml:195: The following error occurred while
> executing this line:
> C:\JavaDevt\myproject\build.xml:170: compile errors: 14
> at
> org.apache.tools.ant.ProjectHelper.addLocationToBuildExcepti on(ProjectHelper.java:539)
>
> at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:384)
> at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget. java:107)
> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
> at org.apache.tools.ant.Task.perform(Task.java:364)
> at org.apache.tools.ant.Target.execute(Target.java:341)
> at org.apache.tools.ant.Target.performTasks(Target.java:369)
> at org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
> at org.apache.tools.ant.Project.executeTarget(Project.java:1185 )
> at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:40)
>
> at
> org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
>
> at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
> at
> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:706)
>
> at
> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:457)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:64)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
>
> at java.lang.reflect.Method.invoke(Method.java:615)
> at org.eclipse.ant.core.AntRunner.run(AntRunner.java:356)
> at
> org.eclipse.ajdt.internal.core.exports.FeatureExportOperatio n.runScript(FeatureExportOperation.java:307)
>
> at
> org.eclipse.ajdt.internal.core.exports.FeatureExportOperatio n.doExport(FeatureExportOperation.java:196)
>
> at
> org.eclipse.ajdt.internal.core.exports.FeatureBasedExportOpe ration.run(FeatureBasedExportOperation.java:47)
>
> at
> org.eclipse.ajdt.internal.ui.wizards.exports.AJFeatureExport Job.run(AJFeatureExportJob.java:54)
>
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
> Caused by: C:\Documents and
> Settings\mmo\workspace\.metadata\.plugins\org.eclipse.pde.co re\temp\org.eclipse.pde.container.feature\build.xml:10:
> The following error occurred while executing this line:
> ...
> (this continue about 3 times, every 2 or 3 "Caused by: ..." there is a
> line "Nested Exception:" and then things seem to repeat from the
> beginning again. This continues about 3 times, except for the last
> segment which finally reads:
> ...
> --- Nested Exception ---
> C:\JavaDevt\myproject\build.xml:170: compile errors: 14
> at
> org.aspectj.tools.ant.taskdefs.AjcTask.executeInOtherVM(AjcT ask.java:1414)
> at org.aspectj.tools.ant.taskdefs.AjcTask.execute(AjcTask.java: 1082)
> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
> at org.apache.tools.ant.Task.perform(Task.java:364)
> at org.apache.tools.ant.Target.execute(Target.java:341)
> at org.apache.tools.ant.Target.performTasks(Target.java:369)
> at org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
> at
> org.apache.tools.ant.helper.SingleCheckExecutor.executeTarge ts(SingleCheckExecutor.java:37)
>
> at
> org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor .executeTargets(EclipseSingleCheckExecutor.java:30)
>
> at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
> at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
> at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget. java:107)
> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
> at org.apache.tools.ant.Task.perform(Task.java:364)
> at org.apache.tools.ant.Target.execute(Target.java:341)
> at org.apache.tools.ant.Target.performTasks(Target.java:369)
> at org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
> at
> org.apache.tools.ant.helper.SingleCheckExecutor.executeTarge ts(SingleCheckExecutor.java:37)
>
> at
> org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor .executeTargets(EclipseSingleCheckExecutor.java:30)
>
> at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
> at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
> at org.apache.tools.ant.Task.perform(Task.java:364)
> at org.apache.tools.ant.Target.execute(Target.java:341)
> at org.apache.tools.ant.Target.performTasks(Target.java:369)
> at org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
> at
> org.apache.tools.ant.helper.SingleCheckExecutor.executeTarge ts(SingleCheckExecutor.java:37)
>
> at
> org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor .executeTargets(EclipseSingleCheckExecutor.java:30)
>
> at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
> at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
> at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget. java:107)
> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
> at org.apache.tools.ant.Task.perform(Task.java:364)
> at org.apache.tools.ant.Target.execute(Target.java:341)
> at org.apache.tools.ant.Target.performTasks(Target.java:369)
> at org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
> at org.apache.tools.ant.Project.executeTarget(Project.java:1185 )
> at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:40)
>
> at
> org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
>
> at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
> at
> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:706)
>
> at
> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:457)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:64)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
>
> at java.lang.reflect.Method.invoke(Method.java:615)
> at org.eclipse.ant.core.AntRunner.run(AntRunner.java:356)
> at
> org.eclipse.ajdt.internal.core.exports.FeatureExportOperatio n.runScript(FeatureExportOperation.java:307)
>
> at
> org.eclipse.ajdt.internal.core.exports.FeatureExportOperatio n.doExport(FeatureExportOperation.java:196)
>
> at
> org.eclipse.ajdt.internal.core.exports.FeatureBasedExportOpe ration.run(FeatureBasedExportOperation.java:47)
>
> at
> org.eclipse.ajdt.internal.ui.wizards.exports.AJFeatureExport Job.run(AJFeatureExportJob.java:54)
>
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
> ----------------------------
>
> Strange enough - there is no "build.xml" file (mentioned in lines 3 & 4)
> in my project! Or is this file temporarily created only?
>
> Michael
>
>
> "Michael Moser" <mmo@zurich.ibm.com> wrote in message
> news:ejjrla$c0o$1@utils.eclipse.org...
>> I have finalized a plugin (i.e. it works fine when I start it in the
>> runtime workbench) and so I would now like to convert it into some
>> distributable form.
>>
>> Thus, I started with File => Export.... and selected "Deployable
>> plugins and fragments with AspectJ support". I select my project and
>> enter the .zip file name into which to pack up everything and also
>> selected to save the procedure as ant script and then pressed "Finish".
>>
>> That runs for a while and then for some - to me inexpliccable - reason
>> that process terminates telling me that there were 14 compile errors.
>> And no .zip is produced.
>>
>> ???? But this compiled and ran fine before! So where do these compile
>> errors suddenly come from? And why does this recompile things in the
>> first place? It should just export (i.e. pack and wrap up) things - at
>> least that's what I would have expected...
>>
>> Any ideas?
>>
>> This is on eclipse 3.2.1 and I tried this with the same result using
>> ajdt_1.4_for_eclipse_3.2.zip (i.e. the latest release) and also with
>> 1.4.1.200611081052 for Eclipse 3.2 (i.e. the latest developer build
>> provided).
>>
>> Michael
>>
>
|
|
|
Re: producing a "deployable plugin with AspectJ support" fails [message #595378 is a reply to message #67871] |
Fri, 17 November 2006 16:19 |
Michael Moser Messages: 914 Registered: July 2009 |
Senior Member |
|
|
Followed your advice, but using that generated build.xml I now have 998
errors! 8-O
But at least I can now see, that it's apparently deeply diving down the
type tree and produces tons of message like:
<some.jar> [error] can't determine whether missing type
org.eclipse.hyades.logging.events.cbe.CreateSituation is an instance of
<some type>
etc. etc.
That's apparently all stuff from some logging and other libraries that I
am using. Seems, I have to work on my classpaths again (Aaargh! Compared
with Java's constant classpath issues any DLL-hell I ever encountered
was a piece of cake, but that's a different story...).
But why does this behavior differ from normal compilation, i.e. why can
I happily compile and even run things otherwise? Why is this
export-build different? Puzzles over puzzles...
Can one somehow tell AJDT to leave .jar files alone, i.e. cut this
analysis short at some level?
Michael
"Matt Chapman" <mpchapman@gmail.com> wrote in message
news:ejkhf8$nus$1@utils.eclipse.org...
> Hi Michael,
>
> That export wizard does the equivalent of the non-AspectJ version,
> which is to generate a build.xml file and then run it, in order to
> create the deployable plugin in the same way as in an automated PDE
> build process. If you don't want this rebuild step, you could export
> the project as a zip file and choose the contents manually.
>
> The log messages confirm that the AJC ant task is correctly being used
> instead of the regular Javac task. But unfortunately it's not telling
> us what those 14 compiler errors, plus it cleans up the generated
> build.xml as you discovered.
>
> To diagnose this further, you should ensure you have an accurate
> build.properties file for your plugin, and then right-click on the
> plugin.xml or MANIFEST.MF file and select "PDE Tools > Create Ant
> Build File with AspectJ support". You should then have a build.xml
> file which you can run, and see the output in the console.
>
> Regards,
>
> Matt.
>
> Michael Moser wrote:
>> Maybe this helps analyzing this problem: the log shows a couple of
>> error messages that read e.g.:
>>
>> ----------------------------
>> ...
>> C:\Documents and
>> Settings\mmo\workspace\.metadata\.plugins\org.eclipse.pde.co re\temp\org.eclipse.pde.container.feature\build.xml:29:
>> The following error occurred while executing this line:
>> C:\Documents and
>> Settings\mmo\workspace\.metadata\.plugins\org.eclipse.pde.co re\temp\org.eclipse.pde.container.feature\build.xml:10:
>> The following error occurred while executing this line:
>> C:\JavaDevt\myproject\build.xml:195: The following error occurred
>> while executing this line:
>> C:\JavaDevt\myproject\build.xml:170: compile errors: 14
>> at
>> org.apache.tools.ant.ProjectHelper.addLocationToBuildExcepti on(ProjectHelper.java:539)
>> at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:384)
>> at
>> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget. java:107)
>> at
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
>> at org.apache.tools.ant.Task.perform(Task.java:364)
>> at org.apache.tools.ant.Target.execute(Target.java:341)
>> at org.apache.tools.ant.Target.performTasks(Target.java:369)
>> at
>> org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
>> at org.apache.tools.ant.Project.executeTarget(Project.java:1185 )
>> at
>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:40)
>> at
>> org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
>> at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
>> at
>> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:706)
>> at
>> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:457)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:64)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:615)
>> at org.eclipse.ant.core.AntRunner.run(AntRunner.java:356)
>> at
>> org.eclipse.ajdt.internal.core.exports.FeatureExportOperatio n.runScript(FeatureExportOperation.java:307)
>> at
>> org.eclipse.ajdt.internal.core.exports.FeatureExportOperatio n.doExport(FeatureExportOperation.java:196)
>> at
>> org.eclipse.ajdt.internal.core.exports.FeatureBasedExportOpe ration.run(FeatureBasedExportOperation.java:47)
>> at
>> org.eclipse.ajdt.internal.ui.wizards.exports.AJFeatureExport Job.run(AJFeatureExportJob.java:54)
>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
>> Caused by: C:\Documents and
>> Settings\mmo\workspace\.metadata\.plugins\org.eclipse.pde.co re\temp\org.eclipse.pde.container.feature\build.xml:10:
>> The following error occurred while executing this line:
>> ...
>> (this continue about 3 times, every 2 or 3 "Caused by: ..." there is
>> a line "Nested Exception:" and then things seem to repeat from the
>> beginning again. This continues about 3 times, except for the last
>> segment which finally reads:
>> ...
>> --- Nested Exception ---
>> C:\JavaDevt\myproject\build.xml:170: compile errors: 14
>> at
>> org.aspectj.tools.ant.taskdefs.AjcTask.executeInOtherVM(AjcT ask.java:1414)
>> at org.aspectj.tools.ant.taskdefs.AjcTask.execute(AjcTask.java: 1082)
>> at
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
>> at org.apache.tools.ant.Task.perform(Task.java:364)
>> at org.apache.tools.ant.Target.execute(Target.java:341)
>> at org.apache.tools.ant.Target.performTasks(Target.java:369)
>> at
>> org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
>> at
>> org.apache.tools.ant.helper.SingleCheckExecutor.executeTarge ts(SingleCheckExecutor.java:37)
>> at
>> org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor .executeTargets(EclipseSingleCheckExecutor.java:30)
>> at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
>> at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
>> at
>> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget. java:107)
>> at
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
>> at org.apache.tools.ant.Task.perform(Task.java:364)
>> at org.apache.tools.ant.Target.execute(Target.java:341)
>> at org.apache.tools.ant.Target.performTasks(Target.java:369)
>> at
>> org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
>> at
>> org.apache.tools.ant.helper.SingleCheckExecutor.executeTarge ts(SingleCheckExecutor.java:37)
>> at
>> org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor .executeTargets(EclipseSingleCheckExecutor.java:30)
>> at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
>> at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
>> at
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
>> at org.apache.tools.ant.Task.perform(Task.java:364)
>> at org.apache.tools.ant.Target.execute(Target.java:341)
>> at org.apache.tools.ant.Target.performTasks(Target.java:369)
>> at
>> org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
>> at
>> org.apache.tools.ant.helper.SingleCheckExecutor.executeTarge ts(SingleCheckExecutor.java:37)
>> at
>> org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor .executeTargets(EclipseSingleCheckExecutor.java:30)
>> at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
>> at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
>> at
>> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget. java:107)
>> at
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
>> at org.apache.tools.ant.Task.perform(Task.java:364)
>> at org.apache.tools.ant.Target.execute(Target.java:341)
>> at org.apache.tools.ant.Target.performTasks(Target.java:369)
>> at
>> org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
>> at org.apache.tools.ant.Project.executeTarget(Project.java:1185 )
>> at
>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:40)
>> at
>> org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
>> at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
>> at
>> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:706)
>> at
>> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:457)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:64)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:615)
>> at org.eclipse.ant.core.AntRunner.run(AntRunner.java:356)
>> at
>> org.eclipse.ajdt.internal.core.exports.FeatureExportOperatio n.runScript(FeatureExportOperation.java:307)
>> at
>> org.eclipse.ajdt.internal.core.exports.FeatureExportOperatio n.doExport(FeatureExportOperation.java:196)
>> at
>> org.eclipse.ajdt.internal.core.exports.FeatureBasedExportOpe ration.run(FeatureBasedExportOperation.java:47)
>> at
>> org.eclipse.ajdt.internal.ui.wizards.exports.AJFeatureExport Job.run(AJFeatureExportJob.java:54)
>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
>> ----------------------------
>>
>> Strange enough - there is no "build.xml" file (mentioned in lines 3 &
>> 4) in my project! Or is this file temporarily created only?
>>
>> Michael
>>
>>
>> "Michael Moser" <mmo@zurich.ibm.com> wrote in message
>> news:ejjrla$c0o$1@utils.eclipse.org...
>>> I have finalized a plugin (i.e. it works fine when I start it in the
>>> runtime workbench) and so I would now like to convert it into some
>>> distributable form.
>>>
>>> Thus, I started with File => Export.... and selected "Deployable
>>> plugins and fragments with AspectJ support". I select my project and
>>> enter the .zip file name into which to pack up everything and also
>>> selected to save the procedure as ant script and then pressed
>>> "Finish".
>>>
>>> That runs for a while and then for some - to me inexpliccable -
>>> reason that process terminates telling me that there were 14 compile
>>> errors. And no .zip is produced.
>>>
>>> ???? But this compiled and ran fine before! So where do these
>>> compile errors suddenly come from? And why does this recompile
>>> things in the first place? It should just export (i.e. pack and wrap
>>> up) things - at least that's what I would have expected...
>>>
>>> Any ideas?
>>>
>>> This is on eclipse 3.2.1 and I tried this with the same result using
>>> ajdt_1.4_for_eclipse_3.2.zip (i.e. the latest release) and also with
>>> 1.4.1.200611081052 for Eclipse 3.2 (i.e. the latest developer build
>>> provided).
>>>
>>> Michael
>>>
>>
|
|
|
Re: producing a "deployable plugin with AspectJ support" fails [message #595389 is a reply to message #67892] |
Fri, 17 November 2006 16:45 |
Michael Moser Messages: 914 Registered: July 2009 |
Senior Member |
|
|
Grrrr - down by 18, i.e. still 980 errors. :-(
Why is this thing telling telling me almost 1000 times, that it is
unable to check, whether some javax.* or commonj.timers.* or
org.eclipse.hyades.logging.* or whatever other types my 25+ .jar
libraries contain is an instance of one of my interfaces??? The answer
to all these can easily be given and is "certainly not!". I urgently
need some way to stop this!
Michael
"Michael Moser" <mmo@zurich.ibm.com> wrote in message
news:ejknea$lp$1@utils.eclipse.org...
> Followed your advice, but using that generated build.xml I now have
> 998 errors! 8-O
>
> But at least I can now see, that it's apparently deeply diving down
> the type tree and produces tons of message like:
> <some.jar> [error] can't determine whether missing type
> org.eclipse.hyades.logging.events.cbe.CreateSituation is an instance
> of <some type>
> etc. etc.
>
> That's apparently all stuff from some logging and other libraries that
> I am using. Seems, I have to work on my classpaths again (Aaargh!
> Compared with Java's constant classpath issues any DLL-hell I ever
> encountered was a piece of cake, but that's a different story...).
>
> But why does this behavior differ from normal compilation, i.e. why
> can I happily compile and even run things otherwise? Why is this
> export-build different? Puzzles over puzzles...
>
> Can one somehow tell AJDT to leave .jar files alone, i.e. cut this
> analysis short at some level?
>
> Michael
>
>
> "Matt Chapman" <mpchapman@gmail.com> wrote in message
> news:ejkhf8$nus$1@utils.eclipse.org...
>> Hi Michael,
>>
>> That export wizard does the equivalent of the non-AspectJ version,
>> which is to generate a build.xml file and then run it, in order to
>> create the deployable plugin in the same way as in an automated PDE
>> build process. If you don't want this rebuild step, you could export
>> the project as a zip file and choose the contents manually.
>>
>> The log messages confirm that the AJC ant task is correctly being
>> used instead of the regular Javac task. But unfortunately it's not
>> telling us what those 14 compiler errors, plus it cleans up the
>> generated build.xml as you discovered.
>>
>> To diagnose this further, you should ensure you have an accurate
>> build.properties file for your plugin, and then right-click on the
>> plugin.xml or MANIFEST.MF file and select "PDE Tools > Create Ant
>> Build File with AspectJ support". You should then have a build.xml
>> file which you can run, and see the output in the console.
>>
>> Regards,
>>
>> Matt.
>>
>> Michael Moser wrote:
>>> Maybe this helps analyzing this problem: the log shows a couple of
>>> error messages that read e.g.:
>>>
>>> ----------------------------
>>> ...
>>> C:\Documents and
>>> Settings\mmo\workspace\.metadata\.plugins\org.eclipse.pde.co re\temp\org.eclipse.pde.container.feature\build.xml:29:
>>> The following error occurred while executing this line:
>>> C:\Documents and
>>> Settings\mmo\workspace\.metadata\.plugins\org.eclipse.pde.co re\temp\org.eclipse.pde.container.feature\build.xml:10:
>>> The following error occurred while executing this line:
>>> C:\JavaDevt\myproject\build.xml:195: The following error occurred
>>> while executing this line:
>>> C:\JavaDevt\myproject\build.xml:170: compile errors: 14
>>> at
>>> org.apache.tools.ant.ProjectHelper.addLocationToBuildExcepti on(ProjectHelper.java:539)
>>> at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:384)
>>> at
>>> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget. java:107)
>>> at
>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
>>> at org.apache.tools.ant.Task.perform(Task.java:364)
>>> at org.apache.tools.ant.Target.execute(Target.java:341)
>>> at org.apache.tools.ant.Target.performTasks(Target.java:369)
>>> at
>>> org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
>>> at org.apache.tools.ant.Project.executeTarget(Project.java:1185 )
>>> at
>>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:40)
>>> at
>>> org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
>>> at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
>>> at
>>> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:706)
>>> at
>>> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:457)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:64)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:615)
>>> at org.eclipse.ant.core.AntRunner.run(AntRunner.java:356)
>>> at
>>> org.eclipse.ajdt.internal.core.exports.FeatureExportOperatio n.runScript(FeatureExportOperation.java:307)
>>> at
>>> org.eclipse.ajdt.internal.core.exports.FeatureExportOperatio n.doExport(FeatureExportOperation.java:196)
>>> at
>>> org.eclipse.ajdt.internal.core.exports.FeatureBasedExportOpe ration.run(FeatureBasedExportOperation.java:47)
>>> at
>>> org.eclipse.ajdt.internal.ui.wizards.exports.AJFeatureExport Job.run(AJFeatureExportJob.java:54)
>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
>>> Caused by: C:\Documents and
>>> Settings\mmo\workspace\.metadata\.plugins\org.eclipse.pde.co re\temp\org.eclipse.pde.container.feature\build.xml:10:
>>> The following error occurred while executing this line:
>>> ...
>>> (this continue about 3 times, every 2 or 3 "Caused by: ..." there is
>>> a line "Nested Exception:" and then things seem to repeat from the
>>> beginning again. This continues about 3 times, except for the last
>>> segment which finally reads:
>>> ...
>>> --- Nested Exception ---
>>> C:\JavaDevt\myproject\build.xml:170: compile errors: 14
>>> at
>>> org.aspectj.tools.ant.taskdefs.AjcTask.executeInOtherVM(AjcT ask.java:1414)
>>> at org.aspectj.tools.ant.taskdefs.AjcTask.execute(AjcTask.java: 1082)
>>> at
>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
>>> at org.apache.tools.ant.Task.perform(Task.java:364)
>>> at org.apache.tools.ant.Target.execute(Target.java:341)
>>> at org.apache.tools.ant.Target.performTasks(Target.java:369)
>>> at
>>> org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
>>> at
>>> org.apache.tools.ant.helper.SingleCheckExecutor.executeTarge ts(SingleCheckExecutor.java:37)
>>> at
>>> org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor .executeTargets(EclipseSingleCheckExecutor.java:30)
>>> at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
>>> at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
>>> at
>>> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget. java:107)
>>> at
>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
>>> at org.apache.tools.ant.Task.perform(Task.java:364)
>>> at org.apache.tools.ant.Target.execute(Target.java:341)
>>> at org.apache.tools.ant.Target.performTasks(Target.java:369)
>>> at
>>> org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
>>> at
>>> org.apache.tools.ant.helper.SingleCheckExecutor.executeTarge ts(SingleCheckExecutor.java:37)
>>> at
>>> org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor .executeTargets(EclipseSingleCheckExecutor.java:30)
>>> at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
>>> at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
>>> at
>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
>>> at org.apache.tools.ant.Task.perform(Task.java:364)
>>> at org.apache.tools.ant.Target.execute(Target.java:341)
>>> at org.apache.tools.ant.Target.performTasks(Target.java:369)
>>> at
>>> org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
>>> at
>>> org.apache.tools.ant.helper.SingleCheckExecutor.executeTarge ts(SingleCheckExecutor.java:37)
>>> at
>>> org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor .executeTargets(EclipseSingleCheckExecutor.java:30)
>>> at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
>>> at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
>>> at
>>> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget. java:107)
>>> at
>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
>>> at org.apache.tools.ant.Task.perform(Task.java:364)
>>> at org.apache.tools.ant.Target.execute(Target.java:341)
>>> at org.apache.tools.ant.Target.performTasks(Target.java:369)
>>> at
>>> org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
>>> at org.apache.tools.ant.Project.executeTarget(Project.java:1185 )
>>> at
>>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:40)
>>> at
>>> org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
>>> at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
>>> at
>>> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:706)
>>> at
>>> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:457)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:64)
>>> at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
>>> at java.lang.reflect.Method.invoke(Method.java:615)
>>> at org.eclipse.ant.core.AntRunner.run(AntRunner.java:356)
>>> at
>>> org.eclipse.ajdt.internal.core.exports.FeatureExportOperatio n.runScript(FeatureExportOperation.java:307)
>>> at
>>> org.eclipse.ajdt.internal.core.exports.FeatureExportOperatio n.doExport(FeatureExportOperation.java:196)
>>> at
>>> org.eclipse.ajdt.internal.core.exports.FeatureBasedExportOpe ration.run(FeatureBasedExportOperation.java:47)
>>> at
>>> org.eclipse.ajdt.internal.ui.wizards.exports.AJFeatureExport Job.run(AJFeatureExportJob.java:54)
>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
>>> ----------------------------
>>>
>>> Strange enough - there is no "build.xml" file (mentioned in lines 3
>>> & 4) in my project! Or is this file temporarily created only?
>>>
>>> Michael
>>>
>>>
>>> "Michael Moser" <mmo@zurich.ibm.com> wrote in message
>>> news:ejjrla$c0o$1@utils.eclipse.org...
>>>> I have finalized a plugin (i.e. it works fine when I start it in
>>>> the runtime workbench) and so I would now like to convert it into
>>>> some distributable form.
>>>>
>>>> Thus, I started with File => Export.... and selected "Deployable
>>>> plugins and fragments with AspectJ support". I select my project
>>>> and enter the .zip file name into which to pack up everything and
>>>> also selected to save the procedure as ant script and then pressed
>>>> "Finish".
>>>>
>>>> That runs for a while and then for some - to me inexpliccable -
>>>> reason that process terminates telling me that there were 14
>>>> compile errors. And no .zip is produced.
>>>>
>>>> ???? But this compiled and ran fine before! So where do these
>>>> compile errors suddenly come from? And why does this recompile
>>>> things in the first place? It should just export (i.e. pack and
>>>> wrap up) things - at least that's what I would have expected...
>>>>
>>>> Any ideas?
>>>>
>>>> This is on eclipse 3.2.1 and I tried this with the same result
>>>> using ajdt_1.4_for_eclipse_3.2.zip (i.e. the latest release) and
>>>> also with 1.4.1.200611081052 for Eclipse 3.2 (i.e. the latest
>>>> developer build provided).
>>>>
>>>> Michael
>>>>
>>>
>
|
|
|
Re: producing a "deployable plugin with AspectJ support" fails [message #595399 is a reply to message #67912] |
Fri, 17 November 2006 17:51 |
Matt Chapman Messages: 429 Registered: July 2009 |
Senior Member |
|
|
Compiling via the iajc ant task should be the same as via the builder in
Eclipse. Can you check that the ant task in the build.xml is referring
to the right version of the aspectj plugins - in case you have multiple
versions installed. Have you set any AspectJ compiler options in your
project's properties?
--Matt
Michael Moser wrote:
> Grrrr - down by 18, i.e. still 980 errors. :-(
>
> Why is this thing telling telling me almost 1000 times, that it is
> unable to check, whether some javax.* or commonj.timers.* or
> org.eclipse.hyades.logging.* or whatever other types my 25+ .jar
> libraries contain is an instance of one of my interfaces??? The answer
> to all these can easily be given and is "certainly not!". I urgently
> need some way to stop this!
>
> Michael
>
>
> "Michael Moser" <mmo@zurich.ibm.com> wrote in message
> news:ejknea$lp$1@utils.eclipse.org...
>> Followed your advice, but using that generated build.xml I now have
>> 998 errors! 8-O
>>
>> But at least I can now see, that it's apparently deeply diving down
>> the type tree and produces tons of message like:
>> <some.jar> [error] can't determine whether missing type
>> org.eclipse.hyades.logging.events.cbe.CreateSituation is an instance
>> of <some type>
>> etc. etc.
>>
>> That's apparently all stuff from some logging and other libraries that
>> I am using. Seems, I have to work on my classpaths again (Aaargh!
>> Compared with Java's constant classpath issues any DLL-hell I ever
>> encountered was a piece of cake, but that's a different story...).
>>
>> But why does this behavior differ from normal compilation, i.e. why
>> can I happily compile and even run things otherwise? Why is this
>> export-build different? Puzzles over puzzles...
>>
>> Can one somehow tell AJDT to leave .jar files alone, i.e. cut this
>> analysis short at some level?
>>
>> Michael
>>
>>
>> "Matt Chapman" <mpchapman@gmail.com> wrote in message
>> news:ejkhf8$nus$1@utils.eclipse.org...
>>> Hi Michael,
>>>
>>> That export wizard does the equivalent of the non-AspectJ version,
>>> which is to generate a build.xml file and then run it, in order to
>>> create the deployable plugin in the same way as in an automated PDE
>>> build process. If you don't want this rebuild step, you could export
>>> the project as a zip file and choose the contents manually.
>>>
>>> The log messages confirm that the AJC ant task is correctly being
>>> used instead of the regular Javac task. But unfortunately it's not
>>> telling us what those 14 compiler errors, plus it cleans up the
>>> generated build.xml as you discovered.
>>>
>>> To diagnose this further, you should ensure you have an accurate
>>> build.properties file for your plugin, and then right-click on the
>>> plugin.xml or MANIFEST.MF file and select "PDE Tools > Create Ant
>>> Build File with AspectJ support". You should then have a build.xml
>>> file which you can run, and see the output in the console.
>>>
>>> Regards,
>>>
>>> Matt.
>>>
>>> Michael Moser wrote:
>>>> Maybe this helps analyzing this problem: the log shows a couple of
>>>> error messages that read e.g.:
>>>>
>>>> ----------------------------
>>>> ...
>>>> C:\Documents and
>>>> Settings\mmo\workspace\.metadata\.plugins\org.eclipse.pde.co re\temp\org.eclipse.pde.container.feature\build.xml:29:
>>>> The following error occurred while executing this line:
>>>> C:\Documents and
>>>> Settings\mmo\workspace\.metadata\.plugins\org.eclipse.pde.co re\temp\org.eclipse.pde.container.feature\build.xml:10:
>>>> The following error occurred while executing this line:
>>>> C:\JavaDevt\myproject\build.xml:195: The following error occurred
>>>> while executing this line:
>>>> C:\JavaDevt\myproject\build.xml:170: compile errors: 14
>>>> at
>>>> org.apache.tools.ant.ProjectHelper.addLocationToBuildExcepti on(ProjectHelper.java:539)
>>>> at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:384)
>>>> at
>>>> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget. java:107)
>>>> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
>>>> at org.apache.tools.ant.Task.perform(Task.java:364)
>>>> at org.apache.tools.ant.Target.execute(Target.java:341)
>>>> at org.apache.tools.ant.Target.performTasks(Target.java:369)
>>>> at org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
>>>> at org.apache.tools.ant.Project.executeTarget(Project.java:1185 )
>>>> at
>>>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:40)
>>>> at
>>>> org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
>>>> at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
>>>> at
>>>> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:706)
>>>> at
>>>> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:457)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:64)
>>>> at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
>>>> at java.lang.reflect.Method.invoke(Method.java:615)
>>>> at org.eclipse.ant.core.AntRunner.run(AntRunner.java:356)
>>>> at
>>>> org.eclipse.ajdt.internal.core.exports.FeatureExportOperatio n.runScript(FeatureExportOperation.java:307)
>>>> at
>>>> org.eclipse.ajdt.internal.core.exports.FeatureExportOperatio n.doExport(FeatureExportOperation.java:196)
>>>> at
>>>> org.eclipse.ajdt.internal.core.exports.FeatureBasedExportOpe ration.run(FeatureBasedExportOperation.java:47)
>>>> at
>>>> org.eclipse.ajdt.internal.ui.wizards.exports.AJFeatureExport Job.run(AJFeatureExportJob.java:54)
>>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
>>>> Caused by: C:\Documents and
>>>> Settings\mmo\workspace\.metadata\.plugins\org.eclipse.pde.co re\temp\org.eclipse.pde.container.feature\build.xml:10:
>>>> The following error occurred while executing this line:
>>>> ...
>>>> (this continue about 3 times, every 2 or 3 "Caused by: ..." there is
>>>> a line "Nested Exception:" and then things seem to repeat from the
>>>> beginning again. This continues about 3 times, except for the last
>>>> segment which finally reads:
>>>> ...
>>>> --- Nested Exception ---
>>>> C:\JavaDevt\myproject\build.xml:170: compile errors: 14
>>>> at
>>>> org.aspectj.tools.ant.taskdefs.AjcTask.executeInOtherVM(AjcT ask.java:1414)
>>>>
>>>> at org.aspectj.tools.ant.taskdefs.AjcTask.execute(AjcTask.java: 1082)
>>>> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
>>>> at org.apache.tools.ant.Task.perform(Task.java:364)
>>>> at org.apache.tools.ant.Target.execute(Target.java:341)
>>>> at org.apache.tools.ant.Target.performTasks(Target.java:369)
>>>> at org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
>>>> at
>>>> org.apache.tools.ant.helper.SingleCheckExecutor.executeTarge ts(SingleCheckExecutor.java:37)
>>>> at
>>>> org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor .executeTargets(EclipseSingleCheckExecutor.java:30)
>>>> at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
>>>> at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
>>>> at
>>>> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget. java:107)
>>>> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
>>>> at org.apache.tools.ant.Task.perform(Task.java:364)
>>>> at org.apache.tools.ant.Target.execute(Target.java:341)
>>>> at org.apache.tools.ant.Target.performTasks(Target.java:369)
>>>> at org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
>>>> at
>>>> org.apache.tools.ant.helper.SingleCheckExecutor.executeTarge ts(SingleCheckExecutor.java:37)
>>>> at
>>>> org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor .executeTargets(EclipseSingleCheckExecutor.java:30)
>>>> at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
>>>> at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
>>>> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
>>>> at org.apache.tools.ant.Task.perform(Task.java:364)
>>>> at org.apache.tools.ant.Target.execute(Target.java:341)
>>>> at org.apache.tools.ant.Target.performTasks(Target.java:369)
>>>> at org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
>>>> at
>>>> org.apache.tools.ant.helper.SingleCheckExecutor.executeTarge ts(SingleCheckExecutor.java:37)
>>>> at
>>>> org.eclipse.ant.internal.core.ant.EclipseSingleCheckExecutor .executeTargets(EclipseSingleCheckExecutor.java:30)
>>>> at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
>>>> at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:382)
>>>> at
>>>> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget. java:107)
>>>> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.j ava:275)
>>>> at org.apache.tools.ant.Task.perform(Task.java:364)
>>>> at org.apache.tools.ant.Target.execute(Target.java:341)
>>>> at org.apache.tools.ant.Target.performTasks(Target.java:369)
>>>> at org.apache.tools.ant.Project.executeSortedTargets(Project.ja va:1216)
>>>> at org.apache.tools.ant.Project.executeTarget(Project.java:1185 )
>>>> at
>>>> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(D efaultExecutor.java:40)
>>>> at
>>>> org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.exe cuteTargets(EclipseDefaultExecutor.java:32)
>>>> at org.apache.tools.ant.Project.executeTargets(Project.java:106 8)
>>>> at
>>>> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:706)
>>>> at
>>>> org.eclipse.ant.internal.core.ant.InternalAntRunner.run(Inte rnalAntRunner.java:457)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:64)
>>>> at
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
>>>> at java.lang.reflect.Method.invoke(Method.java:615)
>>>> at org.eclipse.ant.core.AntRunner.run(AntRunner.java:356)
>>>> at
>>>> org.eclipse.ajdt.internal.core.exports.FeatureExportOperatio n.runScript(FeatureExportOperation.java:307)
>>>> at
>>>> org.eclipse.ajdt.internal.core.exports.FeatureExportOperatio n.doExport(FeatureExportOperation.java:196)
>>>> at
>>>> org.eclipse.ajdt.internal.core.exports.FeatureBasedExportOpe ration.run(FeatureBasedExportOperation.java:47)
>>>> at
>>>> org.eclipse.ajdt.internal.ui.wizards.exports.AJFeatureExport Job.run(AJFeatureExportJob.java:54)
>>>> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
>>>> ----------------------------
>>>>
>>>> Strange enough - there is no "build.xml" file (mentioned in lines 3
>>>> & 4) in my project! Or is this file temporarily created only?
>>>>
>>>> Michael
>>>>
>>>>
>>>> "Michael Moser" <mmo@zurich.ibm.com> wrote in message
>>>> news:ejjrla$c0o$1@utils.eclipse.org...
>>>>> I have finalized a plugin (i.e. it works fine when I start it in
>>>>> the runtime workbench) and so I would now like to convert it into
>>>>> some distributable form.
>>>>>
>>>>> Thus, I started with File => Export.... and selected "Deployable
>>>>> plugins and fragments with AspectJ support". I select my project
>>>>> and enter the .zip file name into which to pack up everything and
>>>>> also selected to save the procedure as ant script and then pressed
>>>>> "Finish".
>>>>>
>>>>> That runs for a while and then for some - to me inexpliccable -
>>>>> reason that process terminates telling me that there were 14
>>>>> compile errors. And no .zip is produced.
>>>>>
>>>>> ???? But this compiled and ran fine before! So where do these
>>>>> compile errors suddenly come from? And why does this recompile
>>>>> things in the first place? It should just export (i.e. pack and
>>>>> wrap up) things - at least that's what I would have expected...
>>>>>
>>>>> Any ideas?
>>>>>
>>>>> This is on eclipse 3.2.1 and I tried this with the same result
>>>>> using ajdt_1.4_for_eclipse_3.2.zip (i.e. the latest release) and
>>>>> also with 1.4.1.200611081052 for Eclipse 3.2 (i.e. the latest
>>>>> developer build provided).
>>>>>
>>>>> Michael
>>>>>
>>>>
>>
>
|
|
| | | |
Goto Forum:
Current Time: Sat Sep 21 02:57:29 GMT 2024
Powered by FUDForum. Page generated in 0.04856 seconds
|