Created
October 7, 2014 00:17
-
-
Save gerardroche/9e08f18d4ef4dade35ca to your computer and use it in GitHub Desktop.
ant-strip-php-require_once
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<echo message="Stripping require_once calls..." /> | |
<replaceregexp byline="true"> | |
<regexp pattern="require_once" /> | |
<substitution expression="// require_once" /> | |
<fileset dir="${build.files.dir}" includes="**/*.php" /> | |
</replaceregexp> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<echo message="Stripping zf require_once calls..."/> | |
<replaceregexp byline="true"> | |
<regexp pattern="require_once" /> | |
<substitution expression="// require_once" /> | |
<fileset dir="${dest.dir}/library" excludes="*/Loader/Autoloader.php,*/Application.php" includes="**/*.php" /> | |
</replaceregexp> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment