Monday, 23 September 2013

Feature enablement hangs at refreshProject task in toolkit


In the enableFeature.log, the log file ends with the following messages:
importCMC:

Logs -
  [delete] Deleting 2032 files from F:\IBM\WCDE_E~1\workspace\LOBTools
  [delete] Deleted 266 directories from F:\IBM\WCDE_E~1\workspace\LOBTools
    [copy] Copying 4050 files to F:\IBM\WCDE_E~1\workspace\LOBTools
[projectImport] projectName=LOBTools projectLocation=null
[projectImport] project.refresh
[projectImport]  (Begin)
[projectImport] ... subtask: Refreshing '/LOBTools'.
[projectImport]  (Done)
refreshProject:



 

Comment out '<CleanOpenLaszloIndex projectName="LOBTools" /> ' in toolkitWorkspaceTask.xml, as a workaround
E:\IBM\WCDE_ENT70\components\common\xml\toolkitWorkspaceTask.xml

<antcall target="refreshProject" />
<!-- Clean openlaszlo index for LOBTools project -->
<if>
 <or>
  <equals arg1="${featureIdLowercase}" arg2="fep0"/>
  <equals arg1="${featureIdLowercase}" arg2="fep1"/>
  <equals arg1="${featureIdLowercase}" arg2="fep2"/>
 </or>
 <else>
  <!-- If FEP3 or higher, clean openlaszlo index for LOBTools project
-->
   <CleanOpenLaszloIndex projectName="LOBTools" />
 </else>
</if>


Steps -

  • Stop the feature enablement process.
  • Take the backup of toolkitWorkspaceTask.xml. Open the file toolkitWorkspaceTask.xml.
  • Remove this line:
    • <!-- If FEP3 or higher, clean openlaszlo index for LOBTools project -->
    • <CleanOpenLaszloIndex projectName="LOBTools" />
  • After you have removed the line, run the enablement script again.
  • enableFeature.bat -DfeatureName=<feature name> -DcontinueOnSQLError=continue
  • In Rational Application Developer, click the LOBTools project . Go to project > clean. This step ensures that files from previous Feature Pack level are no longer indexed
  •  Revert back the changes in toolkitWorkspaceTask.xml.

No comments:

Post a Comment