### Eclipse Workspace Patch 1.0 #P babel_server Index: classes/export/generate1.php =================================================================== RCS file: /cvsroot/technology/org.eclipse.babel/server/classes/export/generate1.php,v retrieving revision 1.42 diff -u -r1.42 generate1.php --- classes/export/generate1.php 24 Nov 2008 18:42:28 -0000 1.42 +++ classes/export/generate1.php 19 Jan 2009 19:57:30 -0000 @@ -14,11 +14,13 @@ * Kit Lo (IBM) - patch, bug 251536, newline char missing after copyright comment on first line * Kit Lo (IBM) - patch, bug 238580, language packs should not include strings that are marked "non-translatable" * Kit Lo (IBM) - patch, bug 252140, Illegal token characters in babel fragment names + * Antoine Toulme (Intalio, Inc) - patch, bug 256430, Fragments with no host jeopardize Eclipse installation *******************************************************************************/ /* * 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. ob_start(); ini_set("memory_limit", "64M"); @@ -415,6 +417,10 @@ fclose($outp); fwrite($language_pack_links_file, "\n\t"); + + // 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} "); + 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"; Index: classes/export/content.xsl =================================================================== RCS file: classes/export/content.xsl diff -N classes/export/content.xsl --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ classes/export/content.xsl 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,37 @@ + + + +− + +− + + + + +− + +− + +− + + +true + + + +− + +− + +− + + +false + + + + Index: classes/export/runMetadata.sh =================================================================== RCS file: classes/export/runMetadata.sh diff -N classes/export/runMetadata.sh --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ classes/export/runMetadata.sh 1 Jan 1970 00:00:00 -0000 @@ -0,0 +1,4 @@ +#!/bin/sh + +$1/eclipse -application org.eclipse.equinox.p2.metadata.generator.EclipseGenerator -updateSite $2 -site file:$2/site.xml -metadataRepositoryName "Babel language packs update site" -append -reuseP +ack200Files -vmargs -Xmx256m