lyphtesttest winmerge class の比較

C:\Program Files\WinMerge\MergePlugins

1:jad.exe

2:class diff with jad.sct 下記はファイルの内容

<scriptlet> <!-- Diff Class files with jad plugin for WinMerge . (C) aya_eiya 2012 --> <implements type="Automation" id="dispatcher">  <property name="PluginEvent">    <get/>  </property>  <property name="PluginDescription">    <get/>  </property>   <property name="PluginFileFilters">     <get/>   </property>   <property name="PluginIsAutomatic">     <get/>   </property>   <method name="UnpackFile"/>   <method name="PackFile"/> </implements>

<script language="VBS"> Option Explicit Dim JadPath JadPath="C:\Program Files\WinMerge\MergePlugins\jad.exe"

Function get_PluginEvent()          get_PluginEvent = "FILE_PACK_UNPACK" End Function

Function get_PluginDescription()          get_PluginDescription = "ClassDiffWithJad" End Function

Function get_PluginFileFilters()          get_PluginFileFilters = "\.class$" End Function

Function get_PluginIsAutomatic()          get_PluginIsAutomatic = True End Function

Function PackFile(fileSrc, fileDst, pbChanged, pSubcode)  PackFile = False End Function

Function UnPackFile(fileSrc, fileDst, pbChanged, pSubcode)  Dim FSO  Dim cls  Dim strm  Dim src    Set FSO = CreateObject("Scripting.FileSystemObject")  Set cls = FSO.GetFile(fileSrc)  Set strm = FSO.OpenTextFile(fileDst,2)  src = Jad(cls.ParentFolder,cls.Name)  strm.Write(src)  strm.Close    pbChanged = True  pSubcode = 0  UnpackFile = True End Function

Function Jad(path_1,class_file)  '// CreateShell  Dim WshShell  Dim exec  set WshShell = CreateObject("WScript.Shell")

 '// Jad  WshShell.CurrentDirectory = path_1  set exec = WshShell.Exec(JadPath + " -p -8 " + class_file)  Jad = exec.StdOut.ReadAll() End Function

</script> </scriptlet>

 

https://home.cnblogs.com/u/liuyunpiaohe/

转载于:https://www.cnblogs.com/liuyunpiaohe/p/7131516.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值