[logback-dev] svn commit: r1786 - logback/trunk/logback-examples
noreply.ceki at qos.ch
noreply.ceki at qos.ch
Thu Aug 28 19:04:41 CEST 2008
Author: ceki
Date: Thu Aug 28 19:04:40 2008
New Revision: 1786
Modified:
logback/trunk/logback-examples/pom.xml
Log:
LBGENERAL-17
added a small ant script to automatically copy slf4j-api-${VERSION}.jar to lib/
Modified: logback/trunk/logback-examples/pom.xml
==============================================================================
--- logback/trunk/logback-examples/pom.xml (original)
+++ logback/trunk/logback-examples/pom.xml Thu Aug 28 19:04:40 2008
@@ -15,18 +15,13 @@
<name>Logback Examples Module</name>
<url>http://logback.qos.ch</url>
- <description>
- <!--
- Never _never_ let Eclipse's auto format function add
- a line return in the description.
- The generated jar will contain a corrupt MANIFEST file.
- -->
+ <description>
Logback: the generic, reliable, fast and flexible logging library for Java.
</description>
<licenses>
<license>
- <name> GNU Lesser General Public License</name>
- <url>http://www.gnu.org/licenses/lgpl.html</url>
+ <name> GNU Lesser General Public License</name>
+ <url>http://www.gnu.org/licenses/lgpl.html</url>
</license>
</licenses>
@@ -61,6 +56,9 @@
</dependencies>
+
+
+
<build>
<resources>
<resource>
@@ -77,6 +75,31 @@
<target>1.5</target>
</configuration>
</plugin>
+
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <configuration>
+ <tasks>
+ <property name="slf4jJAR"
+ value="${settings.localRepository}/org/slf4j/slf4j-api/${slf4j.version}/slf4j-api-${slf4j.version}.jar"/>
+ <echo>Copying ${slf4jJAR} to lib/</echo>
+ <delete>
+ <fileset dir="lib/" includes="slf4j-*SNAPSHOT.jar"/>
+ </delete>
+ <copy file="${slf4jJAR}" todir="lib/"/>
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+
+
</plugins>
</build>
More information about the logback-dev
mailing list