Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » '1.4' target mode requires '-1.4' compliance mode: 1.3
'1.4' target mode requires '-1.4' compliance mode: 1.3 [message #282925] Wed, 23 March 2005 13:40 Go to next message
Eclipse UserFriend
Hi,

I used java key word "assert" in a plugin project, so set java compiler
compliance to 1.4. the Plugin is fine when I lunch it.
But when I try to export the feature contain this project or build a update
site contain this project, some error happen, a log.zip is
generated with a log contains.
"'1.4' target mode requires '-1.4' compliance mode: 1.3"

I search the newgroup by key words "compliance" and "target mode", no joy...

Rgs,
Hangsu
I used 3.0.1 to build [message #282927 is a reply to message #282925] Wed, 23 March 2005 13:53 Go to previous messageGo to next message
Eclipse UserFriend
by the way
I used 3.0.1 to build
how to pass para bo compiler? [message #282928 is a reply to message #282925] Wed, 23 March 2005 13:55 Go to previous messageGo to next message
Eclipse UserFriend
guess I need to pass "-source 1.5" to the compiler, but how?
Re: '1.4' target mode requires '-1.4' compliance mode: 1.3 [message #282929 is a reply to message #282925] Wed, 23 March 2005 14:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: olivier_thomannNOSPAM.ca.ibm.com

Hangsu Ma a écrit :
> I used java key word "assert" in a plugin project, so set java compiler
> compliance to 1.4. the Plugin is fine when I lunch it.
> But when I try to export the feature contain this project or build a update
> site contain this project, some error happen, a log.zip is
> generated with a log contains.
> "'1.4' target mode requires '-1.4' compliance mode: 1.3"
>
> I search the newgroup by key words "compliance" and "target mode", no joy...
The plugin export doesn't set the rigth value for the ant javac task in
the ant script.
You can fix that by creating the ant script for your plugin and then
manually change the javac task by adding:
source="1.4" target="1.4"
--
Olivier
Re: '1.4' target mode requires '-1.4' compliance mode: 1.3 [message #283504 is a reply to message #282929] Mon, 04 April 2005 13:42 Go to previous messageGo to next message
Eclipse UserFriend
Olivier Thomann wrote:

> Hangsu Ma a écrit :
>> I used java key word "assert" in a plugin project, so set java compiler
>> compliance to 1.4. the Plugin is fine when I lunch it.
>> But when I try to export the feature contain this project or build a update
>> site contain this project, some error happen, a log.zip is
>> generated with a log contains.
>> "'1.4' target mode requires '-1.4' compliance mode: 1.3"
>>
>> I search the newgroup by key words "compliance" and "target mode", no joy...

> The plugin export doesn't set the rigth value for the ant javac task in
> the ant script.
> You can fix that by creating the ant script for your plugin and then
> manually change the javac task by adding:
> source="1.4" target="1.4"
> --
> Olivier

What if you *do not* use ant scripts to build the plugins that are part of
your feature?
For the feature, the ant script that "export | deployable features"
generates has only one target ("feature_export"). Is there a way to tell
the feature export builder to use the compliance settings in "Window |
Preferences | Java | Compiler | Compliance and Classfiles"???
Thanks,
Paulo Merson
Re: '1.4' target mode requires '-1.4' compliance mode: 1.3 [message #283510 is a reply to message #283504] Mon, 04 April 2005 15:48 Go to previous message
Eclipse UserFriend
Originally posted by: olivier_thomann.NOca.ibm.comSPAM

Paulo Merson a écrit :
> What if you *do not* use ant scripts to build the plugins that are part
> of your feature? For the feature, the ant script that "export |
> deployable features" generates has only one target ("feature_export").
> Is there a way to tell the feature export builder to use the compliance
> settings in "Window | Preferences | Java | Compiler | Compliance and
> Classfiles"???
I don't think so.
This seems to be related to
https://bugs.eclipse.org/bugs/show_bug.cgi?id=54042.
Add comment in this PR.
--
Olivier
Previous Topic:Illegal type of archive
Next Topic:Export issues with M6 based build...
Goto Forum:
  


Current Time: Tue Jul 22 00:52:08 EDT 2025

Powered by FUDForum. Page generated in 0.05435 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top