Author: fabien
Date: 2010-05-12 08:24:54 +0200 (Wed, 12 May 2010)
New Revision: 29415

Modified:
   branches/1.3/lib/task/project/sfProjectOptimizeTask.class.php
   branches/1.4/lib/task/project/sfProjectOptimizeTask.class.php
   branches/1.4/lib/task/test/sfTestAllTask.class.php
   branches/1.4/lib/task/test/sfTestFunctionalTask.class.php
   branches/1.4/lib/task/test/sfTestUnitTask.class.php
Log:
[1.3, 1.4] fixed sfProjectOptimizeTask on Windows (closes #8640)

Modified: branches/1.3/lib/task/project/sfProjectOptimizeTask.class.php
===================================================================
--- branches/1.3/lib/task/project/sfProjectOptimizeTask.class.php       
2010-05-11 22:22:16 UTC (rev 29414)
+++ branches/1.3/lib/task/project/sfProjectOptimizeTask.class.php       
2010-05-12 06:24:54 UTC (rev 29415)
@@ -174,7 +174,7 @@
     foreach 
($this->configuration->getPluginSubPaths(DIRECTORY_SEPARATOR.'modules') as 
$path)
     {
       // parse out the plugin name
-      if 
(preg_match("#plugins".DIRECTORY_SEPARATOR."([^".DIRECTORY_SEPARATOR."]+)".DIRECTORY_SEPARATOR."modules#",
 $path, $matches))
+      if 
(preg_match("#plugins".preg_quote(DIRECTORY_SEPARATOR)."([^".preg_quote(DIRECTORY_SEPARATOR)."]+)".preg_quote(DIRECTORY_SEPARATOR)."modules#",
 $path, $matches))
       {
         // plugin module enabled?
         if (in_array($matches[1], sfConfig::get('sf_enabled_modules')))

Modified: branches/1.4/lib/task/project/sfProjectOptimizeTask.class.php
===================================================================
--- branches/1.4/lib/task/project/sfProjectOptimizeTask.class.php       
2010-05-11 22:22:16 UTC (rev 29414)
+++ branches/1.4/lib/task/project/sfProjectOptimizeTask.class.php       
2010-05-12 06:24:54 UTC (rev 29415)
@@ -174,7 +174,7 @@
     foreach 
($this->configuration->getPluginSubPaths(DIRECTORY_SEPARATOR.'modules') as 
$path)
     {
       // parse out the plugin name
-      if 
(preg_match("#plugins".DIRECTORY_SEPARATOR."([^".DIRECTORY_SEPARATOR."]+)".DIRECTORY_SEPARATOR."modules#",
 $path, $matches))
+      if 
(preg_match("#plugins".preg_quote(DIRECTORY_SEPARATOR)."([^".preg_quote(DIRECTORY_SEPARATOR)."]+)".preg_quote(DIRECTORY_SEPARATOR)."modules#",
 $path, $matches))
       {
         // plugin module enabled?
         if (in_array($matches[1], sfConfig::get('sf_enabled_modules')))

Modified: branches/1.4/lib/task/test/sfTestAllTask.class.php
===================================================================
--- branches/1.4/lib/task/test/sfTestAllTask.class.php  2010-05-11 22:22:16 UTC 
(rev 29414)
+++ branches/1.4/lib/task/test/sfTestAllTask.class.php  2010-05-12 06:24:54 UTC 
(rev 29415)
@@ -42,7 +42,7 @@
 If some tests fail, you can use the [--trace|COMMENT] option to have more
 information about the failures:
 
-    [./symfony test:all -t|INFO]
+  [./symfony test:all -t|INFO]
 
 Or you can also try to fix the problem by launching them by hand or with the
 [test:unit|COMMENT] and [test:functional|COMMENT] task.
@@ -50,7 +50,7 @@
 Use the [--only-failed|COMMENT] option to force the task to only execute tests
 that failed during the previous run:
 
-    [./symfony test:all --only-failed|INFO]
+  [./symfony test:all --only-failed|INFO]
 
 Here is how it works: the first time, all tests are run as usual. But for
 subsequent test runs, only tests that failed last time are executed. As you

Modified: branches/1.4/lib/task/test/sfTestFunctionalTask.class.php
===================================================================
--- branches/1.4/lib/task/test/sfTestFunctionalTask.class.php   2010-05-11 
22:22:16 UTC (rev 29414)
+++ branches/1.4/lib/task/test/sfTestFunctionalTask.class.php   2010-05-12 
06:24:54 UTC (rev 29415)
@@ -47,7 +47,7 @@
 If some tests fail, you can use the [--trace|COMMENT] option to have more
 information about the failures:
 
-    [./symfony test:functional frontend -t|INFO]
+  [./symfony test:functional frontend -t|INFO]
 
 You can launch all functional tests for a specific controller by
 giving a controller name:

Modified: branches/1.4/lib/task/test/sfTestUnitTask.class.php
===================================================================
--- branches/1.4/lib/task/test/sfTestUnitTask.class.php 2010-05-11 22:22:16 UTC 
(rev 29414)
+++ branches/1.4/lib/task/test/sfTestUnitTask.class.php 2010-05-12 06:24:54 UTC 
(rev 29415)
@@ -45,7 +45,7 @@
 If some tests fail, you can use the [--trace|COMMENT] option to have more
 information about the failures:
 
-    [./symfony test:unit -t|INFO]
+  [./symfony test:unit -t|INFO]
 
 You can launch unit tests for a specific name:
 

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.

Reply via email to