Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 122980 Details for
Bug 256430
Fragments with no host jeopardize Eclipse installation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Changes in generate1.php to add an extra step of generating metadata
256430.diff (text/plain), 3.43 KB, created by
Antoine Toulmé
on 2009-01-19 15:02:35 EST
(
hide
)
Description:
Changes in generate1.php to add an extra step of generating metadata
Filename:
MIME Type:
Creator:
Antoine Toulmé
Created:
2009-01-19 15:02:35 EST
Size:
3.43 KB
patch
obsolete
>### 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</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} "); >+ 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 @@ >+<xsl:stylesheet version="1.0"> >+<xsl:output indent="yes"/> >+<!-- Copy all elements with their attributes --> >+â >+<xsl:template match="@*|node()"> >+â >+<xsl:copy> >+<xsl:apply-templates select="@*|node()"/> >+</xsl:copy> >+</xsl:template> >+â >+<!-- >+ Copy <required> elements belonging to nl feature groups, adding "optional" attribute >+--> >+â >+<xsl:template match="unit[contains(@id,'.nl') and contains(@id,'.feature.group')]/requires/required[not(contains(@name,'.feature.jar'))]"> >+â >+<xsl:copy> >+<xsl:copy-of select="@*"/> >+<xsl:attribute name="optional">true</xsl:attribute> >+<xsl:apply-templates/> >+</xsl:copy> >+</xsl:template> >+â >+<!-- >+ Copy <required> elements belonging to nl plugins, adding "greedy" attribute >+--> >+â >+<xsl:template match="unit[contains(@id,'.nl') and not(contains(@id,'.feature.group'))]/requires/required"> >+â >+<xsl:copy> >+<xsl:copy-of select="@*"/> >+<xsl:attribute name="greedy">false</xsl:attribute> >+<xsl:apply-templates/> >+</xsl:copy> >+</xsl:template> >+</xsl:stylesheet> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 256430
:
119995
|
120124
|
120540
|
120986
|
121036
|
121038
| 122980 |
123480