buildr4osgi 0.9.3 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. data/buildr4osgi.gemspec +1 -1
  2. data/lib/buildr4osgi/compile/external.rb +7 -5
  3. data/lib/buildr4osgi/eclipse/feature.rb +28 -14
  4. data/lib/buildr4osgi/eclipse/p2.rb +34 -67
  5. data/lib/buildr4osgi/osgi/packaging.rb +141 -15
  6. data/lib/buildr4osgi/osgi/project_extension.rb +27 -7
  7. data/lib/buildr4osgi/osgi/registry.rb +14 -1
  8. data/lib/buildr4osgi/osgi/resolving_strategies.rb +2 -2
  9. data/rakelib/all-in-one.rake +9 -2
  10. data/rakelib/checks.rake +1 -1
  11. data/rakelib/doc.rake +7 -0
  12. data/rakelib/package.rake +1 -1
  13. data/rakelib/release.rake +6 -6
  14. data/rakelib/rspec.rake +6 -3
  15. data/rakelib/setup.rake +14 -2
  16. data/rakelib/stage.rake +11 -5
  17. data/spec/compile/external_spec.rb +1 -1
  18. data/spec/eclipse/feature_spec.rb +64 -6
  19. data/spec/osgi/packaging_spec.rb +75 -1
  20. data/spec/tmp/remote/eclipse/org.eclipse.debug.ui/3.4.1.v20080811_r341/org.eclipse.debug.ui-3.4.1.v20080811_r341.jar +0 -0
  21. data/spec/tmp/remote/eclipse/org.eclipse.debug.ui/3.4.1.v20080811_r341/org.eclipse.debug.ui-3.4.1.v20080811_r341.pom +82 -0
  22. data/spec/tmp/remote/log4j/log4j/1.2.15/log4j-1.2.15.jar +0 -0
  23. data/spec/tmp/remote/log4j/log4j/1.2.15/log4j-1.2.15.pom +478 -0
  24. data/spec/tmp/remote/org/slf4j/jcl104-over-slf4j/1.5.8/jcl104-over-slf4j-1.5.8-sources.jar +0 -0
  25. data/spec/tmp/remote/org/slf4j/jcl104-over-slf4j/1.5.8/jcl104-over-slf4j-1.5.8.jar +0 -0
  26. data/spec/tmp/remote/org/slf4j/jcl104-over-slf4j/1.5.8/jcl104-over-slf4j-1.5.8.pom +30 -0
  27. data/spec/tmp/remote/org/slf4j/slf4j-api/1.5.8/slf4j-api-1.5.8-sources.jar +0 -0
  28. data/spec/tmp/remote/org/slf4j/slf4j-api/1.5.8/slf4j-api-1.5.8.jar +0 -0
  29. data/spec/tmp/remote/org/slf4j/slf4j-api/1.5.8/slf4j-api-1.5.8.pom +101 -0
  30. data/spec/tmp/remote/org/slf4j/slf4j-log4j12/1.5.8/slf4j-log4j12-1.5.8-sources.jar +0 -0
  31. data/spec/tmp/remote/org/slf4j/slf4j-log4j12/1.5.8/slf4j-log4j12-1.5.8.jar +0 -0
  32. data/spec/tmp/remote/org/slf4j/slf4j-log4j12/1.5.8/slf4j-log4j12-1.5.8.pom +56 -0
  33. metadata +15 -2
@@ -211,6 +211,9 @@ PLUGIN_PROPERTIES
211
211
  Buildr::write "plugin.xml", ""
212
212
  mkpath "conf"
213
213
  Buildr::write "conf/log4j.properties", ""
214
+ # Note: it doesn't work if no sources are present.
215
+ # Adding a pending spec for support for it.
216
+ Buildr::write "src/main/java/Main.java", "public class Main { public static void main(String[] args) {}}"
214
217
  end
215
218
  foo.package(:plugin).invoke
216
219
  Zip::ZipFile.open(foo.package(:plugin).to_s) do |zip|
@@ -218,6 +221,46 @@ PLUGIN_PROPERTIES
218
221
  end
219
222
  end
220
223
 
224
+ it 'should include all the resources present at the root of the plugin, and no sources are defined' do
225
+ pending "In progress for this: we don't really need that yet."
226
+ foo = define("foo", :version => "1.0.0") do
227
+ package(:plugin).manifest["Bundle-Version"] = "2.0.0"
228
+ Buildr::write "plugin.xml", ""
229
+ mkpath "conf"
230
+ Buildr::write "conf/log4j.properties", ""
231
+ end
232
+
233
+ foo.package(:plugin).invoke
234
+ Zip::ZipFile.open(foo.package(:plugin).to_s) do |zip|
235
+ zip.find_entry("conf/log4j.properties").should_not be_nil
236
+ end
237
+ end
238
+
239
+ it 'should include resources present in the code tree' do
240
+ Buildr::write "org.apache.axis2.osgi-1.5.1-sources/Main.java", "public class Main { public static void main(String[] args) {}}"
241
+ Buildr::write "org.apache.axis2.osgi-1.5.1-sources/de/thing/HelloWorld.java", "package de.thing;public class HelloWorld {public static void main(String[] args) {}}"
242
+ Buildr::write "org.apache.axis2.osgi-1.5.1-sources/messages.properties", ""
243
+ Buildr::write "org.apache.axis2.osgi-1.5.1-sources/de/thing/messages.properties", ""
244
+ Buildr::write "org.apache.axis2.osgi-abpt-1.5.1-sources/de/hello/messages.properties", ""
245
+ Buildr::write "META-INF/MANIFEST.MF", "Bundle-SymbolicName: dev\nExport-Package: package1,\n package2\nBundle-Version: 1.0.0"
246
+ Buildr::write "plugin.xml", ""
247
+ foo = define("foo", :version => "1.0.0") do
248
+ compile.from(FileList["org.apache.axis2.osgi-1.5.1-sources/",
249
+ File.join(project.base_dir, "org.apache.axis2.osgi-abpt-1.5.1-sources")]).into("bin")
250
+ package(:bundle).use_bundle_version
251
+
252
+ end
253
+ foo.package(:bundle).invoke
254
+ Zip::ZipFile.open(foo.package(:bundle).to_s) do |zip|
255
+ zip.find_entry("messages.properties").should_not be_nil
256
+ zip.find_entry("de/thing/messages.properties").should_not be_nil
257
+ zip.find_entry("de/hello/messages.properties").should_not be_nil
258
+ zip.find_entry("org.apache.axis2.osgi-1.5.1-sources").should be_nil
259
+ zip.find_entry("org.apache.axis2.osgi-abpt-1.5.1-sources").should be_nil
260
+ zip.find_entry("plugin.xml").should_not be_nil
261
+ end
262
+ end
263
+
221
264
  it 'should not include java files or classes by mistake' do
222
265
  Buildr::write "plugin.xml", ""
223
266
  Buildr::write "src/main/java/Main.java", "public class Main { public static void main(String[] args) {}}"
@@ -227,11 +270,12 @@ PLUGIN_PROPERTIES
227
270
  foo = define("foo", :version => "1.0.0") do
228
271
  compile.options.source = "1.5"
229
272
  compile.options.target = "1.5"
230
-
273
+ compile.from(_("src/main/java"), _("customsrc/main/java")).into(_("bin"))
231
274
  package(:plugin).manifest["Bundle-Version"] = "2.0.0"
232
275
  end
233
276
  foo.compile.invoke
234
277
  foo.package(:plugin).invoke
278
+
235
279
  Zip::ZipFile.open(foo.package(:plugin).to_s) do |zip|
236
280
  zip.find_entry("customsrc").should be_nil
237
281
  zip.find_entry("src").should be_nil
@@ -325,6 +369,36 @@ describe OSGi::BundleTask, "with existing manifests" do
325
369
 
326
370
  end
327
371
 
372
+ it "should use the Bundle-Classpath entry whenever present to determine the classpath" do
373
+ Buildr::write "META-INF/MANIFEST.MF", "Bundle-SymbolicName: dev\nExport-Package: package1,\n package2\nBundle-Version: 1.0.0\nBundle-Classpath: WEB-INF/classes"
374
+ Buildr::write "src/main/java/Hello.java", "public class Hello {}"
375
+
376
+ foo = define("foo", :version => "1.0.0.qualifier") do
377
+ package(:bundle)
378
+ end
379
+
380
+ foo.package(:bundle).invoke
381
+ Zip::ZipFile.open(foo.package(:bundle).to_s) do |zip|
382
+ zip.find_entry("WEB-INF/classes/Hello.class").should_not be_nil
383
+ end
384
+
385
+ end
386
+
387
+ it "should use the _first_ Bundle-Classpath entry whenever present to determine the classpath" do
388
+ Buildr::write "META-INF/MANIFEST.MF", "Bundle-SymbolicName: dev\nExport-Package: package1,\n package2\nBundle-Version: 1.0.0\nBundle-Classpath: WEB-INF/classes,else"
389
+ Buildr::write "src/main/java/Hello.java", "public class Hello {}"
390
+
391
+ foo = define("foo", :version => "1.0.0.qualifier") do
392
+ package(:bundle)
393
+ end
394
+
395
+ foo.package(:bundle).invoke
396
+ Zip::ZipFile.open(foo.package(:bundle).to_s) do |zip|
397
+ zip.find_entry("WEB-INF/classes/Hello.class").should_not be_nil
398
+ end
399
+
400
+ end
401
+
328
402
  end
329
403
 
330
404
 
@@ -0,0 +1,82 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- Generated by PomWritr v.0.1.2 -->
3
+ <project>
4
+ <modelVersion>4.0.0</modelVersion>
5
+ <groupId>eclipse</groupId>
6
+ <artifactId>org.eclipse.debug.ui</artifactId>
7
+ <version>3.4.1.v20080811_r341</version>
8
+ <dependencies>
9
+ <dependency>
10
+ <groupId>eclipse</groupId>
11
+ <artifactId>org.eclipse.ui.editors</artifactId>
12
+ <version>3.4.0.v20080603-2000</version>
13
+ <type>osgi-bundle</type>
14
+ </dependency>
15
+ <dependency>
16
+ <groupId>eclipse</groupId>
17
+ <artifactId>org.eclipse.ui.workbench.texteditor</artifactId>
18
+ <version>3.4.1.r341_v20080827-1100</version>
19
+ <type>osgi-bundle</type>
20
+ </dependency>
21
+ <dependency>
22
+ <groupId>eclipse</groupId>
23
+ <artifactId>org.eclipse.ui.ide</artifactId>
24
+ <version>3.4.1.M20080903-2000</version>
25
+ <type>osgi-bundle</type>
26
+ </dependency>
27
+ <dependency>
28
+ <groupId>eclipse</groupId>
29
+ <artifactId>org.eclipse.ui.console</artifactId>
30
+ <version>3.3.0.v20080529-1300</version>
31
+ <type>osgi-bundle</type>
32
+ </dependency>
33
+ <dependency>
34
+ <groupId>eclipse</groupId>
35
+ <artifactId>org.eclipse.core.runtime</artifactId>
36
+ <version>3.4.0.v20080512</version>
37
+ <type>osgi-bundle</type>
38
+ </dependency>
39
+ <dependency>
40
+ <groupId>eclipse</groupId>
41
+ <artifactId>org.eclipse.debug.core</artifactId>
42
+ <version>3.4.0.v20080612</version>
43
+ <type>osgi-bundle</type>
44
+ </dependency>
45
+ <dependency>
46
+ <groupId>eclipse</groupId>
47
+ <artifactId>org.eclipse.ui</artifactId>
48
+ <version>3.4.1.M20080910-0800</version>
49
+ <type>osgi-bundle</type>
50
+ </dependency>
51
+ <dependency>
52
+ <groupId>eclipse</groupId>
53
+ <artifactId>org.eclipse.help</artifactId>
54
+ <version>3.3.101.v20080702_34x</version>
55
+ <type>osgi-bundle</type>
56
+ </dependency>
57
+ <dependency>
58
+ <groupId>eclipse</groupId>
59
+ <artifactId>org.eclipse.core.variables</artifactId>
60
+ <version>3.2.100.v20080529-1300</version>
61
+ <type>osgi-bundle</type>
62
+ </dependency>
63
+ <dependency>
64
+ <groupId>eclipse</groupId>
65
+ <artifactId>org.eclipse.core.expressions</artifactId>
66
+ <version>3.4.0.v20080603-2000</version>
67
+ <type>osgi-bundle</type>
68
+ </dependency>
69
+ <dependency>
70
+ <groupId>eclipse</groupId>
71
+ <artifactId>org.eclipse.core.filesystem</artifactId>
72
+ <version>1.2.0.v20080604-1400</version>
73
+ <type>osgi-bundle</type>
74
+ </dependency>
75
+ <dependency>
76
+ <groupId>eclipse</groupId>
77
+ <artifactId>org.eclipse.jface.text</artifactId>
78
+ <version>3.4.1.r341_v20080827-1100</version>
79
+ <type>osgi-bundle</type>
80
+ </dependency>
81
+ </dependencies>
82
+ </project>
@@ -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>