1\ org.dbunit.dataset.xml.FlatXmlDataSet File file = File.createTempFile(tableNames[i] + "_back", ".xml");// 备份文件 FlatXmlDataSet.write(backupDataSet, new FileOutputStream(file)); 2\ fos = new FileOutputStream(new File(sTemplatePath + "\\" + sFileName)); osw = new OutputStreamWriter(fos, "UTF-8");
XMLOutputter out = new XMLOutputter(); out.output(document, osw);
3\ bts = ArrayHelper.transStringToBinary(rs.getString(Constants.TWO)); fileName = rs.getString(Constants.ONE); File phyViewFile = new File(parentFile.getAbsolutePath() + File.separator + fileName); if (null != bts) { out = new FileOutputStream(phyViewFile.getAbsolutePath()); out.write(bts);
// added by x00136008 out.close(); }4\ in = new FileInputStream(srcFilePath + "/" + fileAndDirs[i]); // 打开源文件 out = new FileOutputStream(targetFilePath + "/" + fileAndDirs[i]); byte[] buffer = new byte[1024]; // 一次读取1024个字节,当byteread为-1时表示文件已经读完 while ((byteread = in.read(buffer)) != -1) { out.write(buffer, 0, byteread); // 将读取的字节流写入输出流 }5\ // 创建工作簿 HSSFWorkbook hwb = new HSSFWorkbook();
CreationHelper factory = hwb.getCreationHelper(); destFile = new FileOutputStream(destPath);
// 创建Sheet页 sheet = createSheet(sheetName, 0, hwb);<SelectSql><![CDATA[select t.PartNumber as PartNumber,CASE like( r.sName = 0 , null ) WHEN null then 'N/A' ELSE '{r.sName}' END sTypeName,t.sDescription as sDescription,r.iTypeID as sEquipType, t.iMeanTypeID as sMeanTypeID,t.iDeployType as iDeployType,t.iPowerType as iPowerType,t.iNeedSlotNum as iSlotNum from DNP_AS_EquipmentBasicInfo t,CND_Mo r,DNP_AS_FrontFrameLayoutDetail f where t.sFdnID = r.sFdnID and f.sBoardFdnID = t.sFdnID and f.sFrameFdnID = '{fdnid}'; ]]></SelectSql>
把tomcat下的缓存清空在重新启动
在把Myeclipse中的项目刷新一次 Project————>Clean————>选中项目点击OK
然后再重新发布一次试试
清理掉原有的project重新编译就可以了。
org.dbunit.dataset.xml.FlatXmlDataSet File file = File.createTempFile(tableNames[i] + "_back", ".xml");// 备份文件
FlatXmlDataSet.write(backupDataSet, new FileOutputStream(file));
2\
fos = new FileOutputStream(new File(sTemplatePath + "\\" + sFileName));
osw = new OutputStreamWriter(fos, "UTF-8");
XMLOutputter out = new XMLOutputter();
out.output(document, osw);
3\
bts = ArrayHelper.transStringToBinary(rs.getString(Constants.TWO));
fileName = rs.getString(Constants.ONE);
File phyViewFile = new File(parentFile.getAbsolutePath() + File.separator + fileName);
if (null != bts)
{
out = new FileOutputStream(phyViewFile.getAbsolutePath());
out.write(bts);
// added by x00136008
out.close();
}4\
in = new FileInputStream(srcFilePath + "/" + fileAndDirs[i]); // 打开源文件
out = new FileOutputStream(targetFilePath + "/" + fileAndDirs[i]);
byte[] buffer = new byte[1024];
// 一次读取1024个字节,当byteread为-1时表示文件已经读完
while ((byteread = in.read(buffer)) != -1)
{
out.write(buffer, 0, byteread); // 将读取的字节流写入输出流
}5\
// 创建工作簿
HSSFWorkbook hwb = new HSSFWorkbook();
CreationHelper factory = hwb.getCreationHelper();
destFile = new FileOutputStream(destPath);
// 创建Sheet页
sheet = createSheet(sheetName, 0, hwb);<SelectSql><![CDATA[select t.PartNumber as PartNumber,CASE like( r.sName = 0 , null ) WHEN null then 'N/A' ELSE '{r.sName}' END sTypeName,t.sDescription as sDescription,r.iTypeID as sEquipType, t.iMeanTypeID as sMeanTypeID,t.iDeployType as iDeployType,t.iPowerType as iPowerType,t.iNeedSlotNum as iSlotNum from DNP_AS_EquipmentBasicInfo t,CND_Mo r,DNP_AS_FrontFrameLayoutDetail f where t.sFdnID = r.sFdnID and f.sBoardFdnID = t.sFdnID and f.sFrameFdnID = '{fdnid}'; ]]></SelectSql>