File tree 5 files changed +31
-1
lines changed
5 files changed +31
-1
lines changed Original file line number Diff line number Diff line change 217
217
</and >
218
218
</condition >
219
219
<antcall target =" _jarjar_internal_" />
220
-
220
+
221
221
<taskdef name =" jarjar" classname =" com.tonicsystems.jarjar.JarJarTask" classpath =" ${ build.lib.dir } /jarjar-1.0rc7.jar" />
222
222
<jarjar destfile =" ${ lib.dir } /jruby.jar" compress =" false" >
223
223
<fileset dir =" ${ jruby.classes.dir } " />
228
228
</manifest >
229
229
<rule pattern =" org.objectweb.asm.**" result =" jruby.objectweb.asm.@1" />
230
230
</jarjar >
231
+ <antcall target =" _osgify-jruby_" />
232
+ </target >
233
+
234
+ <!-- Use Bnd to wrap the JAR generated by jarjar in above task -->
235
+ <target name =" _osgify-jruby_" >
236
+ <filter token =" JRUBY_VERSION" value =" ${ version.jruby } " />
237
+ <copy file =" ${ basedir } /jruby.bnd.template" tofile =" ${ build.dir } /jruby.bnd" filtering =" true" />
238
+ <taskdef resource =" aQute/bnd/ant/taskdef.properties"
239
+ classpath =" ${ build.lib.dir } /bnd-0.0.249.jar" />
240
+ <bndwrap definitions =" ${ build.dir } " output =" ${ lib.dir } " >
241
+ <fileset file =" ${ lib.dir } /jruby.jar" />
242
+ </bndwrap >
243
+ <move file =" ${ lib.dir } /jruby.jar$" tofile =" ${ lib.dir } /jruby.jar"
244
+ overwrite =" true" />
231
245
</target >
232
246
233
247
<target name =" _jarjar_internal_" unless =" jarjar.uptodate" >
Original file line number Diff line number Diff line change
1
+ Export-Package: org.jruby.*;version="@JRUBY_VERSION@"
2
+ Import-Package: !org.jruby.*, *;resolution:=optional
3
+ Bundle-Version: @JRUBY_VERSION@
4
+ Bundle-Description: JRuby @JRUBY_VERSION@ OSGi bundle
5
+ Bundle-Name: JRuby @JRUBY_VERSION@
6
+ Bundle-SymbolicName: org.jruby.jruby
Original file line number Diff line number Diff line change 128
128
<artifactId >asm-tree</artifactId >
129
129
<version >3.0</version >
130
130
</artifactItem >
131
+ <artifactItem >
132
+ <groupId >biz.aQute</groupId >
133
+ <artifactId >bnd</artifactId >
134
+ <version >0.0.249</version >
135
+ </artifactItem >
131
136
<artifactItem >
132
137
<groupId >jline</groupId >
133
138
<artifactId >jline</artifactId >
Original file line number Diff line number Diff line change 128
128
<artifactId >asm-tree</artifactId >
129
129
<version >3.0</version >
130
130
</artifactItem >
131
+ <artifactItem >
132
+ <groupId >biz.aQute</groupId >
133
+ <artifactId >bnd</artifactId >
134
+ <version >0.0.249</version >
135
+ </artifactItem >
131
136
<artifactItem >
132
137
<groupId >jline</groupId >
133
138
<artifactId >jline</artifactId >
You can’t perform that action at this time.
0 commit comments