zoukankan      html  css  js  c++  java
  • Using Local Config Files with WSPBuilder

    Using WSPBuilder is rather straight-forward and for most features the default configuration settings work fine. But what happens when you want to include custom CAS policies or change the default folder names? Fortunately, WSPBuilder has an extremely robust set of configuration switches to handle these cases.

    If you look in the folder you installed WSPBuilder into, which is typically C:Program FilesWSPToolsWSPBuilderExtensions, you should see a WSPBuilder.exe.config file. This is the default config file that WSPBuilder uses whenever building a WSP file. We are able to edit this file to change the global settings, but we can also use a local config file on a per project basis.  To use a local config file, simply add a copy of the default config file into the root of your project as shown below:

    LocalConfig

    Now that we have a config file added to our project, we can edit this file and change settings appropriately. For example, if we wanted to specify the name for our WSP for this project only, we could use a local config file similar to the one illustrated below:

    1.<?xml version="1.0" encoding="utf-8" ?>
    2.<configuration>
    3.<appsettings>
    4.<add value="Test.wsp" key="WSPName" />
    5.</appsettings>
    6.</configuration>

    Once we changed our local config file, we can rebuild our WSP and our new settings will be used.  In this case, the WSP would be named Test.wsp instead of LocalConfig.wsp.

    Hopefully this post quickly illustrates the benefits and ease of using local config files for your WSPBuilder projects. Make sure to check out the WSPBuilder manual for a full list of configuration switches that can be used


     



  • 相关阅读:
    Spring MVC 体系结构和处理请求控制器
    Spring配置补充
    MyBatis与Spring的整合
    Ioc和AOP使用扩展
    JS 节流
    JS写返回上一级
    iframe父页面获取子页面的高度
    博客编写计划
    正则表达式
    实用 SQL 命令
  • 原文地址:https://www.cnblogs.com/yixiaozi/p/9451caf3195350537ebcf465030cd465.html
Copyright © 2011-2022 走看看