Browse files

Adding support for .htaccess RewriteBase modification after the make.

  • Loading branch information...
1 parent 90e1fd2 commit 770605b8c49e5b693d5a577fecc5fbb2b9ace1d1 @drupol drupol committed with drupol Mar 28, 2012
Showing with 13 additions and 0 deletions.
  1. +13 −0 build.xml
View
13 build.xml
@@ -958,6 +958,19 @@ called from `init` target. -->
</else>
</if>
+ <if>
+ <isset >
+ <then>
+ <reflexive file="${project.drupal.dir}/.htaccess">
+ <filterchain>
+ <replaceregexp>
+ <regexp pattern="# RewriteBase [\w/]*" replace="RewriteBase ${drupal.RewriteBase}"/>
+ </replaceregexp>
+ </filterchain>
+ </reflexive>
+ </then>
+ </if>
+
<!-- Set property to prevent target from being executed multiple times -->
<property name="project.make.skip" value="true"/>
</then>

0 comments on commit 770605b

Please sign in to comment.