[256430] Fragments with no host jeopardize Eclipse installation
add the sh script to run the runMetadata.sh script.
change default path on which the eclipse instance is placed.
diff --git a/classes/export/generate1.php b/classes/export/generate1.php
index 741ebf4..6923b6a 100755
--- a/classes/export/generate1.php
+++ b/classes/export/generate1.php
@@ -20,7 +20,7 @@
/*
* Documentation: http://wiki.eclipse.org/Babel_/_Server_Tool_Specification#Outputs
*/
-define("METADATA_GENERATOR_LOCATION", "/home/babel-working/eclipse"); // you might want to read this value from a config file. Not sure yet.
+define("METADATA_GENERATOR_LOCATION", "/home/genie/eclipse"); // you might want to read this value from a config file. Not sure yet.
ob_start();
ini_set("memory_limit", "64M");
@@ -419,7 +419,7 @@
fwrite($language_pack_links_file, "\n\t</ul>");
// now generate the metadata and add the non-greedy tags
- system(BABEL_BASE_DIR . "classes/export/runMetadata.sh ". METADATA_GENERATOR_LOCATION . " ${output_dir_for_train} ");
+ system("sh " . BABEL_BASE_DIR . "classes/export/runMetadata.sh ". METADATA_GENERATOR_LOCATION . " ${output_dir_for_train} ");
sytem("xsltproc -o ${output_dir_for_train}site.xml " . BABEL_BASE_DIR . "content.xsl ${output_dir_for_train}site.xml");
}
echo "Completed generating update site\n";