buildr4osgi 0.9.0 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. data/buildr4osgi.gemspec +2 -2
  2. data/lib/buildr4osgi/compile/compiler.rb +23 -5
  3. data/lib/buildr4osgi/compile.rb +1 -1
  4. data/lib/buildr4osgi/eclipse/feature.rb +206 -65
  5. data/lib/buildr4osgi/osgi/bundle.rb +5 -7
  6. data/lib/buildr4osgi/osgi/bundle_package.rb +2 -2
  7. data/lib/buildr4osgi/osgi/container.rb +5 -0
  8. data/lib/buildr4osgi/osgi/dependencies.rb +91 -0
  9. data/lib/buildr4osgi/osgi/library_extension.rb +6 -4
  10. data/lib/buildr4osgi/osgi/packaging.rb +78 -6
  11. data/lib/buildr4osgi/osgi/packaging_sources.rb +86 -0
  12. data/lib/buildr4osgi/osgi/project_extension.rb +9 -115
  13. data/lib/buildr4osgi/osgi/registry.rb +71 -1
  14. data/lib/buildr4osgi/osgi/resolving_strategies.rb +4 -2
  15. data/lib/buildr4osgi/osgi.rb +2 -0
  16. data/lib/buildr4osgi.rb +0 -1
  17. data/rakelib/release.rake +3 -0
  18. data/rakelib/rspec.rake +3 -3
  19. data/rakelib/stage.rake +7 -0
  20. data/spec/compile/compiler_spec.rb +40 -8
  21. data/spec/eclipse/feature_spec.rb +103 -6
  22. data/spec/osgi/bundle_spec.rb +2 -2
  23. data/spec/osgi/dependencies_spec.rb +91 -0
  24. data/spec/osgi/library_extension_spec.rb +17 -0
  25. data/spec/osgi/packaging_sources_spec.rb +71 -0
  26. data/spec/osgi/packaging_spec.rb +11 -1
  27. data/spec/osgi/project_extension_spec.rb +31 -21
  28. data/spec/osgi/registry_spec.rb +31 -0
  29. data/spec/osgi/resolving_strategies_spec.rb +116 -0
  30. data/spec/spec_helpers.rb +2 -2
  31. data/spec/tmp/remote/log4j/log4j/1.2.15/log4j-1.2.15.jar +0 -0
  32. data/spec/tmp/remote/log4j/log4j/1.2.15/log4j-1.2.15.pom +478 -0
  33. metadata +10 -13
  34. data/lib/buildr4osgi/nature/eclipse.rb +0 -80
  35. data/lib/buildr4osgi/nature/java.rb +0 -32
  36. data/lib/buildr4osgi/nature/nature.rb +0 -156
  37. data/lib/buildr4osgi/nature/osgi.rb +0 -32
  38. data/lib/buildr4osgi/nature/scala.rb +0 -32
  39. data/spec/nature/eclipse_spec.rb +0 -46
  40. data/spec/nature/java_spec.rb +0 -45
  41. data/spec/nature/osgi_spec.rb +0 -63
  42. data/spec/nature/scala_spec.rb +0 -45
  43. data/spec/nature_spec.rb +0 -144
@@ -0,0 +1,478 @@
1
+ <!--
2
+ Licensed to the Apache Software Foundation (ASF) under one or more
3
+ contributor license agreements. See the NOTICE file distributed with
4
+ this work for additional information regarding copyright ownership.
5
+ The ASF licenses this file to You under the Apache License, Version 2.0
6
+ (the "License"); you may not use this file except in compliance with
7
+ the License. You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+
17
+ -->
18
+ <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">
19
+ <modelVersion>4.0.0</modelVersion>
20
+ <groupId>log4j</groupId>
21
+ <artifactId>log4j</artifactId>
22
+ <packaging>jar</packaging>
23
+ <name>Apache Log4j</name>
24
+ <version>1.2.15</version>
25
+ <properties>
26
+ <currentVersion>1.2.15</currentVersion>
27
+ </properties>
28
+ <description>Apache Log4j 1.2</description>
29
+ <url>http://logging.apache.org:80/log4j/1.2/</url>
30
+ <issueManagement>
31
+ <system>Bugzilla</system>
32
+ <url>http://issues.apache.org/bugzilla/</url>
33
+ </issueManagement>
34
+ <ciManagement>
35
+ <system>Gump</system>
36
+ <url>http://vmgump.apache.org/gump/public/logging-log4j-12/logging-log4j-12/index.html</url>
37
+ </ciManagement>
38
+ <inceptionYear>1999</inceptionYear>
39
+ <mailingLists>
40
+ <mailingList>
41
+ <name>log4j-user</name>
42
+ <subscribe>log4j-user-subscribe@logging.apache.org</subscribe>
43
+ <unsubscribe>log4j-user-unsubscribe@logging.apache.org</unsubscribe>
44
+ <post>log4j-user@logging.apache.org</post>
45
+ <archive>http://mail-archives.apache.org/mod_mbox/logging-log4j-dev/</archive>
46
+ <otherArchives>
47
+ <otherArchive>http://marc.info/?l=log4j-user</otherArchive>
48
+ <otherArchive>http://dir.gmane.org/gmane.comp.jakarta.log4j.user</otherArchive>
49
+ </otherArchives>
50
+ </mailingList>
51
+ <mailingList>
52
+ <name>log4j-dev</name>
53
+ <subscribe>log4j-dev-subscribe@logging.apache.org</subscribe>
54
+ <unsubscribe>log4j-dev-unsubscribe@logging.apache.org</unsubscribe>
55
+ <post>log4j-dev@logging.apache.org</post>
56
+ <archive>http://mail-archives.apache.org/mod_mbox/logging-log4j-dev/</archive>
57
+ <otherArchives>
58
+ <otherArchive>http://marc.info/?l=log4j-dev</otherArchive>
59
+ <otherArchive>http://dir.gmane.org/gmane.comp.jakarta.log4j.devel</otherArchive>
60
+ </otherArchives>
61
+ </mailingList>
62
+ </mailingLists>
63
+ <licenses>
64
+ <license>
65
+ <name>The Apache Software License, Version 2.0</name>
66
+ <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
67
+ <distribution>repo</distribution>
68
+ </license>
69
+ </licenses>
70
+ <scm>
71
+ <connection>scm:svn:http://svn.apache.org/repos/asf/logging/log4j/tags/v1_2_15_rc6</connection>
72
+ <developerConnection>scm:svn:https://svn.apache.org/repos/asf/logging/log4j/tags/v1_2_15_rc6</developerConnection>
73
+ <url>http://svn.apache.org/viewcvs.cgi/logging/log4j/tags/v1_2_15_rc6</url>
74
+ </scm>
75
+ <organization>
76
+ <name>Apache Software Foundation</name>
77
+ <url>http://www.apache.org</url>
78
+ </organization>
79
+ <build>
80
+ <plugins>
81
+ <plugin>
82
+ <artifactId>maven-surefire-plugin</artifactId>
83
+ <configuration>
84
+ <workingDirectory>tests</workingDirectory>
85
+ <reportFormat>plain</reportFormat>
86
+ <forkMode>pertest</forkMode>
87
+ <skip>true</skip>
88
+ <includes>
89
+ <include>org/apache/log4j/LevelTest.java</include>
90
+ <include>org/apache/log4j/PriorityTest.java</include>
91
+ <include>org/apache/log4j/CategoryTest.java</include>
92
+ <include>org/apache/log4j/FileAppenderTest.java</include>
93
+ <include>org/apache/log4j/LogManagerTest.java</include>
94
+ <include>org/apache/log4j/helpers.LogLogTest.java</include>
95
+ <include>org/apache/log4j/LayoutTest.java</include>
96
+ <include>org/apache/log4j/helpers.DateLayoutTest.java</include>
97
+ <include>org/apache/log4j/TTCCLayoutTest.java</include>
98
+ <include>org/apache/log4j/xml.XMLLayoutTest.java</include>
99
+ <include>org/apache/log4j/HTMLLayoutTest.java</include>
100
+ <include>org/apache/log4j/PatternLayoutTest.java</include>
101
+ <include>org/apache/log4j/spi.LoggingEventTest.java</include>
102
+ <include>org/apache/log4j/spi.ThrowableInformationTest.java</include>
103
+ <include>org/apache/log4j/spi.LocationInfoTest.java</include>
104
+ <include>org/apache/log4j/PropertyConfiguratorTest.java</include>
105
+ <include>org/apache/log4j/MinimumTestCase.java</include>
106
+ <include>org/apache/log4j/LoggerTestCase.java</include>
107
+ <include>org/apache/log4j/PatternLayoutTestCase.java</include>
108
+ <include>org/apache/log4j/HierarchyThresholdTestCase.java</include>
109
+ <include>org/apache/log4j/xml/DOMTestCase.java</include>
110
+ <include>org/apache/log4j/xml/CustomLevelTestCase.java</include>
111
+ <include>org/apache/log4j/customLogger/XLoggerTestCase.java</include>
112
+ <!-- DefaultInit -->
113
+ <!-- SocketServer -->
114
+ <include>org/apache/log4j/xml/XMLLayoutTestCase.java</include>
115
+ <include>org/apache/log4j/xml/AsyncAppenderTestCase.java</include>
116
+ <include>org/apache/log4j/varia/LevelMatchFilterTestCase.java</include>
117
+
118
+ <!-- ErrorHandlerTestCase is not run in Ant build either
119
+ <include>org/apache/log4j/varia/ErrorHandlerTestCase.java</include>
120
+ -->
121
+ <!-- include>org/apache/log4j/helpers/OptionConverterTestCase.java</include -->
122
+ <include>org/apache/log4j/helpers/BoundedFIFOTestCase.java</include>
123
+ <include>org/apache/log4j/helpers/CyclicBufferTestCase.java</include>
124
+ <include>org/apache/log4j/helpers/PatternParserTestCase.java</include>
125
+ <include>org/apache/log4j/or/ORTestCase.java</include>
126
+ <include>org/apache/log4j/DRFATestCase.java</include>
127
+ <include>org/apache/log4j/RFATestCase.java</include>
128
+ <include>org/apache/log4j/varia/ERFATestCase.java</include>
129
+ <include>org/apache/log4j/net/SyslogAppenderTest</include>
130
+ <include>org/apache/log4j/nt/NTEventLogAppenderTest</include>
131
+ <include>org/apache/log4j/net/SocketAppenderTest</include>
132
+ </includes>
133
+ </configuration>
134
+ </plugin>
135
+ <plugin>
136
+ <artifactId>maven-compiler-plugin</artifactId>
137
+ <configuration>
138
+ <source>1.2</source>
139
+ <target>1.1</target>
140
+ </configuration>
141
+ </plugin>
142
+ <plugin>
143
+ <artifactId>maven-jar-plugin</artifactId>
144
+ <configuration>
145
+ <archive>
146
+ <manifestSections>
147
+ <manifestSection>
148
+ <name>org.apache.log4j</name>
149
+ <manifestEntries>
150
+ <Implementation-Title>log4j</Implementation-Title>
151
+ <Implementation-Version>${project.version}</Implementation-Version>
152
+ <Implementation-Vendor>"Apache Software Foundation"</Implementation-Vendor>
153
+ </manifestEntries>
154
+ </manifestSection>
155
+ </manifestSections>
156
+ </archive>
157
+ </configuration>
158
+ </plugin>
159
+ <plugin>
160
+ <artifactId>maven-antrun-plugin</artifactId>
161
+ <executions>
162
+ <!-- generate NTEventLogAppender.dll -->
163
+ <execution>
164
+ <phase>process-classes</phase>
165
+ <id>ntdll</id>
166
+ <configuration>
167
+ <tasks>
168
+ <ant antfile="src/ntdll/build.xml">
169
+ <property name="target.dir" location="target" />
170
+ <property name="classes.dir" location="target/classes" />
171
+ <property name="src.dir" location="src/ntdll" />
172
+ <property name="jni.include.dir" location="${java.home}/../include" />
173
+ </ant>
174
+ </tasks>
175
+ </configuration>
176
+ <goals>
177
+ <goal>run</goal>
178
+ </goals>
179
+ </execution>
180
+ <!-- create tests/output prior to test run -->
181
+ <execution>
182
+ <phase>test-compile</phase>
183
+ <id>mkdir_tests_output</id>
184
+ <configuration>
185
+ <tasks>
186
+ <mkdir dir="tests/output" />
187
+ </tasks>
188
+ </configuration>
189
+ <goals>
190
+ <goal>run</goal>
191
+ </goals>
192
+ </execution>
193
+ <execution>
194
+ <phase>clean</phase>
195
+ <id>rmdir_tests_output</id>
196
+ <configuration>
197
+ <tasks>
198
+ <delete dir="tests/output" />
199
+ </tasks>
200
+ </configuration>
201
+ <goals>
202
+ <goal>run</goal>
203
+ </goals>
204
+ </execution>
205
+ <execution>
206
+ <phase>test</phase>
207
+ <id>runAll</id>
208
+ <configuration>
209
+ <tasks>
210
+ <ant dir="tests" target="runAll">
211
+ <property name="junit.jar" location="${user.home}/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar" />
212
+ <property name="jakarta.oro.jar" location="${user.home}/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar" />
213
+ <property name="javamail.jar" location="${user.home}/.m2/repository/javax/mail/mail/1.4/mail-1.4.jar" />
214
+ <property name="activation.jar" location="${user.home}/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar" />
215
+ <property name="log4j.jar" location="target/classes" />
216
+ <property name="project.lib.home" location="target" />
217
+ </ant>
218
+ </tasks>
219
+ </configuration>
220
+ <goals>
221
+ <goal>run</goal>
222
+ </goals>
223
+ </execution>
224
+ <!-- release builds will put SVN tags into the SCM page, this changes it back to a branch -->
225
+ <execution>
226
+ <phase>site</phase>
227
+ <id>untag-site</id>
228
+ <configuration>
229
+ <tasks>
230
+ <taskdef name="replaceregexp" classname="org.apache.tools.ant.taskdefs.optional.ReplaceRegExp" />
231
+ <replaceregexp file="target/site/source-repository.html" match="/tags/[^ ]*" replace="/trunk" flags="g" />
232
+ <replaceregexp match="-- Generated by (.*) on .*--" replace="-- Generated by \1 --" flags="g">
233
+ <fileset dir="target/site/apidocs" includes="**/*.html" />
234
+ </replaceregexp>
235
+ </tasks>
236
+ </configuration>
237
+ <goals>
238
+ <goal>run</goal>
239
+ </goals>
240
+ </execution>
241
+ <execution>
242
+ <phase>post-site</phase>
243
+ <id>post-site</id>
244
+ <configuration>
245
+ <tasks>
246
+ <ant target="post-site" />
247
+ </tasks>
248
+ </configuration>
249
+ <goals>
250
+ <goal>run</goal>
251
+ </goals>
252
+ </execution>
253
+ <execution>
254
+ <phase>site-deploy</phase>
255
+ <id>site-deploy</id>
256
+ <configuration>
257
+ <tasks>
258
+ <ant target="site-deploy" />
259
+ </tasks>
260
+ </configuration>
261
+ <goals>
262
+ <goal>run</goal>
263
+ </goals>
264
+ </execution>
265
+ </executions>
266
+ <dependencies>
267
+ <dependency>
268
+ <groupId>ant</groupId>
269
+ <artifactId>ant-nodeps</artifactId>
270
+ <version>1.6.5</version>
271
+ </dependency>
272
+ <dependency>
273
+ <groupId>ant-contrib</groupId>
274
+ <artifactId>ant-contrib</artifactId>
275
+ <version>1.0b2</version>
276
+ </dependency>
277
+ <dependency>
278
+ <groupId>ant</groupId>
279
+ <artifactId>ant-junit</artifactId>
280
+ <version>1.6.5</version>
281
+ </dependency>
282
+ <dependency>
283
+ <groupId>junit</groupId>
284
+ <artifactId>junit</artifactId>
285
+ <version>3.8.1</version>
286
+ <scope>test</scope>
287
+ </dependency>
288
+ <dependency>
289
+ <groupId>sun.jdk</groupId>
290
+ <artifactId>tools</artifactId>
291
+ <version>1.4.2</version>
292
+ <scope>system</scope>
293
+ <systemPath>${tools.jar}</systemPath>
294
+ </dependency>
295
+ </dependencies>
296
+ </plugin>
297
+ <plugin>
298
+ <artifactId>maven-assembly-plugin</artifactId>
299
+ <configuration>
300
+ <descriptors>
301
+ <descriptor>src/assembly/bin.xml</descriptor>
302
+ </descriptors>
303
+ <appendAssemblyId>false</appendAssemblyId>
304
+ </configuration>
305
+ <executions>
306
+ <execution>
307
+ <goals>
308
+ <goal>assembly</goal>
309
+ </goals>
310
+ </execution>
311
+ </executions>
312
+ </plugin>
313
+ <plugin>
314
+ <artifactId>maven-javadoc-plugin</artifactId>
315
+ <executions>
316
+ <execution>
317
+ <goals>
318
+ <goal>jar</goal>
319
+ <goal>javadoc</goal>
320
+ </goals>
321
+ </execution>
322
+ </executions>
323
+ </plugin>
324
+ <plugin>
325
+ <artifactId>maven-source-plugin</artifactId>
326
+ <executions>
327
+ <execution>
328
+ <goals>
329
+ <goal>jar</goal>
330
+ </goals>
331
+ </execution>
332
+ </executions>
333
+ </plugin>
334
+ <!--
335
+ clirr:check will fail with NullPointerException
336
+ due to missing javax.jms.MessageListener,
337
+ however it will trigger download of supporting components
338
+ which can allow "ant clirr" to succeed.
339
+ Could possibly run on a JavaEE platform.
340
+ -->
341
+ <plugin>
342
+ <groupId>org.codehaus.mojo</groupId>
343
+ <artifactId>clirr-maven-plugin</artifactId>
344
+ <configuration>
345
+ <comparisonVersion>1.2.14</comparisonVersion>
346
+ </configuration>
347
+ </plugin>
348
+ <plugin>
349
+ <groupId>org.codehaus.mojo</groupId>
350
+ <artifactId>rat-maven-plugin</artifactId>
351
+ </plugin>
352
+ </plugins>
353
+ <testSourceDirectory>tests/src/java</testSourceDirectory>
354
+ <testResources>
355
+ <testResource>
356
+ <directory>tests/resources</directory>
357
+ </testResource>
358
+ </testResources>
359
+ </build>
360
+ <profiles>
361
+ <profile>
362
+ <id>mac</id>
363
+ <activation>
364
+ <os><family>mac</family></os>
365
+ </activation>
366
+ <properties>
367
+ <tools.jar>${java.home}/../Classes/classes.jar</tools.jar>
368
+ </properties>
369
+ </profile>
370
+ <profile>
371
+ <id>default</id>
372
+ <activation>
373
+ <activeByDefault>true</activeByDefault>
374
+ </activation>
375
+ <properties>
376
+ <tools.jar>${java.home}/../lib/tools.jar</tools.jar>
377
+ </properties>
378
+ </profile>
379
+ </profiles>
380
+ <repositories>
381
+ <repository>
382
+ <id>java.net</id>
383
+ <url>https://maven-repository.dev.java.net/nonav/repository</url>
384
+ <layout>legacy</layout>
385
+ </repository>
386
+ </repositories>
387
+ <dependencies>
388
+ <dependency>
389
+ <groupId>javax.mail</groupId>
390
+ <artifactId>mail</artifactId>
391
+ <version>1.4</version>
392
+ </dependency>
393
+ <dependency>
394
+ <groupId>javax.jms</groupId>
395
+ <artifactId>jms</artifactId>
396
+ <version>1.1</version>
397
+ </dependency>
398
+ <dependency>
399
+ <groupId>com.sun.jdmk</groupId>
400
+ <artifactId>jmxtools</artifactId>
401
+ <version>1.2.1</version>
402
+ </dependency>
403
+ <dependency>
404
+ <groupId>com.sun.jmx</groupId>
405
+ <artifactId>jmxri</artifactId>
406
+ <version>1.2.1</version>
407
+ </dependency>
408
+ <dependency>
409
+ <groupId>oro</groupId>
410
+ <artifactId>oro</artifactId>
411
+ <version>2.0.8</version>
412
+ <scope>test</scope>
413
+ </dependency>
414
+ <dependency>
415
+ <groupId>junit</groupId>
416
+ <artifactId>junit</artifactId>
417
+ <version>3.8.1</version>
418
+ <scope>test</scope>
419
+ </dependency>
420
+ </dependencies>
421
+ <reporting>
422
+ <excludeDefaults>true</excludeDefaults>
423
+ <plugins>
424
+ <plugin>
425
+ <artifactId>maven-project-info-reports-plugin</artifactId>
426
+ <reportSets>
427
+ <reportSet>
428
+ <reports>
429
+ <report>scm</report>
430
+ <report>dependencies</report>
431
+ <report>cim</report>
432
+ <report>issue-tracking</report>
433
+ <report>mailing-list</report>
434
+ <report>license</report>
435
+ </reports>
436
+ </reportSet>
437
+ </reportSets>
438
+ </plugin>
439
+ <plugin>
440
+ <groupId>org.codehaus.mojo</groupId>
441
+ <artifactId>jxr-maven-plugin</artifactId>
442
+ </plugin>
443
+ <plugin>
444
+ <artifactId>maven-release-plugin</artifactId>
445
+ <!--
446
+ Bug MRELEASE273 has been throwing NPE during release:perform,
447
+ typically after deploy so this places it last.
448
+ -->
449
+ <configuration>
450
+ <goals>test site-deploy assembly:attached deploy</goals>
451
+ </configuration>
452
+ </plugin>
453
+ <plugin>
454
+ <artifactId>maven-changes-plugin</artifactId>
455
+ <reportSets>
456
+ <reportSet>
457
+ <reports>
458
+ <report>changes-report</report>
459
+ </reports>
460
+ </reportSet>
461
+ </reportSets>
462
+ <configuration>
463
+ <issueLinkTemplate>%URL%/show_bug.cgi?id=%ISSUE%</issueLinkTemplate>
464
+ </configuration>
465
+ </plugin>
466
+ </plugins>
467
+ </reporting>
468
+ <distributionManagement>
469
+ <repository>
470
+ <id>logging.repo</id>
471
+ <url>scp://people.apache.org/www/people.apache.org/builds/logging/repo/</url>
472
+ </repository>
473
+ <site>
474
+ <id>logging.site</id>
475
+ <url>scp://localhost/${user.dir}/target/site-deploy</url>
476
+ </site>
477
+ </distributionManagement>
478
+ </project>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: buildr4osgi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antoine Toulme
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-12 00:00:00 +02:00
12
+ date: 2009-10-29 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - "="
22
22
  - !ruby/object:Gem::Version
23
- version: 0.0.6
23
+ version: 0.0.7
24
24
  version:
25
25
  description: |
26
26
  A plugin for adding OSGi support to Buildr. Ever dreamt you could resolve your OSGi dependencies ?
@@ -41,17 +41,14 @@ files:
41
41
  - lib/buildr4osgi/eclipse/feature.rb
42
42
  - lib/buildr4osgi/eclipse/plugin.rb
43
43
  - lib/buildr4osgi/eclipse.rb
44
- - lib/buildr4osgi/nature/eclipse.rb
45
- - lib/buildr4osgi/nature/java.rb
46
- - lib/buildr4osgi/nature/nature.rb
47
- - lib/buildr4osgi/nature/osgi.rb
48
- - lib/buildr4osgi/nature/scala.rb
49
44
  - lib/buildr4osgi/nature.rb
50
45
  - lib/buildr4osgi/osgi/bundle.rb
51
46
  - lib/buildr4osgi/osgi/bundle_package.rb
52
47
  - lib/buildr4osgi/osgi/container.rb
48
+ - lib/buildr4osgi/osgi/dependencies.rb
53
49
  - lib/buildr4osgi/osgi/library_extension.rb
54
50
  - lib/buildr4osgi/osgi/packaging.rb
51
+ - lib/buildr4osgi/osgi/packaging_sources.rb
55
52
  - lib/buildr4osgi/osgi/project_extension.rb
56
53
  - lib/buildr4osgi/osgi/registry.rb
57
54
  - lib/buildr4osgi/osgi/resolving_strategies.rb
@@ -68,15 +65,12 @@ files:
68
65
  - rakelib/stage.rake
69
66
  - spec/compile/compiler_spec.rb
70
67
  - spec/eclipse/feature_spec.rb
71
- - spec/nature/eclipse_spec.rb
72
- - spec/nature/java_spec.rb
73
- - spec/nature/osgi_spec.rb
74
- - spec/nature/scala_spec.rb
75
- - spec/nature_spec.rb
76
68
  - spec/osgi/bundle_package_spec.rb
77
69
  - spec/osgi/bundle_spec.rb
78
70
  - spec/osgi/container_spec.rb
71
+ - spec/osgi/dependencies_spec.rb
79
72
  - spec/osgi/library_extension_spec.rb
73
+ - spec/osgi/packaging_sources_spec.rb
80
74
  - spec/osgi/packaging_spec.rb
81
75
  - spec/osgi/plugins/org.eclipse.core.runtime.compatibility.registry_3.2.200.v20090429-1800/about.html
82
76
  - spec/osgi/plugins/org.eclipse.core.runtime.compatibility.registry_3.2.200.v20090429-1800/fragment.properties
@@ -87,10 +81,13 @@ files:
87
81
  - spec/osgi/plugins/org.eclipse.core.runtime.compatibility.registry_3.2.200.v20090429-1800/runtime_registry_compatibility.jar
88
82
  - spec/osgi/project_extension_spec.rb
89
83
  - spec/osgi/registry_spec.rb
84
+ - spec/osgi/resolving_strategies_spec.rb
90
85
  - spec/osgi/version_spec.rb
91
86
  - spec/spec_helpers.rb
92
87
  - spec/tmp/remote/eclipse/org.eclipse.debug.ui/3.4.1.v20080811_r341/org.eclipse.debug.ui-3.4.1.v20080811_r341.jar
93
88
  - spec/tmp/remote/eclipse/org.eclipse.debug.ui/3.4.1.v20080811_r341/org.eclipse.debug.ui-3.4.1.v20080811_r341.pom
89
+ - spec/tmp/remote/log4j/log4j/1.2.15/log4j-1.2.15.jar
90
+ - spec/tmp/remote/log4j/log4j/1.2.15/log4j-1.2.15.pom
94
91
  - spec/tmp/remote/org/slf4j/jcl104-over-slf4j/1.5.8/jcl104-over-slf4j-1.5.8-sources.jar
95
92
  - spec/tmp/remote/org/slf4j/jcl104-over-slf4j/1.5.8/jcl104-over-slf4j-1.5.8.jar
96
93
  - spec/tmp/remote/org/slf4j/jcl104-over-slf4j/1.5.8/jcl104-over-slf4j-1.5.8.pom
@@ -1,80 +0,0 @@
1
- # Licensed to the Apache Software Foundation (ASF) under one or more
2
- # contributor license agreements. See the NOTICE file distributed with this
3
- # work for additional information regarding copyright ownership. The ASF
4
- # licenses this file to you under the Apache License, Version 2.0 (the
5
- # "License"); you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12
- # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13
- # License for the specific language governing permissions and limitations under
14
- # the License.
15
-
16
- module Buildr
17
- module Nature
18
- module Eclipse
19
- include Extension
20
-
21
- def eclipse
22
- @eclipse ||= Buildr::Nature::Eclipse::Eclipse.new(self)
23
- @eclipse
24
- end
25
-
26
- class Eclipse
27
-
28
- attr_reader :options
29
- def initialize(project)
30
- @options = OptionsFromNatures.new(project)
31
- end
32
- end
33
-
34
- class OptionsFromNatures
35
- attr_accessor :m2_repo_var, :project #Remove when Eclipse patch in.
36
-
37
- def initialize(project)
38
- #super(project) uncomment when the patch for better Eclipse task is in.
39
- @m2_repo_var = 'M2_REPO'
40
- @project = project
41
- end
42
-
43
- def self.special_attr_accessor(*names)
44
- names.each { |name|
45
- module_eval %{
46
-
47
- def #{name}= (value)
48
- @#{name} = value.is_a?(Array) ? value : [value]
49
- end
50
-
51
- def #{name}
52
- if @#{name}.nil?
53
- if (project.parent && !project.parent.eclipse.options._#{name}.nil?)
54
- @#{name} = project.parent.eclipse.options._#{name}
55
- else
56
- @#{name} = project.applicable_natures.collect{|n| n.eclipse.#{name}}.flatten.uniq
57
- end
58
- end
59
- @#{name}
60
- end
61
-
62
- protected
63
-
64
- def _#{name}
65
- @#{name}
66
- end
67
- }
68
- }
69
- end
70
-
71
- special_attr_accessor :natures, :builders, :classpath_containers
72
-
73
- end
74
- end
75
- end
76
- end
77
-
78
- class Buildr::Project
79
- include Buildr::Nature::Eclipse
80
- end
@@ -1,32 +0,0 @@
1
- # Licensed to the Apache Software Foundation (ASF) under one or more
2
- # contributor license agreements. See the NOTICE file distributed with this
3
- # work for additional information regarding copyright ownership. The ASF
4
- # licenses this file to you under the Apache License, Version 2.0 (the
5
- # "License"); you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12
- # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13
- # License for the specific language governing permissions and limitations under
14
- # the License.
15
-
16
- module Buildr
17
- class JavaNature < DefaultNature
18
-
19
- def initialize()
20
- super(:java)
21
- eclipse.natures = "org.eclipse.jdt.core.javanature"
22
- eclipse.builders = "org.eclipse.jdt.core.javabuilder"
23
- eclipse.classpath_containers = "org.eclipse.jdt.launching.JRE_CONTAINER"
24
- end
25
-
26
- def applies(project)
27
- File.exists? project.path_to(:src, :main, :java)
28
- end
29
- end
30
-
31
- Nature::Registry.add_nature(JavaNature.new)
32
- end