Skip to content

Commit

Permalink
Adding support for .htaccess RewriteBase modification after the make.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol authored and Pol Dell'Aiera committed Mar 28, 2012
1 parent 90e1fd2 commit 770605b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 770605b

Please sign in to comment.