From: <nma...@us...> - 2006-03-28 12:38:30
|
Revision: 37 Author: nmarkgraf Date: 2006-03-28 04:38:15 -0800 (Tue, 28 Mar 2006) ViewCVS: http://svn.sourceforge.net/opendocumentphp/?rev=37&view=rev Log Message: ----------- New features: - PHing can make a copy for use in a production environment. Try "phing production" and look at "OpenDocumentPHP-0.5.0-solid.php" in "./dist" directory. - PHing can now create a single file out of all (nes.) files. Try "phing solid-production" and look in the "./production" directory. - New file "build.properties" now has the current release informations in i, and "build.xml" uses this information to build better names for produced files. Like "OpenDocumentPHP-0.5.0.zip" or "OpenDocumentPHP-0.5.0-solid.php" ... Norman Modified Paths: -------------- poc/build.xml Added Paths: ----------- poc/build.properties poc/etc/solid.txt Added: poc/build.properties =================================================================== --- poc/build.properties (rev 0) +++ poc/build.properties 2006-03-28 12:38:15 UTC (rev 37) @@ -0,0 +1,10 @@ +# This is the main build.xml property file. +# (C) by Norman Markgraf, Alex Latchford, et al. +# Published under GPL 2.0 or above. +# +# Last edited by $Author$ +# +# $Id$ +release=0.5.0 +releaseDos=0_5_0 +revision=$revision$ \ No newline at end of file Property changes on: poc/build.properties ___________________________________________________________________ Name: svn:keywords + Date Revision Author HeadURL Id Modified: poc/build.xml =================================================================== --- poc/build.xml 2006-03-23 09:06:06 UTC (rev 36) +++ poc/build.xml 2006-03-28 12:38:15 UTC (rev 37) @@ -1,6 +1,10 @@ <?xml version="1.0"?> <project name="OpenDocumentPHP" default="build" basedir="."> + + <property file="build.properties" /> + <property name="OpenDocumentPHPSolid" value="OpenDocumentPHP-${release}-solid.php" /> + <target name="prepare"> <mkdir dir="reports"/> <mkdir dir="reports/coverage"/> @@ -71,18 +75,18 @@ </target> <target name="dist" depends="preparedist"> - <zip destfile="dist/OpenDocumentPHP.zip" basedir="src"/> - <tar destfile="dist/OpenDocumentPHP.tar" basedir="src"/> + <zip destfile="dist/OpenDocumentPHP-${release}.zip" basedir="src"/> + <tar destfile="dist/OpenDocumentPHP-${release}.tar" basedir="src"/> </target> <target name="dev-dist" depends="preparedist"> - <zip destfile="dist/OpenDocumentPHPdev.zip" basedir="."> + <zip destfile="dist/OpenDocumentPHP-${release}-dev.zip" basedir="."> <fileset dir="."> <include name="**/**"/> <exclude name="**/?svn/**"/> </fileset> </zip> - <tar destfile="dist/OpenDocumentPHPdev.tar" basedir="."> + <tar destfile="dist/OpenDocumentPHP-${release}-dev.tar" basedir="."> <fileset dir="."> <include name="**/**"/> <exclude name="**/?svn/**"/> @@ -99,11 +103,34 @@ </fileset> </copy> </target> + + <target name="solid-production" depends="production"> + <mkdir dir="solid-production"/> + <copy todir="solid-production"> <!--"/OpenDocumentPHP-solid.php" overwrite="true" --> + <fileset dir="production"> + <include name="**/*.php" /> + </fileset> + <filterchain> + <replaceregexp> + <regexp pattern=".*require_once" replace="//require_once" ignoreCase="true" /> + <regexp pattern=".*include_once" replace="//include_once" ignoreCase="true" /> + <regexp pattern=".+this-.logger.+" replace="//this-logger-" /> + </replaceregexp> + <stripphpcomments /> + </filterchain> + </copy> + <!-- echo msg="${OpenDocumentPHPSolid}"/--> + <!-- echo msg="${os.name}"/--> + <exec command="copy ..\etc\solid.txt + *.php + manifest\*.php + content\*.php + settings\*.php + styles\*.php tmp.tmp" dir="solid-production"/> + <exec command="cat ../etc/solid.txt > ../tmp.tmp && cat *.php >> ../tmp.tmp && cat */*.php >> ../tmp.tmp" dir="solid-production" os="linux"/> + <copy file="solid-production/tmp.tmp" tofile="dist/${OpenDocumentPHPSolid}" overwrite="true"/> + <delete dir="solid-production"/> + </target> <target name="build" depends="prepare,test,reports,docs,dist"> </target> - <target name="build-all" depends="prepare,test,reports,docs,dist,dev-dist,production"> + <target name="build-all" depends="prepare,test,reports,docs,dist,dev-dist,production,solid-production"> </target> @@ -116,9 +143,11 @@ <delete file="OpenDocumentPHP.zip"/> <delete file="OpenDocumentPHP.tar"/> <delete dir="production"/> + <delete dir="solid-production"/> </target> <target name="proper" depends="clean"> <delete dir="reports"/> + <delete file="${OpenDocumentPHPSolid}"/> </target> </project> Added: poc/etc/solid.txt =================================================================== --- poc/etc/solid.txt (rev 0) +++ poc/etc/solid.txt 2006-03-28 12:38:15 UTC (rev 37) @@ -0,0 +1,20 @@ +<?php +/** + * OpenDocumentPHP in one solid file! + * + * This is a generated Text, please do not edit any thing in this file! Use the + * non solid files instead! + * + * + * + * $Id$ + * + * @license GNU General Public License + * @copyright Copyright © 2006, Norman Markgraf, Alex Latchford, et al. + * @author Norman Markgraf <nma...@us...> + * @version $Revision$ + * @package OpenDocument + * + * @since 0.5.0 + */ + ?> \ No newline at end of file Property changes on: poc/etc/solid.txt ___________________________________________________________________ Name: svn:keywords + Date Revision Author HeadURL Id This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |