上一页 1 2 3 4 5 6 7 ··· 20 下一页
摘要: Link: http://stackoverflow.com/questions/30571/how-do-i-tell-maven-to-use-the-latest-version-of-a-dependency 有时候需要在POM里指定最新的Version,可以考虑用LATEST关键字,上面的... 阅读全文
posted @ 2015-10-24 15:38 卜海清 阅读(290) 评论(0) 推荐(0)
摘要: 今天讨论的是如何在Powershell里实现一个简单的Template Engine的功能。假设模板文件的内容如下:template.tthello $namewelcome $company模板引擎的函数定义在Invoke-Template.ps1function Invoke-Template ... 阅读全文
posted @ 2015-08-24 15:24 卜海清 阅读(266) 评论(0) 推荐(0)
摘要: $filedata = @'app.name=Test Appapp.version=1.2'@$filedata | set-content appdata.txt$AppProps = convertfrom-stringdata (get-content ./appdata.txt -Raw)... 阅读全文
posted @ 2015-08-18 14:55 卜海清 阅读(293) 评论(0) 推荐(0)
摘要: Link:http://www.tagwith.com/question_322855_how-to-pass-parameters-in-powershell-invoke-restmethod-postExamples: Invoke-RestMethod -Uri http://localho... 阅读全文
posted @ 2015-07-16 10:34 卜海清 阅读(169) 评论(0) 推荐(0)
摘要: Link:http://www.wikisummaries.org/Visible_Ops Contents[hide]1What is ITIL?2Introduction3Phase One: Stabilize the Patient4Phase Two: Catch & Release an... 阅读全文
posted @ 2015-07-15 16:54 卜海清 阅读(279) 评论(0) 推荐(0)
摘要: 最近在搞whenever时看到可以用cron语法设置定时任务。所以研究了下cron 语法。every'0 0 27-31 * *'do command"echo 'you can use raw cron syntax too'"endcron命令,用于设置周期性被执行的指令。格式#文件格式说明#—... 阅读全文
posted @ 2015-07-15 09:08 卜海清 阅读(335) 评论(0) 推荐(0)
摘要: 平时经常会用Ant来写一写脚本,但最近跨入到Groovy的时代,试着做一些改变。Groovy里集成了AntBuilder能非常方便的调用到Ant的对象模型。现考察如下1. Groovy里定义的属性如何能在Ant的Task里调用?1 def testMsg = "hello world"2 def a... 阅读全文
posted @ 2015-06-01 08:59 卜海清 阅读(458) 评论(0) 推荐(0)
摘要: 如果你已经开始在日常的工作中大量使用PowerShell自动化重复工作。建议你使用3.0以上的版本。可以使用如下命令检测你的PS版本如需要安装PowerShell,可以参看https://technet.microsoft.com/en-us/library/hh847837.aspx 阅读全文
posted @ 2015-05-01 08:36 卜海清 阅读(406) 评论(0) 推荐(0)
摘要: NodeJs 如何返回exit Codecode =1;process.emit("exit ")process.reallyExit(code); 阅读全文
posted @ 2015-04-03 14:01 卜海清 阅读(851) 评论(0) 推荐(0)
摘要: link:http://www.neiland.net/blog/article/how-to-install-ant-contrib/Step 1: Get ANT-Contrib And Install ItSo lets get started installing them. Go to t... 阅读全文
posted @ 2015-01-27 09:26 卜海清 阅读(488) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 20 下一页