Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » javacTarget ignored on build
javacTarget ignored on build [message #464839] Fri, 16 March 2007 04:11 Go to next message
Eclipse UserFriend
Hi,

I generated build.xml files for my plugins using PDE Tools -> Create Ant
Build File.

Now I had the problem that building my RCP Application with this
build.xml the code is compiled with 1.3.

I set the javacTarget:
<property name="javacTarget" value="5.0"/>

But this is IGNORED! It doesn't produce 5.0 classes!

What's the problem?

Thanks for your help.

Kind Regards, Simon
Re: javacTarget ignored on build [message #464869 is a reply to message #464839] Fri, 16 March 2007 11:02 Go to previous messageGo to next message
Eclipse UserFriend
Simon,
To be clear, it is the bundleJavacTarget property that gets passed to the javac
ant task. However, note that by default the bundleJavacTarget property is being
set to ${javacTarget}.

If you modified the generated build.xml by hand, note that those changes will be
lost on export or headless build when the scripts are regenerated. You can set
javacTarget in your plugin's build.properties and it will be generated directly
into the bundleJavacTarget property.

-Andrew

Simon Martinelli wrote:
> Hi,
>
> I generated build.xml files for my plugins using PDE Tools -> Create Ant
> Build File.
>
> Now I had the problem that building my RCP Application with this
> build.xml the code is compiled with 1.3.
>
> I set the javacTarget:
> <property name="javacTarget" value="5.0"/>
>
> But this is IGNORED! It doesn't produce 5.0 classes!
>
> What's the problem?
>
> Thanks for your help.
>
> Kind Regards, Simon
Re: javacTarget ignored on build [message #464874 is a reply to message #464839] Fri, 16 March 2007 11:40 Go to previous messageGo to next message
Eclipse UserFriend
Simon Martinelli a écrit :
> I generated build.xml files for my plugins using PDE Tools -> Create Ant
> Build File.
> Now I had the problem that building my RCP Application with this
> build.xml the code is compiled with 1.3.
> I set the javacTarget:
> <property name="javacTarget" value="5.0"/>
> But this is IGNORED! It doesn't produce 5.0 classes!
> What's the problem?
If you could change the log extension to be .xml instead of .log and
send me the resulting xml log. I could investigate what is going on.
To change the log extension:
<property name="logExtension" value=".xml"/>

instead of:
<property name="logExtension" value=".log"/>
--
Olivier
Re: javacTarget ignored on build [message #464889 is a reply to message #464869] Sun, 18 March 2007 08:48 Go to previous message
Eclipse UserFriend
Hi Andrew,

Thanks for your tips. Now everything is clear.

Regards, Simon
Previous Topic:Dimensions of ViewPart
Next Topic:ZoomContributionItem has focus
Goto Forum:
  


Current Time: Tue Jul 01 22:24:02 EDT 2025

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

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

Back to the top