[tycho] 01/01: day 0

LUCA VERCELLI luca-vercelli-guest at moszumanska.debian.org
Fri Oct 21 12:20:22 UTC 2016


This is an automated email from the git hooks/post-receive script.

luca-vercelli-guest pushed a commit to branch master
in repository tycho.

commit 37ba21b463e24c33d450d9379576474d01850704
Author: vercelli <vercelli at LENALKE119>
Date:   Fri Oct 21 14:20:05 2016 +0200

    day 0
---
 debian/README.debian                               |   6 +
 debian/changelog                                   |   6 +
 debian/compat                                      |   1 +
 debian/control                                     |  91 +++++
 debian/copyright                                   | 113 +++++++
 debian/docs                                        |   0
 debian/eclipse-bootstrap.sh                        | 150 +++++++++
 debian/eclipse-bootstrap.v0.sh                     | 140 ++++++++
 debian/get-eclipse.sh                              | 137 ++++++++
 debian/info                                        |   0
 debian/libtycho-java.poms                          |  93 ++++++
 debian/maven.cleanIgnoreRules                      |   1 +
 debian/maven.ignoreRules                           |  25 ++
 debian/maven.publishedRules                        |   1 +
 debian/maven.rules                                 |  79 +++++
 debian/org.eclipse.jdt.compiler.apt.orig.pom.xml   |  32 ++
 debian/org.eclipse.jdt.compiler.apt.pom.xml        |  66 ++++
 debian/org.eclipse.jdt.core.orig.pom.xml           |  32 ++
 debian/org.eclipse.jdt.core.pom.xml                | 164 +++++++++
 ...g.eclipse.osgi.compatibility.state.orig.pom.xml |  32 ++
 .../org.eclipse.osgi.compatibility.state.pom.xml   |  66 ++++
 debian/org.eclipse.osgi.orig.pom.xml               |  27 ++
 debian/org.eclipse.osgi.pom.xml                    | 159 +++++++++
 debian/patches/eclipse-bootstrap.patch             |  15 +
 debian/patches/fedora-project.patch                | 100 ++++++
 debian/patches/fix-neon.patch                      |  24 ++
 debian/patches/fix-osgi-runtime.patch              | 153 +++++++++
 debian/patches/fix-packaging.patch                 | 367 +++++++++++++++++++++
 debian/patches/fix-sonatype-bug.patch              |  20 ++
 debian/patches/series                              |   7 +
 debian/patches/test.patch                          |  77 +++++
 debian/rules                                       | 154 +++++++++
 debian/source/format                               |   1 +
 debian/tycho-bootstrap.sh                          | 126 +++++++
 debian/tycho-scripts.sh                            | 222 +++++++++++++
 35 files changed, 2687 insertions(+)

diff --git a/debian/README.debian b/debian/README.debian
new file mode 100644
index 0000000..4903c72
--- /dev/null
+++ b/debian/README.debian
@@ -0,0 +1,6 @@
+This is not actually full Tycho.
+Tycho requires Eclipse to build, and both Eclipse and Tycho require Tycho itself to build (a previous version of Tycho would be enough,but we don't have it).
+We started with
+http://pkgs.fedoraproject.org/cgit/rpms/tycho.git/tree/tycho-bootstrap.sh
+to understand which portions of Tycho may be built without Eclipse.
+
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..439b0b3
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+tycho (0.25.0-1) unstable; urgency=medium
+
+  * Initial Experimental Release. (Closes: #816604)
+  * Christopher Hoskin <christopher.hoskin at gmail.com> upgraded to 0.25.0
+
+ -- Luca Vercelli <luca.vercelli.to at gmail.com>  Wed, 29 Jun 2016 22:05:18 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..004d662
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,91 @@
+Source: tycho
+Section: java
+Priority: optional
+Homepage: https://eclipse.org/tycho/
+Standards-Version: 3.9.8
+Maintainer: Debian Orbital Alignment Team <pkg-java-maintainers at lists.alioth.debian.org>
+Uploaders:
+ Luca Vercelli <luca.vercelli.to at gmail.com>
+Build-Depends:
+ debhelper (>=9),
+ openjdk-8-jdk,
+ maven (>=3.0),
+ maven-debian-helper,
+ maven-repo-helper,
+ rsync,
+ libmaven-resources-plugin-java,
+ libmaven-compiler-plugin-java,
+ libsurefire-java,
+ libmaven-jar-plugin-java,
+ libmaven-clean-plugin-java,
+ libaether-java,
+ zip,
+#if maven asks for org.apache.maven.plugins:maven-resources-plugin:2.3
+#then probably you have to apt-get purge it and reinstall
+ libmaven-plugin-tools-java (>=3.0),
+ libmaven-bundle-plugin-java (>=2.5.4),
+ libmaven-assembly-plugin-java,
+#this should install maven artifact 2.5.4.
+#If it doesn't, probably you have to apt-get --reinstall it
+ libmaven-dependency-plugin-java,
+ libmaven-plugin-testing-java,
+ libmaven-verifier-java,
+ libmaven-source-plugin-java,
+ libmaven-site-plugin-java,
+ libmaven-archiver-java (>=2.0),
+ libplexus-utils-java,
+ libplexus-component-metadata-java (>=1.5),
+#this should install maven artifact 1.5.5.
+#If it doesn't, probably you have to apt-get --reinstall it
+ libplexus-compiler-java (>=2.0),
+ libcommons-exec-java,
+ libdecentxml-java,
+ libcommons-compress-java,
+ libbcel-java,
+ ecj,
+ libmockito-java,
+ libcommons-jxpath-java,
+ libgeronimo-commonj-spec-java,
+ glassfish-javaee,
+ libicu4j-java,
+ libsac-java,
+ sat4j (>=2.3.5),
+ libxz-java,
+ libasm4-java,
+ ant
+ 
+Package: libtycho-java
+# Pre-Depends: <comma-separated list of packages>
+Depends:
+ libplexus-utils-java,
+ libcommons-exec-java,
+ libdecentxml-java,
+ libcommons-compress-java,
+ libbcel-java,
+ ecj,
+ libmockito-java,
+ libcommons-jxpath-java,
+ libgeronimo-commonj-spec-java,
+ glassfish-javaee,
+ libicu4j-java,
+ libsac-java,
+ sat4j (>=2.3.5),
+ libxz-java,
+ ${misc:Depends}
+# Recommends: <comma-separated list of packages>
+# Suggests: <comma-separated list of packages>
+# Provides: <comma-separated list of packages>
+# Replaces: <comma-separated list of packages>
+Architecture: all
+# Copyright: GPL2
+# Changelog: <changelog file; defaults to a generic changelog>
+# Readme: <README.Debian file; defaults to a generic one>
+# Extra-Files: <comma-separated list of additional files for the doc directory>
+# Files: <pair of space-separated paths; First is file to include, second is destination>
+#  <more pairs, if there's more than one file to include. Notice the starting space>
+Description: Build Eclipse plugins with Maven
+ Tycho is focused on a Maven-centric, manifest-first approach 
+ to building Eclipse plug-ins, features, update sites, RCP applications 
+ and OSGi bundles.
+ .
+ Required to build many Eclipse plugins.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..0bb5c32
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,113 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: tycho
+Source: http://git.eclipse.org/c/tycho/org.eclipse.tycho.git/snapshot
+
+Files: *
+Copyright: 2006 Eclipse Software Foundation
+License: EPL
+ Eclipse Public License
+ THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
+ .
+ 1. DEFINITIONS
+ .
+ "Contribution" means:
+ .
+ a) in the case of the initial Contributor, the initial code and documentation distributed under this Agreement, and
+ .
+ b) in the case of each subsequent Contributor:
+ .
+ i) changes to the Program, and
+ .
+ ii) additions to the Program;
+ .
+ where such changes and/or additions to the Program originate from and are distributed by that particular Contributor. A Contribution 'originates' from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include additions to the Program which: (i) are separate modules of software distributed in conjunction with the Program under their own license agreement, and (ii) are not derivative works of the Program.
+ .
+ "Contributor" means any person or entity that distributes the Program.
+ .
+ "Licensed Patents" mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program.
+ .
+ "Program" means the Contributions distributed in accordance with this Agreement.
+ .
+ "Recipient" means anyone who receives the Program under this Agreement, including all Contributors.
+ .
+ 2. GRANT OF RIGHTS
+ .
+ a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor, if any, and such derivative works, in source code and object code form.
+ .
+ b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source code and object code form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contributi [...]
+ .
+ c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted her [...]
+ .
+ d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement.
+ .
+ 3. REQUIREMENTS
+ .
+ A Contributor may choose to distribute the Program in object code form under its own license agreement, provided that:
+ .
+ a) it complies with the terms and conditions of this Agreement; and
+ .
+ b) its license agreement:
+ .
+ i) effectively disclaims on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose;
+ .
+ ii) effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits;
+ .
+ iii) states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party; and
+ .
+ iv) states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange.
+ .
+ When the Program is made available in source code form:
+ .
+ a) it must be made available under this Agreement; and
+ .
+ b) a copy of this Agreement must be included with each copy of the Program.
+ .
+ Contributors may not remove or alter any copyright notices contained within the Program.
+ .
+ Each Contributor must identify itself as the originator of its Contribution, if any, in a manner that reasonably allows subsequent Recipients to identify the originator of the Contribution.
+ .
+ 4. COMMERCIAL DISTRIBUTION
+ .
+ Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor ("Commercial Co [...]
+ .
+ For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims [...]
+ .
+ 5. NO WARRANTY
+ .
+ EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with its exercise of rights under this A [...]
+ .
+ 6. DISCLAIMER OF LIABILITY
+ .
+ EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), 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 OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN I [...]
+ .
+ 7. GENERAL
+ .
+ If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.
+ .
+ If Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed.
+ .
+ All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Rec [...]
+ .
+ Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. The Eclipse Foundation is the initial Agreement Steward. The Eclipse Foundation may assign the respon [...]
+ .
+ This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation.
+
+Files: debian/*
+Copyright: 2016 Luca Vercelli <luca.vercelli.to at gmail.com>
+License: GPL-2+
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
+
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..e69de29
diff --git a/debian/eclipse-bootstrap.sh b/debian/eclipse-bootstrap.sh
new file mode 100755
index 0000000..d7005f1
--- /dev/null
+++ b/debian/eclipse-bootstrap.sh
@@ -0,0 +1,150 @@
+#!/bin/bash -e
+#with this script we want to build the eclipse jars (bundles) used by tycho
+#FIXME I realized later that sources are available. See
+#http://central.maven.org/maven2/org/eclipse/tycho/org.eclipse.osgi.compatibility.state/1.0.100.v20150402-1551/org.eclipse.osgi.compatibility.state-1.0.100.v20150402-1551-sources.jar
+#http://central.maven.org/maven2/org/eclipse/tycho/org.eclipse.jdt.compiler.apt/1.2.0.v20150514-0146/org.eclipse.jdt.compiler.apt-1.2.0.v20150514-0146-sources.jar
+#FIXME libequinox-osgi-java ?
+
+BUNDLES="./eclipse-bundles"
+
+BUILD1=$1/org.eclipse.osgi
+BUILD2=$1/org.eclipse.jdt.core
+BUILD3=$1/org.eclipse.osgi.compatibility.state
+BUILD4=$1/org.eclipse.jdt.compiler.apt
+
+cd $BUNDLES
+
+echo "Rearranging eclipse bundles..."
+
+#==========first artifact=================================================================
+mkdir -p $BUILD1/src/main/java
+
+cp -r org.eclipse.core.runtime/src/* $BUILD1/src/main/java
+cp -r org.eclipse.core.contenttype/src/* $BUILD1/src/main/java
+cp -r org.eclipse.core.jobs/src/* $BUILD1/src/main/java
+cp -r org.eclipse.equinox.p2.core/src/* $BUILD1/src/main/java
+cp -r org.eclipse.equinox.p2.metadata/src/* $BUILD1/src/main/java
+cp -r org.eclipse.equinox.p2.publisher/src/* $BUILD1/src/main/java
+cp -r org.eclipse.equinox.p2.publisher.eclipse/src/* $BUILD1/src/main/java
+cp -r org.eclipse.equinox.p2.repository/src/* $BUILD1/src/main/java
+cp -r org.eclipse.equinox.p2.metadata.repository/src/* $BUILD1/src/main/java
+cp -r org.eclipse.equinox.p2.artifact.repository/src/* $BUILD1/src/main/java
+cp -r org.eclipse.equinox.p2.jarprocessor/src/* $BUILD1/src/main/java
+cp -r org.eclipse.equinox.simpleconfigurator/src/* $BUILD1/src/main/java
+cp -r org.eclipse.equinox.simpleconfigurator.manipulator/src/* $BUILD1/src/main/java
+cp -r org.eclipse.equinox.frameworkadmin/src/* $BUILD1/src/main/java
+cp -r org.eclipse.equinox.frameworkadmin.equinox/src/* $BUILD1/src/main/java
+cp -r org.eclipse.osgi.util/src/* $BUILD1/src/main/java
+cp -r org.eclipse.osgi/container/src/* $BUILD1/src/main/java
+cp -r org.eclipse.osgi/supplement/src/* $BUILD1/src/main/java
+cp -r org.eclipse.equinox.preferences/src/* $BUILD1/src/main/java
+cp -r org.eclipse.equinox.preferences/src/* $BUILD1/src/main/java
+cp -r org.eclipse.equinox.common/src/* $BUILD1/src/main/java
+cp -r org.eclipse.equinox.security/src/* $BUILD1/src/main/java
+cp -r org.eclipse.equinox.app/src/* $BUILD1/src/main/java
+cp -r org.eclipse.equinox.registry/src/* $BUILD1/src/main/java
+
+#cp -r org.eclipse.osgi.compatibility.state/src/* $BUILD1/src/main/java	#compat. include osgi.internal...
+cp -r org.eclipse.osgi/felix/src/* $BUILD1/src/main/java
+
+cp -r org.eclipse.equinox.p2.repository.tools/src/* $BUILD1/src/main/java
+cp -r org.eclipse.osgi/osgi/src/* $BUILD1/src/main/java
+cp -r org.eclipse.equinox.app/osgi/* $BUILD1/src/main/java
+cp -r org.eclipse.osgi.services/src/* $BUILD1/src/main/java
+cp -r org.eclipse.equinox.p2.director/src/* $BUILD1/src/main/java
+cp -r org.eclipse.equinox.p2.engine/src/* $BUILD1/src/main/java
+cp -r org.eclipse.equinox.p2.jarprocessor/src_ant/* $BUILD1/src/main/java
+
+#need SteppedTimeoutLexicoHelper from sat4j 2.3.4
+
+cp -r org.eclipse.equinox.p2.touchpoint.eclipse/src/* $BUILD1/src/main/java
+cp -r org.eclipse.equinox.p2.garbagecollector/src/* $BUILD1/src/main/java
+cp -r org.eclipse.equinox.p2.updatesite/src/* $BUILD1/src/main/java
+cp -r org.eclipse.equinox.p2.director.app/src/* $BUILD1/src/main/java
+cp -r org.eclipse.core.net/src/* $BUILD1/src/main/java
+
+cp -r org.eclipse.swt/Eclipse\ SWT/common/* $BUILD1/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT/cairo/* $BUILD1/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT/gtk/* $BUILD1/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT/emulated/taskbar/* $BUILD1/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT/emulated/bidi/* $BUILD1/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT/emulated/coolbar/* $BUILD1/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT/common_j2se/* $BUILD1/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT\ Custom\ Widgets/common/* $BUILD1/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT\ Printing/common/* $BUILD1/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT\ Printing/gtk/* $BUILD1/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT\ Drag\ and\ Drop/common/* $BUILD1/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT\ Drag\ and\ Drop/gtk/* $BUILD1/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT\ PI/common/* $BUILD1/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT\ PI/common_j2se/* $BUILD1/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT\ PI/cairo/* $BUILD1/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT\ PI/gtk/* $BUILD1/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT\ Accessibility/common/* $BUILD1/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT\ Accessibility/gtk/* $BUILD1/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT\ Browser/common/* $BUILD1/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT\ Browser/gtk/* $BUILD1/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT\ Mozilla/common/* $BUILD1/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT\ Mozilla/gtk/* $BUILD1/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT\ WebKit/gtk/* $BUILD1/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT\ Program/common/* $BUILD1/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT\ Program/gtk/* $BUILD1/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT\ Program/gnome/* $BUILD1/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT\ Program/cde/* $BUILD1/src/main/java
+
+cp -r org.eclipse.text/src/* $BUILD1/src/main/java
+cp -r org.eclipse.text/projection/* $BUILD1/src/main/java
+cp -r org.eclipse.jface.text/src/* $BUILD1/src/main/java
+cp -r org.eclipse.jface.text/projection/* $BUILD1/src/main/java
+cp -r org.eclipse.core.commands/src/* $BUILD1/src/main/java
+cp -r org.eclipse.jface/src/* $BUILD1/src/main/java
+cp -r org.eclipse.core.expressions/src/* $BUILD1/src/main/java
+cp -r org.eclipse.equinox.bidi/src/* $BUILD1/src/main/java
+cp -r org.eclipse.core.resources/src/* $BUILD1/src/main/java
+cp -r org.eclipse.core.filesystem/src/* $BUILD1/src/main/java
+
+cp -r org.eclipse.osgi/*.profile $BUILD1/src/main/java
+cp -r org.eclipse.osgi/plugin.xml $BUILD1/src/main/java
+cp -r org.eclipse.osgi/systembundle.properties $BUILD1/src/main/java
+cp -r org.eclipse.osgi/profile.list $BUILD1/src/main/java
+cp -r org.eclipse.osgi/META-INF $BUILD1/src/main/java
+
+cp ../debian/org.eclipse.osgi.pom.xml $BUILD1/pom.xml
+
+#==========second artifact=================================================================
+mkdir -p $BUILD2/src/main/java
+
+cp -r org.eclipse.jdt.core/compiler/* $BUILD2/src/main/java
+cp -r org.eclipse.jdt.core/batch/* $BUILD2/src/main/java
+cp -r org.eclipse.jdt.core/model/* $BUILD2/src/main/java
+cp -r org.eclipse.jdt.core/codeassist/* $BUILD2/src/main/java
+cp -r org.eclipse.jdt.core/search/* $BUILD2/src/main/java
+cp -r org.eclipse.jdt.core/dom/* $BUILD2/src/main/java
+cp -r org.eclipse.jdt.core/formatter/* $BUILD2/src/main/java
+cp -r org.eclipse.jdt.core/eval/* $BUILD2/src/main/java
+
+cp -r org.eclipse.jdt.core/plugin.xml $BUILD2/src/main/java
+cp -r org.eclipse.jdt.core/plugin.properties $BUILD2/src/main/java
+
+cp ../debian/org.eclipse.jdt.core.pom.xml $BUILD2/pom.xml
+
+#==========third artifact=================================================================
+mkdir -p $BUILD3/src/main/java
+
+cp -r org.eclipse.osgi.compatibility.state/src/* $BUILD3/src/main/java
+cp -r org.eclipse.osgi.compatibility.state/OSGI-INF $BUILD3/src/main/java
+
+cp ../debian/org.eclipse.osgi.compatibility.state.pom.xml $BUILD3/pom.xml
+
+#==========fourth artifact=================================================================
+mkdir -p $BUILD4/src/main/java
+
+cp -r org.eclipse.jdt.compiler.apt/src/* $BUILD4/src/main/java
+
+cp ../debian/org.eclipse.jdt.compiler.apt.pom.xml $BUILD4/pom.xml
+
+#==========================================================================================
+#cd $BUILD1
+
+#mvn -o -Dmaven.repo.local=$REPO -Dmaven.test.skip=true install
+
+
diff --git a/debian/eclipse-bootstrap.v0.sh b/debian/eclipse-bootstrap.v0.sh
new file mode 100755
index 0000000..3d42523
--- /dev/null
+++ b/debian/eclipse-bootstrap.v0.sh
@@ -0,0 +1,140 @@
+#!/bin/bash -e
+#with this script we want to build the eclipse jars (bundles) used by tycho
+#this will install all bundles into a single jar (could be improved...)
+
+#was: 3.10.100.v20150602-1500
+osgiV='debian'
+eclipseV='4.5.6'
+BUNDLES="./eclipse-bundles"
+
+# this is a writeable, temporary, maven repository
+REPO=$1
+BUILD=$2
+
+cd $BUNDLES
+
+mkdir -p $BUILD/src/main/java
+
+echo "Copying files..."
+cp -r org.eclipse.core.runtime/* $BUILD/src/main/java
+cp -r org.eclipse.core.contenttype/src/* $BUILD/src/main/java
+cp -r org.eclipse.core.jobs/src/* $BUILD/src/main/java
+cp -r org.eclipse.equinox.p2.core/* $BUILD/src/main/java
+cp -r org.eclipse.equinox.p2.metadata/* $BUILD/src/main/java
+cp -r org.eclipse.equinox.p2.publisher/src/* $BUILD/src/main/java
+cp -r org.eclipse.equinox.p2.publisher.eclipse/* $BUILD/src/main/java
+cp -r org.eclipse.equinox.p2.repository/* $BUILD/src/main/java
+cp -r org.eclipse.equinox.p2.metadata.repository/* $BUILD/src/main/java
+cp -r org.eclipse.equinox.p2.artifact.repository/src/* $BUILD/src/main/java
+cp -r org.eclipse.equinox.p2.jarprocessor/src/* $BUILD/src/main/java
+cp -r org.eclipse.equinox.simpleconfigurator/src/* $BUILD/src/main/java
+cp -r org.eclipse.equinox.simpleconfigurator.manipulator/* $BUILD/src/main/java
+cp -r org.eclipse.equinox.frameworkadmin/src/* $BUILD/src/main/java
+cp -r org.eclipse.equinox.frameworkadmin.equinox/src/* $BUILD/src/main/java
+cp -r org.eclipse.osgi.util/src/* $BUILD/src/main/java
+cp -r org.eclipse.osgi/container/src/* $BUILD/src/main/java
+cp -r org.eclipse.osgi/supplement/src/* $BUILD/src/main/java
+cp -r org.eclipse.equinox.preferences/src/* $BUILD/src/main/java
+cp -r org.eclipse.equinox.preferences/src/* $BUILD/src/main/java
+cp -r org.eclipse.equinox.common/src/* $BUILD/src/main/java
+cp -r org.eclipse.equinox.security/src/* $BUILD/src/main/java
+cp -r org.eclipse.equinox.app/src/* $BUILD/src/main/java
+cp -r org.eclipse.equinox.registry/src/* $BUILD/src/main/java
+
+cp -r org.eclipse.osgi.compatibility.state/src/* $BUILD/src/main/java	#compat. include osgi.internal...
+cp -r org.eclipse.osgi/felix/src/* $BUILD/src/main/java
+
+cp -r org.eclipse.equinox.p2.repository.tools/* $BUILD/src/main/java
+cp -r org.eclipse.osgi/osgi/src/* $BUILD/src/main/java
+cp -r org.eclipse.equinox.app/osgi/* $BUILD/src/main/java
+cp -r org.eclipse.osgi.services/src/* $BUILD/src/main/java
+cp -r org.eclipse.equinox.p2.director/src/* $BUILD/src/main/java
+cp -r org.eclipse.equinox.p2.engine/* $BUILD/src/main/java
+cp -r org.eclipse.equinox.p2.jarprocessor/src_ant/* $BUILD/src/main/java
+
+#$MAVEN_BIN compile              #first 1546 files 26sec
+
+#need SteppedTimeoutLexicoHelper from sat4j 2.3.4
+
+cp -r org.eclipse.equinox.p2.touchpoint.eclipse/src/* $BUILD/src/main/java
+cp -r org.eclipse.equinox.p2.garbagecollector/src/* $BUILD/src/main/java
+cp -r org.eclipse.equinox.p2.updatesite/src/* $BUILD/src/main/java
+cp -r org.eclipse.equinox.p2.director.app/src/* $BUILD/src/main/java
+cp -r org.eclipse.core.net/src/* $BUILD/src/main/java
+
+#$MAVEN_BIN compile             #here 1663 files 28sec
+
+cp -r org.eclipse.swt/Eclipse\ SWT/common/* $BUILD/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT/cairo/* $BUILD/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT/gtk/* $BUILD/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT/emulated/taskbar/* $BUILD/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT/emulated/bidi/* $BUILD/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT/emulated/coolbar/* $BUILD/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT/common_j2se/* $BUILD/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT\ Custom\ Widgets/common/* $BUILD/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT\ Printing/common/* $BUILD/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT\ Printing/gtk/* $BUILD/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT\ Drag\ and\ Drop/common/* $BUILD/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT\ Drag\ and\ Drop/gtk/* $BUILD/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT\ PI/common/* $BUILD/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT\ PI/common_j2se/* $BUILD/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT\ PI/cairo/* $BUILD/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT\ PI/gtk/* $BUILD/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT\ Accessibility/common/* $BUILD/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT\ Accessibility/gtk/* $BUILD/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT\ Browser/common/* $BUILD/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT\ Browser/gtk/* $BUILD/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT\ Mozilla/common/* $BUILD/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT\ Mozilla/gtk/* $BUILD/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT\ WebKit/gtk/* $BUILD/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT\ Program/common/* $BUILD/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT\ Program/gtk/* $BUILD/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT\ Program/gnome/* $BUILD/src/main/java
+cp -r org.eclipse.swt/Eclipse\ SWT\ Program/cde/* $BUILD/src/main/java
+
+#$MAVEN_BIN compile             #here 2226 files 35sec
+
+cp -r org.eclipse.jdt.core/compiler/* $BUILD/src/main/java	#org.eclipse.jdt...
+cp -r org.eclipse.jdt.core/batch/* $BUILD/src/main/java
+cp -r org.eclipse.jdt.core/model/* $BUILD/src/main/java
+cp -r org.eclipse.jdt.core/codeassist/* $BUILD/src/main/java
+cp -r org.eclipse.jdt.core/search/* $BUILD/src/main/java
+cp -r org.eclipse.jdt.core/dom/* $BUILD/src/main/java
+cp -r org.eclipse.jdt.core/formatter/* $BUILD/src/main/java
+cp -r org.eclipse.jdt.core/eval/* $BUILD/src/main/java
+cp -r org.eclipse.text/src/* $BUILD/src/main/java
+cp -r org.eclipse.text/projection/* $BUILD/src/main/java
+cp -r org.eclipse.jface.text/src/* $BUILD/src/main/java
+cp -r org.eclipse.jface.text/projection/* $BUILD/src/main/java
+cp -r org.eclipse.core.commands/* $BUILD/src/main/java
+cp -r org.eclipse.jface/src/* $BUILD/src/main/java
+cp -r org.eclipse.core.expressions/src/* $BUILD/src/main/java
+cp -r org.eclipse.equinox.bidi/src/* $BUILD/src/main/java
+cp -r org.eclipse.core.resources/src/* $BUILD/src/main/java
+cp -r org.eclipse.core.filesystem/src/* $BUILD/src/main/java
+
+#$MAVEN_BIN compile              #4811 files 71sec
+
+cp pom.xml $BUILD
+
+cd $BUILD
+
+#mvn -o -Dmaven.repo.local=$REPO -Dmaven.test.skip=true install
+
+#FIXME libequinox-osgi-java ?
+#provo a schermarlo per usare maven-repo-helper
+#echo "installing tycho artifacts..."
+#
+#function fake_tycho_artifact() {
+#  ARTIFACTID=$1
+#  VERSION=$2
+#  mkdir -p $REPO/org/eclipse/tycho/$ARTIFACTID/$VERSION
+#  ln -sf $REPO/org/eclipse/eclipse-bootstrap/${eclipseV}/eclipse-bootstrap-${eclipseV}.jar $REPO/org/eclipse/tycho/$ARTIFACTID/$VERSION/$ARTIFACTID-$VERSION.jar
+#  cp debian/$ARTIFACTID.pom.xml $REPO/org/eclipse/tycho/$ARTIFACTID/$VERSION/$ARTIFACTID-$VERSION.pom
+#}
+#
+#fake_tycho_artifact org.eclipse.osgi ${osgiV}
+#fake_tycho_artifact org.eclipse.osgi.compatibility.state ${osgiV}
+#fake_tycho_artifact org.eclipse.jdt.core ${osgiV}
+#fake_tycho_artifact org.eclipse.jdt.compiler.apt ${osgiV}
+
diff --git a/debian/get-eclipse.sh b/debian/get-eclipse.sh
new file mode 100644
index 0000000..7f96d18
--- /dev/null
+++ b/debian/get-eclipse.sh
@@ -0,0 +1,137 @@
+#!/bin/bash -e
+AGGREGATOR_PATH=git://git.eclipse.org/gitroot/platform/eclipse.platform.releng.aggregator.git
+TAG=R4_5_1
+
+rm -rf R4_platform-aggregator-$TAG
+rm -rf R4_platform-aggregator-$TAG.tar.xz
+
+# adding --depth 1 here may result in a quicker clone, but did not work for me
+git clone --depth 1 --branch $TAG  $AGGREGATOR_PATH R4_platform-aggregator-$TAG
+
+pushd R4_platform-aggregator-$TAG
+
+git submodule init
+git submodule update
+
+rm -rf bootstrap devutils streams scripts
+
+# Comment this line to get a shallow clone.
+find . -type d -name ".git" | xargs rm -rf
+
+# Delete pre-built binary artifacts except some test data that cannot be generated
+find . ! -path "*/JCL/*" \
+   -type f -name *.jar -delete
+find . -type f -name *.class -delete
+find . -type f -name *.so -delete
+find . -type f -name *.dll -delete
+find . -type f -name *.jnilib -delete
+find . -type f -name *.exe -delete
+# Remove pre-compiled native launchers
+rm -rf rt.equinox.binaries/org.eclipse.equinox.executable/{bin,contributed}/
+
+#now, we keep only bundles required by Tycho
+BUNDLES="../eclipse-bundles-for-tycho"
+mkdir -p $BUNDLES
+
+mv eclipse.platform.runtime/bundles/org.eclipse.core.runtime/* $BUNDLES
+mv eclipse.platform.runtime/bundles/org.eclipse.core.contenttype/src/* $BUNDLES
+mv eclipse.platform.runtime/bundles/org.eclipse.core.jobs/src/* $BUNDLES
+mv rt.equinox.p2/bundles/org.eclipse.equinox.p2.core/* $BUNDLES
+mv rt.equinox.p2/bundles/org.eclipse.equinox.p2.metadata/* $BUNDLES
+mv rt.equinox.p2/bundles/org.eclipse.equinox.p2.publisher/src/* $BUNDLES
+mv rt.equinox.p2/bundles/org.eclipse.equinox.p2.publisher.eclipse/* $BUNDLES
+mv rt.equinox.p2/bundles/org.eclipse.equinox.p2.repository/* $BUNDLES
+mv rt.equinox.p2/bundles/org.eclipse.equinox.p2.metadata.repository/* $BUNDLES
+mv rt.equinox.p2/bundles/org.eclipse.equinox.p2.artifact.repository/src/* $BUNDLES
+mv rt.equinox.p2/bundles/org.eclipse.equinox.p2.jarprocessor/src/* $BUNDLES
+mv rt.equinox.p2/bundles/org.eclipse.equinox.simpleconfigurator/src/* $BUNDLES
+mv rt.equinox.p2/bundles/org.eclipse.equinox.simpleconfigurator.manipulator/* $BUNDLES
+mv rt.equinox.p2/bundles/org.eclipse.equinox.frameworkadmin/src/* $BUNDLES
+mv rt.equinox.p2/bundles/org.eclipse.equinox.frameworkadmin.equinox/src/* $BUNDLES
+mv rt.equinox.framework/bundles/org.eclipse.osgi.util/src/* $BUNDLES
+mv rt.equinox.framework/bundles/org.eclipse.osgi/container/src/* $BUNDLES
+mv rt.equinox.framework/bundles/org.eclipse.osgi/supplement/src/* $BUNDLES
+mv rt.equinox.bundles/bundles/org.eclipse.equinox.preferences/src/* $BUNDLES
+mv rt.equinox.bundles/bundles/org.eclipse.equinox.preferences/src/* $BUNDLES
+mv rt.equinox.bundles/bundles/org.eclipse.equinox.common/src/* $BUNDLES
+mv rt.equinox.bundles/bundles/org.eclipse.equinox.security/src/* $BUNDLES
+mv rt.equinox.bundles/bundles/org.eclipse.equinox.app/src/* $BUNDLES
+mv rt.equinox.bundles/bundles/org.eclipse.equinox.registry/src/* $BUNDLES
+
+mv rt.equinox.framework/bundles/org.eclipse.osgi.compatibility.state/src/* $BUNDLES
+mv rt.equinox.framework/bundles/org.eclipse.osgi/felix/src/* $BUNDLES
+
+mv rt.equinox.p2/bundles/org.eclipse.equinox.p2.repository.tools/* $BUNDLES
+mv rt.equinox.framework/bundles/org.eclipse.osgi/osgi/src/* $BUNDLES
+mv rt.equinox.bundles/bundles/org.eclipse.equinox.app/osgi/* $BUNDLES
+mv rt.equinox.framework/bundles/org.eclipse.osgi.services/src/* $BUNDLES
+mv rt.equinox.p2/bundles/org.eclipse.equinox.p2.director/src/* $BUNDLES
+mv rt.equinox.p2/bundles/org.eclipse.equinox.p2.engine/* $BUNDLES
+mv rt.equinox.p2/bundles/org.eclipse.equinox.p2.jarprocessor/src_ant/* $BUNDLES
+
+#$MAVEN_BIN compile              #first 1546 files 26sec
+
+#need SteppedTimeoutLexicoHelper from sat4j 2.3.4
+
+mv rt.equinox.p2/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/* $BUNDLES
+mv rt.equinox.p2/bundles/org.eclipse.equinox.p2.garbagecollector/src/* $BUNDLES
+mv rt.equinox.p2/bundles/org.eclipse.equinox.p2.updatesite/src/* $BUNDLES
+mv rt.equinox.p2/bundles/org.eclipse.equinox.p2.director.app/src/* $BUNDLES
+mv eclipse.platform.team/bundles/org.eclipse.core.net/src/* $BUNDLES
+
+#$MAVEN_BIN compile             #here 1663 files 28sec
+
+mv eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse\ SWT/common/* $BUNDLES
+mv eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse\ SWT/cairo/* $BUNDLES
+mv eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse\ SWT/gtk/* $BUNDLES
+mv eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse\ SWT/emulated/taskbar/* $BUNDLES
+mv eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse\ SWT/emulated/bidi/* $BUNDLES
+mv eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse\ SWT/emulated/coolbar/* $BUNDLES
+mv eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse\ SWT/common_j2se/* $BUNDLES
+mv eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse\ SWT\ Custom\ Widgets/common/* $BUNDLES
+mv eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse\ SWT\ Printing/common/* $BUNDLES
+mv eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse\ SWT\ Printing/gtk/* $BUNDLES
+mv eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse\ SWT\ Drag\ and\ Drop/common/* $BUNDLES
+mv eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse\ SWT\ Drag\ and\ Drop/gtk/* $BUNDLES
+mv eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse\ SWT\ PI/common/* $BUNDLES
+mv eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse\ SWT\ PI/common_j2se/* $BUNDLES
+mv eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse\ SWT\ PI/cairo/* $BUNDLES
+mv eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse\ SWT\ PI/gtk/* $BUNDLES
+mv eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse\ SWT\ Accessibility/common/* $BUNDLES
+mv eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse\ SWT\ Accessibility/gtk/* $BUNDLES
+mv eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse\ SWT\ Browser/common/* $BUNDLES
+mv eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse\ SWT\ Browser/gtk/* $BUNDLES
+mv eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse\ SWT\ Mozilla/common/* $BUNDLES
+mv eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse\ SWT\ Mozilla/gtk/* $BUNDLES
+mv eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse\ SWT\ WebKit/gtk/* $BUNDLES
+mv eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse\ SWT\ Program/common/* $BUNDLES
+mv eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse\ SWT\ Program/gtk/* $BUNDLES
+mv eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse\ SWT\ Program/gnome/* $BUNDLES
+mv eclipse.platform.swt/bundles/org.eclipse.swt/Eclipse\ SWT\ Program/cde/* $BUNDLES
+
+#$MAVEN_BIN compile             #here 2226 files 35sec
+
+mv eclipse.jdt.core/org.eclipse.jdt.core/compiler/* $BUNDLES
+mv eclipse.jdt.core/org.eclipse.jdt.core/batch/* $BUNDLES
+mv eclipse.jdt.core/org.eclipse.jdt.core/model/* $BUNDLES
+mv eclipse.jdt.core/org.eclipse.jdt.core/codeassist/* $BUNDLES
+mv eclipse.jdt.core/org.eclipse.jdt.core/search/* $BUNDLES
+mv eclipse.jdt.core/org.eclipse.jdt.core/dom/* $BUNDLES
+mv eclipse.jdt.core/org.eclipse.jdt.core/formatter/* $BUNDLES
+mv eclipse.jdt.core/org.eclipse.jdt.core/eval/* $BUNDLES
+mv eclipse.platform.text/org.eclipse.text/src/* $BUNDLES
+mv eclipse.platform.text/org.eclipse.text/projection/* $BUNDLES
+mv eclipse.platform.text/org.eclipse.jface.text/src/* $BUNDLES
+mv eclipse.platform.text/org.eclipse.jface.text/projection/* $BUNDLES
+mv eclipse.platform.ui/bundles/org.eclipse.core.commands/* $BUNDLES
+mv eclipse.platform.ui/bundles/org.eclipse.jface/src/* $BUNDLES
+mv eclipse.platform.runtime/bundles/org.eclipse.core.expressions/src/* $BUNDLES
+mv rt.equinox.bundles/bundles/org.eclipse.equinox.bidi/src/* $BUNDLES
+mv eclipse.platform.resources/bundles/org.eclipse.core.resources/src/* $BUNDLES
+mv eclipse.platform.resources/bundles/org.eclipse.core.filesystem/src/* $BUNDLES
+
+popd
+
+echo "FIXME: here I would delete $(pwd)/R4_platform-aggregator-$TAG" 
+#rm -rf R4_platform-aggregator-$TAG
+
diff --git a/debian/info b/debian/info
new file mode 100644
index 0000000..e69de29
diff --git a/debian/libtycho-java.poms b/debian/libtycho-java.poms
new file mode 100644
index 0000000..6aa418b
--- /dev/null
+++ b/debian/libtycho-java.poms
@@ -0,0 +1,93 @@
+# List of POM files for the package
+# Format of this file is:
+# <path to pom file> [option]*
+# where option can be:
+#   --ignore: ignore this POM and its artifact if any
+#   --ignore-pom: don't install the POM. To use on POM files that are created
+#     temporarily for certain artifacts such as Javadoc jars. [mh_install, mh_installpoms]
+#   --no-parent: remove the <parent> tag from the POM
+#   --package=<package>: an alternative package to use when installing this POM
+#      and its artifact
+#   --has-package-version: to indicate that the original version of the POM is the same as the upstream part
+#      of the version for the package.
+#   --keep-elements=<elem1,elem2>: a list of XML elements to keep in the POM
+#      during a clean operation with mh_cleanpom or mh_installpom
+#   --artifact=<path>: path to the build artifact associated with this POM,
+#      it will be installed when using the command mh_install. [mh_install]
+#   --java-lib: install the jar into /usr/share/java to comply with Debian
+#      packaging guidelines
+#   --usj-name=<name>: name to use when installing the library in /usr/share/java
+#   --usj-version=<version>: version to use when installing the library in /usr/share/java
+#   --no-usj-versionless: don't install the versionless link in /usr/share/java
+#   --dest-jar=<path>: the destination for the real jar.
+#     It will be installed with mh_install. [mh_install]
+#   --classifier=<classifier>: Optional, the classifier for the jar. Empty by default.
+#   --site-xml=<location>: Optional, the location for site.xml if it needs to be installed.
+#     Empty by default. [mh_install]
+#
+
+pom.xml --has-package-version
+
+org.eclipse.osgi/pom.xml --has-package-version --usj-name=tycho-org.eclipse.osgi.jar
+org.eclipse.jdt.core/pom.xml --has-package-version --usj-name=tycho-org.eclipse.jdt.core.jar
+org.eclipse.osgi.compatibility.state/pom.xml --has-package-version --java-lib --usj-name=tycho-org.eclipse.osgi.compatibility.state.jar
+org.eclipse.jdt.compiler.apt/pom.xml --has-package-version --java-lib --usj-name=tycho-org.eclipse.jdt.compiler.apt.jar
+
+tycho-bundles/pom.xml --has-package-version
+tycho-bundles/tycho-bundles-target/pom.xml --has-package-version --ignore
+tycho-bundles/tycho-standalone-p2-director/pom.xml --has-package-version --ignore
+tycho-bundles/org.eclipse.tycho.embedder.shared/pom.xml --has-package-version --java-lib
+tycho-bundles/org.eclipse.tycho.core.shared/pom.xml --has-package-version --java-lib
+tycho-bundles/org.eclipse.tycho.p2.resolver.shared/pom.xml --has-package-version --java-lib
+tycho-bundles/org.eclipse.tycho.p2.tools.shared/pom.xml --has-package-version --java-lib
+tycho-bundles/org.eclipse.tycho.p2.maven.repository/pom.xml --has-package-version --java-lib
+tycho-bundles/org.eclipse.tycho.p2.resolver.impl/pom.xml --has-package-version --java-lib
+tycho-bundles/org.eclipse.tycho.p2.tools.impl/pom.xml --has-package-version --java-lib
+
+tycho-bundles/org.eclipse.tycho.noopsecurity/pom.xml --has-package-version --ignore
+tycho-bundles/org.eclipse.tycho.core.shared.tests/pom.xml --has-package-version --ignore
+tycho-bundles/org.eclipse.tycho.p2.resolver.impl.test/pom.xml --has-package-version --ignore
+tycho-bundles/org.eclipse.tycho.p2.maven.repository.tests/pom.xml --has-package-version --ignore
+tycho-bundles/org.eclipse.tycho.p2.tools.tests/pom.xml --has-package-version --ignore
+tycho-bundles/org.eclipse.tycho.test.utils/pom.xml --has-package-version --ignore
+
+tycho-bundles/tycho-bundles-external/pom.xml --has-package-version
+fedoraproject-p2/pom.xml --has-package-version
+fedoraproject-p2/org.fedoraproject.p2/pom.xml
+fedoraproject-p2/xmvn-p2-installer-plugin/pom.xml --ignore
+fedoraproject-p2/org.fedoraproject.p2.tests/pom.xml --ignore
+
+tycho-embedder-api/pom.xml --has-package-version --java-lib
+tycho-metadata-model/pom.xml --has-package-version --java-lib
+sisu-equinox/pom.xml --has-package-version
+sisu-equinox/sisu-equinox-api/pom.xml --has-package-version --java-lib
+sisu-equinox/sisu-equinox-embedder/pom.xml --has-package-version --java-lib
+tycho-core/pom.xml --has-package-version --java-lib
+tycho-packaging-plugin/pom.xml --has-package-version --java-lib
+tycho-p2/pom.xml --has-package-version
+tycho-p2/tycho-p2-facade/pom.xml --has-package-version --java-lib
+tycho-maven-plugin/pom.xml --has-package-version --java-lib
+tycho-p2/tycho-p2-repository-plugin/pom.xml --has-package-version --java-lib
+tycho-p2/tycho-p2-publisher-plugin/pom.xml --has-package-version --java-lib
+target-platform-configuration/pom.xml --has-package-version --java-lib
+tycho-artifactcomparator/pom.xml --has-package-version --java-lib
+sisu-equinox/sisu-equinox-launching/pom.xml --has-package-version --java-lib
+tycho-p2/tycho-p2-plugin/pom.xml --has-package-version --java-lib
+tycho-compiler-jdt/pom.xml --has-package-version --java-lib
+tycho-compiler-plugin/pom.xml --has-package-version --java-lib
+
+tycho-testing-harness/pom.xml --has-package-version --ignore
+tycho-source-plugin/pom.xml --has-package-version --ignore
+tycho-pomgenerator-plugin/pom.xml --has-package-version --ignore
+tycho-surefire/pom.xml --has-package-version --ignore
+tycho-surefire/tycho-surefire-plugin/pom.xml --has-package-version --ignore
+tycho-surefire/org.eclipse.tycho.surefire.osgibooter/pom.xml --has-package-version --ignore
+tycho-surefire/org.eclipse.tycho.surefire.junit/pom.xml --has-package-version --ignore
+tycho-surefire/org.eclipse.tycho.surefire.junit4/pom.xml --has-package-version --ignore
+tycho-surefire/org.eclipse.tycho.surefire.junit47/pom.xml --has-package-version --ignore
+tycho-release/pom.xml --has-package-version --ignore
+tycho-release/tycho-versions-plugin/pom.xml --has-package-version --ignore
+tycho-p2/tycho-p2-director-plugin/pom.xml --has-package-version --ignore
+tycho-its/pom.xml --has-package-version --ignore
+tycho-releng/pom.xml --has-package-version --ignore
+
diff --git a/debian/maven.cleanIgnoreRules b/debian/maven.cleanIgnoreRules
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/debian/maven.cleanIgnoreRules
@@ -0,0 +1 @@
+
diff --git a/debian/maven.ignoreRules b/debian/maven.ignoreRules
new file mode 100644
index 0000000..bb7ec37
--- /dev/null
+++ b/debian/maven.ignoreRules
@@ -0,0 +1,25 @@
+# Format of this file is:
+# [group] [artifact] [type] [version] [classifier] [scope]
+
+org.apache.commons commons-compress * * * *
+org.apache.maven apache-maven * * * *
+org.apache.maven.plugins maven-enforcer-plugin * * * *
+org.apache.maven.plugins maven-source-plugin * * * *
+
+org.eclipse.tycho org.eclipse.tycho.surefire.junit47 * * * *
+org.eclipse.tycho org.eclipse.tycho.surefire.junit4 * * * *
+org.eclipse.tycho org.eclipse.tycho.surefire.junit * * * *
+org.eclipse.tycho org.eclipse.tycho.surefire.osgibooter * * * *
+org.eclipse.tycho tycho-packaging-plugin * * * *
+org.eclipse.tycho tycho-maven-plugin * * * *
+org.eclipse.tycho tycho-standalone-p2-director * * * *
+org.eclipse.tycho.extras tycho-p2-extras-plugin * * * *
+org.sonatype.plexus plexus-jetty-testsuite * * * *
+org.sonatype.plugins maven-properties-plugin * * * *
+
+org.fedoraproject.p2 xmvn-p2-installer-plugin * * * *
+
+#THESE ARE TO SKIP TESTS
+org.eclipse.tycho tycho-testing-harness * * * *
+org.fedoraproject.p2 org.fedoraproject.p2.tests * * * *
+* * * * * test
diff --git a/debian/maven.publishedRules b/debian/maven.publishedRules
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/debian/maven.publishedRules
@@ -0,0 +1 @@
+
diff --git a/debian/maven.rules b/debian/maven.rules
new file mode 100644
index 0000000..ded8ce2
--- /dev/null
+++ b/debian/maven.rules
@@ -0,0 +1,79 @@
+# Format of this file is:
+# [group] [artifact] [type] [version] [classifier] [scope]
+
+#FIXME this is for eclipse-bootstrap
+junit junit jar s/.*/4.x/ * *
+org.apache.bcel bcel jar s/.*/6.0/ * *
+javax.servlet.jsp javax.servlet.jsp-api jar * * *
+org.ow2.sat4j org.ow2.sat4j.core jar * * *
+org.ow2.sat4j org.ow2.sat4j.pb jar * * *
+org.ow2.sat4j org.ow2.sat4j.maxsat jar * * *
+
+s/bcel/org.apache.bcel/ bcel jar s/.*/6.0/ * *
+org.eclipse.tycho org.eclipse.osgi.compatibility.state jar * * *
+org.eclipse.tycho org.eclipse.osgi jar * * *
+org.eclipse.tycho org.eclipse.jdt.compiler.apt jar * * *
+org.eclipse.tycho org.eclipse.jdt.core jar * * *
+org.apache.commons commons-lang3 jar s/3\..*/3.x/ * *
+org.apache.maven maven-compat jar s/.*/3.x/ * *
+org.apache.maven maven-core jar s/.*/3.x/ * *
+org.apache.maven maven-model jar s/.*/3.x/ * *
+org.apache.maven maven-plugin-api jar s/.*/3.x/ * *
+org.apache.maven maven-settings jar s/.*/3.x/ * *
+org.apache.maven.shared maven-verifier jar s/.*/debian/ * *
+org.codehaus.plexus plexus-compiler-api jar s/.*/2.x/ * *
+org.codehaus.plexus plexus-compiler-csharp jar s/.*/2.x/ * *
+org.codehaus.plexus plexus-compiler-eclipse jar s/.*/2.x/ * *
+org.codehaus.plexus plexus-compiler-javac jar s/.*/2.x/ * *
+org.codehaus.plexus plexus-compiler-jikes jar s/.*/2.x/ * *
+org.codehaus.plexus plexus-compiler-manager jar s/.*/2.x/ * *
+org.codehaus.plexus plexus-compiler-test jar s/.*/2.x/ * *
+org.codehaus.plexus plexus-component-annotations jar s/.*/1.5.5/ * *
+org.codehaus.plexus plexus-component-metadata maven-plugin * * *
+org.codehaus.plexus plexus-container-default jar s/.*/1.5.5/ * *
+org.codehaus.plexus plexus-utils jar s/.*/2.x/ * *
+org.eclipse.tycho org.eclipse.tycho.core.shared eclipse-plugin * * *
+org.eclipse.tycho org.eclipse.tycho.core.shared.tests eclipse-test-plugin * * *
+org.eclipse.tycho org.eclipse.tycho.embedder.shared eclipse-plugin * * *
+org.eclipse.tycho org.eclipse.tycho.noopsecurity eclipse-plugin * * *
+org.eclipse.tycho org.eclipse.tycho.p2.maven.repository eclipse-plugin * * *
+org.eclipse.tycho org.eclipse.tycho.p2.maven.repository.tests eclipse-test-plugin * * *
+org.eclipse.tycho org.eclipse.tycho.p2.resolver.impl eclipse-plugin * * *
+org.eclipse.tycho org.eclipse.tycho.p2.resolver.impl.test eclipse-test-plugin * * *
+org.eclipse.tycho org.eclipse.tycho.p2.resolver.shared eclipse-plugin * * *
+org.eclipse.tycho org.eclipse.tycho.p2.tools.impl eclipse-plugin * * *
+org.eclipse.tycho org.eclipse.tycho.p2.tools.shared eclipse-plugin * * *
+org.eclipse.tycho org.eclipse.tycho.p2.tools.tests eclipse-test-plugin * * *
+org.eclipse.tycho org.eclipse.tycho.surefire.junit47 eclipse-plugin * * *
+org.eclipse.tycho org.eclipse.tycho.surefire.junit4 eclipse-plugin * * *
+org.eclipse.tycho org.eclipse.tycho.surefire.junit eclipse-plugin * * *
+org.eclipse.tycho org.eclipse.tycho.surefire.osgibooter eclipse-plugin * * *
+org.eclipse.tycho org.eclipse.tycho.test.utils eclipse-plugin * * *
+org.eclipse.tycho sisu-equinox-api jar * * *
+org.eclipse.tycho sisu-equinox-embedder jar * * *
+org.eclipse.tycho sisu-equinox-launching jar * * *
+org.eclipse.tycho sisu-equinox pom * * *
+org.eclipse.tycho tycho-artifactcomparator jar * * *
+org.eclipse.tycho tycho-bundles-external eclipse-application * * *
+org.eclipse.tycho tycho-bundles-target eclipse-target-definition * * *
+org.eclipse.tycho tycho-bundles pom * * *
+org.eclipse.tycho tycho-compiler-jdt jar * * *
+org.eclipse.tycho tycho-core jar * * *
+org.eclipse.tycho tycho-embedder-api jar * * *
+org.eclipse.tycho tycho-its jar * * *
+org.eclipse.tycho tycho-metadata-model jar * * *
+org.eclipse.tycho tycho-p2-facade jar * * *
+org.eclipse.tycho tycho-p2 pom * * *
+org.eclipse.tycho tycho-release pom * * *
+org.eclipse.tycho tycho-releng pom * * *
+org.eclipse.tycho tycho-standalone-p2-director eclipse-repository * * *
+org.eclipse.tycho tycho-surefire pom * * *
+org.eclipse.tycho tycho-testing-harness jar * * *
+org.eclipse.tycho tycho pom * * *
+org.sonatype.plexus plexus-cipher jar s/.*/debian/ * *
+s/org.apache.maven.shared/org.apache.maven.plugin-testing/ maven-plugin-testing-harness * s/.*/debian/ * *
+s/org.apache.maven.shared/org.apache.maven.plugin-testing/ maven-plugin-testing-tools * s/.*/debian/ * *
+s/org.apache.maven.shared/org.apache.maven.plugin-testing/ maven-plugin-testing * s/.*/debian/ * *
+s/org.apache.maven.shared/org.apache.maven.plugin-testing/ maven-test-tools * s/.*/debian/ * *
+org.ow2.asm * * s/.*/debian/ * *
+
diff --git a/debian/org.eclipse.jdt.compiler.apt.orig.pom.xml b/debian/org.eclipse.jdt.compiler.apt.orig.pom.xml
new file mode 100644
index 0000000..25b1a33
--- /dev/null
+++ b/debian/org.eclipse.jdt.compiler.apt.orig.pom.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.eclipse.tycho</groupId>
+  <artifactId>org.eclipse.jdt.compiler.apt</artifactId>
+  <version>1.2.0.v20150514-0146</version>
+
+  <name>Tycho org.eclipse.jdt.compiler.apt dependency (Incubation)</name>
+  <description>This is org.eclipse.jdt.compiler.apt jar used by Tycho</description>
+  <url>http://www.eclipse.org/tycho/</url>
+
+  <licenses>
+    <license>
+      <name>Eclipse Public License</name>
+      <url>http://www.eclipse.org/legal/epl-v10.html</url>
+      <distribution>repo</distribution>
+    </license>
+  </licenses>
+
+  <scm>
+    <url>http://git.eclipse.org/c/tycho/org.eclipse.tycho.git</url>
+  </scm>
+
+  <developers>
+    <developer>
+      <id>tycho-dev at eclipse.org</id>
+      <name>Tycho Development Team</name>
+    </developer>
+  </developers>
+</project>
diff --git a/debian/org.eclipse.jdt.compiler.apt.pom.xml b/debian/org.eclipse.jdt.compiler.apt.pom.xml
new file mode 100644
index 0000000..804e1f7
--- /dev/null
+++ b/debian/org.eclipse.jdt.compiler.apt.pom.xml
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+  <modelVersion>4.0.0</modelVersion>
+
+  	<parent>
+		<groupId>org.eclipse.tycho</groupId>
+		<artifactId>tycho</artifactId>
+		<version>0.25.0</version>
+	</parent>
+
+  <artifactId>org.eclipse.jdt.compiler.apt</artifactId>
+  <version>1.2.0.v20150514-0146</version>
+
+  <name>Eclipse Bootstrap: JDT compiler apt</name>
+  <description>This is org.eclipse.jdt.compiler.apt jar used by Tycho</description>
+  <url>http://www.eclipse.org/tycho/</url>
+
+  <licenses>
+    <license>
+      <name>Eclipse Public License</name>
+      <url>http://www.eclipse.org/legal/epl-v10.html</url>
+      <distribution>repo</distribution>
+    </license>
+  </licenses>
+
+  <scm>
+    <url>http://git.eclipse.org/c/tycho/org.eclipse.tycho.git</url>
+  </scm>
+
+  <developers>
+    <developer>
+      <id>tycho-dev at eclipse.org</id>
+      <name>Tycho Development Team</name>
+    </developer>
+  </developers>
+
+        <dependencies>
+        		<dependency>
+                              <groupId>org.eclipse.tycho</groupId>
+                              <artifactId>org.eclipse.jdt.core</artifactId>
+                              <version>3.11.1.v20150902-1521</version>
+			</dependency>
+        </dependencies>
+	<build>
+	<plugins>
+        	<plugin>
+            		<artifactId>maven-compiler-plugin</artifactId>
+			<version>3.2</version>
+            		<configuration>
+                		<source>1.8</source>
+                		<target>1.8</target>
+            		</configuration>
+        	</plugin>
+    	</plugins>
+        <resources>
+                <resource>
+                        <directory>src/main/java</directory>
+                        <excludes>
+                                <exclude>**/*.java</exclude>
+                        </excludes>
+                </resource>
+        </resources>
+	</build>
+
+</project>
diff --git a/debian/org.eclipse.jdt.core.orig.pom.xml b/debian/org.eclipse.jdt.core.orig.pom.xml
new file mode 100644
index 0000000..d590a8c
--- /dev/null
+++ b/debian/org.eclipse.jdt.core.orig.pom.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.eclipse.tycho</groupId>
+  <artifactId>org.eclipse.jdt.core</artifactId>
+  <version>3.11.1.v20150902-1521</version>
+
+  <name>Tycho org.eclipse.jdt.core dependency (Incubation)</name>
+  <description>This is org.eclipse.jdt.core jar used by Tycho</description>
+  <url>http://www.eclipse.org/tycho/</url>
+
+  <licenses>
+    <license>
+      <name>Eclipse Public License</name>
+      <url>http://www.eclipse.org/legal/epl-v10.html</url>
+      <distribution>repo</distribution>
+    </license>
+  </licenses>
+
+  <scm>
+    <url>http://git.eclipse.org/c/tycho/org.eclipse.tycho.git</url>
+  </scm>
+
+  <developers>
+    <developer>
+      <id>tycho-dev at eclipse.org</id>
+      <name>Tycho Development Team</name>
+    </developer>
+  </developers>
+</project>
diff --git a/debian/org.eclipse.jdt.core.pom.xml b/debian/org.eclipse.jdt.core.pom.xml
new file mode 100644
index 0000000..e9acd31
--- /dev/null
+++ b/debian/org.eclipse.jdt.core.pom.xml
@@ -0,0 +1,164 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+	<modelVersion>4.0.0</modelVersion>
+
+	<parent>
+		<groupId>org.eclipse.tycho</groupId>
+		<artifactId>tycho</artifactId>
+		<version>0.25.0</version>
+	</parent>
+	<artifactId>org.eclipse.jdt.core</artifactId>
+	<version>3.11.1.v20150902-1521</version>
+
+	<name>Eclipse Bootstrap: JDT core</name>
+	<description>Eclipse bundles required to build Tycho. Tycho is not required to build these.</description>
+	
+        <dependencies>
+			<dependency>
+				<groupId>org.codehaus.plexus</groupId>
+				<artifactId>plexus-io</artifactId>
+				<version>1.0-alpha-5</version> <!-- was 2.6 -->
+			</dependency>
+			<dependency>
+				<groupId>org.codehaus.plexus</groupId>
+				<artifactId>plexus-archiver</artifactId>
+				<version>2.2</version> <!-- was 2.10.1 -->
+				<exclusions>
+					<exclusion>
+						<groupId>org.codehaus.plexus</groupId>
+						<artifactId>plexus-container-default</artifactId>
+					</exclusion>
+				</exclusions>
+			</dependency>
+			<dependency>
+				<groupId>org.codehaus.plexus</groupId>
+				<artifactId>plexus-compiler-api</artifactId>
+				<version>2.x</version> <!--was 2.2-->
+			</dependency>
+			<dependency>
+				<groupId>org.codehaus.plexus</groupId>
+				<artifactId>plexus-compiler-manager</artifactId>
+				<version>2.x</version> <!-- was 2.2 -->
+			</dependency>
+			<dependency>
+				<groupId>org.apache.commons</groupId>
+				<artifactId>commons-lang3</artifactId>
+				<version>3.x</version> <!-- was 3.1-->
+			</dependency>
+			<dependency>
+				<groupId>junit</groupId>
+				<artifactId>junit</artifactId>
+				<version>4.x</version> <!-- was 4.11 -->
+				<scope>test</scope>
+			</dependency>
+			<dependency>
+				<groupId>org.mockito</groupId>
+				<artifactId>mockito-core</artifactId>
+				<version>debian</version> <!-- was 1.8.4 -->
+				<scope>test</scope>
+			</dependency>
+			<dependency>
+				<groupId>org.hamcrest</groupId>
+				<artifactId>hamcrest-core</artifactId>
+				<version>1.3</version>
+				<scope>test</scope>
+			</dependency>
+			<dependency>
+				<groupId>de.pdark</groupId>
+				<artifactId>decentxml</artifactId>
+				<version>debian</version> <!-- was 1.3 -->
+			</dependency>
+			<dependency>
+				<!--groupId>bcel</groupId-->
+				<groupId>org.apache.bcel</groupId>
+				<artifactId>bcel</artifactId>
+				<version>5.x</version> <!-- was 5.1 -->
+			</dependency>
+
+<!--for following artifacts, versions are the ones available in Debian -->
+			<dependency>
+				<groupId>org.osgi</groupId>
+				<artifactId>org.osgi.annotation</artifactId>
+				<version>debian</version>
+			</dependency>
+			<dependency>
+				<groupId>org.w3c.css</groupId>
+				<artifactId>sac</artifactId>
+				<version>debian</version>
+			</dependency>
+			<dependency>
+				<groupId>javax.servlet.jsp</groupId>
+				<artifactId>javax.servlet.jsp-api</artifactId>
+				<version>2.3</version>
+			</dependency>
+			<dependency>
+				<groupId>com.ibm.icu</groupId>
+				<artifactId>icu4j</artifactId>
+				<version>debian</version>
+			</dependency>
+			<dependency>
+				<groupId>javax.inject</groupId>
+				<artifactId>javax.inject</artifactId>
+				<version>debian</version>
+			</dependency>
+			<dependency>
+				<groupId>org.apache.ant</groupId>
+				<artifactId>ant</artifactId>
+				<version>debian</version>
+			</dependency>
+			<dependency>
+				<groupId>org.tukaani</groupId>
+				<artifactId>xz</artifactId>
+				<version>debian</version>
+			</dependency>
+			<dependency>
+                              <groupId>org.ow2.sat4j</groupId>
+                              <artifactId>org.ow2.sat4j.core</artifactId>
+                              <version>2.3.5</version>
+			</dependency>
+			<dependency>
+                              <groupId>org.ow2.sat4j</groupId>
+                              <artifactId>org.ow2.sat4j.pb</artifactId>
+                              <version>2.3.5</version>
+			</dependency>
+			<dependency>
+                              <groupId>org.ow2.sat4j</groupId>
+                              <artifactId>org.ow2.sat4j.maxsat</artifactId>
+                              <version>2.3.5</version>
+			</dependency>
+        		<dependency>
+                              <groupId>org.eclipse.tycho</groupId>
+                              <artifactId>org.eclipse.osgi</artifactId>
+                              <version>3.10.101.v20150820-1432</version>
+			</dependency>
+        </dependencies>
+	<build>
+	<plugins>
+        	<plugin>
+            		<artifactId>maven-compiler-plugin</artifactId>
+			<version>3.2</version>
+            		<configuration>
+                		<source>1.8</source>
+                		<target>1.8</target>
+            			<!-- DONT WORK compilerArgs>
+            	  			<arg>-Xmaxerrs 10</arg>
+            			</compilerArgs-->
+            		</configuration>
+        	</plugin>
+    	</plugins>
+        <resources>
+                <resource>
+                        <directory>src/main/java</directory>
+                        <excludes>
+                                <exclude>**/*.java</exclude>
+                        </excludes>
+                </resource>
+        </resources>
+	</build>
+
+<properties>
+    <project.build.sourceEncoding>ISO-8859-1</project.build.sourceEncoding>
+</properties>
+
+</project>
diff --git a/debian/org.eclipse.osgi.compatibility.state.orig.pom.xml b/debian/org.eclipse.osgi.compatibility.state.orig.pom.xml
new file mode 100644
index 0000000..18ba7e5
--- /dev/null
+++ b/debian/org.eclipse.osgi.compatibility.state.orig.pom.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>org.eclipse.tycho</groupId>
+  <artifactId>org.eclipse.osgi.compatibility.state</artifactId>
+  <version>1.0.100.v20150402-1551</version>
+
+  <name>Tycho org.eclipse.osgi.compatibility.state dependency (Incubation)</name>
+  <description>This is org.eclipse.osgi.compatibility.state jar used by Tycho</description>
+  <url>http://www.eclipse.org/tycho/</url>
+
+  <licenses>
+    <license>
+      <name>Eclipse Public License</name>
+      <url>http://www.eclipse.org/legal/epl-v10.html</url>
+      <distribution>repo</distribution>
+    </license>
+  </licenses>
+
+  <scm>
+    <url>http://git.eclipse.org/c/tycho/org.eclipse.tycho.git</url>
+  </scm>
+
+  <developers>
+    <developer>
+      <id>tycho-dev at eclipse.org</id>
+      <name>Tycho Development Team</name>
+    </developer>
+  </developers>
+</project>
diff --git a/debian/org.eclipse.osgi.compatibility.state.pom.xml b/debian/org.eclipse.osgi.compatibility.state.pom.xml
new file mode 100644
index 0000000..8f99416
--- /dev/null
+++ b/debian/org.eclipse.osgi.compatibility.state.pom.xml
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+  <modelVersion>4.0.0</modelVersion>
+
+  	<parent>
+		<groupId>org.eclipse.tycho</groupId>
+		<artifactId>tycho</artifactId>
+		<version>0.25.0</version>
+	</parent>
+
+  <artifactId>org.eclipse.osgi.compatibility.state</artifactId>
+  <version>1.0.100.v20150402-1551</version>
+
+  <name>Eclipse Bootstrap: OSGI compatibility state</name>
+  <description>This is org.eclipse.osgi.compatibility.state jar used by Tycho</description>
+  <url>http://www.eclipse.org/tycho/</url>
+
+  <licenses>
+    <license>
+      <name>Eclipse Public License</name>
+      <url>http://www.eclipse.org/legal/epl-v10.html</url>
+      <distribution>repo</distribution>
+    </license>
+  </licenses>
+
+  <scm>
+    <url>http://git.eclipse.org/c/tycho/org.eclipse.tycho.git</url>
+  </scm>
+
+  <developers>
+    <developer>
+      <id>tycho-dev at eclipse.org</id>
+      <name>Tycho Development Team</name>
+    </developer>
+  </developers>
+
+        <dependencies>
+        		<dependency>
+                              <groupId>org.eclipse.tycho</groupId>
+                              <artifactId>org.eclipse.osgi</artifactId>
+                              <version>3.10.101.v20150820-1432</version>
+			</dependency>
+        </dependencies>
+	<build>
+	<plugins>
+        	<plugin>
+            		<artifactId>maven-compiler-plugin</artifactId>
+			<version>3.2</version>
+            		<configuration>
+                		<source>1.8</source>
+                		<target>1.8</target>
+            		</configuration>
+        	</plugin>
+    	</plugins>
+        <resources>
+                <resource>
+                        <directory>src/main/java</directory>
+                        <excludes>
+                                <exclude>**/*.java</exclude>
+                        </excludes>
+                </resource>
+        </resources>
+	</build>
+
+</project>
diff --git a/debian/org.eclipse.osgi.orig.pom.xml b/debian/org.eclipse.osgi.orig.pom.xml
new file mode 100644
index 0000000..4d98d0d
--- /dev/null
+++ b/debian/org.eclipse.osgi.orig.pom.xml
@@ -0,0 +1,27 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+<modelVersion>4.0.0</modelVersion>
+<groupId>org.eclipse.tycho</groupId>
+<artifactId>org.eclipse.osgi</artifactId>
+<version>3.10.100.v20150529-1857</version>
+<name>Tycho org.eclipse.osgi dependency (Incubation)</name>
+<description>This is org.eclipse.osgi jar used by Tycho</description>
+<url>http://www.eclipse.org/tycho/</url>
+<licenses>
+<license>
+<name>Eclipse Public License</name>
+<url>http://www.eclipse.org/legal/epl-v10.html</url>
+<distribution>repo</distribution>
+</license>
+</licenses>
+<scm>
+<url>
+http://git.eclipse.org/c/tycho/org.eclipse.tycho.git
+</url>
+</scm>
+<developers>
+<developer>
+<id>tycho-dev at eclipse.org</id>
+<name>Tycho Development Team</name>
+</developer>
+</developers>
+</project>
diff --git a/debian/org.eclipse.osgi.pom.xml b/debian/org.eclipse.osgi.pom.xml
new file mode 100644
index 0000000..44c2730
--- /dev/null
+++ b/debian/org.eclipse.osgi.pom.xml
@@ -0,0 +1,159 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+	<modelVersion>4.0.0</modelVersion>
+
+	<parent>
+		<groupId>org.eclipse.tycho</groupId>
+		<artifactId>tycho</artifactId>
+		<version>0.25.0</version>
+	</parent>
+	<artifactId>org.eclipse.osgi</artifactId>
+	<version>3.10.101.v20150820-1432</version>
+
+	<name>Eclipse Bootstrap: OSGI</name>
+	<description>Eclipse bundles required to build Tycho. Tycho is not required to build these.</description>
+	
+        <dependencies>
+			<dependency>
+				<groupId>org.codehaus.plexus</groupId>
+				<artifactId>plexus-io</artifactId>
+				<version>1.0-alpha-5</version> <!-- was 2.6 -->
+			</dependency>
+			<dependency>
+				<groupId>org.codehaus.plexus</groupId>
+				<artifactId>plexus-archiver</artifactId>
+				<version>2.2</version> <!-- was 2.10.1 -->
+				<exclusions>
+					<exclusion>
+						<groupId>org.codehaus.plexus</groupId>
+						<artifactId>plexus-container-default</artifactId>
+					</exclusion>
+				</exclusions>
+			</dependency>
+			<dependency>
+				<groupId>org.codehaus.plexus</groupId>
+				<artifactId>plexus-compiler-api</artifactId>
+				<version>2.x</version> <!--was 2.2-->
+			</dependency>
+			<dependency>
+				<groupId>org.codehaus.plexus</groupId>
+				<artifactId>plexus-compiler-manager</artifactId>
+				<version>2.x</version> <!-- was 2.2 -->
+			</dependency>
+			<dependency>
+				<groupId>org.apache.commons</groupId>
+				<artifactId>commons-lang3</artifactId>
+				<version>3.x</version> <!-- was 3.1-->
+			</dependency>
+			<dependency>
+				<groupId>junit</groupId>
+				<artifactId>junit</artifactId>
+				<version>4.x</version> <!-- was 4.11 -->
+				<scope>test</scope>
+			</dependency>
+			<dependency>
+				<groupId>org.mockito</groupId>
+				<artifactId>mockito-core</artifactId>
+				<version>debian</version> <!-- was 1.8.4 -->
+				<scope>test</scope>
+			</dependency>
+			<dependency>
+				<groupId>org.hamcrest</groupId>
+				<artifactId>hamcrest-core</artifactId>
+				<version>1.3</version>
+				<scope>test</scope>
+			</dependency>
+			<dependency>
+				<groupId>de.pdark</groupId>
+				<artifactId>decentxml</artifactId>
+				<version>debian</version> <!-- was 1.3 -->
+			</dependency>
+			<dependency>
+				<!--groupId>bcel</groupId-->
+				<groupId>org.apache.bcel</groupId>
+				<artifactId>bcel</artifactId>
+				<version>5.x</version> <!-- was 5.1 -->
+			</dependency>
+
+<!--for following artifacts, versions are the ones available in Debian -->
+			<dependency>
+				<groupId>org.osgi</groupId>
+				<artifactId>org.osgi.annotation</artifactId>
+				<version>debian</version>
+			</dependency>
+			<dependency>
+				<groupId>org.w3c.css</groupId>
+				<artifactId>sac</artifactId>
+				<version>debian</version>
+			</dependency>
+			<dependency>
+				<groupId>javax.servlet.jsp</groupId>
+				<artifactId>javax.servlet.jsp-api</artifactId>
+				<version>2.3</version>
+			</dependency>
+			<dependency>
+				<groupId>com.ibm.icu</groupId>
+				<artifactId>icu4j</artifactId>
+				<version>debian</version>
+			</dependency>
+			<dependency>
+				<groupId>javax.inject</groupId>
+				<artifactId>javax.inject</artifactId>
+				<version>debian</version>
+			</dependency>
+			<dependency>
+				<groupId>org.apache.ant</groupId>
+				<artifactId>ant</artifactId>
+				<version>debian</version>
+			</dependency>
+			<dependency>
+				<groupId>org.tukaani</groupId>
+				<artifactId>xz</artifactId>
+				<version>debian</version>
+			</dependency>
+			<dependency>
+                              <groupId>org.ow2.sat4j</groupId>
+                              <artifactId>org.ow2.sat4j.core</artifactId>
+                              <version>2.3.5</version>
+			</dependency>
+			<dependency>
+                              <groupId>org.ow2.sat4j</groupId>
+                              <artifactId>org.ow2.sat4j.pb</artifactId>
+                              <version>2.3.5</version>
+			</dependency>
+			<dependency>
+                              <groupId>org.ow2.sat4j</groupId>
+                              <artifactId>org.ow2.sat4j.maxsat</artifactId>
+                              <version>2.3.5</version>
+			</dependency>
+        </dependencies>
+	<build>
+	<plugins>
+        	<plugin>
+            		<artifactId>maven-compiler-plugin</artifactId>
+			<version>3.2</version>
+            		<configuration>
+                		<source>1.8</source>
+                		<target>1.8</target>
+            			<!-- DONT WORK compilerArgs>
+            	  			<arg>-Xmaxerrs 10</arg>
+            			</compilerArgs-->
+            		</configuration>
+        	</plugin>
+    	</plugins>
+        <resources>
+                <resource>
+                        <directory>src/main/java</directory>
+                        <excludes>
+                                <exclude>**/*.java</exclude>
+                        </excludes>
+                </resource>
+        </resources>
+	</build>
+
+<properties>
+    <project.build.sourceEncoding>ISO-8859-1</project.build.sourceEncoding>
+</properties>
+
+</project>
diff --git a/debian/patches/eclipse-bootstrap.patch b/debian/patches/eclipse-bootstrap.patch
new file mode 100644
index 0000000..2ae2758
--- /dev/null
+++ b/debian/patches/eclipse-bootstrap.patch
@@ -0,0 +1,15 @@
+This simulates the org.eclipse.tycho:org.eclipse.osgi & similar artifacts
+--- a/pom.xml
++++ b/pom.xml
+@@ -491,6 +491,11 @@
+ 	</build>
+ 
+ 	<modules>
++		<module>org.eclipse.osgi</module>
++		<module>org.eclipse.jdt.core</module>
++		<module>org.eclipse.osgi.compatibility.state</module>
++		<module>org.eclipse.jdt.compiler.apt</module>
++
+ 		<module>tycho-bundles</module>
+ 
+ 		<module>sisu-equinox</module>
diff --git a/debian/patches/fedora-project.patch b/debian/patches/fedora-project.patch
new file mode 100644
index 0000000..ca173fd
--- /dev/null
+++ b/debian/patches/fedora-project.patch
@@ -0,0 +1,100 @@
+I don't understand exactly what is this for.
+--- /dev/null
++++ b/tycho-maven-plugin/src/main/java/org/fedoraproject/EmptyMojo.java
+@@ -0,0 +1,19 @@
++package org.fedoraproject;
++
++import org.apache.maven.plugin.MojoExecutionException;
++import org.apache.maven.plugin.MojoFailureException;
++import org.apache.maven.plugin.AbstractMojo;
++
++/**
++ * Empty goal to fix
++ * @goal empty
++ * @phase clean
++ */
++public class EmptyMojo
++    extends AbstractMojo
++{
++    public void execute()
++        throws MojoExecutionException, MojoFailureException
++    {
++    }
++}
+--- a/pom.xml
++++ b/pom.xml
+@@ -496,6 +496,8 @@
+ 		<module>org.eclipse.osgi.compatibility.state</module>
+ 		<module>org.eclipse.jdt.compiler.apt</module>
+ 
++		<module>fedoraproject-p2</module>
++
+ 		<module>tycho-bundles</module>
+ 
+ 		<module>sisu-equinox</module>
+--- a/fedoraproject-p2/pom.xml
++++ b/fedoraproject-p2/pom.xml
+@@ -23,7 +23,7 @@
+   <name>Fedora Project p2 Parent</name>
+ 
+   <properties>
+-    <tycho-version>0.23.0</tycho-version>
++    <tycho-version>0.25.0</tycho-version>
+     <xmvn-version>2.5.0</xmvn-version>
+     <equinox-version>3.10.100.v20150521-1310</equinox-version>
+   </properties>
+--- a/fedoraproject-p2/org.fedoraproject.p2/pom.xml
++++ b/fedoraproject-p2/org.fedoraproject.p2/pom.xml
+@@ -23,8 +23,51 @@
+   </parent>
+ 
+   <artifactId>org.fedoraproject.p2</artifactId>
+-  <packaging>eclipse-plugin</packaging>
++  <!--packaging>eclipse-plugin</packaging-->
+ 
+   <name>Fedora Project p2 Integration Plugin</name>
+ 
++	<dependencies>
++		<dependency>
++			<groupId>org.eclipse.tycho</groupId>
++			<artifactId>org.eclipse.osgi</artifactId>
++			<version>3.10.101.v20150820-1432</version>
++		</dependency>
++		<dependency>
++			<groupId>org.slf4j</groupId>
++			<artifactId>slf4j-api</artifactId>
++			<version>debian</version>
++		</dependency>
++	</dependencies>
++	<build>
++		<sourceDirectory>src</sourceDirectory> <!-- instead of src/main/java -->
++		<plugins>
++			<plugin>
++				<artifactId>maven-compiler-plugin</artifactId>
++				<version>3.2</version>
++				<configuration>
++					<source>1.8</source>
++					<target>1.8</target>
++				</configuration>
++			</plugin>
++			<plugin>
++				<groupId>org.apache.maven.plugins</groupId>
++				<artifactId>maven-jar-plugin</artifactId>
++				<configuration>
++					<archive>
++						<manifestFile>META-INF/MANIFEST.MF</manifestFile>
++					</archive>
++				</configuration>
++			</plugin>
++		</plugins>
++		<resources>
++			<resource>
++				<directory>.</directory>
++				<includes>
++					<include>plugin.xml</include>
++					<include>OSGI-INF</include>
++				</includes>
++			</resource>
++		</resources>
++	</build>
+ </project>
diff --git a/debian/patches/fix-neon.patch b/debian/patches/fix-neon.patch
new file mode 100644
index 0000000..10a811a
--- /dev/null
+++ b/debian/patches/fix-neon.patch
@@ -0,0 +1,24 @@
+--- a/tycho-core/src/main/java/org/eclipse/tycho/core/locking/FileLockServiceImpl.java
++++ b/tycho-core/src/main/java/org/eclipse/tycho/core/locking/FileLockServiceImpl.java
+@@ -12,8 +12,11 @@
+ package org.eclipse.tycho.core.locking;
+ 
+ import java.io.File;
++import java.util.HashMap;
++import java.util.concurrent.atomic.AtomicBoolean;
+ 
+ import org.codehaus.plexus.component.annotations.Component;
++import org.eclipse.osgi.internal.framework.EquinoxConfiguration.ConfigValues;
+ import org.eclipse.osgi.internal.framework.EquinoxContainer;
+ import org.eclipse.osgi.internal.location.BasicLocation;
+ import org.eclipse.osgi.service.datalocation.Location;
+@@ -26,7 +29,8 @@
+     private Location anyLocation;
+ 
+     public FileLockServiceImpl() {
+-        anyLocation = new BasicLocation(null, null, false, null, new EquinoxContainer(null).getConfiguration());
++        anyLocation = new BasicLocation(null, null, false, null, new ConfigValues(new HashMap<String, String>()),
++                new EquinoxContainer(null), new AtomicBoolean(false));
+     }
+ 
+     /*
diff --git a/debian/patches/fix-osgi-runtime.patch b/debian/patches/fix-osgi-runtime.patch
new file mode 100644
index 0000000..a7118b2
--- /dev/null
+++ b/debian/patches/fix-osgi-runtime.patch
@@ -0,0 +1,153 @@
+This fix is to build tycho-bundles/tycho-bundles-external (i.e. Tycho OSGi runtime).
+It is packaged as "eclipse-application", so we cannot build it directly without Eclipse.
+--- /dev/null
++++ b/tycho-bundles/tycho-bundles-external/eclipse/.eclipseproduct
+@@ -0,0 +1,5 @@
++#Eclipse Product File
++#Thu Dec 19 21:40:37 EST 2013
++version=0.23.0-SNAPSHOT
++name=org.eclipse.tycho.p2
++id=tycho-bundles-external
+--- /dev/null
++++ b/tycho-bundles/tycho-bundles-external/eclipse/configuration/config.ini
+@@ -0,0 +1,6 @@
++#Product Runtime Configuration File
++#Thu Dec 19 21:40:37 EST 2013
++osgi.bundles=org.apache.commons.codec,org.apache.commons.logging,org.apache.httpcomponents.httpclient,org.apache.httpcomponents.httpcore,org.eclipse.core.contenttype,org.eclipse.core.jobs,org.eclipse.core.net,org.eclipse.core.runtime at 4\:start,org.eclipse.core.runtime.compatibility.registry,org.eclipse.ecf,org.eclipse.ecf.filetransfer,org.eclipse.ecf.identity,org.eclipse.ecf.provider.filetransfer,org.eclipse.ecf.provider.filetransfer.httpclient4,org.eclipse.ecf.provider.filetransfer.http [...]
++osgi.bundles.defaultStartLevel=4
++eclipse.product=org.eclipse.equinox.p2.director.app.product
++osgi.splashPath=platform\:/base/plugins/org
+--- a/tycho-bundles/tycho-bundles-external/pom.xml
++++ b/tycho-bundles/tycho-bundles-external/pom.xml
+@@ -21,19 +21,52 @@
+ 	</parent>
+ 
+ 	<artifactId>tycho-bundles-external</artifactId>
+-	<packaging>eclipse-application</packaging>
++	<!-- packaging was eclipse-application -->
++	<packaging>jar</packaging>
+ 
+ 	<name>Tycho OSGi Runtime External Bundles (Incubation)</name>
+ 
+ 	<build>
+ 		<plugins>
+-			<plugin>
++			<!--plugin>
+ 				<groupId>org.eclipse.tycho</groupId>
+ 				<artifactId>tycho-packaging-plugin</artifactId>
+ 				<version>${tychoBootstrapVersion}</version>
+ 				<configuration>
+ 					<separateEnvironments>false</separateEnvironments>
+ 				</configuration>
++			</plugin-->
++			<!-- We package using maven-assembly-plugin instead of maven-jar-plugin -->
++			<plugin>
++				<artifactId>maven-jar-plugin</artifactId>
++				<executions>
++					<execution>
++						<id>default-jar</id>
++						<phase>never</phase>
++						<configuration>
++							<finalName>unwanted</finalName>
++							<classifier>unwanted</classifier>
++						</configuration>
++					</execution>
++				</executions>
++			</plugin>
++			<plugin>
++				<artifactId>maven-assembly-plugin</artifactId>
++				<configuration>
++					<finalName>tycho-bundles-external</finalName>
++					<appendAssemblyId>false</appendAssemblyId>
++					<descriptors>
++						<descriptor>src/assembly/eclipse-app.xml</descriptor>
++					</descriptors>
++				</configuration>
++				<executions>
++					<execution>
++						<phase>package</phase>
++						<goals>
++							<goal>single</goal>
++						</goals>
++					</execution>
++				</executions>
+ 			</plugin>
+ 		</plugins>
+ 	</build>
+--- /dev/null
++++ b/tycho-bundles/tycho-bundles-external/src/assembly/eclipse-app.xml
+@@ -0,0 +1,73 @@
++<assembly>
++  <id>eclipse-app</id>
++  <includeBaseDirectory>false</includeBaseDirectory>
++  <formats>
++    <format>zip</format>
++  </formats>
++
++  <fileSets>
++    <fileSet>
++      <directory>eclipse</directory>
++      <!--outputDirectory>eclipse</outputDirectory-->
++      <includes>
++        <include>**/*.*</include>
++      </includes>
++    </fileSet>
++  </fileSets>
++
++  <files>
++      <file>
++        <source>../../org.eclipse.osgi/target/org.eclipse.osgi-3.10.101.v20150820-1432.jar</source>
++        <outputDirectory>eclipse/plugins</outputDirectory>
++        <destName>org.eclipse.osgi_3.10.101.v20150820-1432.jar</destName>
++      </file>
++      <file>
++        <source>../../org.eclipse.osgi.compatibility.state/target/org.eclipse.osgi.compatibility.state-1.0.100.v20150402-1551.jar</source>
++        <outputDirectory>eclipse/plugins</outputDirectory>
++        <destName>org.eclipse.osgi.compatibility.state_1.0.100.v20150402-1551.jar</destName>
++      </file>
++
++      	<!-- there should be many many more, see
++      	http://central.maven.org/maven2/org/eclipse/tycho/tycho-bundles-external/0.25.0/tycho-bundles-external-0.25.0.zip
++      	-->
++
++      <!-- FIXME links should be fine? -->
++      <file>
++        <source>/usr/share/java/org.ow2.sat4j.pb.jar</source>
++        <outputDirectory>eclipse/plugins</outputDirectory>
++        <destName>org.ow2.sat4j.pb_2.3.5.jar</destName>
++      </file>
++      <file>
++        <source>/usr/share/java/org.ow2.sat4j.core.jar</source>
++        <outputDirectory>eclipse/plugins</outputDirectory>
++        <destName>org.ow2.sat4j.core_2.3.5.jar</destName>
++      </file>
++      <file>
++        <source>/usr/share/java/commons-codec.jar</source>
++        <outputDirectory>eclipse/plugins</outputDirectory>
++        <destName>commons-codec_1.6.0.jar</destName>
++      </file>
++      <file>
++        <source>/usr/share/java/commons-logging.jar</source>
++        <outputDirectory>eclipse/plugins</outputDirectory>
++        <destName>commons-logging_1.1.1.jar</destName>
++      </file>
++      <file>
++        <source>/usr/share/java/commons-httpclient.jar</source>
++        <outputDirectory>eclipse/plugins</outputDirectory>
++        <destName>commons-httpclient_4.3.6.jar</destName>
++      </file>
++      <file>
++        <source>/usr/share/java/httpcore.jar</source>
++        <outputDirectory>eclipse/plugins</outputDirectory>
++        <destName>commons-httpcore_4.4.4.jar</destName>
++      </file>
++      <file>
++        <source>/usr/share/java/xz.jar</source>
++        <outputDirectory>eclipse/plugins</outputDirectory>
++        <destName>org.tukaani.xz_1.3.0.jar</destName>
++      </file>
++  </files>
++
++</assembly>
++
+
diff --git a/debian/patches/fix-packaging.patch b/debian/patches/fix-packaging.patch
new file mode 100644
index 0000000..36a5bf9
--- /dev/null
+++ b/debian/patches/fix-packaging.patch
@@ -0,0 +1,367 @@
+These pom's are packaged as eclipse plugin. But Maven does not know how to build Eclipse plugins without Eclipse/Tycho.
+So we convert them in normal pom's.
+--- a/tycho-bundles/org.eclipse.tycho.embedder.shared/pom.xml
++++ b/tycho-bundles/org.eclipse.tycho.embedder.shared/pom.xml
+@@ -21,9 +21,30 @@
+ 	</parent>
+ 
+ 	<artifactId>org.eclipse.tycho.embedder.shared</artifactId>
+-	<packaging>eclipse-plugin</packaging>
++	<!--packaging>eclipse-plugin</packaging-->
+ 
+ 	<name>Tycho Embedder API Maven/OSGi Shared Classes (Incubation)</name>
+ 	<description>Classes shared between the tycho-embedder-api module and Tycho's OSGi bundles.</description>
+ 
++	<build>
++		<plugins>
++			<plugin>
++				<groupId>org.apache.maven.plugins</groupId>
++				<artifactId>maven-jar-plugin</artifactId>
++				<configuration>
++					<archive>
++						<manifestFile>META-INF/MANIFEST.MF</manifestFile>
++					</archive>
++				</configuration>
++			</plugin>
++		</plugins>
++		<resources>
++			<resource>
++				<directory>.</directory>
++				<includes>
++					<include>plugin.properties</include>
++				</includes>
++			</resource>
++		</resources>
++	</build>
+ </project>
+--- a/tycho-bundles/org.eclipse.tycho.p2.resolver.shared/pom.xml
++++ b/tycho-bundles/org.eclipse.tycho.p2.resolver.shared/pom.xml
+@@ -21,9 +21,45 @@
+ 	</parent>
+ 
+ 	<artifactId>org.eclipse.tycho.p2.resolver.shared</artifactId>
+-	<packaging>eclipse-plugin</packaging>
++	<!--packaging>eclipse-plugin</packaging-->
+ 
+ 	<name>Tycho p2 Resolver Maven/OSGi Shared Classes (Incubation)</name>
+ 	<description>Classes shared between the tycho-p2-facade module and Tycho's OSGi bundles.</description>
+ 
++
++		<dependencies>
++			<dependency>
++				<groupId>org.eclipse.tycho</groupId>
++				<artifactId>org.eclipse.tycho.embedder.shared</artifactId>
++				<version>0.25.0</version>
++			</dependency>
++			<dependency>
++				<groupId>org.eclipse.tycho</groupId>
++				<artifactId>org.eclipse.tycho.core.shared</artifactId>
++				<version>0.25.0</version>
++			</dependency>
++		</dependencies>
++
++	<build>
++		<plugins>
++			<plugin>
++				<groupId>org.apache.maven.plugins</groupId>
++				<artifactId>maven-jar-plugin</artifactId>
++				<configuration>
++					<archive>
++						<manifestFile>META-INF/MANIFEST.MF</manifestFile>
++					</archive>
++				</configuration>
++			</plugin>
++		</plugins>
++		<resources>
++			<resource>
++				<directory>.</directory>
++				<includes>
++					<include>plugin.properties</include>
++				</includes>
++			</resource>
++		</resources>
++	</build>
++
+ </project>
+--- a/tycho-bundles/org.eclipse.tycho.core.shared/pom.xml
++++ b/tycho-bundles/org.eclipse.tycho.core.shared/pom.xml
+@@ -21,9 +21,39 @@
+ 	</parent>
+ 
+ 	<artifactId>org.eclipse.tycho.core.shared</artifactId>
+-	<packaging>eclipse-plugin</packaging>
++	<!--packaging>eclipse-plugin</packaging-->
+ 
+ 	<name>Tycho Core Maven/OSGi Shared Classes (Incubation)</name>
+ 	<description>Classes shared between the tycho-core module and Tycho's OSGi bundles.</description>
+ 
++		<dependencies>
++			<dependency>
++				<groupId>org.eclipse.tycho</groupId>
++				<artifactId>org.eclipse.tycho.embedder.shared</artifactId>
++				<version>0.25.0</version>
++			</dependency>
++		</dependencies>
++
++	<build>
++		<plugins>
++			<plugin>
++				<groupId>org.apache.maven.plugins</groupId>
++				<artifactId>maven-jar-plugin</artifactId>
++				<configuration>
++					<archive>
++						<manifestFile>META-INF/MANIFEST.MF</manifestFile>
++					</archive>
++				</configuration>
++			</plugin>
++		</plugins>
++		<resources>
++			<resource>
++				<directory>.</directory>
++				<includes>
++					<include>plugin.properties</include>
++				</includes>
++			</resource>
++		</resources>
++	</build>
++
+ </project>
+--- a/tycho-bundles/org.eclipse.tycho.p2.maven.repository/pom.xml
++++ b/tycho-bundles/org.eclipse.tycho.p2.maven.repository/pom.xml
+@@ -21,8 +21,53 @@
+ 	</parent>
+ 
+ 	<artifactId>org.eclipse.tycho.p2.maven.repository</artifactId>
+-	<packaging>eclipse-plugin</packaging>
++	<!--packaging>eclipse-plugin</packaging-->
+ 
+ 	<name>Tycho Maven/p2 Repository Integration (Incubation)</name>
+ 
++		<dependencies>
++			<dependency>
++				<groupId>org.eclipse.tycho</groupId>
++				<artifactId>org.eclipse.tycho.embedder.shared</artifactId>
++				<version>0.25.0</version>
++			</dependency>
++			<dependency>
++				<groupId>org.eclipse.tycho</groupId>
++				<artifactId>org.eclipse.tycho.core.shared</artifactId>
++				<version>0.25.0</version>
++			</dependency>
++			<dependency>
++				<groupId>org.eclipse.tycho</groupId>
++				<artifactId>org.eclipse.tycho.p2.resolver.shared</artifactId>
++				<version>0.25.0</version>
++			</dependency>
++			<dependency>
++				<groupId>org.eclipse.tycho</groupId>
++				<artifactId>org.eclipse.osgi</artifactId>
++				<version>${equinoxVersionMaven}</version>
++			</dependency>
++		</dependencies>
++
++	<build>
++		<plugins>
++			<plugin>
++				<groupId>org.apache.maven.plugins</groupId>
++				<artifactId>maven-jar-plugin</artifactId>
++				<configuration>
++					<archive>
++						<manifestFile>META-INF/MANIFEST.MF</manifestFile>
++					</archive>
++				</configuration>
++			</plugin>
++		</plugins>
++		<resources>
++			<resource>
++				<directory>.</directory>
++				<includes>
++					<include>plugin.properties</include>
++					<include>OSGI-INF</include>
++				</includes>
++			</resource>
++		</resources>
++	</build>
+ </project>
+--- a/tycho-bundles/org.eclipse.tycho.p2.resolver.impl/pom.xml
++++ b/tycho-bundles/org.eclipse.tycho.p2.resolver.impl/pom.xml
+@@ -21,8 +21,53 @@
+ 	</parent>
+ 
+ 	<artifactId>org.eclipse.tycho.p2.resolver.impl</artifactId>
+-	<packaging>eclipse-plugin</packaging>
++	<!--packaging>eclipse-plugin</packaging-->
+ 
+ 	<name>Tycho p2 Resolver Bundle (Incubation)</name>
+ 
++		<dependencies>
++			<dependency>
++				<groupId>org.eclipse.tycho</groupId>
++				<artifactId>org.eclipse.tycho.embedder.shared</artifactId>
++				<version>0.25.0</version>
++			</dependency>
++			<dependency>
++				<groupId>org.eclipse.tycho</groupId>
++				<artifactId>org.eclipse.tycho.core.shared</artifactId>
++				<version>0.25.0</version>
++			</dependency>
++			<dependency>
++				<groupId>org.eclipse.tycho</groupId>
++				<artifactId>org.eclipse.tycho.p2.resolver.shared</artifactId>
++				<version>0.25.0</version>
++			</dependency>
++			<dependency>
++				<groupId>org.eclipse.tycho</groupId>
++				<artifactId>org.eclipse.tycho.p2.maven.repository</artifactId>
++				<version>0.25.0</version>
++			</dependency>
++		</dependencies>
++
++	<build>
++		<plugins>
++			<plugin>
++				<groupId>org.apache.maven.plugins</groupId>
++				<artifactId>maven-jar-plugin</artifactId>
++				<configuration>
++					<archive>
++						<manifestFile>META-INF/MANIFEST.MF</manifestFile>
++					</archive>
++				</configuration>
++			</plugin>
++		</plugins>
++		<resources>
++			<resource>
++				<directory>.</directory>
++				<includes>
++					<include>plugin.properties</include>
++					<include>OSGI-INF</include>
++				</includes>
++			</resource>
++		</resources>
++	</build>
+ </project>
+--- a/tycho-bundles/org.eclipse.tycho.p2.tools.impl/pom.xml
++++ b/tycho-bundles/org.eclipse.tycho.p2.tools.impl/pom.xml
+@@ -21,9 +21,69 @@
+ 	</parent>
+ 
+ 	<artifactId>org.eclipse.tycho.p2.tools.impl</artifactId>
+-	<packaging>eclipse-plugin</packaging>
++	<!--packaging>eclipse-plugin</packaging-->
+ 
+ 	<name>Tycho p2 Tools Bundle (Incubation)</name>
+ 	<description>Implementation of tools for generating, copying, and using p2 repositories in Tycho</description>
+ 
++		<dependencies>
++			<dependency>
++				<groupId>org.eclipse.tycho</groupId>
++				<artifactId>org.eclipse.tycho.embedder.shared</artifactId>
++				<version>0.25.0</version>
++			</dependency>
++			<dependency>
++				<groupId>org.eclipse.tycho</groupId>
++				<artifactId>org.eclipse.tycho.core.shared</artifactId>
++				<version>0.25.0</version>
++			</dependency>
++			<dependency>
++				<groupId>org.eclipse.tycho</groupId>
++				<artifactId>org.eclipse.tycho.p2.resolver.shared</artifactId>
++				<version>0.25.0</version>
++			</dependency>
++			<dependency>
++				<groupId>org.eclipse.tycho</groupId>
++				<artifactId>org.eclipse.tycho.p2.maven.repository</artifactId>
++				<version>0.25.0</version>
++			</dependency>
++			<dependency>
++				<groupId>org.eclipse.tycho</groupId>
++				<artifactId>org.eclipse.tycho.p2.resolver.impl</artifactId>
++				<version>0.25.0</version>
++			</dependency>
++			<dependency>
++				<groupId>org.eclipse.tycho</groupId>
++				<artifactId>org.eclipse.tycho.p2.tools.shared</artifactId>
++				<version>0.25.0</version>
++			</dependency>
++			<dependency>
++				<groupId>org.eclipse.tycho</groupId>
++				<artifactId>org.eclipse.osgi</artifactId>
++				<version>${equinoxVersionMaven}</version>
++			</dependency>
++		</dependencies>
++
++	<build>
++		<plugins>
++			<plugin>
++				<groupId>org.apache.maven.plugins</groupId>
++				<artifactId>maven-jar-plugin</artifactId>
++				<configuration>
++					<archive>
++						<manifestFile>META-INF/MANIFEST.MF</manifestFile>
++					</archive>
++				</configuration>
++			</plugin>
++		</plugins>
++		<resources>
++			<resource>
++				<directory>.</directory>
++				<includes>
++					<include>plugin.properties</include>
++					<include>OSGI-INF</include>
++				</includes>
++			</resource>
++		</resources>
++	</build>
+ </project>
+--- a/tycho-bundles/org.eclipse.tycho.p2.tools.shared/pom.xml
++++ b/tycho-bundles/org.eclipse.tycho.p2.tools.shared/pom.xml
+@@ -21,9 +21,48 @@
+ 	</parent>
+ 
+ 	<artifactId>org.eclipse.tycho.p2.tools.shared</artifactId>
+-	<packaging>eclipse-plugin</packaging>
++	<!--packaging>eclipse-plugin</packaging-->
+ 
+ 	<name>Tycho p2 Tools Maven/OSGi Shared Classes (Incubation)</name>
+ 	<description>Exposes tools for manipulating p2 data, which are implemented in OSGi bundles, to Maven plug-ins</description>
+ 
++		<dependencies>
++			<dependency>
++				<groupId>org.eclipse.tycho</groupId>
++				<artifactId>org.eclipse.tycho.embedder.shared</artifactId>
++				<version>0.25.0</version>
++			</dependency>
++			<dependency>
++				<groupId>org.eclipse.tycho</groupId>
++				<artifactId>org.eclipse.tycho.core.shared</artifactId>
++				<version>0.25.0</version>
++			</dependency>
++			<dependency>
++				<groupId>org.eclipse.tycho</groupId>
++				<artifactId>org.eclipse.tycho.p2.resolver.shared</artifactId>
++				<version>0.25.0</version>
++			</dependency>
++		</dependencies>
++
++	<build>
++		<plugins>
++			<plugin>
++				<groupId>org.apache.maven.plugins</groupId>
++				<artifactId>maven-jar-plugin</artifactId>
++				<configuration>
++					<archive>
++						<manifestFile>META-INF/MANIFEST.MF</manifestFile>
++					</archive>
++				</configuration>
++			</plugin>
++		</plugins>
++		<resources>
++			<resource>
++				<directory>.</directory>
++				<includes>
++					<include>plugin.properties</include>
++				</includes>
++			</resource>
++		</resources>
++	</build>
+ </project>
diff --git a/debian/patches/fix-sonatype-bug.patch b/debian/patches/fix-sonatype-bug.patch
new file mode 100644
index 0000000..98e8eab
--- /dev/null
+++ b/debian/patches/fix-sonatype-bug.patch
@@ -0,0 +1,20 @@
+Tycho requires aether to compile. I think this an upstream bug.
+--- a/tycho-core/pom.xml
++++ b/tycho-core/pom.xml
+@@ -162,6 +162,16 @@
+ 			<groupId>org.mockito</groupId>
+ 			<artifactId>mockito-core</artifactId>
+ 		</dependency>
++ 		<dependency>
++			<groupId>org.sonatype.aether</groupId>
++			<artifactId>aether-spi</artifactId>
++			<version>debian</version>
++		</dependency>
++		<dependency>
++			<groupId>org.sonatype.aether</groupId>
++			<artifactId>aether-util</artifactId>
++			<version>debian</version>
++		</dependency>
+ 	</dependencies>
+ 
+ </project>
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..7632e85
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,7 @@
+eclipse-bootstrap.patch
+fix-osgi-runtime.patch
+fedora-project.patch
+fix-packaging.patch
+fix-sonatype-bug.patch
+fix-neon.patch
+#test.patch
diff --git a/debian/patches/test.patch b/debian/patches/test.patch
new file mode 100644
index 0000000..fb9ebdf
--- /dev/null
+++ b/debian/patches/test.patch
@@ -0,0 +1,77 @@
+Use this patch to get more debug info
+--- a/eclipse-bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/storagemanager/StorageManager.java
++++ b/eclipse-bundles/org.eclipse.osgi/supplement/src/org/eclipse/osgi/storagemanager/StorageManager.java
+@@ -694,6 +694,7 @@
+ 	public void open(boolean wait) throws IOException {
+ 		if (!readOnly) {
+ 			managerRoot.mkdirs();
++System.out.println("********DEBUG: managerRoot="+managerRoot.getPath()+" *******************");
+ 			if (!managerRoot.isDirectory())
+ 				throw new IOException(Msg.fileManager_cannotLock);
+ 			if (openCleanup)
+@@ -933,4 +934,4 @@
+ 			}
+ 		}
+ 	}
+-}
+\ No newline at end of file
++}
+--- a/tycho-core/src/main/java/org/eclipse/tycho/osgi/runtime/TychoOsgiRuntimeLocator.java
++++ b/tycho-core/src/main/java/org/eclipse/tycho/osgi/runtime/TychoOsgiRuntimeLocator.java
+@@ -162,8 +162,9 @@
+         if ("zip".equals(dependency.getType())) {
+             File artifactFile = new File(session.getLocalRepository().getBasedir(), session.getLocalRepository()
+                     .pathOf(artifact));
++//Questo pirla assume che siamo dentro la cartella di Eclipse
+             File eclipseDir = new File(artifactFile.getParentFile(), "eclipse");
+-
++System.out.println("****** DEBUG addRuntimeArtifact:"+ eclipseDir.getPath()+" ******************************");
+             FileLocker locker = fileLockService.getFileLocker(artifactFile);
+             locker.lock();
+             try {
+@@ -192,6 +193,7 @@
+             } finally {
+                 locker.release();
+             }
++System.out.println("****** AND NOW:"+ eclipseDir.getPath()+" ******************************");
+             description.addInstallation(eclipseDir);
+         } else {
+             description.addBundle(artifact.getFile());
+--- a/eclipse-bundles/org.eclipse.osgi/container/src/org/eclipse/core/runtime/adaptor/EclipseStarter.java
++++ b/eclipse-bundles/org.eclipse.osgi/container/src/org/eclipse/core/runtime/adaptor/EclipseStarter.java
+@@ -68,7 +68,7 @@
+ public class EclipseStarter {
+ 	private static BundleContext context;
+ 	private static boolean initialize = false;
+-	public static boolean debug = false;
++	public static boolean debug = true;
+ 	private static boolean running = false;
+ 	private static ServiceRegistration<?> defaultMonitorRegistration = null;
+ 	private static ServiceRegistration<?> appLauncherRegistration = null;
+@@ -300,13 +300,24 @@
+ 		if (running)
+ 			throw new IllegalStateException(Msg.ECLIPSE_STARTUP_ALREADY_RUNNING);
+ 		processCommandLine(args);
++/*
++Here args=[-eclipse.keyring, /tmp/tycho4278408877083467255secure_storage] System.getenv("eclipse.application")=null
++
++getConfiguration()={osgi.compatibility.bootdelegation.default=true, osgi.bundles=org.eclipse.ecf,org.eclipse.core.runtime,org.eclipse.equinox.common,org.eclipse.equinox.p2.repository.tools,org.eclipse.equinox.p2.jarprocessor,org.eclipse.osgi.services,org.apache.commons.logging,org.apache.commons.codec,org.eclipse.equinox.p2.metadata,org.eclipse.osgi.compatibility.state,org.eclipse.equinox.simpleconfigurator,org.eclipse.ecf.provider.filetransfer.ssl,org.eclipse.core.contenttype,org.eclip [...]
++*/
++System.out.println("***** DEBUG context1 config="
+++getConfiguration()+" *************************************");
+ 		framework = new Equinox(getConfiguration());
+ 		framework.init();
+ 		context = framework.getBundleContext();
+-		ServiceReference<FrameworkLog> logRef = context.getServiceReference(FrameworkLog.class);
+-		log = context.getService(logRef);
++System.out.println("***** DEBUG bundles="
+++(context.getBundles()==null?"null":java.util.Arrays.asList(context.getBundles()))
+++"*************************************");
++//here framework.getRegisteredServices()==null
+ 		ServiceReference<EnvironmentInfo> configRef = context.getServiceReference(EnvironmentInfo.class);
+ 		equinoxConfig = (EquinoxConfiguration) context.getService(configRef);
++		ServiceReference<FrameworkLog> logRef = context.getServiceReference(FrameworkLog.class);
++		log = context.getService(logRef);
+ 
+ 		equinoxConfig.setAllArgs(allArgs);
+ 		equinoxConfig.setFrameworkArgs(frameworkArgs);
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..b7477a1
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,154 @@
+#!/usr/bin/make -f
+
+export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-$(shell dpkg-architecture -qDEB_BUILD_ARCH)
+
+PKG=tycho
+VER=0.25.0
+DTYPE=
+
+UVER=0.25.0
+UURL=http://git.eclipse.org/c/tycho/org.eclipse.tycho.git/snapshot/org.eclipse.tycho-tycho-$(UVER).tar.xz
+
+FUURL=https://github.com/rgrunber/fedoraproject-p2
+
+AGGREGATOR_PATH=git://git.eclipse.org/gitroot/platform/eclipse.platform.releng.aggregator.git
+TAG=S4_6_0_M6
+
+BINPKG=libtycho-java
+
+#maven 3
+%:
+	dh $@ --with maven-repo-helper --buildsystem=maven
+
+#override_dh_auto_clean:
+#	echo "WARNING clean does not work"
+#	#find . -name '*.class' -delete
+#	#find . -name '*.jar' -delete
+#	#find . -name 'createdFiles.lst' -delete
+#	#find . -name 'inputFiles.lst' -delete
+
+override_dh_auto_configure:
+	./debian/eclipse-bootstrap.sh $(CURDIR)
+	dh_auto_configure
+
+override_dh_auto_build:
+	#FIXME right way to skip tests?
+	dh_auto_build -- package -Dmaven.test.skip=true
+
+override_dh_auto_test:
+	#FIXME right way to skip tests?
+
+override_dh_auto_install:
+	dh_auto_install
+	#patch eclipse-application packaging
+	cp tycho-bundles/tycho-bundles-external/target/tycho-bundles-external.zip debian/$(BINPKG)/usr/share/maven-repo/org/eclipse/tycho/tycho-bundles-external/$(VER)/tycho-bundles-external-$(VER).zip
+	ln -s ../$(VER)/tycho-bundles-external-$(VER).zip debian/$(BINPKG)/usr/share/maven-repo/org/eclipse/tycho/tycho-bundles-external/debian/tycho-bundles-external-debian.zip
+
+
+.PHONY: get-orig-source
+# upstream is http://git.eclipse.org/c/tycho/org.eclipse.tycho.git/snapshot/org.eclipse.tycho-tycho-0.25.0.tar.xz
+# plus
+# https://github.com/rgrunber/fedoraproject-p2
+# plus
+# some of eclipse sources
+get-orig-source:
+	$(if $(wildcard $(PKG)-$(VER)),$(error $(PKG)-$(VER) exist, aborting.))
+	mkdir $(PKG)-$(VER)
+	
+	@echo "# Downloading Tycho..."
+	wget $(UURL)
+	tar x -C $(PKG)-$(VER) -f org.eclipse.tycho-tycho-$(UVER).tar.xz
+	find $(PKG)-$(VER)/org.eclipse.tycho-tycho-$(UVER) -name '*.jar' -delete
+	find $(PKG)-$(VER)/org.eclipse.tycho-tycho-$(UVER) -name '.git*' -delete
+	mv $(PKG)-$(VER)/org.eclipse.tycho-tycho-$(UVER)/* $(PKG)-$(VER)
+	rmdir $(PKG)-$(VER)/org.eclipse.tycho-tycho-$(UVER)	#should be empty
+	$(RM) org.eclipse.tycho-tycho-$(UVER).tar.xz
+	
+	@echo "# Downloading Fedora project P2..."
+	cd $(PKG)-$(VER) && git clone $(FUURL)
+	cd $(PKG)-$(VER)/fedoraproject-p2 && git checkout && $(RM) -r .git .git*
+	
+	@echo "# Downloading Eclipse (this may take a long time)..."
+	cd $(PKG)-$(VER) && git clone --depth 1 --branch $(TAG)  $(AGGREGATOR_PATH) eclipse-aggregator
+	cd $(PKG)-$(VER)/eclipse-aggregator \
+	&& git submodule init eclipse.jdt eclipse.jdt.core eclipse.platform.runtime eclipse.platform.team \
+	eclipse.platform.swt eclipse.platform.text eclipse.platform.ui eclipse.platform.resources \
+	rt.equinox.p2 rt.equinox.bundles rt.equinox.framework \
+	&& git submodule update
+	
+	@echo "# We keep only Eclipse bundles required by Tycho"
+	$(eval SRC:=$(PKG)-$(VER)/eclipse-aggregator)
+	$(eval DEST:=$(PKG)-$(VER)/eclipse-bundles)
+	mkdir -p $(DEST)
+	
+	rsync -r $(SRC)/eclipse.platform.runtime/bundles/org.eclipse.core.runtime $(DEST)
+	rsync -r $(SRC)/eclipse.platform.runtime/bundles/org.eclipse.core.contenttype $(DEST)
+	rsync -r $(SRC)/eclipse.platform.runtime/bundles/org.eclipse.core.jobs $(DEST)
+	rsync -r $(SRC)/rt.equinox.p2/bundles/org.eclipse.equinox.p2.core $(DEST)
+	rsync -r $(SRC)/rt.equinox.p2/bundles/org.eclipse.equinox.p2.metadata $(DEST)
+	rsync -r $(SRC)/rt.equinox.p2/bundles/org.eclipse.equinox.p2.publisher $(DEST)
+	rsync -r $(SRC)/rt.equinox.p2/bundles/org.eclipse.equinox.p2.publisher.eclipse $(DEST)
+	rsync -r $(SRC)/rt.equinox.p2/bundles/org.eclipse.equinox.p2.repository $(DEST)
+	rsync -r $(SRC)/rt.equinox.p2/bundles/org.eclipse.equinox.p2.metadata.repository $(DEST)
+	rsync -r $(SRC)/rt.equinox.p2/bundles/org.eclipse.equinox.p2.artifact.repository $(DEST)
+	rsync -r $(SRC)/rt.equinox.p2/bundles/org.eclipse.equinox.p2.jarprocessor $(DEST)
+	rsync -r $(SRC)/rt.equinox.p2/bundles/org.eclipse.equinox.simpleconfigurator $(DEST)
+	rsync -r $(SRC)/rt.equinox.p2/bundles/org.eclipse.equinox.simpleconfigurator.manipulator $(DEST)
+	rsync -r $(SRC)/rt.equinox.p2/bundles/org.eclipse.equinox.frameworkadmin $(DEST)
+	rsync -r $(SRC)/rt.equinox.p2/bundles/org.eclipse.equinox.frameworkadmin.equinox $(DEST)
+	rsync -r $(SRC)/rt.equinox.framework/bundles/org.eclipse.osgi.util $(DEST)
+	rsync -r $(SRC)/rt.equinox.bundles/bundles/org.eclipse.equinox.preferences $(DEST)
+	rsync -r $(SRC)/rt.equinox.bundles/bundles/org.eclipse.equinox.preferences $(DEST)
+	rsync -r $(SRC)/rt.equinox.bundles/bundles/org.eclipse.equinox.common $(DEST)
+	rsync -r $(SRC)/rt.equinox.bundles/bundles/org.eclipse.equinox.security $(DEST)
+	rsync -r $(SRC)/rt.equinox.bundles/bundles/org.eclipse.equinox.app $(DEST)
+	rsync -r $(SRC)/rt.equinox.bundles/bundles/org.eclipse.equinox.registry $(DEST)
+	#here can compile
+	rsync -r $(SRC)/rt.equinox.framework/bundles/org.eclipse.osgi.compatibility.state $(DEST)
+	rsync -r $(SRC)/rt.equinox.framework/bundles/org.eclipse.osgi $(DEST)
+	rsync -r $(SRC)/rt.equinox.p2/bundles/org.eclipse.equinox.p2.repository.tools $(DEST)
+	rsync -r $(SRC)/rt.equinox.bundles/bundles/org.eclipse.equinox.app $(DEST)
+	rsync -r $(SRC)/rt.equinox.framework/bundles/org.eclipse.osgi.services $(DEST)
+	rsync -r $(SRC)/rt.equinox.p2/bundles/org.eclipse.equinox.p2.director $(DEST)
+	rsync -r $(SRC)/rt.equinox.p2/bundles/org.eclipse.equinox.p2.engine $(DEST)
+	rsync -r $(SRC)/rt.equinox.p2/bundles/org.eclipse.equinox.p2.jarprocessor $(DEST)
+	#here can compile
+	#need SteppedTimeoutLexicoHelper from sat4j 2.3.4
+	rsync -r $(SRC)/rt.equinox.p2/bundles/org.eclipse.equinox.p2.touchpoint.eclipse $(DEST)
+	rsync -r $(SRC)/rt.equinox.p2/bundles/org.eclipse.equinox.p2.garbagecollector $(DEST)
+	rsync -r $(SRC)/rt.equinox.p2/bundles/org.eclipse.equinox.p2.updatesite $(DEST)
+	rsync -r $(SRC)/rt.equinox.p2/bundles/org.eclipse.equinox.p2.director.app $(DEST)
+	rsync -r $(SRC)/eclipse.platform.team/bundles/org.eclipse.core.net $(DEST)
+	#here can compile
+	rsync -r $(SRC)/eclipse.platform.swt/bundles/org.eclipse.swt $(DEST)
+	#here can compile
+	rsync -r $(SRC)/eclipse.jdt.core/org.eclipse.jdt.core $(DEST)
+	rsync -r $(SRC)/eclipse.jdt.core/org.eclipse.jdt.compiler.apt $(DEST)
+	rsync -r $(SRC)/eclipse.platform.text/org.eclipse.text $(DEST)
+	rsync -r $(SRC)/eclipse.platform.text/org.eclipse.jface.text $(DEST)
+	rsync -r $(SRC)/eclipse.platform.ui/bundles/org.eclipse.core.commands $(DEST)
+	rsync -r $(SRC)/eclipse.platform.ui/bundles/org.eclipse.jface $(DEST)
+	rsync -r $(SRC)/eclipse.platform.runtime/bundles/org.eclipse.core.expressions $(DEST)
+	rsync -r $(SRC)/rt.equinox.bundles/bundles/org.eclipse.equinox.bidi $(DEST)
+	rsync -r $(SRC)/eclipse.platform.resources/bundles/org.eclipse.core.resources $(DEST)
+	rsync -r $(SRC)/eclipse.platform.resources/bundles/org.eclipse.core.filesystem $(DEST)
+	
+	$(RM) -rf $(SRC)
+	
+	find $(DEST) -type d -name ".git" | xargs rm -rf
+	find $(DEST) -type f -name *.jar -delete
+	find $(DEST) -type f -name *.class -delete
+	find $(DEST) -type f -name *.so -delete
+	find $(DEST) -type f -name *.dll -delete
+	find $(DEST) -type f -name *.jnilib -delete
+	find $(DEST) -type f -name *.exe -delete	
+	
+	@echo "# Packing..."
+	$(RM) -rf $(PKG)_$(VER)$(DTYPE).orig.tar.xz
+	find -L "$(PKG)-$(VER)" -xdev -type f -print | LC_ALL=C sort \
+	| XZ_OPT="-6v" tar -caf "$(PKG)_$(VER)$(DTYPE).orig.tar.xz" -T- --owner=root --group=root --mode=a+rX
+	
+	@echo "# Cleaning up..."
+	$(RM) -rf $(PKG)-$(VER)
+
+
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/tycho-bootstrap.sh b/debian/tycho-bootstrap.sh
new file mode 100755
index 0000000..999fc84
--- /dev/null
+++ b/debian/tycho-bootstrap.sh
@@ -0,0 +1,126 @@
+#!/bin/bash -e
+
+#this script is in /debian, but it is called by super folder using ./debian/rules build
+
+. $(pwd)/debian/tycho-scripts.sh
+
+# this is a writeable, temporary, maven repository
+REPO=$1
+
+eclipse_bootstrap=1
+preV='0.25.0'
+v='0.25.0'
+osgiV='debian'
+fp2V='0.0.1'
+eclipseV='4.5.6'
+
+
+bundles=()
+bundles[0]='tycho-bundles/org.eclipse.tycho.embedder.shared'
+bundles[1]='tycho-bundles/org.eclipse.tycho.core.shared'
+bundles[2]='tycho-bundles/org.eclipse.tycho.p2.resolver.shared'
+bundles[3]='tycho-bundles/org.eclipse.tycho.p2.tools.shared'
+bundles[4]='tycho-bundles/org.eclipse.tycho.p2.maven.repository'
+bundles[5]='tycho-bundles/org.eclipse.tycho.p2.resolver.impl'
+bundles[6]='tycho-bundles/org.eclipse.tycho.p2.tools.impl'
+
+xtraBundles[0]='fedoraproject-p2/org.fedoraproject.p2'
+
+deps[0]=""
+deps[1]="tycho-bundles/org.eclipse.tycho.embedder.shared/target/org.eclipse.tycho.embedder.shared-${v}.jar"
+deps[2]="tycho-bundles/org.eclipse.tycho.embedder.shared/target/org.eclipse.tycho.embedder.shared-${v}.jar:tycho-bundles/org.eclipse.tycho.core.shared/target/org.eclipse.tycho.core.shared-${v}.jar"
+deps[3]="tycho-bundles/org.eclipse.tycho.embedder.shared/target/org.eclipse.tycho.embedder.shared-${v}.jar:tycho-bundles/org.eclipse.tycho.core.shared/target/org.eclipse.tycho.core.shared-${v}.jar:tycho-bundles/org.eclipse.tycho.p2.resolver.shared/target/org.eclipse.tycho.p2.resolver.shared-${v}.jar"
+deps[4]="tycho-bundles/org.eclipse.tycho.embedder.shared/target/org.eclipse.tycho.embedder.shared-${v}.jar:tycho-bundles/org.eclipse.tycho.core.shared/target/org.eclipse.tycho.core.shared-${v}.jar:tycho-bundles/org.eclipse.tycho.p2.resolver.shared/target/org.eclipse.tycho.p2.resolver.shared-${v}.jar"
+deps[5]="tycho-bundles/org.eclipse.tycho.embedder.shared/target/org.eclipse.tycho.embedder.shared-${v}.jar:tycho-bundles/org.eclipse.tycho.core.shared/target/org.eclipse.tycho.core.shared-${v}.jar:tycho-bundles/org.eclipse.tycho.p2.resolver.shared/target/org.eclipse.tycho.p2.resolver.shared-${v}.jar:tycho-bundles/org.eclipse.tycho.p2.maven.repository/target/org.eclipse.tycho.p2.maven.repository-${v}.jar:fedoraproject-p2/org.fedoraproject.p2/target/org.fedoraproject.p2-${fp2V}.jar"
+deps[6]="tycho-bundles/org.eclipse.tycho.embedder.shared/target/org.eclipse.tycho.embedder.shared-${v}.jar:tycho-bundles/org.eclipse.tycho.core.shared/target/org.eclipse.tycho.core.shared-${v}.jar:tycho-bundles/org.eclipse.tycho.p2.resolver.shared/target/org.eclipse.tycho.p2.resolver.shared-${v}.jar:tycho-bundles/org.eclipse.tycho.p2.tools.shared/target/org.eclipse.tycho.p2.tools.shared-${v}.jar:tycho-bundles/org.eclipse.tycho.p2.maven.repository/target/org.eclipse.tycho.p2.maven.reposit [...]
+
+xtraDeps[0]=""
+
+externalDeps[4]="org.eclipse.equinox.common,org.eclipse.equinox.p2.repository,org.eclipse.equinox.p2.metadata,org.eclipse.equinox.p2.core,org.eclipse.equinox.p2.metadata.repository,org.eclipse.equinox.p2.artifact.repository,org.eclipse.osgi"
+externalDeps[5]="org.eclipse.core.runtime,org.eclipse.equinox.security,org.eclipse.equinox.frameworkadmin.equinox,org.eclipse.equinox.frameworkadmin,org.eclipse.equinox.p2.core,org.eclipse.equinox.p2.metadata,org.eclipse.equinox.p2.publisher,org.eclipse.equinox.p2.publisher.eclipse,org.eclipse.equinox.p2.artifact.repository,org.eclipse.equinox.p2.metadata.repository,org.eclipse.equinox.p2.director,org.eclipse.equinox.p2.repository,org.eclipse.equinox.p2.updatesite,org.eclipse.core.net,or [...]
+externalDeps[6]="org.eclipse.equinox.p2.director.app,org.eclipse.equinox.frameworkadmin.equinox,org.eclipse.equinox.frameworkadmin,org.eclipse.equinox.p2.core,org.eclipse.equinox.p2.publisher,org.eclipse.equinox.p2.updatesite,org.eclipse.core.runtime,org.eclipse.equinox.p2.metadata,org.eclipse.equinox.p2.repository,org.eclipse.equinox.p2.repository.tools,org.eclipse.equinox.p2.metadata.repository,org.eclipse.equinox.p2.artifact.repository,org.eclipse.equinox.p2.publisher.eclipse,org.ecli [...]
+
+#debian: slf4j.api ->org.slf4j
+xtraExternalDeps[0]="org.eclipse.osgi,org.eclipse.core.runtime,org.eclipse.equinox.common,org.eclipse.equinox.p2.metadata,org.eclipse.equinox.p2.repository,org.eclipse.equinox.p2.core,org.eclipse.equinox.p2.publisher.eclipse,org.eclipse.equinox.p2.publisher,org.eclipse.equinox.p2.touchpoint.eclipse,org.eclipse.equinox.p2.updatesite,org.eclipse.equinox.p2.repository.tools,org.eclipse.equinox.app,org.slf4j"
+
+reactorprojs=( 'tycho-embedder-api' 'tycho-metadata-model' 'sisu-equinox/sisu-equinox-api' 'sisu-equinox/sisu-equinox-embedder' 'tycho-core' 'tycho-packaging-plugin' 'tycho-p2/tycho-p2-facade' 'tycho-maven-plugin' 'tycho-p2/tycho-p2-repository-plugin' 'tycho-p2/tycho-p2-publisher-plugin' 'target-platform-configuration' 'tycho-artifactcomparator' 'sisu-equinox/sisu-equinox-launching' 'tycho-p2/tycho-p2-plugin' 'tycho-compiler-jdt' 'tycho-compiler-plugin' )
+
+for ((i=0; i < ${#xtraBundles[@]}; i++)) ;do
+  echo ''
+  echo 'Building ' ${xtraBundles[${i}]} '...'
+  echo ''
+  isolateProject ${xtraBundles[${i}]} ${fp2V}
+  minibuild ${xtraBundles[${i}]} "${xtraDeps[${i}]}" ${xtraExternalDeps[${i}]}
+  unifyProject ${xtraBundles[${i}]}
+done
+
+# TODO: stop minibuild function from hard-coding org/eclipse/tycho GID path
+dir=$REPO/org/fedoraproject/p2/org.fedoraproject.p2/
+mkdir -p ${dir}
+ln -sf $REPO/org/eclipse/tycho/org.fedoraproject.p2/${fp2V} ${dir}
+
+for ((i=0; i < ${#bundles[@]}; i++)) ;do
+  echo ''
+  echo 'Building ' ${bundles[${i}]} '...'
+  echo ''
+  isolateProject ${bundles[${i}]}
+  minibuild ${bundles[${i}]} "${deps[${i}]}" ${externalDeps[${i}]}
+  unifyProject ${bundles[${i}]}
+done
+
+# Run the build on this maven reactor project
+mvn -o -Dmaven.repo.local="$REPO" -Dmaven.test.skip=true clean install
+#fedora version was:
+#for proj in ${reactorprojs[@]} ; do
+#  isolateProject ${proj}
+#  mvn -o -f "${proj}/pom.xml" -Dmaven.repo.local="$REPO" -Dmaven.test.skip=true clean install
+#  unifyProject ${proj}
+#done
+
+# Add org.fedoraproject.p2 to target platform for tycho-bundles-external
+extras='bootstrap/extras'
+mkdir -p ${extras}
+fp2Loc=`find $REPO -name "org.fedoraproject.p2-*.jar"`
+cp ${fp2Loc} ${extras}
+
+# Tycho Bundles External (needed for Tycho's OSGi Runtime)
+tbeDir='tycho-bundles/tycho-bundles-external'
+tbeTargetDir="${tbeDir}/target"
+wantedBundles=`sed 's/ fragment=\"true\"//' "${tbeDir}/tycho-bundles-external.product" | sed -n 's/.*<plugin id=\"\(.*\)\"\/>.*/\1/ p'`
+
+mkdir -p ${tbeTargetDir}'/eclipse/plugins'
+copyBundles "${wantedBundles}" "${tbeTargetDir}/eclipse/plugins"
+
+pushd ${tbeTargetDir}
+
+#FIXME: patched
+echo "#Eclipse Product File
+#Thu Dec 19 21:40:37 EST 2013
+version=${v}
+name=org.eclipse.tycho.p2
+id=tycho-bundles-external" > 'eclipse/.eclipseproduct'
+
+mkdir -p 'eclipse/configuration'
+
+#FIXME: patched
+echo '#Product Runtime Configuration File
+#Thu Dec 19 21:40:37 EST 2013
+osgi.bundles=org.apache.commons.codec,org.apache.commons.logging,org.apache.httpcomponents.httpclient,org.apache.httpcomponents.httpcore,org.eclipse.core.contenttype,org.eclipse.core.jobs,org.eclipse.core.net,org.eclipse.core.runtime at 4\:start,org.eclipse.core.runtime.compatibility.registry,org.eclipse.ecf,org.eclipse.ecf.filetransfer,org.eclipse.ecf.identity,org.eclipse.ecf.provider.filetransfer,org.eclipse.ecf.provider.filetransfer.httpclient4,org.eclipse.ecf.provider.filetransfer.httpc [...]
+osgi.bundles.defaultStartLevel=4
+eclipse.product=org.eclipse.equinox.p2.director.app.product
+osgi.splashPath=platform\:/base/plugins/org' > 'eclipse/configuration/config.ini'
+
+zip -r "tycho-bundles-external-${v}.zip" 'eclipse'
+
+popd
+
+loc="$REPO/org/eclipse/tycho/tycho-bundles-external/${v}"
+
+mkdir -p ${loc}
+cp "${tbeTargetDir}/tycho-bundles-external-${v}.zip" ${loc}
+cp 'tycho-bundles/tycho-bundles-external/pom.xml' "${loc}/tycho-bundles-external-${v}.pom"
+
+sed -i "s/<equinox\(.*\)VersionMaven>.*<\/equinox\(.*\)VersionMaven>/<equinox\1VersionMaven>${osgiV}<\/equinox\1VersionMaven>/" pom.xml
+# xmvn-p2-installer-plugin needs to find the org.eclipse.osgi bundle
+sed -i "s/>\${equinox-version}</>${osgiV}</" fedoraproject-p2/xmvn-p2-installer-plugin/pom.xml
+
diff --git a/debian/tycho-scripts.sh b/debian/tycho-scripts.sh
new file mode 100755
index 0000000..faf6b82
--- /dev/null
+++ b/debian/tycho-scripts.sh
@@ -0,0 +1,222 @@
+##! /bin/bash
+# this file was developed by Fedora packagers
+# modified by Luca Vercelli 2016 for Debian
+# contains utility functions that build (small) maven projects without using maven
+
+# expected variables:
+# $REPO is a writeable, temporary, maven repository
+
+function minibuild () {
+#usage: minibuild srcfolder dependencies ext_dependencies
+#we expect to find there: build.properties META-INF/MANIFEST.MF pom.xml
+
+echo "minibuild: $1======================="
+
+basedir=$1
+
+src=`cat "${basedir}/build.properties" | grep 'source..' | cut -d'=' -f2 | tr ' ' '\0'`
+output=`cat "${basedir}/build.properties" | grep 'output..' | cut -d'=' -f2 | tr ' ' '\0'`
+bName=`cat "${basedir}/META-INF/MANIFEST.MF" | grep 'Bundle-SymbolicName:' | sed 's/Bundle-SymbolicName: \([a-zA-Z0-9_.-]*\)\(;\)\?.*/\1/'`
+artifactId=`cat "${basedir}/pom.xml" | sed '/<parent>/,/<\/parent>/ d' | grep "<artifactId>" | sed 's/.*<artifactId>\(.*\)<\/artifactId>.*/\1/'`
+#debian: added head -n1
+version=`cat "${basedir}/pom.xml" | grep "<version>" | sed 's/.*<version>\(.*\)<\/version>.*/\1/' | head -n1`
+
+echo "loading libraries..."
+
+# External (System) dependencies
+if [ $# -eq 3 ]; then
+  mkdir -p "${basedir}/target/externalDeps"
+  copyBundles $3 "${basedir}/target/externalDeps"
+else
+  mkdir -p "${basedir}/target"
+fi
+
+mkdir -p "${basedir}/${output}"
+
+# Compile
+cp=
+if [ $# -gt 1 ]; then
+  cp='-classpath '$2':'"${basedir}"'/target/externalDeps/*'
+fi
+
+echo "compiling..."
+
+javac -Xmaxerrs 10 -d "${basedir}/${output}" \
+  $(for file in `find "${basedir}/${src}" -name "*.java"`; \
+    do echo -n "${file} "; \
+  done;) \
+  ${cp}
+
+echo "jar..."
+
+# Package
+pushd ${basedir}
+pushd ${output}
+classfiles=`for file in $(find . -name "*.class"); do echo -n ' -C '${output} ${file} ; done;`
+popd
+packagefiles="${classfiles}"
+[ -e about.html ] && packagefiles="about.html $packagefiles"
+[ -e plugin.properties ] && packagefiles="plugin.properties $packagefiles"
+[ -e plugin.xml ] && packagefiles="plugin.xml $packagefiles"
+[ -e OSGI-INF ] && packagefiles="OSGI-INF $packagefiles"
+jar -cfmv "target/${bName}-${version}.jar" 'META-INF/MANIFEST.MF' ${packagefiles}
+popd
+
+echo "install..."
+
+# Install
+loc="$REPO/org/eclipse/tycho/${artifactId}/${version}"
+mkdir -p ${loc}
+cp "${basedir}/target/${bName}-${version}.jar" ${loc}
+cp "${basedir}/pom.xml" "${loc}/${bName}-${version}.pom"
+
+}
+
+
+function copyBundles () {
+#usage: copyBundles bundlesList destDir
+# scls='scl1 scl2 scl3'
+
+echo "copyBundles to $2..."
+
+baseLocations=( '/usr/share/java' '/usr/lib/java' '/usr/lib*/eclipse' )
+osgiLocations=(${baseLocations[@]} ${osgiLocations[@]} )
+for scl in ${scls} ; do
+  osgiLocations=( ${baseLocations[@]/#//opt/rh/${scl}/root} ${osgiLocations[@]} )
+done
+
+#debian: this won't work because we don't have /bootstrap..
+
+if [ ${eclipse_bootstrap} -eq 1 ]; then
+	prefix="$(pwd)/bootstrap"
+osgiLocations=( ${osgiLocations[@]/#/${prefix}} )
+osgiLocations+=( ${osgiLocations[@]/${prefix}/} )
+osgiLocations=( ${prefix}/extras ${osgiLocations[@]} )
+fi
+
+wantedBundles=`echo $1 | tr ',' ' '`
+destDir=$2
+
+#debian:
+#sl4j is just used by FedoraProject-p2. FIXME
+cp $REPO/org/eclipse/eclipse-bootstrap/${eclipseV}/eclipse-bootstrap-${eclipseV}.jar ${destDir}
+cp $REPO/org/slf4j/slf4j-api/debian/slf4j-api-debian.jar ${destDir}
+return
+
+
+for loc in ${osgiLocations[@]} ; do
+  for jar in `find ${loc} -name "*.jar" 2>/dev/null`; do
+    bsn=`readBSN ${jar}`
+    if [ -n "${bsn}" ]; then
+      if echo ${wantedBundles} | grep "${bsn}" ; then
+        #debian: lines moved
+        versionline=`unzip -p ${jar} 'META-INF/MANIFEST.MF' | grep 'Bundle-Version:'` 2>/dev/null
+        vers=`echo "${versionline}" | sed 's/Bundle-Version: \([a-zA-Z0-9_.-]*\).*/\1/'`
+        cp ${jar} "${destDir}/${bsn}_${vers}.jar"
+        wantedBundles=`removeFromList "${wantedBundles}" "${bsn}"`
+      fi
+    fi
+  done
+done
+
+}
+
+function symlinkBundles () {
+
+# Bootstrap Built Tycho provides some Eclipse bundles
+# Prevent non-bootstrap build's de-bundling from symlinking to them
+# SCL priority is from right to left.
+# scls='scl1 scl2 scl3'
+baseLocations=( '/usr/share/java/eclipse' '/usr/share/java' '/usr/lib/java' )
+osgiLocations=(${baseLocations[@]} ${osgiLocations[@]} )
+for scl in ${scls} ; do
+  osgiLocations=( ${baseLocations[@]/#//opt/rh/${scl}/root} ${osgiLocations[@]} )
+done
+
+echo "symlinkBundles $1..."
+
+wantedBundles=`echo $1 | tr ',' ' '`
+
+for loc in ${osgiLocations[@]} ; do
+  for jar in `find ${loc} -name "*.jar" 2>/dev/null`; do
+    bsn=`readBSN ${jar}`
+    if [ -n "${bsn}" ]; then
+      echo ${wantedBundles} | grep -q "${bsn}"
+      if [ $? -eq 0 ]; then
+        ln -s ${jar} "${bsn}.jar"
+        wantedBundles=`removeFromList "${wantedBundles}" "${bsn}"`
+      fi
+    fi
+  done
+done
+}
+
+function removeFromList () {
+arr=( ${1} )
+for (( i=0; i < ${#arr[@]}; i++ )); do
+  if [ "${arr[${i}]}" = "$2" ]; then
+    arr[${i}]=
+  fi
+done
+echo ${arr[@]}
+}
+
+function isolateProject () {
+#usage: isolateProject srcfolder
+
+echo "isolateProject $1======================="
+
+cp $1/pom.xml $1/pom.xml.bak
+
+sed -i '/<parent>/,/<\/parent>/ d' "$1/pom.xml"
+if [ $# -eq 2 ]; then
+  sed -i "/<modelVersion>/ a <groupId>org.eclipse.tycho<\/groupId><version>$2<\/version>" "$1/pom.xml"
+else
+  sed -i "/<modelVersion>/ a <groupId>org.eclipse.tycho<\/groupId><version>${v}<\/version>" "$1/pom.xml"
+fi
+
+
+}
+
+function unifyProject () {
+#usage: unifyProject srcfolder
+
+echo "unifyProject $1========================="
+
+cp $1/pom.xml.bak $1/pom.xml
+#sed -i "/<version>${osgiV}<\/version>/ d" "$1/pom.xml"
+
+}
+
+function readBSN () {
+#read Bundle-SymbolicName from bundle's MANIFEST.MF
+#usage: readBSN fullfilename.jar
+
+bsn=
+manEntryPat="^[a-zA-Z-]*:"
+foundBSNLine=0
+
+while read line; do
+if [ ${foundBSNLine} -eq 1 ]; then
+  echo ${line} | grep -qE ${manEntryPat}
+  if [ $? -eq 0 ]; then
+    break
+  else
+    bsn=${bsn}"`echo ${line} | sed 's/\([a-zA-Z0-9_.-]*\)\(;\)\?.*/\1/'`"
+  fi
+fi
+
+echo ${line} | grep -q "Bundle-SymbolicName:"
+if [ $? -eq 0 ]; then
+  bsn=`echo ${line} | grep 'Bundle-SymbolicName:' | sed 's/Bundle-SymbolicName: \([a-zA-Z0-9_.-]*\)\(;\)\?.*/\1/'`
+  echo ${line} | grep "Bundle-SymbolicName:" | grep -q ";"
+  if [ $? -eq 0 ]; then
+    break
+  fi
+  foundBSNLine=1
+fi
+done < <(unzip -p $1 'META-INF/MANIFEST.MF')
+
+echo ${bsn}
+
+}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/tycho.git



More information about the pkg-java-commits mailing list