Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
eclipse-plugin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
asm
eclipse-plugin
Commits
14b44ca2
Commit
14b44ca2
authored
Sep 13, 2011
by
andrei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Read plugin id and version for build of plugin/feature directly from MANIFEST.MF
parent
5f82d278
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
13 deletions
+42
-13
build.properties
build.properties
+0
-4
build.xml
build.xml
+33
-5
site/feature.xml
site/feature.xml
+2
-2
site/site.xml
site/site.xml
+7
-2
No files found.
build.properties
View file @
14b44ca2
plugin.id
=
de.loskutov.BytecodeOutline
bco.version
=
2.4.0
bin.includes
=
LICENSE.txt,
\
README.txt,
\
META-INF/,
\
...
...
build.xml
View file @
14b44ca2
...
...
@@ -16,8 +16,6 @@
<property
name=
"lib"
value=
"${basedir}/lib"
/>
<property
name=
"out.build"
value=
"${out}/build"
/>
<property
name=
"plugin.jar"
value=
"${plugin.id}_${bco.version}.jar"
/>
<property
name=
"feature.jar"
value=
"${plugin.id}.feature_${bco.version}.jar"
/>
<property
name=
"asm-debug-all.jar"
value=
"${asm.project.dir}/output/dist/lib/all/asm-debug-all-${product.version}.jar"
/>
<property
name=
"asm.jar"
value=
"${lib}/asm-debug-all.jar"
/>
...
...
@@ -26,6 +24,24 @@
</path>
<target
name=
"init"
>
<!-- read plugin base version from META-INF/MANIFEST.MF to ${pluginVersion} -->
<loadfile
srcFile=
"${basedir}/META-INF/MANIFEST.MF"
property=
"bco.version"
>
<filterchain>
<tokenfilter><containsregex
pattern=
"Bundle-Version: (.*)"
replace=
"\1"
/></tokenfilter>
<deletecharacters
chars=
" \n\r"
/>
</filterchain>
</loadfile>
<!-- read plugin id from META-INF/MANIFEST.MF to ${pluginId} -->
<loadfile
srcFile=
"${basedir}/META-INF/MANIFEST.MF"
property=
"plugin.id"
>
<filterchain>
<tokenfilter><containsregex
pattern=
"Bundle-SymbolicName:\s*([^;]+)(;.*)?"
replace=
"\1"
/></tokenfilter>
<deletecharacters
chars=
" \n\r"
/>
</filterchain>
</loadfile>
<property
name=
"plugin.jar"
value=
"${plugin.id}_${bco.version}.jar"
/>
<property
name=
"feature.jar"
value=
"${plugin.id}.feature_${bco.version}.jar"
/>
<condition
property=
"asm.recompile"
>
<not><available
file=
"${asm.jar}"
/></not>
</condition>
...
...
@@ -65,6 +81,17 @@
<include
name=
"**/*.properties"
/>
</fileset>
</copy>
<filterset
id=
"version.filter"
>
<filter
token=
"PLUGIN_VERSION"
value=
"${bco.version}"
/>
<filter
token=
"FEATURE_VERSION"
value=
"${bco.version}"
/>
</filterset>
<mkdir
dir=
"${out}/site"
/>
<copy
todir=
"${out}/site"
>
<fileset
dir=
"${basedir}/site"
>
<include
name=
"**/*.xml"
/>
</fileset>
<filterset
refid=
"version.filter"
/>
</copy>
<zip
zipfile=
"${out}/BytecodeOutlinesrc.zip"
>
<zipfileset
dir=
"${src}"
includes=
"**/*"
prefix=
"src"
/>
...
...
@@ -80,10 +107,11 @@
<include
name=
"README.txt"
/>
<include
name=
"LICENSE.txt"
/>
</fileset>
<fileset
dir=
"site"
>
<fileset
dir=
"
${out}/
site"
>
<include
name=
"feature.xml"
/>
<include
name=
"site.xml"
/>
</fileset>
</zip>
</target>
...
...
@@ -107,13 +135,13 @@
<target
name=
"feature"
depends=
"plugin"
>
<jar
zipfile=
"${out}/${feature.jar}"
>
<fileset
dir=
"site"
includes=
"feature.xml"
/>
<fileset
dir=
"
${out}/
site"
includes=
"feature.xml"
/>
</jar>
</target>
<target
name=
"site"
depends=
"feature"
>
<zip
zipfile=
"${out}/${plugin.id}.update_${bco.version}.zip"
>
<zipfileset
dir=
"site"
includes=
"site.xml"
/>
<zipfileset
dir=
"
${out}/
site"
includes=
"site.xml"
/>
<zipfileset
dir=
"${out}"
includes=
"${feature.jar}"
prefix=
"features"
/>
<zipfileset
dir=
"${out}"
includes=
"${plugin.jar}"
prefix=
"plugins"
/>
</zip>
...
...
site/feature.xml
View file @
14b44ca2
...
...
@@ -2,7 +2,7 @@
<feature
id=
"de.loskutov.BytecodeOutline.feature"
label=
"Bytecode Outline"
version=
"
2.4.0
"
version=
"
@FEATURE_VERSION@
"
provider-name=
"Andrey Loskutov"
>
<description
url=
"http://asm.objectweb.org/eclipse/bco/index.html"
>
...
...
@@ -54,7 +54,7 @@ THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
id=
"de.loskutov.BytecodeOutline"
download-size=
"710"
install-size=
"710"
version=
"
2.4.0
"
version=
"
@PLUGIN_VERSION@
"
unpack=
"false"
/>
</feature>
site/site.xml
View file @
14b44ca2
...
...
@@ -29,9 +29,14 @@
<category-def
name=
"Bytecode Outline for Eclipse 3.5"
label=
"Bytecode Outline for Eclipse 3.5"
/>
<feature
url=
"features/de.loskutov.BytecodeOutline.feature_2.3.1.jar"
id=
"de.loskutov.BytecodeOutline.feature"
version=
"2.3.1"
>
<category
name=
"Bytecode Outline for Eclipse 3.6"
/>
<category
name=
"Bytecode Outline for Eclipse 3.6
-3.7
"
/>
</feature>
<archive
path=
"plugins/de.loskutov.BytecodeOutline_2.3.1.jar"
url=
"http://download.forge.objectweb.org/asm/de.loskutov.BytecodeOutline_2.3.1.jar"
/>
<category-def
name=
"Bytecode Outline for Eclipse 3.5"
label=
"Bytecode Outline for Eclipse 3.6"
/>
<feature
url=
"features/de.loskutov.BytecodeOutline.feature_2.4.0.jar"
id=
"de.loskutov.BytecodeOutline.feature"
version=
"2.4.0"
>
<category
name=
"Bytecode Outline for Eclipse 3.6-3.7"
/>
</feature>
<archive
path=
"plugins/de.loskutov.BytecodeOutline_2.4.0.jar"
url=
"http://download.forge.objectweb.org/asm/de.loskutov.BytecodeOutline_2.4.0.jar"
/>
<category-def
name=
"Bytecode Outline for Eclipse 3.6-3.7"
label=
"Bytecode Outline for Eclipse 3.6-3.7"
/>
</site>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment