Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Eclipse feature for generating a p2 repository #46

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 10 additions & 0 deletions build.xml
Expand Up @@ -45,6 +45,10 @@ limitations under the License.
<mkdir dir="build/main" /> <mkdir dir="build/main" />
<mkdir dir="build/test" /> <mkdir dir="build/test" />
<mkdir dir="build/util" /> <mkdir dir="build/util" />
<mkdir dir="build/feature" />
<mkdir dir="build/p2" />
<mkdir dir="build/p2/features" />
<mkdir dir="build/p2/plugins" />
<mkdir dir="logs" /> <mkdir dir="logs" />
<mkdir dir="${testdir}" /> <mkdir dir="${testdir}" />
</target> </target>
Expand Down Expand Up @@ -144,6 +148,10 @@ limitations under the License.
<filterset><filter token="VERSION" value="${build.conf.lib.version}"/></filterset> <filterset><filter token="VERSION" value="${build.conf.lib.version}"/></filterset>
</copy> </copy>


<copy file="src/feature/feature.xml" tofile="build/feature/feature.xml" filtering="true">
<filterset><filter token="VERSION" value="${build.conf.lib.version}"/></filterset>
</copy>

<exec executable="git" output="build/main/git-hash"> <exec executable="git" output="build/main/git-hash">
<arg value="log" /> <arg value="log" />
<arg value="--pretty=format:%H" /> <arg value="--pretty=format:%H" />
Expand All @@ -156,6 +164,8 @@ limitations under the License.
<fileset dir="build/main"><not><filename name="com/"/></not></fileset> <fileset dir="build/main"><not><filename name="com/"/></not></fileset>
</jar> </jar>


<jar jarfile="build/p2/features/mongo.feature.jar"><fileset dir="build/feature" /></jar>
<copy file="mongo.jar" tofile="build/p2/plugins/mongo.jar"/>
</target> </target>


<!-- ******************************************************************* --> <!-- ******************************************************************* -->
Expand Down
35 changes: 35 additions & 0 deletions src/feature/feature.xml
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="com.mongodb.feature"
label="MongoDB Driver"
version="@VERSION@"
provider-name="MongoDB">

<description url="http://www.mongodb.org/display/DOCS/Java+Language+Center">
Driver for the MongoDB database.
</description>

<license url="http://www.apache.org/licenses/LICENSE-2.0">
Copyright 2011 MongoDB

Licensed under the Apache License, Version 2.0 (the &quot;License&quot;);
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an &quot;AS IS&quot; BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
</license>

<plugin
id="com.mongodb"
download-size="0"
install-size="0"
version="@VERSION@"
unpack="false"/>

</feature>