Author: chammers
Date: Sun Nov  1 16:56:41 2009
New Revision: 831705

URL: http://svn.apache.org/viewvc?rev=831705&view=rev
Log:
The pear package file name, in contrast to the pear version inside the
package.xml, is allowed to have dashes. So we can use the same 
2.0.0-incubator-SNAPSHOT
name as for the other distributed files.
This has the advantage that the enduser can identify the package as beeing
a snapshot before downloading it.
Once we get an pear repository this could have to be changed though.

Modified:
    incubator/log4php/trunk/pom.xml

Modified: incubator/log4php/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/incubator/log4php/trunk/pom.xml?rev=831705&r1=831704&r2=831705&view=diff
==============================================================================
--- incubator/log4php/trunk/pom.xml (original)
+++ incubator/log4php/trunk/pom.xml Sun Nov  1 16:56:41 2009
@@ -117,8 +117,6 @@
        <properties>
                <surefire.reports>target/surefire-reports</surefire.reports>
                <coverage.report>target/site/coverage-report</coverage.report>
-        <!-- PEAR does not accept a "-" after the version number! -->
-               <pear.version>2.0.0incubating</pear.version>
        </properties>
 
        <build>
@@ -199,7 +197,11 @@
                                 <exec executable="pear" dir="target/pear">
                                     <arg line="package"/>
                                 </exec>
-                                <move 
file="target/pear/Apache_log4php-${pear.version}.tgz" 
tofile="target/Apache_log4php-${pear.version}-pear.tgz" />
+                                <move 
tofile="target/Apache_log4php-${version}-pear.tgz">
+                                    <fileset dir="target/pear/">
+                                      <include name="Apache_log4php-*.tgz"/>
+                                    </fileset>
+                                </move>
                             </tasks>
                         </configuration>
                     </execution>


Reply via email to