Author: chammers
Date: Tue Oct 20 00:19:40 2009
New Revision: 826908
URL: http://svn.apache.org/viewvc?rev=826908&view=rev
Log:
Ported "php -l" loop from build.xml into the process-sources phase of
the maven default lifecycle (in other words, every php file gets syntax
checked before anything else happens).
Modified:
incubator/log4php/trunk/pom.xml
Modified: incubator/log4php/trunk/pom.xml
URL:
http://svn.apache.org/viewvc/incubator/log4php/trunk/pom.xml?rev=826908&r1=826907&r2=826908&view=diff
==============================================================================
--- incubator/log4php/trunk/pom.xml (original)
+++ incubator/log4php/trunk/pom.xml Tue Oct 20 00:19:40 2009
@@ -140,14 +140,41 @@
<artifactId>saxon</artifactId>
<version>8.7</version>
</dependency>
+ <dependency>
+ <groupId>ant-contrib</groupId>
+ <artifactId>ant-contrib</artifactId>
+ <version>1.0b3</version>
+ </dependency>
</dependencies>
-
<executions>
+ <execution>
+ <id>phplint</id>
+ <phase>process-sources</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <tasks>
+ <taskdef name="for"
classname="net.sf.antcontrib.logic.ForTask" />
+ <for param="src.php" parallel="true"
threadCount="10" >
+ <path>
+ <fileset dir="."
includes="src/main/php/**/*.php"/>
+ </path>
+ <sequential>
+ <exec executable="php"
failonerror="true">
+ <arg value="-l"/>
+ <arg value="@{src.php}"/>
+ </exec>
+ </sequential>
+ </for>
+ </tasks>
+ </configuration>
+ </execution>
<!--+
| PHPDoc must be installed for this execution
+-->
<execution>
- <id>phpdoct</id>
+ <id>phpdoc</id>
<phase>pre-site</phase>
<goals>
<goal>run</goal>