Author: carnold
Date: Tue Nov 28 16:32:53 2006
New Revision: 480304
URL: http://svn.apache.org/viewvc?view=rev&rev=480304
Log:
Bug 40604: Build Maven Repository Bundle
Modified:
logging/log4j/branches/v1_2-branch/build.xml
logging/log4j/branches/v1_2-branch/pom.xml
Modified: logging/log4j/branches/v1_2-branch/build.xml
URL:
http://svn.apache.org/viewvc/logging/log4j/branches/v1_2-branch/build.xml?view=diff&rev=480304&r1=480303&r2=480304
==============================================================================
--- logging/log4j/branches/v1_2-branch/build.xml (original)
+++ logging/log4j/branches/v1_2-branch/build.xml Tue Nov 28 16:32:53 2006
@@ -78,6 +78,11 @@
<property name="apache.javadoc_dest"
value="/www/logging.apache.org/log4j/docs"/>
<!-- Apache web host -->
<property name="apache.host" value="people.apache.org"/>
+
+ <property name="maven.base" value="${packaging.dir}/maven"/>
+ <property name="maven.src" value="${maven.base}/logging-log4j-${version}"/>
+ <property name="maven.dest" value="${maven.base}/repo"/>
+
@@ -690,35 +695,54 @@
<!-- This target will be incorporated init dist for the next release
currently it will repackage a previously built release -->
- <target name="dist-maven" depends="init" description="Builds an upload
package for Maven">
- <property name="maven.base" value="${packaging.dir}/maven"/>
- <property name="maven.src"
value="${maven.base}/logging-log4j-${version}"/>
- <property name="maven.dest" value="${packaging.dir}/maven"/>
+ <target name="prep-maven" depends="init" description="Prepares a Maven
package">
+ <delete dir="${maven.src}"/>
+ <delete dir="${maven.dest}"/>
<mkdir dir="${maven.base}"/>
<untar src="${dist.images}/logging-log4j-${version}.tar.gz"
dest="${maven.base}"
compression="gzip"/>
-
- <jar destfile="${maven.dest}/log4j-${version}-sources.jar"
+ <mkdir dir="${maven.dest}/java-sources"/>
+ <jar destfile="${maven.dest}/java-sources/log4j-${version}-sources.jar"
basedir="${maven.src}/src/java"
includes="**/*.java">
<metainf dir="${maven.src}" includes="NOTICE,LICENSE"/>
</jar>
- <jar destfile="${maven.dest}/log4j-${version}-javadoc.jar"
- basedir="${maven.src}/docs/api"
- includes="**/*">
- <metainf dir="${maven.src}" includes="NOTICE,LICENSE"/>
- </jar>
- <mkdir dir="${dist.images}"/>
- <jar destfile="${dist.images}/logging-log4j-${version}-bundle.jar"
- basedir="${maven.dest}"
- includes="log4j-${version}-sources.jar
log4j-${version}-javadoc.jar">
- <zipfileset dir="." includes="pom.xml"/>
- <zipfileset dir="${maven.src}/dist/lib"
includes="log4j-1.2.14.jar"/>
- <metainf dir="${maven.src}" includes="NOTICE,LICENSE"/>
- </jar>
+ <mkdir dir="${maven.dest}/jars"/>
+ <copy todir="${maven.dest}/jars"
file="${maven.src}/dist/lib/log4j-${version}.jar"/>
+ <mkdir dir="${maven.dest}/poms"/>
+ <copy tofile="${maven.dest}/poms/log4j-${version}.pom" file="pom.xml"/>
+ <mkdir dir="${maven.dest}/licenses"/>
+ <copy todir="${maven.dest}/licenses">
+ <fileset dir="${maven.src}" includes="LICENSE"/>
+ </copy>
+ <checksum forceOverwrite="yes" fileext=".md5">
+ <fileset dir="${maven.dest}"
excludes="logging-log4j-${version}/** **/*.md5 **/*.sha1 **/*.asc"/>
+ </checksum>
+ <checksum forceOverwrite="yes" fileext=".sha1" algorithm="SHA">
+ <fileset dir="${maven.dest}"
excludes="logging-log4j-${version}/** **/*.md5 **/*.sha1 **/*.asc"/>
+ </checksum>
+ <exec executable="gpg" dir="${maven.dest}/jars">
+ <arg value="--armor"/>
+ <arg value="--output"/>
+ <arg value="log4j-${version}.jar.asc"/>
+ <arg value="--detach-sig"/>
+ <arg value="log4j-${version}.jar"/>
+ </exec>
+ <exec executable="gpg" dir="${maven.dest}/java-sources">
+ <arg value="--armor"/>
+ <arg value="--output"/>
+ <arg value="log4j-${version}-sources.jar.asc"/>
+ <arg value="--detach-sig"/>
+ <arg value="log4j-${version}-sources.jar"/>
+ </exec>
+ </target>
+
+ <target name="publish-maven">
+ <scp todir="[EMAIL
PROTECTED]:/www/people.apache.org/repo/m1-ibiblio-rsync-repository/log4j/">
+ <fileset dir="${maven.dest}"/>
+ </scp>
</target>
-
<!-- ================================================================= -->
<!-- Build a complete distribution for release. -->
Modified: logging/log4j/branches/v1_2-branch/pom.xml
URL:
http://svn.apache.org/viewvc/logging/log4j/branches/v1_2-branch/pom.xml?view=diff&rev=480304&r1=480303&r2=480304
==============================================================================
--- logging/log4j/branches/v1_2-branch/pom.xml (original)
+++ logging/log4j/branches/v1_2-branch/pom.xml Tue Nov 28 16:32:53 2006
@@ -1 +1 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0">
<modelVersion>4.0.0</modelVersion>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<packaging>jar</packaging>
<name>Log4j</name>
<version>1.2.14</version>
<description>Log4j</description>
<url>http://logging.apache.org/log4j/docs/</url>
<issueManagement>
<system>Bugzilla</system>
<url>http://issues.apache.org/bugzilla</url>
</issueManagement>
<inceptionYear>1999</inceptionYear>
<mailingLists>
<mailingList>
<name>log4j-user</name>
<subscribe>[EMAIL PROTECTED]</subscribe>
<unsubscribe>[EMAIL PROTECTED]</unsubscribe>
<post>[email protected]</post>
<archive>http://mail-archives.apache.org/mod_mbox/logging-log4j-dev/</archive>
<otherArchives>
<otherArchive>http://marc.theaimsgroup.com/?l=log4j-user&r=1&w=2</otherArchive>
<otherArchive>http://dir.gmane.org/gmane.comp.jakarta.log4j.user</otherArchive>
</otherArchives>
</mailingList>
<mailingList>
<name>log4j-dev</name>
<subscribe>[EMAIL PROTECTED]</subscribe>
<unsubscribe>[EMAIL PROTECTED]</unsubscribe>
<post>[email protected]</post>
<archive>http://mail-archives.apache.org/mod_mbox/logging-log4j-dev/</archive>
<otherArchives>
<otherArchive>http://marc.theaimsgroup.com/?l=log4j-dev&r=1&w=2</otherArchive>
<otherArchive>http://dir.gmane.org/gmane.comp.jakarta.log4j.devel</otherArchive>
</otherArchives>
</mailingList>
</mailingLists>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/logging/log4j/tags/v1_2_14</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/logging/log4j/tags/v1
_2_14</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/logging/log4j/tags/v1_2_14/</url>
</scm>
<organization>
<name>Apache Software Foundation</name>
<url>http://www.apache.org</url>
</organization>
</project>
\ No newline at end of file
+<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">
<modelVersion>4.0.0</modelVersion>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<packaging>jar</packaging>
<name>Log4j</name>
<version>1.2.14</version>
<description>Log4j</description>
<url>http://logging.apache.org/log4j/docs/</url>
<issueManagement>
<system>Bugzilla</system>
<url>http://issues.apache.org/bugzilla</url>
</issueManagement>
<inceptionYear>1999</inceptionYear>
<mailingLists>
<mailingList>
<name>log4j-user</name>
<subscribe>[EMAIL PROTECTED]</subscribe>
<unsubscribe>[EMAIL PROTECTED]</unsubscribe>
<post>[email protected]</post>
<archive>http://mail-archives.apache.org/mod_mbox/logging-log4j-dev/</archive>
<otherArchives>
<otherArchive>http:/
/marc.theaimsgroup.com/?l=log4j-user&r=1&w=2</otherArchive>
<otherArchive>http://dir.gmane.org/gmane.comp.jakarta.log4j.user</otherArchive>
</otherArchives>
</mailingList>
<mailingList>
<name>log4j-dev</name>
<subscribe>[EMAIL PROTECTED]</subscribe>
<unsubscribe>[EMAIL PROTECTED]</unsubscribe>
<post>[email protected]</post>
<archive>http://mail-archives.apache.org/mod_mbox/logging-log4j-dev/</archive>
<otherArchives>
<otherArchive>http://marc.theaimsgroup.com/?l=log4j-dev&r=1&w=2</otherArchive>
<otherArchive>http://dir.gmane.org/gmane.comp.jakarta.log4j.devel</otherArchive>
</otherArchives>
</mailingList>
</mailingLists>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<connection>scm:svn:h
ttp://svn.apache.org/repos/asf/logging/log4j/tags/v1_2_14</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/logging/log4j/tags/v1_2_14</developerConnection>
<url>http://svn.apache.org/viewcvs.cgi/logging/log4j/tags/v1_2_14/</url>
</scm>
<organization>
<name>Apache Software Foundation</name>
<url>http://www.apache.org</url>
</organization>
</project>
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]