Commit bc863485 authored by ekuleshov's avatar ekuleshov

some build cleanup

introduced ${eclipse.home} property that is read by default from ~/asm-build.properties
added target to build Eclipse feature
added target to build Eclipse update site
parent 5ac92916
......@@ -3,10 +3,5 @@
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry sourcepath="/asm 2.0/src" kind="lib" path="externals/asm-2.0_alpha.jar"/>
<classpathentry sourcepath="/asm 2.0/src" kind="lib" path="externals/asm-analysis-2.0_alpha.jar"/>
<classpathentry sourcepath="/asm 2.0/src" kind="lib" path="externals/asm-attrs-2.0_alpha.jar"/>
<classpathentry sourcepath="/asm 2.0/src" kind="lib" path="externals/asm-tree-2.0_alpha.jar"/>
<classpathentry sourcepath="/asm 2.0/src" kind="lib" path="externals/asm-util-2.0_alpha.jar"/>
<classpathentry kind="output" path="output/eclipse"/>
</classpath>
......@@ -12,11 +12,11 @@ Bundle-Activator: de.loskutov.bco.BytecodeOutlinePlugin
Bundle-Vendor: Andrei Loskutov
Bundle-Localization: plugin
Require-Bundle: org.eclipse.ui,
org.eclipse.ui.editors,
org.eclipse.core.runtime,
org.eclipse.jface.text,
org.eclipse.core.filebuffers,
org.eclipse.jdt.core,
org.eclipse.ui.editors,
org.eclipse.ui.workbench.texteditor,
org.eclipse.jdt.ui,
org.eclipse.core.resources,
......
plugin.id de.loskutov.ByteCodeOutline
plugin.version 2.0.0
#Home directory of Eclipse (3.x) like /usr/local/bin/eclipse3.1M2
eclipse F:/java/e31M4
\ No newline at end of file
plugin.id=de.loskutov.ByteCodeOutline
plugin.version=2.0.0
bin.includes = LICENSE.txt,\
README.txt,\
META-INF/,\
externals/,\
icons/,\
plugin.xml
plugin.xml,\
BytecodeOutline.jar
jars.compile.order = BytecodeOutline.jar
jars.extra.classpath = externals/asm-2.0_alpha.jar,\
externals/asm-analysis-2.0_alpha.jar,\
externals/asm-attrs-2.0_alpha.jar,\
externals/asm-tree-2.0_alpha.jar,\
externals/asm-util-2.0_alpha.jar
<project name="BytecodeOutline" default="plugin">
<property file="build.config"/>
<property file="${user.home}/asm-build.properties"/>
<property file="build.properties"/>
<property name="src" value="${basedir}/src"/>
<property name="externals" value="${basedir}/externals"/>
<property name="out" value="${basedir}/output"/>
<property name="out.build" value="${out}/build"/>
<property name="out.plugin" value="${out}/plugin"/>
<property name="src" value="${basedir}/src"/>
<property name="externals" value="${basedir}/externals"/>
<property name="out" value="${basedir}/output"/>
<property name="out.build" value="${out}/build"/>
<property name="plugin.jar" value="${plugin.id}_${plugin.version}.jar"/>
<property name="feature.jar" value="${plugin.id}.feature_${plugin.version}.jar"/>
<target name="init">
<path id="classpath">
<fileset dir="${externals}">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${eclipse}">
<include name="plugins/**/*.jar"/>
</fileset>
<fileset dir="${externals}" includes="**/*.jar"/>
<fileset dir="${eclipse.home}" includes="plugins/**/*.jar"/>
</path>
</target>
......@@ -29,36 +29,63 @@
</target>
<target name="jars" depends="compile">
<mkdir dir="${out.plugin}"/>
<jar jarfile="${out.plugin}/BytecodeOutline.jar" basedir="${out.build}">
<jar jarfile="${out}/BytecodeOutline.jar" basedir="${out.build}">
<include name="**/*"/>
<manifest>
<attribute name="Implementation-Title" value="BytecodeOutline"/>
<attribute name="Implementation-Version" value="${plugin.version}"/>
</manifest>
</jar>
<zip zipfile="${out.plugin}/BytecodeOutlinesrc.zip" basedir="${src}">
<include name="**/*"/>
<zip zipfile="${out}/BytecodeOutlinesrc.zip">
<zipfileset dir="${src}" includes="**/*" prefix="src"/>
<fileset dir=".">
<include name="icons/*"/>
<include name="plugin.xml"/>
<include name="build.properties"/>
<include name="META-INF/*"/>
<include name="feature.xml"/>
<include name="site.xml"/>
<include name="build.xml"/>
<include name="build.config"/>
<include name=".project"/>
<include name=".classpath"/>
<include name="README.txt"/>
<include name="LICENSE.txt"/>
</fileset>
</zip>
</target>
<target name="plugin" depends="jars">
<copy todir="${out.plugin}">
<jar zipfile="${out}/${plugin.jar}" manifest="META-INF/MANIFEST.MF">
<zipfileset dir="${out}" includes="BytecodeOutline.jar"/>
<fileset dir=".">
<include name="externals/**/*"/>
<include name="externals/*.jar"/>
<include name="icons/**/*"/>
<include name="META-INF/**/*"/>
<include name="plugin.xml"/>
<include name="*.txt"/>
</fileset>
</copy>
<zip zipfile="${out}/${plugin.id}_${plugin.version}.zip" basedir="${out.plugin}">
<include name="**/*"/>
</jar>
</target>
<target name="feature" depends="plugin">
<jar zipfile="${out}/${feature.jar}">
<fileset dir="." includes="feature.xml"/>
</jar>
</target>
<target name="site" depends="feature">
<zip zipfile="${out}/${plugin.id}.update_${plugin.version}.zip">
<zipfileset dir="." includes="site.xml"/>
<zipfileset dir="${out}" includes="${feature.jar}" prefix="features"/>
<zipfileset dir="${out}" includes="${plugin.jar}" prefix="plugins"/>
</zip>
</target>
<target name="clean">
<delete dir="${out}"/>
<delete failonerror="false" includeEmptyDirs="true">
<fileset dir="${out}" includes="**/*"/>
</delete>
</target>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="de.loskutov.ByteCodeOutline.feature"
label="Bytecode Outline"
version="2.0.0"
provider-name="Andrei Loskutov">
<description url="http://asm.objectweb.org/eclipse.html">
Feature contains bytecode outline and bytecode comparison editor for any java/class file.
</description>
<copyright url="..">
Copyright (C)2004 by Andrei Loskutov Loskutov@gmx.de
All rights reserved.
</copyright>
<license>
Copyright (C)2004 by Andrei Loskutov Loskutov@gmx.de
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
</license>
<url>
<update label="Bytecode Outline" url="http://asm.objectweb.org/eclipse/site.xml"/>
</url>
<requires>
<import plugin="org.eclipse.ui"/>
<import plugin="org.eclipse.core.runtime"/>
<import plugin="org.eclipse.jface.text"/>
<import plugin="org.eclipse.core.filebuffers"/>
<import plugin="org.eclipse.jdt.core"/>
<import plugin="org.eclipse.ui.editors"/>
<import plugin="org.eclipse.ui.workbench.texteditor"/>
<import plugin="org.eclipse.jdt.ui"/>
<import plugin="org.eclipse.core.resources"/>
<import plugin="org.eclipse.ui.ide"/>
<import plugin="org.eclipse.jdt"/>
<import plugin="org.eclipse.compare"/>
</requires>
<plugin
id="de.loskutov.ByteCodeOutline"
download-size="0"
install-size="0"
version="2.0.0"/>
</feature>
<?xml version="1.0" encoding="UTF-8"?>
<site>
<description url="http://asm.objectweb.org/eclipse.html">
Bytecode Outline Plugin Update Site
</description>
<feature url="features/de.loskutov.ByteCodeOutline.feature_2.0.0.jar" id="de.loskutov.ByteCodeOutline.feature" version="2.0.0">
<category name="bytecode-outline"/>
</feature>
<category-def name="bytecode-outline" label="Bytecode Outline"/>
</site>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment