Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » javacTarget ignored on build
javacTarget ignored on build [message #464839] Fri, 16 March 2007 08:11 Go to next message
Simon Martinelli is currently offline Simon MartinelliFriend
Messages: 3
Registered: July 2009
Junior Member
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 15:02 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
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 15:40 Go to previous messageGo to next message
Olivier Thomann is currently offline Olivier ThomannFriend
Messages: 518
Registered: July 2009
Senior Member
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 12:48 Go to previous message
Simon Martinelli is currently offline Simon MartinelliFriend
Messages: 3
Registered: July 2009
Junior Member
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: Wed Jan 15 08:36:01 GMT 2025

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

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

Back to the top