|
From: <to...@us...> - 2008-01-11 01:36:49
|
Revision: 99
http://xoperator.svn.sourceforge.net/xoperator/?rev=99&view=rev
Author: tomatop
Date: 2008-01-10 17:36:53 -0800 (Thu, 10 Jan 2008)
Log Message:
-----------
fix the fix [1863959]
Modified Paths:
--------------
trunk/xOperator/src/net/sf/xoperator/configuration/SerialisingPersister.java
Modified: trunk/xOperator/src/net/sf/xoperator/configuration/SerialisingPersister.java
===================================================================
--- trunk/xOperator/src/net/sf/xoperator/configuration/SerialisingPersister.java 2008-01-11 01:32:32 UTC (rev 98)
+++ trunk/xOperator/src/net/sf/xoperator/configuration/SerialisingPersister.java 2008-01-11 01:36:53 UTC (rev 99)
@@ -282,7 +282,7 @@
Document doc = new Document();
doc.setRootElement(new Element("aiml"));
for (AIMLTemplate template : aimlconf.values()) {
- if (!template.isPersistet()) {
+// if (!template.isPersistet()) {
// if (template.isObsolete()) {
// // delete it
@@ -295,11 +295,11 @@
// }
if (!template.isObsolete()) {
// delete it
- Element toupdate = locateCategoryElementByPattern(doc,
- template.getPattern());
- if (toupdate != null) {
- toupdate.detach();
- }
+// Element toupdate = locateCategoryElementByPattern(doc,
+// template.getPattern());
+// if (toupdate != null) {
+// toupdate.detach();
+// }
// add a new one
Element cat = new Element("category");
cat.addContent(new Element("pattern")
@@ -318,16 +318,13 @@
change = true;
template.setPersistet(true);
- }
+// }
}
new XMLOutputter(Format.getPrettyFormat()).output(doc,
new FileOutputStream(filepath));
- } catch (JDOMException e) {
+ } catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
}
return change;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|