Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix Jenkins issues

  • Loading branch information...
commit 1820be1dc07430349f0dd40a9e5113af34cc6df2 1 parent ec5c1f8
@llaumgui authored
View
95 classes/ezfluxbboperators.php
@@ -1,40 +1,18 @@
<?php
-//
-// Definition of eZFluxBBOperators class
-//
-// Created on: <01-Sep-2008 19:00:00 llaumgui>
-//
-// ## BEGIN COPYRIGHT, LICENSE AND WARRANTY NOTICE ##
-// SOFTWARE NAME: eZFluxBB
-// SOFTWARE RELEASE: 1.3
-// BUILD VERSION:
-// COPYRIGHT NOTICE: Copyright (c) 2008-2011 Guillaume Kulakowski and contributors
-// SOFTWARE LICENSE: GNU General Public License v2.0
-// NOTICE: >
-// This program is free software; you can redistribute it and/or
-// modify it under the terms of version 2.0 of the GNU General
-// Public License as published by the Free Software Foundation.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of version 2.0 of the GNU General
-// Public License along with this program; if not, write to the Free
-// Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
-// MA 02110-1301, USA.
-//
-//
-// ## END COPYRIGHT, LICENSE AND WARRANTY NOTICE ##
-//
-
-/*! \file ezfluxbboperators.php
-*/
-
-/*!
- \class eZFluxBBOperators ezfluxbboperators.php
- \brief Template operator for FluxBB
+/**
+ * File containing the eZFluxBBOperators class
+ *
+ * @version //autogentag//
+ * @package EZFluxBB
+ * @copyright Copyright (C) 2008-2012 Guillaume Kulakowski and contributors
+ * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2.0
+ */
+
+/**
+ * The eZFluxBB class template operator for FluxBB
+ *
+ * @package EZFluxBB
+ * @version //autogentag//
*/
class eZFluxBBOperators
{
@@ -42,8 +20,8 @@ class eZFluxBBOperators
private $Operators;
- /*!
- Constructor
+ /**
+ * Constructor
*/
function __construct()
{
@@ -54,27 +32,58 @@ function __construct()
+ /**
+ * Return list of operators
+ *
+ * @return multitype:string
+ */
function &operatorList()
{
return $this->Operators;
}
+
+
+ /**
+ * Return named parameters by operator
+ *
+ * @return boolean
+ */
function namedParameterPerOperator()
{
return true;
}
+
+
+ /**
+ * Return named parameters list
+ *
+ * @return multitype:multitype:
+ */
function namedParameterList()
{
- return array( 'bbcode2html' => array( ),
- );
+ return array(
+ 'bbcode2html' => array( )
+ );
}
+ /**
+ * Excecute template operator action
+ *
+ * @param eZTemplate_type $tpl
+ * @param string $operatorName
+ * @param array $operatorParameters
+ * @param operatorList $rootNamespace
+ * @param operatorList $currentNamespace
+ * @param string $operatorValue
+ * @param array $namedParameters
+ */
function modify( &$tpl, &$operatorName, &$operatorParameters, &$rootNamespace,
- &$currentNamespace, &$operatorValue, &$namedParameters )
- {
+ &$currentNamespace, &$operatorValue, &$namedParameters
+ ) {
switch ( $operatorName )
{
case 'bbcode2html':
@@ -86,4 +95,4 @@ function modify( &$tpl, &$operatorName, &$operatorParameters, &$rootNamespace,
}
-?>
+?>
View
44 classes/ezfluxbbpreferences.php
@@ -1,29 +1,19 @@
<?php
-//
-// ## BEGIN COPYRIGHT, LICENSE AND WARRANTY NOTICE ##
-// SOFTWARE NAME: Fedora-Fr - eZP Base
-// SOFTWARE RELEASE: 5.0.0
-// COPYRIGHT NOTICE: Copyright (c) 2008-2011 Guillaume Kulakowski and contributors
-// SOFTWARE LICENSE: GNU General Public License v2.0
-// NOTICE: >
-// This program is free software; you can redistribute it and/or
-// modify it under the terms of version 2.0 of the GNU General
-// Public License as published by the Free Software Foundation.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of version 2.0 of the GNU General
-// Public License along with this program; if not, write to the Free
-// Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
-// MA 02110-1301, USA.
-//
-//
-// ## END COPYRIGHT, LICENSE AND WARRANTY NOTICE ##
-//
+/**
+ * File containing the eZFluxBBPreferences class
+ *
+ * @version //autogentag//
+ * @package EZFluxBB
+ * @copyright Copyright (C) 2008-2012 Guillaume Kulakowski and contributors
+ * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2.0
+ */
+/**
+ * The eZFluxBBPreferences allow to store eZ Publish user preference inside eZ Publish
+ *
+ * @package EZFluxBB
+ * @version //autogentag//
+ */
class eZFluxBBPreferences extends eZPersistentObject
{
/**
@@ -46,14 +36,14 @@ public static function definition()
'datatype' => 'int',
'default' => '',
'required' => true ),
- "value" => array( 'name' => 'fluxBBUserID',
+ "value" => array( 'name' => 'fluxBBUserID',
'datatype' => 'int',
'default' => '',
'required' => true )
),
"keys" => array( "id" ),
"function_attributes" => array(),
- "increment_key" => "id",
+ "increment_key" => "id",
"class_name" => "eZFluxBBPreferences",
"sort" => array( "id" => "asc" ),
"name" => "ezfluxbbpreferences"
@@ -61,5 +51,5 @@ public static function definition()
}
}
-
+
?>
View
66 classes/ezjscorefluxbbservercallfunctions.php
@@ -1,51 +1,31 @@
<?php
-//
-// Definition of ezjscoreFluxBBServerCallFunctions class
-//
-// Created on: <28 déc. 2010 14:51:22 llaumgui>
-//
-// ## BEGIN COPYRIGHT, LICENSE AND WARRANTY NOTICE ##
-// SOFTWARE NAME: eZFluxBB
-// SOFTWARE RELEASE: 1.3
-// BUILD VERSION:
-// COPYRIGHT NOTICE: Copyright (c) 2008-2011 Guillaume Kulakowski and contributors
-// SOFTWARE LICENSE: GNU General Public License v2.0
-// NOTICE: >
-// This program is free software; you can redistribute it and/or
-// modify it under the terms of version 2.0 of the GNU General
-// Public License as published by the Free Software Foundation.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of version 2.0 of the GNU General
-// Public License along with this program; if not, write to the Free
-// Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
-// MA 02110-1301, USA.
-//
-//
-// ## END COPYRIGHT, LICENSE AND WARRANTY NOTICE ##
-//
-
-/*! \file ezjscorefluxbbservercallfunctions.php
-*/
-
-/*!
- \class ezjscoreFluxBBServerCallFunctions ezjscorefluxbbservercallfunctions.php
- \brief eZJSCore server call used by Fedora-Fr
-*/
+/**
+ * File containing the ezjscoreFluxBBServerCallFunctions class
+ *
+ * @version //autogentag//
+ * @package EZFluxBB
+ * @copyright Copyright (C) 2008-2012 Guillaume Kulakowski and contributors
+ * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2.0
+ */
+
+/**
+ * The eZFluxBBPreferences provide eZJSCore server call.
+ *
+ * @package EZFluxBB
+ * @version //autogentag//
+ */
class ezjscoreFluxBBServerCallFunctions extends ezjscServerFunctions
{
+
/**
* LoginBox
+ *
* @param array $args
*/
public static function loginBox( $args )
{
$tpl = eZTemplate::factory();
- $eZFluxBBINI = eZINI::instance( 'ezfluxbb.ini');
+ $eZFluxBBINI = eZINI::instance( 'ezfluxbb.ini' );
$fluxVersion = $eZFluxBBINI->variable( 'FluxBBInfo', 'Version' );
$cookieName = $eZFluxBBINI->variable( 'FluxBBInfo', 'CookieName' );
$boardURL = $eZFluxBBINI->variable( 'FluxBBInfo', 'BoardURL' );
@@ -53,16 +33,20 @@ public static function loginBox( $args )
$tpl->setVariable( 'board_url', $boardURL );
// No cookie:
- if ( !array_key_exists($cookieName, $_COOKIE) )
+ if ( !array_key_exists( $cookieName, $_COOKIE ) )
+ {
return $tpl->fetch( "design:ezfluxbb/loginbox/annonymous.tpl" );
+ }
$cookie = eZFluxBB::cookie2Array();
// Bad cookie
- if ( !array_key_exists( 'user_id', $cookie ) || sizeof($cookie) < 3 || intval($cookie['user_id']) <= 1 )
+ if ( !array_key_exists( 'user_id', $cookie ) || sizeof( $cookie ) < 3 || intval( $cookie['user_id'] ) <= 1 )
+ {
return $tpl->fetch( "design:ezfluxbb/loginbox/annonymous.tpl" );
+ }
- $tpl->setVariable( 'fluxbb_user_id', intval($cookie['user_id']) );
+ $tpl->setVariable( 'fluxbb_user_id', intval( $cookie['user_id'] ) );
// Full version
if ( isset($args[0]) && $args[0] == 'full' )
View
141 utils/build/_build.xml
@@ -0,0 +1,141 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="ezfluxbb" default="ci" basedir="../..">
+
+ <!--
+ ______________________________________________________________ Variables
+ -->
+ <property name="sourcedir" value="${project.basedir}" />
+ <property name="builddir" value="${project.basedir}/../build" />
+ <property name="zipdir" value="${project.basedir}/.." />
+ <property name="version" value="null" />
+
+
+
+ <!--
+ ____________________________________________________________________ CI
+ -->
+ <target name="ci"
+ description="Continuous integration main task"
+ depends="clean,qa"
+ />
+
+ <target name="clean" description="Vide les répertoires d'artefacts">
+ <delete dir="${builddir}/api" />
+ <delete dir="${builddir}/code-browser" />
+ <delete dir="${builddir}/coverage" />
+ <delete dir="${builddir}/log" />
+ <delete dir="${builddir}/pdepend" />
+
+ <mkdir dir="${builddir}/api" />
+ <mkdir dir="${builddir}/code-browser" />
+ <mkdir dir="${builddir}/coverage" />
+ <mkdir dir="${builddir}/logs" />
+ <mkdir dir="${builddir}/pdepend" />
+ </target>
+
+
+ <target name="qa" description="Launch all QA tools">
+ <phingcall target="pdepend" />
+ <phingcall target="phpmd" />
+ <phingcall target="phpcpd" />
+ <phingcall target="phpcs" />
+ <phingcall target="phploc" />
+ <phingcall target="doxygen" />
+ </target>
+
+
+
+ <!--
+ _______________________________________________________________ QA Tools
+ -->
+ <target name="pdepend">
+ <phpdepend file="${sourcedir}">
+ <logger type="jdepend-xml" outfile="${builddir}/logs/jdepend.xml" />
+ <logger type="jdepend-chart" outfile="${builddir}/pdepend/dependencies.svg" />
+ <logger type="overview-pyramid" outfile="${builddir}/pdepend/overview-pyramid.svg" />
+ </phpdepend>
+ </target>
+
+ <target name="phpmd">
+ <phpmd file="${sourcedir}">
+ <formatter type="xml" outfile="${builddir}/phpmd.xml" />
+ </phpmd>
+ </target>
+
+ <target name="phpcpd">
+ <phpcpd file="${sourcedir}">
+ <formatter type="pmd" outfile="${builddir}/logs/pmd-cpd.xml"/>
+ </phpcpd>
+ </target>
+
+ <target name="phpcs">
+ <phpcodesniffer standard="Zeta">
+ <fileset dir="${sourcedir}">
+ <include name="**/*.php"/>
+ </fileset>
+ <formatter type="checkstyle" outfile="${builddir}/logs/checkstyle.xml"/>
+ </phpcodesniffer>
+ </target>
+
+ <target name="phploc">
+ <exec logoutput="true" dir="${sourcedir}" escape="false" command="phploc
+ --log-csv '${builddir}/logs/phploc.csv'
+ '${sourcedir}'" />
+ </target>
+
+ <target name="doxygen">
+ <exec logoutput="true" dir="${sourcedir}" command="doxygen 'utils/build/DoxyFile'" />
+ </target>
+
+
+
+ <!--
+ _______________________________________________________________ Delivery
+ -->
+ <target name="build" description="Zip builder">
+ <if><equals arg1="${version}" arg2="null" /><then>
+ <echo message='The version is not set ! Use "phing build -Dversion=foo"' />
+ </then>
+ <else>
+ <phingcall target="_build-archive" />
+ </else>
+ </if>
+ </target>
+
+ <target name="_build-archive">
+ <echo>Build version ${version}</echo>
+
+ <delete dir="${zipdir}/${phing.project.name}-${version}" />
+ <delete dir="${zipdir}/${phing.project.name}-${version}.zip" />
+ <mkdir dir="${zipdir}/${phing.project.name}-${version}" />
+
+ <copy todir="${zipdir}/${phing.project.name}-${version}" >
+ <fileset dir="${sourcedir}">
+ <include name="*.php" />
+ <include name="*.png" />
+ <include name="doc/*" />
+ </fileset>
+ </copy>
+
+ <foreach param="filename" absparam="absfilename" target="_build-set-header">
+ <fileset dir=".">
+ <include name="*.php"/>
+ </fileset>
+ </foreach>
+
+ <zip destfile="${zipdir}/${phing.project.name}-${version}.zip"
+ prefix="${phing.project.name}/">
+ <fileset dir="${zipdir}/${phing.project.name}-${version}">
+ <include name="**/**" />
+ </fileset>
+ </zip>
+
+ <delete dir="${zipdir}/${phing.project.name}-${version}" />
+ </target>
+
+ <target name="_build-set-header" description="Set tag @version in header">
+ <exec logoutput="true" dir="${zipdir}/${phing.project.name}-${version}" command="
+ sed -i 's/\/\/autogentag\/\//${version}/g' ${absfilename};" />
+ </target>
+
+</project>
View
227 utils/build/build.xml
@@ -1,14 +1,64 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="ezfluxbb" default="ci" basedir="../..">
+ <!--
+ __________________________________________________________________ ChangeLog
+ build XML based on version 1.1
+
+ ChangeLog:
+ - Version 1.1:
+ - Add QATools
+ - Add JSLint
+ - Add CSSLint
+ - Version 1.0:
+ - 1.0: First release
+ -->
+
+
+
+
<!--
- ______________________________________________________________ Variables
+ __________________________________________________________________ Setup
-->
- <property name="sourcedir" value="${project.basedir}" />
- <property name="builddir" value="${project.basedir}/../build" />
- <property name="zipdir" value="${project.basedir}/.." />
+ <!-- Path -->
+ <property name="dir.source" value="${project.basedir}" />
+ <property name="dir.build" value="${project.basedir}/../build" />
+ <property name="dir.zip" value="${project.basedir}/.." />
<property name="version" value="null" />
+ <!-- Command -->
+ <property name="qatools.php.cmd" value="/opt/qatools/bin/qatools-php.php" />
+ <property name="qatools.php.options" value="" />
+ <property name="qatools.php.options.include" value="" />
+ <property name="qatools.php.options.exclude" value="-e '@tests@'" />
+
+ <!-- QA : JSLint -->
+ <property name="jslint.cmd" value="jslint" />
+ <property name="jslint.tmp.alljs" value="/tmp/jenkins_jslint_${phing.project.name}_all.js" />
+ <property name="jslint.rules" value="--browser --predef $,document,jQuery, --sloppy" />
+
+ <!-- QA : CSSLint -->
+ <property name="csslint.cmd" value="csslint" />
+ <property name="csslint.tmp.allcss" value="/tmp/jenkins_csslint_${phing.project.name}_css.css" />
+ <property name="csslint.rules.errors" value="adjoining-classes,box-model,box-sizing,compatible-vendor-prefixes,display-property-grouping,duplicate-background-images,duplicate-properties,empty-rules,errors,fallback-colors,floats,font-faces,font-sizes,gradients,ids,import,important,known-properties,outline-none,overqualified-elements,qualified-headings,regex-selectors,rules-count,shorthand,text-indent,unique-headings,universal-selector,vendor-prefix,zero-units" />
+ <property name="csslint.rules.warnings" value="" />
+
+ <!-- QA : Patternset -->
+ <patternset id="pattern.php">
+ <include name="**/*.php"/>
+ <exclude name="tests/*.php"/>
+ </patternset>
+
+ <patternset id="pattern.css">
+ <include name="**/*.css"/>
+ </patternset>
+
+ <patternset id="pattern.js">
+ <include name="**/*.js"/>
+ </patternset>
+
+
+
<!--
@@ -19,76 +69,171 @@
depends="clean,qa"
/>
+
<target name="clean" description="Vide les répertoires d'artefacts">
- <delete dir="${builddir}/api" />
- <delete dir="${builddir}/code-browser" />
- <delete dir="${builddir}/coverage" />
- <delete dir="${builddir}/log" />
- <delete dir="${builddir}/pdepend" />
+ <delete dir="${dir.build}/api" />
+ <delete dir="${dir.build}/log" />
+ <delete dir="${dir.build}/pdepend" />
+ <delete dir="${dir.build}/tests" />
- <mkdir dir="${builddir}/api" />
- <mkdir dir="${builddir}/code-browser" />
- <mkdir dir="${builddir}/coverage" />
- <mkdir dir="${builddir}/logs" />
- <mkdir dir="${builddir}/pdepend" />
+ <mkdir dir="${dir.build}/api" />
+ <mkdir dir="${dir.build}/logs" />
+ <mkdir dir="${dir.build}/pdepend" />
+ <mkdir dir="${dir.build}/tests" />
</target>
<target name="qa" description="Launch all QA tools">
+ <!-- PHP -->
<phingcall target="pdepend" />
<phingcall target="phpmd" />
<phingcall target="phpcpd" />
<phingcall target="phpcs" />
+
+ <!-- QATools -->
+ <phingcall target="qatools-php" />
+
+ <!-- Lint -->
+ <!-- phingcall target="jslint" / -->
+ <!--phingcall target="csslint" / -->
+
+ <!-- Doc and stats -->
<phingcall target="phploc" />
<phingcall target="doxygen" />
</target>
+
+
<!--
_______________________________________________________________ QA Tools
-->
<target name="pdepend">
- <phpdepend file="${sourcedir}">
- <logger type="jdepend-xml" outfile="${builddir}/logs/jdepend.xml" />
- <logger type="jdepend-chart" outfile="${builddir}/pdepend/dependencies.svg" />
- <logger type="overview-pyramid" outfile="${builddir}/pdepend/overview-pyramid.svg" />
+ <phpdepend>
+ <fileset dir="${dir.source}">
+ <patternset refid="pattern.php" />
+ </fileset>
+ <logger type="jdepend-xml" outfile="${dir.build}/logs/jdepend.xml" />
+ <logger type="jdepend-chart" outfile="${dir.build}/pdepend/dependencies.svg" />
+ <logger type="overview-pyramid" outfile="${dir.build}/pdepend/overview-pyramid.svg" />
</phpdepend>
</target>
+
<target name="phpmd">
- <phpmd file="${sourcedir}">
- <formatter type="xml" outfile="${builddir}/phpmd.xml" />
- </phpmd>
+ <phpmd>
+ <fileset dir="${dir.source}">
+ <patternset refid="pattern.php" />
+ </fileset>
+ <formatter type="xml" outfile="${dir.build}/phpmd.xml" />
+ </phpmd>
</target>
+
<target name="phpcpd">
- <phpcpd file="${sourcedir}">
- <formatter type="pmd" outfile="${builddir}/logs/pmd-cpd.xml"/>
+ <phpcpd>
+ <fileset dir="${dir.source}">
+ <patternset refid="pattern.php" />
+ </fileset>
+ <formatter type="pmd" outfile="${dir.build}/logs/pmd-cpd.xml"/>
</phpcpd>
</target>
+
<target name="phpcs">
<phpcodesniffer standard="Zeta">
- <fileset dir="${sourcedir}">
- <include name="**/*.php"/>
+ <fileset dir="${dir.source}">
+ <patternset refid="pattern.php" />
</fileset>
- <formatter type="checkstyle" outfile="${builddir}/logs/checkstyle.xml"/>
+ <formatter type="checkstyle" outfile="${dir.build}/logs/checkstyle.xml"/>
</phpcodesniffer>
</target>
+
+ <target name="qatools-php">
+ <exec logoutput="true" dir="${dir.source}" command="${qatools.php.cmd}
+ ${qatools.php.options.include}
+ ${qatools.php.options.exclude}
+ ${qatools.php.options}
+ -o ${dir.build}/tests/qa-php-file.xml
+ ${dir.source}" escape="false" />
+ </target>
+
<target name="phploc">
- <exec logoutput="true" dir="${sourcedir}" escape="false" command="phploc
- --log-csv '${builddir}/logs/phploc.csv'
- '${sourcedir}'" />
+ <exec logoutput="true" dir="${dir.source}" escape="false" command="phploc
+ --log-csv '${dir.build}/logs/phploc.csv'
+ '${dir.source}'" />
</target>
+
<target name="doxygen">
- <exec logoutput="true" dir="${sourcedir}" command="doxygen 'utils/build/DoxyFile'" />
+ <exec logoutput="true" dir="${dir.source}" command="doxygen 'utils/build/DoxyFile'" />
</target>
+
+
+ <!--
+ _____________________________________________________________________ JSLint
+ -->
+ <target name="jslint">
+ <foreach param="filename" absparam="jslint_absfilename" target="_jslint_createFilesetText">
+ <fileset dir="${dir.source}">
+ <patternset refid="pattern.js" />
+ </fileset>
+ </foreach>
+
+ <loadfile property="jslint_all_js" file="${jslint.tmp.alljs}"/>
+
+ <exec command="${jslint.cmd} ${jslint.rules}
+ --report xml
+ ${jslint_all_js} > ${dir.build}/build/logs/jslint.xml"
+ passthru="true" />
+
+ <delete file="${jslint.tmp.alljs}" />
+ </target>
+
+
+ <target name="_jslint_createFilesetText" >
+ <echo file="${jslint.tmp.alljs}" append="true">${jslint_absfilename} </echo>
+ </target>
+
+
+
+
+
+ <!--
+ _____________________________________________________________________ CSSLint
+ -->
+ <target name="csslint">
+ <foreach param="filename" absparam="csslint_absfilename" target="_csslint_createFilesetText">
+ <fileset dir="${dir.source}">
+ <patternset refid="pattern.css" />
+ </fileset>
+ </foreach>
+
+ <loadfile property="csslint_all_css" file="${csslint.tmp.allcss}"/>
+
+ <exec command="${csslint.cmd}
+ --format=lint-xml
+ --errors=${csslint.rules.errors}
+ ${csslint_all_css} > ${dir.build}/logs/csslint.xml"
+ passthru="true" />
+
+ <delete file="${csslint.tmp.allcss}" />
+ </target>
+
+
+ <target name="_csslint_createFilesetText" >
+ <echo file="${csslint.tmp.allcss}" append="true">${csslint_absfilename} </echo>
+ </target>
+
+
+
+
+
<!--
_______________________________________________________________ Delivery
-->
@@ -102,15 +247,16 @@
</if>
</target>
+
<target name="_build-archive">
<echo>Build version ${version}</echo>
- <delete dir="${zipdir}/${phing.project.name}-${version}" />
- <delete dir="${zipdir}/${phing.project.name}-${version}.zip" />
- <mkdir dir="${zipdir}/${phing.project.name}-${version}" />
+ <delete dir="${dir.zip}/${phing.project.name}-${version}" />
+ <delete dir="${dir.zip}/${phing.project.name}-${version}.zip" />
+ <mkdir dir="${dir.zip}/${phing.project.name}-${version}" />
- <copy todir="${zipdir}/${phing.project.name}-${version}" >
- <fileset dir="${sourcedir}">
+ <copy todir="${dir.zip}/${phing.project.name}-${version}" >
+ <fileset dir="${dir.source}">
<include name="*.php" />
<include name="*.png" />
<include name="doc/*" />
@@ -123,19 +269,20 @@
</fileset>
</foreach>
- <zip destfile="${zipdir}/${phing.project.name}-${version}.zip"
+ <zip destfile="${dir.zip}/${phing.project.name}-${version}.zip"
prefix="${phing.project.name}/">
- <fileset dir="${zipdir}/${phing.project.name}-${version}">
+ <fileset dir="${dir.zip}/${phing.project.name}-${version}">
<include name="**/**" />
</fileset>
</zip>
- <delete dir="${zipdir}/${phing.project.name}-${version}" />
+ <delete dir="${dir.zip}/${phing.project.name}-${version}" />
</target>
+
<target name="_build-set-header" description="Set tag @version in header">
- <exec logoutput="true" dir="${zipdir}/${phing.project.name}-${version}" command="
+ <exec logoutput="true" dir="${dir.zip}/${phing.project.name}-${version}" command="
sed -i 's/\/\/autogentag\/\//${version}/g' ${absfilename};" />
</target>
-</project>
+</project>
Please sign in to comment.
Something went wrong with that request. Please try again.