Skip to content

Commit

Permalink
Add stripped down pdebuild bundle as a testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
laeubi committed Nov 7, 2023
1 parent 34388f5 commit b2797bc
Show file tree
Hide file tree
Showing 24 changed files with 1,490 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<extensions>
<extension>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-build</artifactId>
<version>${tycho-version}</version>
</extension>
</extensions>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-Dtycho-version=5.0.0-SNAPSHOT
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" output="bin_ant" path="src_ant"/>
<classpathentry kind="output" path="bin"/>
</classpath>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
bin
lib
bin_ant
temp*
!/templates/
build.xml
!/scripts/build.xml
pdebuild.jar
org.eclipse.pde.build_*.zip
pdebuildsrc.zip
javaCompiler.pdebuild.jar.args
javaCompiler.lib_pdebuild-ant.jar.args
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>org.eclipse.pde.build</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.ManifestBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.SchemaBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
<triggers>auto,full,incremental,</triggers>
<arguments>
<dictionary>
<key>LaunchConfigHandle</key>
<value>&lt;project&gt;/.externalToolBuilders/org.eclipse.pde.build localbuild.xml [Builder].launch</value>
</dictionary>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.pde.api.tools.apiAnalysisBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature>
</natures>
</projectDescription>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<component id="org.eclipse.pde.build" version="2">
<resource path="src/org/eclipse/pde/internal/build/AntLogAdapter.java" type="org.eclipse.pde.internal.build.AntLogAdapter">
<filter id="574619656">
<message_arguments>
<message_argument value="ILog"/>
<message_argument value="AntLogAdapter"/>
</message_arguments>
</filter>
</resource>
</component>

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
eclipse.preferences.version=1
editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
formatter_profile=_core
formatter_settings_version=13
org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates/>
sp_cleanup.add_default_serial_version_id=true
sp_cleanup.add_generated_serial_version_id=false
sp_cleanup.add_missing_annotations=true
sp_cleanup.add_missing_deprecated_annotations=true
sp_cleanup.add_missing_methods=false
sp_cleanup.add_missing_nls_tags=false
sp_cleanup.add_missing_override_annotations=true
sp_cleanup.add_serial_version_id=false
sp_cleanup.always_use_blocks=true
sp_cleanup.always_use_parentheses_in_expressions=false
sp_cleanup.always_use_this_for_non_static_field_access=false
sp_cleanup.always_use_this_for_non_static_method_access=false
sp_cleanup.convert_to_enhanced_for_loop=false
sp_cleanup.correct_indentation=false
sp_cleanup.format_source_code=true
sp_cleanup.format_source_code_changes_only=false
sp_cleanup.make_local_variable_final=false
sp_cleanup.make_parameters_final=false
sp_cleanup.make_private_fields_final=true
sp_cleanup.make_variable_declarations_final=true
sp_cleanup.never_use_blocks=false
sp_cleanup.never_use_parentheses_in_expressions=true
sp_cleanup.on_save_use_additional_actions=true
sp_cleanup.organize_imports=true
sp_cleanup.qualify_static_field_accesses_with_declaring_class=false
sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
sp_cleanup.qualify_static_member_accesses_with_declaring_class=false
sp_cleanup.qualify_static_method_accesses_with_declaring_class=false
sp_cleanup.remove_private_constructors=true
sp_cleanup.remove_trailing_whitespaces=false
sp_cleanup.remove_trailing_whitespaces_all=true
sp_cleanup.remove_trailing_whitespaces_ignore_empty=false
sp_cleanup.remove_unnecessary_casts=true
sp_cleanup.remove_unnecessary_nls_tags=false
sp_cleanup.remove_unused_imports=false
sp_cleanup.remove_unused_local_variables=false
sp_cleanup.remove_unused_private_fields=true
sp_cleanup.remove_unused_private_members=false
sp_cleanup.remove_unused_private_methods=true
sp_cleanup.remove_unused_private_types=true
sp_cleanup.sort_members=false
sp_cleanup.sort_members_all=false
sp_cleanup.use_blocks=false
sp_cleanup.use_blocks_only_for_return_and_throw=false
sp_cleanup.use_parentheses_in_expressions=false
sp_cleanup.use_this_for_non_static_field_access=false
sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true
sp_cleanup.use_this_for_non_static_method_access=false
sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.pde.build;singleton:=true
Bundle-Version: 3.12.200.qualifier
Bundle-ClassPath: pdebuild.jar
Bundle-Activator: org.eclipse.pde.internal.build.BuildActivator
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Export-Package: org.eclipse.pde.build,
org.eclipse.pde.internal.build;x-friends:="org.eclipse.pde.core,org.eclipse.pde.ui,org.eclipse.pde.launching",
org.eclipse.pde.internal.build.ant;x-internal:=true,
org.eclipse.pde.internal.build.builder;x-internal:=true,
org.eclipse.pde.internal.build.fetch;x-internal:=true,
org.eclipse.pde.internal.build.packager;x-friends:="org.eclipse.pde.core",
org.eclipse.pde.internal.build.properties;x-internal:=true,
org.eclipse.pde.internal.build.publisher.compatibility;x-internal:=true,
org.eclipse.pde.internal.build.site;x-friends:="org.eclipse.pde.core,org.eclipse.pde.ui",
org.eclipse.pde.internal.build.site.compatibility;x-internal:=true,
org.eclipse.pde.internal.build.tasks;x-internal:=true
Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.0.0,4.0.0)"
Bundle-ActivationPolicy: lazy
Eclipse-BundleShape: dir
Bundle-RequiredExecutionEnvironment: JavaSE-17
Automatic-Module-Name: org.eclipse.pde.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
jarprocessor.exclude.children=true
jarprocessor.exclude.pack=true
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
###############################################################################
# Copyright (c) 2003, 2009 IBM Corporation and others.
#
# This program and the accompanying materials
# are made available under the terms of the Eclipse Public License 2.0
# which accompanies this distribution, and is available at
# https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#
# Contributors:
# IBM Corporation - initial API and implementation
###############################################################################
extra.lib/pdebuild-ant.jar = ../org.apache.ant/ant.jar
bin.includes = plugin.xml,\
plugin.properties,\
*.jar,\
lib/*.jar,\
META-INF/
jars.compile.order = pdebuild.jar,\
lib/pdebuild-ant.jar
source.pdebuild.jar = src/
output.pdebuild.jar = bin/
src.includes = about.html,\
schema/
source.lib/pdebuild-ant.jar = src_ant/
output.lib/pdebuild-ant.jar = bin_ant/
jars.extra.classpath = platform:/plugin/org.apache.ant/lib/ant.jar,\
platform:/plugin/org.eclipse.equinox.p2.repository.tools/lib/repository-tools-ant.jar
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
###############################################################################
# Copyright (c) 2003, 2006 IBM Corporation and others.
#
# This program and the accompanying materials
# are made available under the terms of the Eclipse Public License 2.0
# which accompanies this distribution, and is available at
# https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#
# Contributors:
# IBM Corporation - initial API and implementation
###############################################################################
pluginName = Plug-in Development Environment Build Support
providerName = Eclipse.org

fetchFactories.name = Fetch Script Factories
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?><!--
Copyright (c) 2005, 2010 IBM Corporation and others.
This program and the accompanying materials
are made available under the terms of the Eclipse Public License 2.0
which accompanies this distribution, and is available at
https://www.eclipse.org/legal/epl-2.0/
SPDX-License-Identifier: EPL-2.0
Contributors:
IBM Corporation - initial API and implementation
-->

<plugin>
<extension-point id="fetchFactories" name="%fetchFactories.name" schema="schema/fetchFactories.exsd"/>
<!-- Tasks -->
<extension
point="org.eclipse.ant.core.antTasks">
<antTask
library="lib/pdebuild-ant.jar"
name="eclipse.brand"
class="org.eclipse.pde.internal.build.tasks.BrandTask">
</antTask>
<antTask
library="lib/pdebuild-ant.jar"
name="eclipse.brand.p2.artifacts"
class="org.eclipse.pde.internal.build.publisher.BrandP2Task">
</antTask>
<antTask
library="lib/pdebuild-ant.jar"
name="eclipse.gatherBundle"
class="org.eclipse.pde.internal.build.publisher.GatherBundleTask">
</antTask>
<antTask
library="lib/pdebuild-ant.jar"
name="eclipse.gatherFeature"
class="org.eclipse.pde.internal.build.publisher.GatherFeatureTask">
</antTask>
<antTask
library="lib/pdebuild-ant.jar"
name="eclipse.fetch"
class="org.eclipse.pde.internal.build.tasks.FetchTask">
</antTask>
<antTask
library="lib/pdebuild-ant.jar"
name="eclipse.buildScript"
class="org.eclipse.pde.internal.build.tasks.BuildScriptGeneratorTask">
</antTask>
<antTask
library="lib/pdebuild-ant.jar"
name="eclipse.generateFeature"
class="org.eclipse.pde.internal.build.tasks.FeatureGeneratorTask">
</antTask>
<antTask
library="lib/pdebuild-ant.jar"
name="eclipse.buildManifest"
class="org.eclipse.pde.internal.build.tasks.BuildManifestTask">
</antTask>
<antTask
library="lib/pdebuild-ant.jar"
name="eclipse.assembler"
class="org.eclipse.pde.internal.build.tasks.PackagerTask">
</antTask>
<antTask
library="lib/pdebuild-ant.jar"
name="eclipse.idReplacer"
class="org.eclipse.pde.internal.build.tasks.IdReplaceTask">
</antTask>
<antTask
library="lib/pdebuild-ant.jar"
name="eclipse.licenseReplacer"
class="org.eclipse.pde.internal.build.tasks.LicenseReplaceTask">
</antTask>
<antTask
library="lib/pdebuild-ant.jar"
name="eclipse.jnlpGenerator"
class="org.eclipse.pde.internal.build.tasks.JNLPGeneratorTask">
</antTask>
<antTask
library="lib/pdebuild-ant.jar"
name="eclipse.unzipperBuilder"
class="org.eclipse.pde.internal.build.tasks.UnzipperGeneratorTask">
</antTask>
<antTask
library="lib/pdebuild-ant.jar"
name="eclipse.fetchFilesGenerator"
class="org.eclipse.pde.internal.build.tasks.FetchFileGeneratorTask">
</antTask>
<antTask
library="lib/pdebuild-ant.jar"
name="eclipse.versionReplacer"
class="org.eclipse.pde.internal.build.tasks.GenericVersionReplacer">
</antTask>
<antTask
class="org.eclipse.pde.internal.build.publisher.FeaturesAndBundlesTask"
library="lib/pdebuild-ant.jar"
name="eclipse.publish.featuresAndBundles">
</antTask>
<antTask
class="org.eclipse.pde.internal.build.tasks.CompileErrorTask"
library="lib/pdebuild-ant.jar"
name="eclipse.logCompileError">
</antTask>
<antTask
class="org.eclipse.pde.internal.build.generator.GeneratorTask"
library="lib/pdebuild-ant.jar"
name="p2.generator">
</antTask>

</extension>
<!-- Extra Classpath -->
<extension
point="org.eclipse.ant.core.extraClasspathEntries">
<extraClasspathEntry
library="lib/pdebuild-ant.jar">
</extraClasspathEntry>
</extension>
<extension
id="Build"
point="org.eclipse.core.runtime.applications">
<application>
<run class="org.eclipse.pde.internal.build.BuildApplication"/>
</application>
</extension>

<extension
point="org.eclipse.pde.build.fetchFactories">
<factory
class="org.eclipse.pde.internal.build.fetch.CVSFetchTaskFactory"
id="CVS"/>
<factory
class="org.eclipse.pde.internal.build.fetch.COPYFetchTasksFactory"
id="COPY"/>
<factory
class="org.eclipse.pde.internal.build.fetch.GETFetchFactory"
id="GET"/>
<factory
class="org.eclipse.pde.internal.build.fetch.P2IUFetchFactory"
id="p2IU"/>
</extension>

<extension
point="org.eclipse.ant.core.antProperties">
<antProperty
class="org.eclipse.pde.internal.build.properties.PDEProperties"
eclipseRuntime="false"
headless="true"
name="eclipse.pdebuild.home"/>
<antProperty
class="org.eclipse.pde.internal.build.properties.PDEProperties"
eclipseRuntime="false"
headless="true"
name="eclipse.pdebuild.scripts"/>
<antProperty
class="org.eclipse.pde.internal.build.properties.PDEProperties"
eclipseRuntime="false"
headless="true"
name="eclipse.pdebuild.templates"/>
</extension>

</plugin>
Loading

0 comments on commit b2797bc

Please sign in to comment.