Author: jonathan
Date: Sat Jan 26 14:11:25 2008
New Revision: 12965
Log:
Updating samples to use _private storage.
Modified:
trunk/mashup/java/modules/samples/storexml/storexml.js
trunk/mashup/java/modules/samples/tomatoTube/tomatoTube.js
Modified: trunk/mashup/java/modules/samples/storexml/storexml.js
==============================================================================
--- trunk/mashup/java/modules/samples/storexml/storexml.js (original)
+++ trunk/mashup/java/modules/samples/storexml/storexml.js Sat Jan 26
14:11:25 2008
@@ -22,7 +22,7 @@
pairs, where the value is a single XML element. Storage of name-value
pairs is global.</div>;
-var storepath = "store/";
+var storepath = "_private/";
store.documentation =
<div>The <b>store</b> operation stores an XML element for later retrieval.
Modified: trunk/mashup/java/modules/samples/tomatoTube/tomatoTube.js
==============================================================================
--- trunk/mashup/java/modules/samples/tomatoTube/tomatoTube.js (original)
+++ trunk/mashup/java/modules/samples/tomatoTube/tomatoTube.js Sat Jan 26
14:11:25 2008
@@ -40,7 +40,7 @@
}
//First check whether there is already a feed file in the live location
- var liveFeedFile = new File(mode + "-mashup-feed.xml");
+ var liveFeedFile = new File("_private/" + mode + "-mashup-feed.xml");
var mashedUpFeed;
@@ -149,10 +149,10 @@
}
//Writing the newly created live feed to a temporary file
- mashupFeed.writeTo("temp-" + mode + "-mashup-feed.xml");
+ mashupFeed.writeTo("_private/temp-" + mode + "-mashup-feed.xml");
//Clonning the feed to be hosted as an RSS feed @ TomatoTube.
- mashupFeed.writeTo("temp-hosted-" + mode + "-mashup-feed.xml");
+ mashupFeed.writeTo("_private/temp-hosted-" + mode +
"-mashup-feed.xml");
} catch(ex) {
logMessage(ex, "error");
@@ -160,14 +160,14 @@
}
//Deleting the live feed file if one exists
- var currentLiveFeedFile = new File(mode + "-mashup-feed.xml");
+ var currentLiveFeedFile = new File("_private/" + mode +
"-mashup-feed.xml");
if (currentLiveFeedFile.exists) {
currentLiveFeedFile.deleteFile();
}
//Moving the temp file to the live location
- var tempFeedFile = new File("temp-" + mode + "-mashup-feed.xml");
- tempFeedFile.move(mode + "-mashup-feed.xml");
+ var tempFeedFile = new File("_private/" + "temp-" + mode +
"-mashup-feed.xml");
+ tempFeedFile.move("_private/" + mode + "-mashup-feed.xml");
//deleting the hosted feed file if it exists
var hostedFeedFile = new File("www/hosted-" + mode + "-mashup-feed.xml");
@@ -176,7 +176,7 @@
}
//Moving the temp file to the hosted location
- var tempHostedFeedFile = new File("temp-hosted-" + mode +
"-mashup-feed.xml");
+ var tempHostedFeedFile = new File("_private/" + "temp-hosted-" + mode +
"-mashup-feed.xml");
tempHostedFeedFile.move("www/hosted-" + mode + "-mashup-feed.xml");
logMessage("Updated the live and hosted feeds with newly retrieved data.
Mode '" + mode + "'");
_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev