<commit_before><?xml version="1.0" encoding="UTF-8"?>
<!-- ======================================================================

     Kajona Head Build
     Buildfile to perform additional actions such as phpunit-tests, phpdoc generation, ...
     Called by the buildserver, so change with care :)
     This file is created for Jenkins but may be called from the CLI, too.

     This build-file may be migrated to phing, feel free to start the migration


     Author: sidler
     $Id$

     ====================================================================== -->
<project name="AGP Head Build" default="buildSqliteFast" basedir=".">

    <description>
        This buildfile is meant to be run on a SVN development snapshot, so NOT on a real project.
        The buildfile expects all modules to be checked out located at /core.
    </description>

    <import file="build_jenkins.xml" as="kajonav4"/>


    <!-- Path to the ionCube encoder -->
    <!-- osx demo: /Applications/ionCube PHP Encoder.app/Contents/MacOS/ioncube_encoder55 -->
    <property name="path.ioncube"   value="ioncube" />



    <!-- redefined, only buildFullZip, no light or all in one -->
    <target name="buildSqliteFast" depends="
		    								cleanFilesystem, init,
					    					buildProject,
					    					buildFullZip" />

    <!-- redefined, only buildFullZip, no light or all in one -->
    <target name="buildSqliteFull" depends="
		    								cleanFilesystem, init,
					    					buildProject, installProjectSqlite,
					    					lint,phpunit,phploc,pdepend,phpmd-ci,phpcs-ci,phpcpd,generateDoxygenDocs,phpcb,
					    					buildFullZip" />



    <!-- mysql config file -->
    <target name="installProjectMysql">
        <echo>Creating full Kajona installation</echo>
        <exec executable="php" dir="${basedir}"  failonerror="on" >
            <arg line="-f buildProject.php ${projectPath} false config_mysql_agp.php"/>
        </exec>
    </target>


    <!-- postgres config file -->
    <target name="installProjectPostgres">
        <echo>Creating full Kajona installation</echo>
        <exec executable="php" dir="${basedir}"  failonerror="on" >
            <arg line="-f buildProject.php ${projectPath} false config_postgres_agp.php"/>
        </exec>
    </target>


    <!-- oracle config file -->
    <target name="installProjectOracle">
        <echo>Creating full Kajona installation</echo>
        <exec executable="php" dir="${basedir}"  failonerror="on" >
            <arg line="-f buildProject.php ${projectPath} false config_oracle_agp.php"/>
        </exec>
    </target>


    <!-- creates the full-zip including all modules and elements -->
    <!-- redefined for adopted filenames and include / exclusion lists -->
    <target name="buildFullZip" depends="init" >
        <antcall target="setupPackageFolders" />
        <copy todir="${basedir}${tempPath}" overwrite="true"  includeEmptyDirs="true" >
            <fileset id="sources.dirs" dir="${basedir}${sourcesPath}">
                <exclude name=".svn"/>
                <exclude name="*/**/icons_svg/**" />
                <exclude name="*/**/icon_svg_SOURCE/**" />

                <include name="core*/element_*/**"/>
                <include name="core*/module_*/*/**"/>
                <include name="core*/template_*/*/**"/>
                <!--<include name="_debugging/*/**"/>-->
                <include name="core*/*.php"/>
                <include name="core*/*.htaccess"/>
            </fileset>
        </copy>

        <antcall target="buildPackageHelper" />
        <antcall target="encryptCode" />

        <zip destfile="${basedir}${packagesPath}/agp_v5_full_${DSTAMP}-${TSTAMP}.zip">
            <fileset dir="${basedir}${tempPath}/../" />
        </zip>
    </target>



    <!-- redefined to include all relevant less files -->
    <target name="compileLess" description="Compiles the less files and inserts them into to tpl files">
        <touch file="${basedir}${tempPath}/project/admin/agpskin/artemeon_project_overrides.less" mkdirs="true" />
        <echo>Compiling less files</echo>
        <exec executable="php" dir="${basedir}"  failonerror="on" >
            <arg line="-f lessc/v4setup.php "/>
        </exec>
        <exec executable="php" dir="${basedir}"  failonerror="on" >
            <arg line="-f lessc/agpsetup.php "/>
        </exec><commit_msg>NEW: _buildfiles | build.xml -> added a task to a possible ioncube encrypting<commit_after><?xml version="1.0" encoding="UTF-8"?>
<!-- ======================================================================

     Kajona Head Build
     Buildfile to perform additional actions such as phpunit-tests, phpdoc generation, ...
     Called by the buildserver, so change with care :)
     This file is created for Jenkins but may be called from the CLI, too.

     This build-file may be migrated to phing, feel free to start the migration


     Author: sidler
     $Id$

     ====================================================================== -->
<project name="AGP Head Build" default="buildSqliteFast" basedir=".">

    <description>
        This buildfile is meant to be run on a SVN development snapshot, so NOT on a real project.
        The buildfile expects all modules to be checked out located at /core.
    </description>

    <import file="build_jenkins.xml" as="kajonav4"/>


    <!-- Path to the ionCube encoder -->
    <!-- osx demo: /Applications/ionCube PHP Encoder.app/Contents/MacOS/ioncube_encoder55 -->
    <property name="path.ioncube"   value="ioncube" />



    <!-- redefined, only buildFullZip, no light or all in one -->
    <target name="buildSqliteFast" depends="
		    								cleanFilesystem, init,
					    					buildProject,
					    					buildFullZip" />

    <!-- redefined, only buildFullZip, no light or all in one -->
    <target name="buildSqliteFull" depends="
		    								cleanFilesystem, init,
					    					buildProject, installProjectSqlite,
					    					lint,phpunit,phploc,pdepend,phpmd-ci,phpcs-ci,phpcpd,generateDoxygenDocs,phpcb,
					    					buildFullZip" />



    <!-- mysql config file -->
    <target name="installProjectMysql">
        <echo>Creating full Kajona installation</echo>
        <exec executable="php" dir="${basedir}"  failonerror="on" >
            <arg line="-f buildProject.php ${projectPath} false config_mysql_agp.php"/>
        </exec>
    </target>


    <!-- postgres config file -->
    <target name="installProjectPostgres">
        <echo>Creating full Kajona installation</echo>
        <exec executable="php" dir="${basedir}"  failonerror="on" >
            <arg line="-f buildProject.php ${projectPath} false config_postgres_agp.php"/>
        </exec>
    </target>


    <!-- oracle config file -->
    <target name="installProjectOracle">
        <echo>Creating full Kajona installation</echo>
        <exec executable="php" dir="${basedir}"  failonerror="on" >
            <arg line="-f buildProject.php ${projectPath} false config_oracle_agp.php"/>
        </exec>
    </target>


    <!-- creates the full-zip including all modules and elements -->
    <!-- redefined for adopted filenames and include / exclusion lists -->
    <target name="buildFullZip" depends="init" >
        <antcall target="setupPackageFolders" />
        <copy todir="${basedir}${tempPath}" overwrite="true"  includeEmptyDirs="true" >
            <fileset id="sources.dirs" dir="${basedir}${sourcesPath}">
                <exclude name=".svn"/>
                <exclude name="*/**/icons_svg/**" />
                <exclude name="*/**/icon_svg_SOURCE/**" />

                <include name="core*/element_*/**"/>
                <include name="core*/module_*/*/**"/>
                <include name="core*/template_*/*/**"/>
                <!--<include name="_debugging/*/**"/>-->
                <include name="core*/*.php"/>
                <include name="core*/*.htaccess"/>
            </fileset>
        </copy>

        <antcall target="buildPackageHelper" />

        <zip destfile="${basedir}${packagesPath}/agp_v5_full_${DSTAMP}-${TSTAMP}.zip">
            <fileset dir="${basedir}${tempPath}/../" />
        </zip>
    </target>



    <!-- redefined to include all relevant less files -->
    <target name="compileLess" description="Compiles the less files and inserts them into to tpl files">
        <touch file="${basedir}${tempPath}/project/admin/agpskin/artemeon_project_overrides.less" mkdirs="true" />
        <echo>Compiling less files</echo>
        <exec executable="php" dir="${basedir}"  failonerror="on" >
            <arg line="-f lessc/v4setup.php "/>
        </exec>
        <exec executable="php" dir="${basedir}"  failonerror="on" >
            <arg line="-f lessc/agpsetup.php "/>
        </exec>
{'fraction_non_alphanumeric': 0.17548873899622727, 'fraction_numerical': 0.0018291985823710986, 'mean_word_length': 2.5896594173163727, 'pattern_counts': {'":': 0, '<': 146, '<?xml version=': 2, '>': 147, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 5}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6064299', 'n_tokens_mistral': 2669, 'n_tokens_neox': 2405, 'n_words': 617}