Skip to content

Commit b8cd353

Browse files
committed
Update the setup website management
- Include the platform docs project in the base working sets. - Require org.eclipse.oomph.util in the web site project to support launching a localhost http server. - Add all the *.docs projects to the website working set. - Create a launch configuration HttpServer to launch a local host server that serves the local contents of the eclipse web site project and also the *.docs projects.
1 parent 34f05c1 commit b8cd353

File tree

1 file changed

+61
-3
lines changed

1 file changed

+61
-3
lines changed

oomph/Platform.setup

Lines changed: 61 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@
278278
<operand
279279
xsi:type="predicates:RepositoryPredicate"
280280
project="org.eclipse.platform"
281-
relativePathPattern="platform/.*|releng/.*"/>
281+
relativePathPattern="platform/.*|releng/.*|docs"/>
282282
</predicate>
283283
</workingSet>
284284
<workingSet
@@ -978,6 +978,8 @@
978978
name="Platform Website">
979979
<requirement
980980
name="*"/>
981+
<requirement
982+
name="org.eclipse.oomph.util"/>
981983
<sourceLocator
982984
rootFolder="${github.clone.platform.website.location}"/>
983985
</targlet>
@@ -990,8 +992,14 @@
990992
<predicate
991993
xsi:type="predicates:AndPredicate">
992994
<operand
993-
xsi:type="predicates:RepositoryPredicate"
994-
project="eclipse"/>
995+
xsi:type="predicates:OrPredicate">
996+
<operand
997+
xsi:type="predicates:NamePredicate"
998+
pattern="org\.eclipse\..*\.docs"/>
999+
<operand
1000+
xsi:type="predicates:RepositoryPredicate"
1001+
project="eclipse"/>
1002+
</operand>
9951003
</predicate>
9961004
</workingSet>
9971005
</setupTask>
@@ -1004,6 +1012,56 @@
10041012
<repository
10051013
url="https://download.eclipse.org/wildwebdeveloper/releases/latest"/>
10061014
</setupTask>
1015+
<setupTask
1016+
xsi:type="setup:ResourceCreationTask"
1017+
targetURL="${workspace.location|uri}/.metadata/.plugins/org.eclipse.debug.core/.launches/HTTPServer.launch">
1018+
<content>
1019+
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?>
1020+
&lt;launchConfiguration type=&quot;org.eclipse.pde.ui.RuntimeWorkbench&quot;>
1021+
&lt;setAttribute key=&quot;additional_plugins&quot;/>
1022+
&lt;booleanAttribute key=&quot;append.args&quot; value=&quot;true&quot;/>
1023+
&lt;stringAttribute key=&quot;application&quot; value=&quot;org.eclipse.oomph.util.HTTPServer&quot;/>
1024+
&lt;booleanAttribute key=&quot;askclear&quot; value=&quot;true&quot;/>
1025+
&lt;booleanAttribute key=&quot;automaticAdd&quot; value=&quot;false&quot;/>
1026+
&lt;booleanAttribute key=&quot;automaticIncludeRequirements&quot; value=&quot;true&quot;/>
1027+
&lt;booleanAttribute key=&quot;automaticValidate&quot; value=&quot;true&quot;/>
1028+
&lt;stringAttribute key=&quot;bootstrap&quot; value=&quot;&quot;/>
1029+
&lt;stringAttribute key=&quot;checked&quot; value=&quot;[NONE]&quot;/>
1030+
&lt;booleanAttribute key=&quot;clearConfig&quot; value=&quot;true&quot;/>
1031+
&lt;booleanAttribute key=&quot;clearws&quot; value=&quot;false&quot;/>
1032+
&lt;booleanAttribute key=&quot;clearwslog&quot; value=&quot;false&quot;/>
1033+
&lt;stringAttribute key=&quot;configLocation&quot; value=&quot;$${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/HTTPServer&quot;/>
1034+
&lt;booleanAttribute key=&quot;default&quot; value=&quot;false&quot;/>
1035+
&lt;setAttribute key=&quot;deselected_workspace_bundles&quot;/>
1036+
&lt;stringAttribute key=&quot;featureDefaultLocation&quot; value=&quot;workspace&quot;/>
1037+
&lt;stringAttribute key=&quot;featurePluginResolution&quot; value=&quot;workspace&quot;/>
1038+
&lt;booleanAttribute key=&quot;includeOptional&quot; value=&quot;false&quot;/>
1039+
&lt;stringAttribute key=&quot;location&quot; value=&quot;@none&quot;/>
1040+
&lt;booleanAttribute key=&quot;org.eclipse.debug.core.ATTR_FORCE_SYSTEM_CONSOLE_ENCODING&quot; value=&quot;false&quot;/>
1041+
&lt;booleanAttribute key=&quot;org.eclipse.jdt.launching.ATTR_ATTR_USE_ARGFILE&quot; value=&quot;false&quot;/>
1042+
&lt;booleanAttribute key=&quot;org.eclipse.jdt.launching.ATTR_SHOW_CODEDETAILS_IN_EXCEPTION_MESSAGES&quot; value=&quot;true&quot;/>
1043+
&lt;booleanAttribute key=&quot;org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD&quot; value=&quot;true&quot;/>
1044+
&lt;stringAttribute key=&quot;org.eclipse.jdt.launching.JRE_CONTAINER&quot; value=&quot;org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-21&quot;/>
1045+
&lt;stringAttribute key=&quot;org.eclipse.jdt.launching.PROGRAM_ARGUMENTS&quot; value=&quot;-os $${target.os} -ws $${target.ws} -arch $${target.arch} -nl $${target.nl} -consoleLog&amp;#13;&amp;#10;&amp;#13;&amp;#10;-alias &amp;#13;&amp;#10;/eclipse-&amp;gt;$${project_loc:/eclipse}&amp;#13;&amp;#10;/eclipse-platform/eclipse.platform/master-&amp;gt;$${project_loc:/eclipse}/../eclipse.platform&amp;#13;&amp;#10;/eclipse-platform/eclipse.platform.ui/master-&amp;gt;$${project_loc:/eclipse}/../eclipse.platform.ui&amp;#13;&amp;#10;/eclipse-pde/eclipse.pde/master-&amp;gt;$${project_loc:/eclipse}/../eclipse.pde&amp;#13;&amp;#10;/eclipse-equinox/p2/master-&amp;gt;$${project_loc:/eclipse}/../p2&quot;/>
1046+
&lt;stringAttribute key=&quot;org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER&quot; value=&quot;org.eclipse.pde.ui.workbenchClasspathProvider&quot;/>
1047+
&lt;stringAttribute key=&quot;org.eclipse.jdt.launching.VM_ARGUMENTS&quot; value=&quot;-Dorg.eclipse.swt.graphics.Resource.reportNonDisposed=true&amp;#13;&amp;#10;-Duser.home=$${system_property:user.home}&quot;/>
1048+
&lt;stringAttribute key=&quot;pde.version&quot; value=&quot;3.3&quot;/>
1049+
&lt;stringAttribute key=&quot;product&quot; value=&quot;org.eclipse.e4.demo.cssbridge.product&quot;/>
1050+
&lt;setAttribute key=&quot;selected_target_bundles&quot;>
1051+
&lt;setEntry value=&quot;org.eclipse.oomph.util@default:default&quot;/>
1052+
&lt;/setAttribute>
1053+
&lt;setAttribute key=&quot;selected_workspace_bundles&quot;/>
1054+
&lt;booleanAttribute key=&quot;show_selected_only&quot; value=&quot;false&quot;/>
1055+
&lt;stringAttribute key=&quot;templateConfig&quot; value=&quot;$${target_home}\configuration\config.ini&quot;/>
1056+
&lt;booleanAttribute key=&quot;tracing&quot; value=&quot;false&quot;/>
1057+
&lt;booleanAttribute key=&quot;useCustomFeatures&quot; value=&quot;false&quot;/>
1058+
&lt;booleanAttribute key=&quot;useDefaultConfig&quot; value=&quot;true&quot;/>
1059+
&lt;booleanAttribute key=&quot;useDefaultConfigArea&quot; value=&quot;true&quot;/>
1060+
&lt;booleanAttribute key=&quot;useProduct&quot; value=&quot;false&quot;/>
1061+
&lt;/launchConfiguration>
1062+
1063+
</content>
1064+
</setupTask>
10071065
<stream
10081066
name="master"
10091067
label="Master"/>

0 commit comments

Comments
 (0)