Deploying the feature to a site (not globally)

Sep 4, 2009 at 7:03 AM
Edited Sep 4, 2009 at 7:14 AM


    I have developed an event handler for the task list as a feature, which overrides the ItemAdding,ItemDeleting and ItemUpdating event.
 I have even deployed the same on the server using the  WSPBuilder.

In the process of using the WSPBuilders, on creating the deployment folder I got a folder called "deploy"  in the "bin" folder.The deploy folder contains a folder, which again contains the deployment files like deploywithstsadm.bat, deploywithstsadmnocontenturls.bat, deploywithwspbuilder.bat  ......

For my project i used the deploywithstsadmnocontenturls.bat file, and deployed it. It gets deployed sucessfully.

The problem here is that the feature is getting deployed "Globally", how can i deploy it to a particular site like "". ??????


With regards






Oct 2, 2009 at 9:05 PM

The pre-generated deployment folder with the deployment batch files is unfortunately not configurable. WSPBuilder does not provide a way to modify those .BAT files.

The solution is to create your own deployment .BAT file that does exactly what you need. I'm doing this exact thing today. Enjoy.