Skip to main content

eclipse RCP product - custom config.ini



My eclipse RCP (3.7) application is currently in a good shape, in which product can be exported successfully for multiple platforms and runs just fine. What I need is to change some properties in config.ini file, in particular osgi.instance.area.default and osgi.configuration.area .





In the configuration tab of eclipse product editor, I check Use an existing config.ini file and select the config.ini I created inside the same project hosting the product (and the core feature) definition.





To create the custom config.ini, I just took the one generated in a previous export, and added above properties.





What happens is that after exporting the product, config.ini is still auto-generated in configuration/config.ini , without my edits. What am I missing?





This is how my product definition looks like:







<?xml version="1.0" encoding="UTF-8"?>

<?pde version="3.5"?>



<product name="MyApp" id="it.myapp.product" application="it.myapp.application" version="1.0.0.qualifier" useFeatures="true" includeLaunchers="true">



<configIni use="default">

<linux>/it.myapp.app/config.ini</linux>

<macosx>/it.myapp.app.app/config.ini</macosx>

<solaris>/it.myapp.app.app/config.ini</solaris>

<win32>/it.myapp.app/config.ini</win32>

</configIni>



<launcherArgs>

<programArgs>-nl it</programArgs>

<vmArgsMac>-XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts</vmArgsMac>

</launcherArgs>



<windowImages />



<splash

location="it.myapp"

startupProgressRect="6,378,485,13"

startupMessageRect="7,397,445,22"

startupForegroundColor="000000" />

<launcher name="myapp">[...]</launcher>



<vm>

</vm>



<plugins>

<plugin id="com.ibm.icu"/>

[...]

<plugin id="org.sat4j.pb"/>

</plugins>



<features>

<feature id="it.myapp.feature"/>

</features>



<configurations>

<plugin id="it.myapp" autoStart="false" startLevel="5" />

<plugin id="org.eclipse.core.runtime" autoStart="true" startLevel="4" />

<plugin id="org.eclipse.equinox.common" autoStart="true" startLevel="2" />

<plugin id="org.eclipse.equinox.ds" autoStart="true" startLevel="2" />

<plugin id="org.eclipse.equinox.simpleconfigurator" autoStart="true" startLevel="1" />

</configurations>



</product>




Comments

  1. You are not missing anything - this just does not work. I experienced the same. You can try upgrading to a more recent version of Eclipse which hopefully has this function working.

    See: https://bugs.eclipse.org/bugs/show_bug.cgi?id=284732

    I suggest to work around this by using root-properties:

    Eclipse RCP root-properties

    ReplyDelete

Post a Comment

Popular posts from this blog

Why is this Javascript much *slower* than its jQuery equivalent?

I have a HTML list of about 500 items and a "filter" box above it. I started by using jQuery to filter the list when I typed a letter (timing code added later): $('#filter').keyup( function() { var jqStart = (new Date).getTime(); var search = $(this).val().toLowerCase(); var $list = $('ul.ablist > li'); $list.each( function() { if ( $(this).text().toLowerCase().indexOf(search) === -1 ) $(this).hide(); else $(this).show(); } ); console.log('Time: ' + ((new Date).getTime() - jqStart)); } ); However, there was a couple of seconds delay after typing each letter (particularly the first letter). So I thought it may be slightly quicker if I used plain Javascript (I read recently that jQuery's each function is particularly slow). Here's my JS equivalent: document.getElementById('filter').addEventListener( 'keyup', function () { var jsStart = (new Date).getTime()...

Is it possible to have IF statement in an Echo statement in PHP

Thanks in advance. I did look at the other questions/answers that were similar and didn't find exactly what I was looking for. I'm trying to do this, am I on the right path? echo " <div id='tabs-".$match."'> <textarea id='".$match."' name='".$match."'>". if ($COLUMN_NAME === $match) { echo $FIELD_WITH_COLUMN_NAME; } else { } ."</textarea> <script type='text/javascript'> CKEDITOR.replace( '".$match."' ); </script> </div>"; I am getting the following error message in the browser: Parse error: syntax error, unexpected T_IF Please let me know if this is the right way to go about nesting an IF statement inside an echo. Thank you.