备份1
来源:互联网 发布:服装连锁收款软件 编辑:程序博客网 时间:2024/05/01 11:42
http://www.ibm.com/developerworks/cn/xml/x-antxsl/
http://blog.csdn.net/jackkp_catus/article/details/2295612
http://blog.csdn.net/kkdelta/article/details/5678241
http://blog.csdn.net/jzy23682891/article/details/7063489
xmlproperty
___________________________________________________________________________________________________________________________________
注: [本文属原创内容,如需转载请写明出处 http://blog.sina.com.cn/xiaoxiang7788]
现总结如下,一者方便后来者,二者方便自己备查.
此处为build.properties中的内容,其中内容可根据不同环境进行不同的参数值修改,xiaoxiang的想法是通过java应用界面来实现不同值的填写,并生成build.properties内容.
build.properties
compiled.codes = test.c,test1.c,test2.c,test3.c
compile.codes.fb = fb.c,fb1.c,fb2.c,fb3.c
compile.arg = true
switch.value = true
需要下载ant的扩展包ant-contrib.jar
ant <for>
<project name="compile-codes" default="main">
//使用taskdef定制ant-contrib任务
</project>
ant <if> <elseif>
<project name="compile-codes-if" default="main">
//使用taskdef定制ant-contrib任务
//条件判断,判断arg1 与 arg2两者的值是否相符, 其中arg2为从build.properties中取出的值
//若符合判断条件,即条件成功,使用antcall命令来执行某个target
//若所判断条件没有成功,则输出提示信息.
</project>
这个ant-if条件判断主要依据是build.properties中compile.arg的值的设定.然后根据判断出的不同的条件去执行不同的<for>循环体. 两个<for>循环体就不做过多的介绍了,可以参看ant-for的内容.
ant-switch
<project name="switch-test" default="switch">
</project>
<if><elseif>通过合理的排版,加之以适当的条件判断值(可以在build.properties中写多个值用于判断), 相信<if><elseif>功能可以满足大部分xiaoxiang的需求.
稍做说明: ant提供了,<for> <if> <elseif> <switch>等扩展功能, 这样也就使得ant有了基本的编程能力. 至于以上部分有看不明白的朋友,可以留言交流. 欢迎批评指正.
___________________________________________________________________________________________________________________________________
XSLT supports count() and sum() aggegate functions.
By using a trick to assign a variable to a computed value,
you can use XSLT to calculate min, max, and avg like this:
Let's say your source document is:
<list> <item>15</item> <item>10</item> <item>20</item> </list>
Then it's easy to assign a value to the sum() of the items
by doing:
<xsl:variable name="the_sum" value="sum(/list/item)"/>
or the count of the items:
<xsl:variable name="the_count" value="count(/list/item)"/>
for the average, you can do something like this:
<xsl:variable name="the_avg" select="sum(/list/item) div count(/list/item)"/>
for the max, you can do:
<!-- | assign variable based on picked the first item in | the numerically-sorted-descending list of items. +> <xsl:variable name="the_max"> <xsl:for-each select="/list/item"> <xsl:sort data-type="number" order="descending"/> <xsl:if test="position()=1"><xsl:value-of select="."/></xsl:if> </xsl:for-each> </xsl:variable>
for the min, you just reverse the sort order:
<!-- | assign variable based on picked the first item in | the numerically-sorted-descending list of items. +> <xsl:variable name="the_min"> <xsl:for-each select="/list/item"> <xsl:sort data-type="number" order="ascending"/> <xsl:if test="position()=1"><xsl:value-of select="."/></xsl:if> </xsl:for-each> </xsl:variable>
米的事件派发器,做3件事,注册h、监听b、遍历处理? (它是否有shutdown,如何做的?)
默认中心?:1.启动上面的派发器 2.加载处理器并启动然后注册,还要监听内存变化,有变化就启动再注册3.启动线程推送
new BlockingQueue?
- 备份1
- SQL数据库备份1-完整备份
- oracle备份参考1
- MySQL数据库备份(1)
- 备份恢复1
- BOEX3.1备份
- 1RMAN备份概念
- 备份
- 备份
- 备份
- 备份
- 备份
- 备份
- 备份
- 备份
- 备份
- 备份
- 备份
- 比较决策树和回归
- eclipse导出javadoc时编码错误或不显示注释的解决办法
- BI中如何配置Schema
- 2012-02-11
- Android 怎么退出整个应用程序?
- 备份1
- 技能要求补充列表
- 网狐游戏平台游戏编译常见错误[解决方案]
- 学习参考资料:使用QT/C++为BlackBerry 10开发native应用
- 【第一章】C#的进化史——C#1.0,2.0,3.0区别比较(一)
- hackvertor
- Linux下rm -rf 后恢复文件
- Mondrian+Jpivot在MyEclipse中源码配置的详细步骤
- VB对象的链接与嵌入