Java2HTML改造手记(续)
刚刚才想起来Java2HTML是一个Ant扩展.
打开Java2htmltask.java添加以下方法:XML:namespace prefix = o ns = "urn:schemas-microsoft-com:Office:office" />
public void setEncoding(String strEncoding){
O05.setEncoding(strEncoding);
}
在ant中就可以使用了.
<!--build the online java code-->
source Code Online View (${project.version})"
simple="no"
tabsize="4"
marginsize="2"
header="true"
footer="true"
encoding="${project.encoding}"
destination="${web.code.dir}">
版权归iBeyond(http://www.ibeyond.org)所有,转载请著名出处并保留版权信息.可以通过eMail和我联系(csdn@ibeyond.org)
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10752043/viewspace-959623/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/10752043/viewspace-959623/