Author: marvintriebel
Date: Thu Apr 17 17:33:34 2014
New Revision: 9355
URL: http://svn.gna.org/viewcvs/service-tech?rev=9355&view=rev
Log:
bug fixing generation
Modified:
trunk/_meta/live2/frontend/generation/createAllInputsFromGgo.js
trunk/_meta/live2/frontend/generation/toolFilesFromCaseStudies.js
Modified: trunk/_meta/live2/frontend/generation/createAllInputsFromGgo.js
URL:
http://svn.gna.org/viewcvs/service-tech/trunk/_meta/live2/frontend/generation/createAllInputsFromGgo.js?rev=9355&r1=9354&r2=9355&view=diff
==============================================================================
--- trunk/_meta/live2/frontend/generation/createAllInputsFromGgo.js
(original)
+++ trunk/_meta/live2/frontend/generation/createAllInputsFromGgo.js Thu Apr
17 17:33:34 2014
@@ -22,14 +22,19 @@
});
function createInputJson(toolName) {
- http.get( backendUrl + "/ggo?name=" + toolName, function(res) {
+ var req = backendUrl + "/ggo?name=" + toolName;
+ http.get( req, function(res) {
var data = "";
res.on("data", function(chunk) {
data += chunk;
}).on("end", function() {
+ if(data.match(/^\s*error/i)) {
+ console.log("Could not receive GGO file from back end server
for: " + toolName);
+ console.log("Request was: " + req);
+ }
ggo2json.initParse(data, toolName, function(d) {
fs.writeFile(relOutputPath + "/generated_files/" + toolName +
".inputs.json", JSON.stringify(d));
- console.log("fs.writeFile :" + relOutputPath +
"/generated_files/" + toolName + ".inputs.json");
+ console.log("fs.writeFile :" + relOutputPath +
"/generated_files/inputs." + toolName + ".json");
});
});
}).on("error", function(err) {
Modified: trunk/_meta/live2/frontend/generation/toolFilesFromCaseStudies.js
URL:
http://svn.gna.org/viewcvs/service-tech/trunk/_meta/live2/frontend/generation/toolFilesFromCaseStudies.js?rev=9355&r1=9354&r2=9355&view=diff
==============================================================================
--- trunk/_meta/live2/frontend/generation/toolFilesFromCaseStudies.js
(original)
+++ trunk/_meta/live2/frontend/generation/toolFilesFromCaseStudies.js Thu Apr
17 17:33:34 2014
@@ -10,7 +10,7 @@
// consts
reBaseLink = /\$LIVE_FILES([^\s]+)/,
-baseLink =
"http://svn.gna.org/svn/service-tech/trunk/_meta/live2/frontend/generation/files/";
+baseLink =
"http://svn.gna.org/svn/service-tech/trunk/_meta/live2/frontend/files/";
// 1st: REQUIRED ARGUMENT: relative path to casestudy folder
--
You received this e-mail, because you subscribed the mailing list
"service-tech-commits" which will forward you any e-mail addressed to
[email protected]. If you want to unsubscribe or make any changes to
your subscription, please go to
https://mail.gna.org/listinfo/service-tech-commits.