summaryrefslogtreecommitdiff
path: root/build.xml
diff options
context:
space:
mode:
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml21
1 files changed, 20 insertions, 1 deletions
diff --git a/build.xml b/build.xml
index 0ab9a5df..2230e92a 100644
--- a/build.xml
+++ b/build.xml
@@ -348,4 +348,23 @@ PRADO provides the following benefits for Web application developers:
<delete dir="${reports.dir}"/>
</target>
-</project> \ No newline at end of file
+ <target name="pradolite">
+ <echo>Compiling PRADO Lite</echo>
+ <delete file="${build.base.dir}/pradolite.php"/>
+ <append destFile="${build.base.dir}/pradolite.php">
+ <filterchain>
+ <stripphpcomments />
+ <replaceregexp>
+ <regexp pattern="Prado::using\(.*\);" replace=""/>
+ <regexp pattern="(require|require_once)\s*\(.*?;" replace=""/>
+ <regexp pattern="(include|include_once)\s*\(.*?;" replace=""/>
+ <regexp pattern="Prado::trace\(.*\);" replace=""/>
+ </replaceregexp>
+ </filterchain>
+ <filelist dir="${src.dir}" listfile="buildscripts/phpbuilder/files.txt"/>
+ </append>
+ <exec command="php -l pradolite.php" dir="${build.base.dir}" passthru="true" checkreturn="true"/>
+ <exec command="php -e pradolite.php" dir="${build.base.dir}" passthru="true" checkreturn="true"/>
+ </target>
+
+</project>