Wrong compiler compliance level when exporting feature [message #156579] |
Thu, 29 April 2004 06:23 |
Eclipse User |
|
|
|
Originally posted by: andreas.bungert.arcway.com
Hi,
I created a feature project in Eclipse Version 2.1.2 running on a 1.4.2 Java
VM. When I export this feaure using the Export button in the feature.xml
editor, eclipse creates the zip-file with the requested jars and ends with
saying, that there have been compile errors. The listed projects with
compile errors contain code where asserts are used.
When I deploy this feature to another eclipse instance also running on a
1.4.2 java VM, it canot be executed. It stops with
java.lang.Error: Unresolved compilation problem:
Invalid expression as statement
at a point, where the first assert statement occurs.
The code compiles and runs fine in my runtime-workspace. I have set the
compiler compliance level to 1.4. It looks like ant uses another
compiler compliance level. But I can't figure out what ant is doing? I cant
find the build file, ant creates during the build process.
Has anyone an idea, how I can configure ant to create the right code?
Thanks, Andreas
--
Dr. Andreas Bungert
ArcWay AG
Otto-Erich-Str. 15 - 14482 Potsdam
Tel. +49(331)2902539 Fax +49(331)2902570
mail: andreas.bungert@arcway.com
web: www.arcway.com
|
|
|
Powered by
FUDForum. Page generated in 0.03016 seconds