[Design of JBoss Eclipse IDE (dev)] - Re: WAS: Hibernate Tools not forward compatible with WTP (@h
by dlmiles
"max.andersen(a)jboss.com" wrote : that stuff is definitly not needed in hibernate tools distribution....are you not looking at the full big distribution now ?
LOL. No! I think you are missing the point being made.
Here is a listing of org.eclipse.* files from hibernate tools:
| 59149 Fri Jul 14 03:07:30 BST 2006 plugins/org.apache.xerces_2.8.0.v200606131651/resolver.jar
| 1201551 Fri Jul 14 03:07:32 BST 2006 plugins/org.apache.xerces_2.8.0.v200606131651/xercesImpl.jar
| 198762 Fri Jul 14 03:07:30 BST 2006 plugins/org.apache.xerces_2.8.0.v200606131651/xml-apis.jar
| 484641 Fri Jul 14 03:07:32 BST 2006 plugins/org.eclipse.draw2d_3.2.0.v20060626.jar
| 154682 Fri Jul 14 03:07:32 BST 2006 plugins/org.eclipse.emf.common_2.2.0.v200606271057.jar
| 69767 Fri Jul 14 03:07:32 BST 2006 plugins/org.eclipse.emf.ecore.change_2.2.0.v200606271057.jar
| 73902 Fri Jul 14 03:07:32 BST 2006 plugins/org.eclipse.emf.ecore.edit_2.2.0.v200606271057.jar
| 169972 Fri Jul 14 03:07:32 BST 2006 plugins/org.eclipse.emf.ecore.xmi_2.2.0.v200606271057.jar
| 749588 Fri Jul 14 03:07:32 BST 2006 plugins/org.eclipse.emf.ecore_2.2.0.v200606271057.jar
| 225067 Fri Jul 14 03:07:32 BST 2006 plugins/org.eclipse.emf.edit_2.2.0.v200606271057.jar
| 748073 Fri Jul 14 03:07:32 BST 2006 plugins/org.eclipse.gef_3.2.0.v20060626.jar
| 91656 Fri Jul 14 03:07:32 BST 2006 plugins/org.eclipse.jem.util_1.2.0.v20060530_RC2.jar
| 35071 Fri Jul 14 03:07:32 BST 2006 plugins/org.eclipse.wst.common.core_1.1.0.v200606130645.jar
| 182926 Fri Jul 14 03:07:32 BST 2006 plugins/org.eclipse.wst.common.emf_1.1.0.v200606130645.jar
| 122035 Fri Jul 14 03:07:32 BST 2006 plugins/org.eclipse.wst.common.emfworkbench.integration_1.1.0.v200606130645.jar
| 37662 Fri Jul 14 03:07:32 BST 2006 plugins/org.eclipse.wst.common.environment_1.0.100.v200606130645.jar
| 106267 Fri Jul 14 03:07:32 BST 2006 plugins/org.eclipse.wst.common.frameworks_1.1.0.v200606130645.jar
| 162102 Fri Jul 14 03:07:32 BST 2006 plugins/org.eclipse.wst.common.project.facet.core_1.1.0.v200606130645.jar
| 172610 Fri Jul 14 03:07:32 BST 2006 plugins/org.eclipse.wst.common.project.facet.ui_1.1.0.v200606130645.jar
| 119099 Fri Jul 14 03:07:34 BST 2006 plugins/org.eclipse.wst.common.ui_1.1.0.v200606142122.jar
| 31779 Fri Jul 14 03:07:34 BST 2006 plugins/org.eclipse.wst.common.uriresolver_1.1.0.v200606130645.jar
| 388727 Fri Jul 14 03:07:34 BST 2006 plugins/org.eclipse.wst.dtd.core_1.1.0.v200606141450.jar
| 367107 Fri Jul 14 03:07:34 BST 2006 plugins/org.eclipse.wst.sse.core_1.1.0.v200606141450.jar
| 670902 Fri Jul 14 03:07:34 BST 2006 plugins/org.eclipse.wst.sse.ui_1.0.101.v200606191900.jar
| 184914 Fri Jul 14 03:07:34 BST 2006 plugins/org.eclipse.wst.validation_1.1.0.v200606130645.jar
| 603544 Fri Jul 14 03:07:34 BST 2006 plugins/org.eclipse.wst.xml.core_1.1.0.v200606142000.jar
| 646889 Fri Jul 14 03:07:34 BST 2006 plugins/org.eclipse.wst.xml.ui_1.0.100.v200606141450.jar
| 697947 Fri Jul 14 03:07:34 BST 2006 plugins/org.eclipse.xsd_2.2.0.v200606271057.jar
|
|
These files constiture the following FULL features from pre-requisites:
<import plugin="org.eclipse.gef" version="3.2.0" match="greaterOrEqual"/> <!-- REF1 -->
| <import plugin="org.eclipse.wst.xml_core.feature" version="1.5.0" match="greaterOrEqual"/> <!-- REF2 -->
| <import plugin="org.eclipse.wst.common_core.feature" version="1.5.0" match="greaterOrEqual"/> <!-- REF3 -->
| <import plugin="org.eclipse.wst.common_ui.feature" version="1.5.0" match="greaterOrEqual"/> <!-- REF4 -->
| <import plugin="org.apache.xerces.feature" version="2.8.0" match="greaterOrEqual" /> <!-- REF5 -->
| <import plugin="org.eclipse.xsd" version="2.2.0" match="greaterOrEqual" /> <!-- REF6 -->
| <import plugin="org.eclipse.jem" version="1.2.0" match="greaterOrEqual" /> <!-- REF7 -->
| <import plugin="org.eclipse.wst.xml_ui.feature" version="1.5.0" match="greaterOrEqual" /> <!-- REF8 -->
| <import plugin="org.eclipse.emf" version="2.2.0" match="greaterOrEqual" /> <!-- REF9 -->
|
Except you dont also distribute the related feature files here is a list of SOME of the missing files from the HibernateTools distiribution:
features/org.eclipse.emf_2.2.0.v200606271057
| features/org.eclipse.emf_2.2.0.v200606271057/license.html
| features/org.eclipse.emf_2.2.0.v200606271057/eclipse_update_120.jpg
| features/org.eclipse.emf_2.2.0.v200606271057/feature.properties
| features/org.eclipse.emf_2.2.0.v200606271057/epl-v10.html
| features/org.eclipse.emf_2.2.0.v200606271057/feature.xml
|
| features/org.eclipse.gef_3.2.0.v20060626/
| features/org.eclipse.gef_3.2.0.v20060626/license.html
| features/org.eclipse.gef_3.2.0.v20060626/eclipse_update_120.jpg
| features/org.eclipse.gef_3.2.0.v20060626/feature.properties
| features/org.eclipse.gef_3.2.0.v20060626/epl-v10.html
| features/org.eclipse.gef_3.2.0.v20060626/feature.xml
|
| features/org.eclipse.jem_1.2.0.v20060530_RC2--ZasJzJJez/
| features/org.eclipse.jem_1.2.0.v20060530_RC2--ZasJzJJez/license.html
| features/org.eclipse.jem_1.2.0.v20060530_RC2--ZasJzJJez/eclipse_update_120.jpg
| features/org.eclipse.jem_1.2.0.v20060530_RC2--ZasJzJJez/feature.properties
| features/org.eclipse.jem_1.2.0.v20060530_RC2--ZasJzJJez/epl-v10.html
| features/org.eclipse.jem_1.2.0.v20060530_RC2--ZasJzJJez/feature.xml
|
| features/org.eclipse.xsd_2.2.0.v200606271057/
| features/org.eclipse.xsd_2.2.0.v200606271057/license.html
| features/org.eclipse.xsd_2.2.0.v200606271057/eclipse_update_120.jpg
| features/org.eclipse.xsd_2.2.0.v200606271057/feature.properties
| features/org.eclipse.xsd_2.2.0.v200606271057/epl-v10.html
| features/org.eclipse.xsd_2.2.0.v200606271057/feature.xml
|
| yadda, yadda...
Note you are not distributing a full version of WTP only a verbatim copy of the pre-requisites you require for hibernate tools to function. The extra files would probably account for less than 200K in the HibernateTools distribution.
If you are going to re-distribute features from WTP at least do so in their original form not a bastardized version. The original form has both plugins/* files and features/* files. This way you can correctly make use of <import ...> and break away from <plugin ...>.
For update site purposes you simply mark out in the site.xml all the available features from that download site.
For sorceforge download purposes you simply include the relevant features/* files in the HibernateTools-XYZ.zip
Then you are compatible with the way the original feature was distributed.
Ideally your update site has each feature in a seperate JAR file and the site.xml and update manager works out a list of files it needs to satisfy all pre-requisite requriements (for fine grained downloading). But the first step on the road to that is to properly re-distribute your pre-requisites so they can be detected and seen as equivalent features by the platform.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962851#3962851
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962851
19 years, 8 months
[Design of JBoss Eclipse IDE (dev)] - Re: WAS: Hibernate Tools not forward compatible with WTP (@h
by dlmiles
"max.andersen(a)jboss.com" wrote : the reason we don't distribute the whole feature is that then it would really make no sense since it would be full complete download.
But you are distributing whole features.
You may not be distributing the whole feature "org.eclipse.wst_feature" but you are distributing the whole feature "plugins/org.eclipse.wst.common.core_feature". Correct me if I am wrong.
Here is a list of distinct features from my installation:
./org.eclipse.wst_1.5.0.v200606092300-boSnpRZVq78N2Sm/feature.xml
| ./org.eclipse.wst.common_core.feature_1.5.0.v200606281000--AXrVWXWenBdN5D/feature.xml
| ./org.eclipse.wst.common_core.feature.source_1.5.0.v200606281000--AXrVWXWenBdN5D/feature.xml
| ./org.eclipse.wst.common_sdk.feature_1.5.0.v200605151622-842282744366203/feature.xml
| ./org.eclipse.wst.common_ui.feature_1.5.0.v200605221440-qKHiTHXXRmX527L/feature.xml
| ./org.eclipse.wst.common_ui.feature.source_1.5.0.v200605221440-qKHiTHXXRmX527L/feature.xml
| ./org.eclipse.wst.common_userdoc.feature_1.5.0.v200605151622/feature.xml
| ./org.eclipse.wst.doc.isv.feature_1.5.0.v200605151622--0842282932423A/feature.xml
| ./org.eclipse.wst.rdb_adapters.feature_1.5.0.v200605151622--Cq0bcpcmqDlaFE/feature.xml
| ./org.eclipse.wst.rdb_adapters.feature.source_1.5.0.v200605151622--Cq0bcpcmqDlaFE/feature.xml
| ./org.eclipse.wst.rdb_core.feature_1.5.0.v200605151622--3YIAAYAZFJDWMR/feature.xml
| ./org.eclipse.wst.rdb_core.feature.source_1.5.0.v200605151622--3YIAAYAZFJDWMR/feature.xml
| ./org.eclipse.wst.rdb_sdk.feature_1.5.0.v200605151622-PD88P8MBJAQCG-N/feature.xml
| ./org.eclipse.wst.rdb_ui.feature_1.5.0.v200605221715-FTMjwSqf2f9Nd6y/feature.xml
| ./org.eclipse.wst.rdb_ui.feature.source_1.5.0.v200605221715-FTMjwSqf2f9Nd6y/feature.xml
| ./org.eclipse.wst.rdb_userdoc.feature_1.5.0.v200605151622--4hNDDhDcFjDKTF/feature.xml
| ./org.eclipse.wst.sdk_1.5.0.v200606092300-F-KiXECYOy549ML/feature.xml
| ./org.eclipse.wst.server_core.feature_1.5.0.v20060707------1G955G5I8A/feature.xml
| ./org.eclipse.wst.server_core.feature.source_1.5.0.v20060707------1G955G5I8A/feature.xml
| ./org.eclipse.wst.server_sdk.feature_1.5.0.v200605221710-842282929-XOQMc/feature.xml
| ./org.eclipse.wst.server_ui.feature_1.5.0.v20060707-PGIEUH0RZEbHaHO/feature.xml
| ./org.eclipse.wst.server_ui.feature.source_1.5.0.v20060707-PGIEUH0RZEbHaHO/feature.xml
| ./org.eclipse.wst.server_userdoc.feature_1.5.0.v200605151622--08422827262353/feature.xml
| ./org.eclipse.wst.web_core.feature_1.5.0.v200605151622--3YIAAYAZFSEVUA/feature.xml
| ./org.eclipse.wst.web_core.feature.source_1.5.0.v200605151622--3YIAAYAZFSEVUA/feature.xml
| ./org.eclipse.wst.web_sdk.feature_1.5.0.v200605151622-84228282937520B/feature.xml
| ./org.eclipse.wst.web_ui.feature_1.5.0.v200606071530-ziPyPn2s-xsITzd/feature.xml
| ./org.eclipse.wst.web_ui.feature.source_1.5.0.v200606071530-ziPyPn2s-xsITzd/feature.xml
| ./org.eclipse.wst.web_userdoc.feature_1.5.0.v200605151622--1G955G5E7K7GDB/feature.xml
| ./org.eclipse.wst.ws_core.feature_1.5.0.v200606071530-4hNDDhDlJd2LXe8/feature.xml
| ./org.eclipse.wst.ws_core.feature.source_1.5.0.v200606071530-4hNDDhDlJd2LXe8/feature.xml
| ./org.eclipse.wst.ws_sdk.feature_1.5.0.v200605151622-842282744367202/feature.xml
| ./org.eclipse.wst.ws_ui.feature_1.5.0.v200605221450-pN9nBHUSQIhBl1V/feature.xml
| ./org.eclipse.wst.ws_ui.feature.source_1.5.0.v200605221450-pN9nBHUSQIhBl1V/feature.xml
| ./org.eclipse.wst.ws_userdoc.feature_1.5.0.v200605221940--1G955G5E777H7C/feature.xml
| ./org.eclipse.wst.xml_core.feature_1.5.0.v200605151622--3YIAAYAZFRDOMF/feature.xml
| ./org.eclipse.wst.xml_core.feature.source_1.5.0.v200605151622--3YIAAYAZFRDOMF/feature.xml
| ./org.eclipse.wst.xml_sdk.feature_1.5.0.v200605151622-842282744365_-9/feature.xml
| ./org.eclipse.wst.xml_ui.feature_1.5.0.v200605221438-7plFl1V9HDuVa-w/feature.xml
| ./org.eclipse.wst.xml_ui.feature.source_1.5.0.v200605221438-7plFl1V9HDuVa-w/feature.xml
| ./org.eclipse.wst.xml_userdoc.feature_1.5.0.v200605151622--3YIAAYAUCVDLMP/feature.xml
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962822#3962822
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962822
19 years, 8 months
[Design of JBoss Eclipse IDE (dev)] - Re: WAS: Hibernate Tools not forward compatible with WTP (@h
by dlmiles
No I consider it a "namespace collision" that hibernate is distributing org.eclipse.* stuff. I'm only allowing org.eclipse.* to come from the eclipse website. Depending upon which base version of WTP I use files may or may not be overwritten but conceptually there is still an unclean namespace collision by the fact your redistributing.
I was doing something like:
unzip "${BASEDIR}/HibernateTools-3.2.0.beta6a.zip" \
"features/org.hibernate.*" \
"plugins/org.hibernate.*" \
"plugins/org.jboss.*" || exit 1
To filter unwanted stuff out. If the plugin works afterwards great.
But I've had large periods of times over the past 6 months where the hibernate plugin has not been working (for whatever reason).
But the feature.xml inside hibernate tools is just all wrong IMHO. You should not be using <plugin ..> for any org.eclipse.* stuff. You should be using <import ...> and when you redistribute any org.eclipse.* stuff you should also be redistrubting the features/org.eclipse.* files too.
There is also <include ...> which I'm not sure what it means but I have seen it in other plugins. Maybe swapping <plugin ..> to <include ..> in the current hibernate tools feature.xml for all org.eclipse.* namespace components is a step in the right direction.
This request is back to my original hibernate tools query and the example features.xml in JIRA.
In looking into matters a little more I am finding other possible problems with the plugin versioning system (in general) which dont make sense to me yet.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962814#3962814
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962814
19 years, 8 months