Fool that I am. Of course, I forgot the patch.

On 12/29/06, Jochen Wiedmann <[EMAIL PROTECTED]> wrote:
Hi,

in light of

  http://marc.theaimsgroup.com/?l=jakarta-commons-dev&m=116560781629523&w=2

and following a suggestion by Jörg Schaible, I'd like to propose the
attached patch. It introduces properties

    commons.deployment.protocol
    commons.deployment.release.url
    commons.deployment.rc.url

The former is specifies as "scp" and may be overwritten, for example,
to be "scpexe". The others are used by the "release" and "rc"
profiles, respectively. Both are referencing
${commons.deployment.protocol}.

In other words, the proposed patch is upwards compatible with the
current settings, except that it allows to override the deployment
protocol or URL. Both makes sense, IMO. For example, nightly builds
might wish to override the "rc" URL.

Thoughts? If noone else intervenes, I'll apply the patch.

Jochen


--
My wife Mary and I have been married for forty-seven years and not
once have we had an argument serious enough to consider divorce;
murder, yes, but divorce, never.
(Jack Benny)



--
My wife Mary and I have been married for forty-seven years and not
once have we had an argument serious enough to consider divorce;
murder, yes, but divorce, never.
(Jack Benny)
Index: pom.xml
===================================================================
--- pom.xml	(Revision 490873)
+++ pom.xml	(Arbeitskopie)
@@ -164,7 +164,7 @@
         <repository>
           <id>apache.releases</id>
           <name>Apache Release Distribution Repository</name>
-          <url>scp://people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository</url>
+          <url>${commons.deployment.release.url}</url>
         </repository>
       </distributionManagement>
       <build>
@@ -203,8 +203,13 @@
         <repository>
           <id>apache.snapshots</id>
           <name>Apache Development Snapshot Repository</name>
-          <url>scp://people.apache.org/www/people.apache.org/repo/m2-snapshot-repository</url>
+          <url>${commons.deployment.rc.url}</url>
         </repository>
+        <snapshotRepository>
+          <id>apache.snapshots</id>
+          <name>Apache Development Snapshot Repository</name>
+          <url>${commons.deployment.rc.url}</url>
+        </snapshotRepository>
       </distributionManagement>
       <build>
         <plugins>
@@ -245,4 +250,15 @@
     <maven.compile.target>1.3</maven.compile.target>
   </properties> 
   -->
-</project>
\ Kein Zeilenvorschub am Ende der Datei
+  <properties>
+    <!--
+      Make the deployment protocol and the URL pluggable. This allows to
+      switch to other protocols (like scpexe, which some users prefer over
+      scp) or URL's (if users are working locally on people.apache.org)
+      by overriding these properties.
+    -->
+    <commons.deployment.protocol>scp</commons.deployment.protocol>
+    <commons.deployment.release.url>${commons.deployment.protocol}://people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository</commons.deployment.release.url>
+    <commons.deployment.rc.url>${commons.deployment.protocol}://people.apache.org/www/people.apache.org/repo/m2-snapshot-repository</commons.deployment.rc.url>
+  </properties>
+</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to