How to install FlexPMD in Flex Builder 4.5

FlexPMD is an eclipse plugin that detects common bad practices in your AS3 or Flex code.
The installation process is the same for all Eclipse-based editors, like FDT or Flash Builder.

  1. Go to Help>Install New Software:
    Screen shot 2011 05 23 at 14.42.53 How to install FlexPMD in Flex Builder 4.5
  2. Type in:
    http://opensource.adobe.com/svn/opensource/flexpmd/plugin/trunk/flex-pmd-eclipse-plugin-site
    Select FlexPMD:Screen shot 2011 06 01 at 12.40.46 How to install FlexPMD in Flex Builder 4.5
  3. Click Next, Next, Accept T&C, Finish
  4. Restart Flash Builder when prompted.
  5. Download the FlexPMD Command line tools from here:
    http://opensource.adobe.com/svn/opensource/flexpmd/maven-repository/release/com/adobe/ac/flex-pmd/1.1/flex-pmd-all-in-one-bundle-1.1.zip
  6. Unzip the zip file somewhere (eg. ~/tools)
  7. In Flash Builder(or FDT) go to Preferences>FlexPMD:
    pmd1 How to install FlexPMD in Flex Builder 4.5
  8. Click Browse next to: FlexPMD Command Line Installation
    Browse to your unzipped folder and select: flex-pmd-command-line-1.1.jar

How to use FlexPMD

  1. Right click on your project in the Package Explorer
    go to FlexPMD>Run FlexPMD:
    Screen shot 2011 06 01 at 13.16.04 How to install FlexPMD in Flex Builder 4.5
  2. You can see the results in the FlexPMD View:
    Screen shot 2011 06 01 at 13.15.48 How to install FlexPMD in Flex Builder 4.5



Note:

The reason for FlexPMD not to show any results is probably because you have spaces in the full absolute path to the folder you want to check (e.g. C:\users\yourusername\…\Flash Builder Workspace\yourprojectname\src). FlexPMD doesn’t seem to like spaces and crashes silently.

Another important thing is that FlexPMD needs to have the rights to write it’s results to disk. In Windowns 7 this also may cause FlexPMD to crash silently.
You can fix this problem by changing the FlexPMD preferences (Flash Builder>Window>Preferences>FlexPMD) where it says “Java command line” to “java -Xmx256m -Djava.io.tmpdir=C:\Users\[yourusername]\AppData\Local\Temp”


转载:http://zoltanb.co.uk/how-to-install-flexpmd-in-flex-builder-4-5/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值