You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4php-dev@logging.apache.org by ch...@apache.org on 2009/10/27 21:44:07 UTC

svn commit: r830330 - /incubator/log4php/trunk/pom.xml

Author: chammers
Date: Tue Oct 27 20:44:06 2009
New Revision: 830330

URL: http://svn.apache.org/viewvc?rev=830330&view=rev
Log:
PEAR package builds again.
To make "pear package" work, it must be executed in a directory that contains
exactly those files that should be part of the PEAR package therfore the ant
copy tasks are needed.
The resulting .tgz file is moved to /target as I found it convenient if it
can be found next to the normal .tar.gz and .zip files.

Modified:
    incubator/log4php/trunk/pom.xml

Modified: incubator/log4php/trunk/pom.xml
URL: http://svn.apache.org/viewvc/incubator/log4php/trunk/pom.xml?rev=830330&r1=830329&r2=830330&view=diff
==============================================================================
--- incubator/log4php/trunk/pom.xml (original)
+++ incubator/log4php/trunk/pom.xml Tue Oct 27 20:44:06 2009
@@ -173,13 +173,33 @@
                         </goals>
                         <configuration>
                             <tasks>
-                            	<mkdir dir="target/pear"/>
-                                <exec executable="php" dir="target/pear" output="package.php.stdout">
+                                <delete dir="target/pear"/>    
+                                <mkdir dir="target/pear/log4php"/>      
+                                <copy file="package.php" todir="target/pear"/>      
+                                <copy file="package-config.php" todir="target/pear"/>   
+                                <copy file="src/changes/changes.xml" todir="target/pear"/>      
+                                <copy file="CHANGELOG" todir="target/pear"/>    
+                                <copy file="LICENSE" todir="target/pear"/>      
+                                <copy file="README" todir="target/pear"/>   
+                                <copy file="NOTICE" todir="target/pear"/>   
+                                <copy todir="target/pear">      
+                                    <fileset dir="src">     
+                                        <include name="examples/**/*"/>     
+                                    </fileset>      
+                                </copy>     
+                                <copy todir="target/pear/log4php">      
+                                    <fileset dir="src/main/php">    
+                                        <include name="**/*.php"/>      
+                                    </fileset>      
+                                </copy>
+                                <exec executable="php" dir="target/pear" output="target/package.php.stdout">
+                                    <arg line="-d error_reporting=6143"/> <!-- E_ALL & ~E_STRICT -->
                                     <arg line="../../package.php"/>
                                 </exec>
                                 <exec executable="pear" dir="target/pear">
                                     <arg line="package"/>
                                 </exec>
+                                <move file="target/pear/log4php-${pear.version}.tgz" todir="target/" />
                             </tasks>
                         </configuration>
                     </execution>