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

<!-- $Revision: 1.79 $ $Date: 2004/08/21 15:57:01 $ -->

<project default="default"
    xmlns:j="jelly:core"
    xmlns:u="jelly:util"
    xmlns:ant="jelly:ant"
    xmlns:maven="jelly:maven"
    xmlns:define="jelly:define"
    xmlns:modules="local:modules">

    <j:set var="release.id" value="${pom.standardToLegacyId(pom.id)}-${pom.currentVersion}"/>
    <j:set var="distDir" value="target/${pom.groupId}-${pom.currentVersion}"/>

    <goal name="run">
        <attainGoal name="run:server"/>
    </goal>

    <goal name="run:server">
        <j:set var="run.dir" value="${distDir}/bin"/>
        <ant:echo message="Running in ${run.dir}"/>

        <j:jelly xmlns="jelly:ant">

            <property environment="env"/>
            <java jar="${distDir}/bin/server.jar"
                fork="true"
                maxmemory="256m"
                failonerror="true"
                dir="${run.dir}">

                <jvmarg value="-ea"/>

                <arg value="org/apache/geronimo/Server"/>
            </java>
        </j:jelly>
    </goal>

    <goal name="debug">
        <attainGoal name="debug:server"/>
    </goal>

    <goal name="debug:server">
        <j:set var="run.dir" value="${distDir}/bin"/>
        <ant:echo message="Running in ${run.dir}"/>

        <j:jelly xmlns="jelly:ant">

            <property environment="env"/>
            <java jar="${distDir}/bin/server.jar"
                fork="true"
                maxmemory="256m"
                failonerror="true"
                dir="${run.dir}">

                <jvmarg value="-ea"/>
                <jvmarg value="-Xdebug"/>
                <jvmarg value="-Xnoagent"/>
                <jvmarg value="-Djava.compiler=NONE"/>
                <jvmarg value="-Xrunjdwp:transport=dt_socket,address=8888,server=y,suspend=y"/>

                <sysproperty key="java.compiler" value="NONE"/>

                <arg value="org/apache/geronimo/Server"/>
            </java>
        </j:jelly>
    </goal>

    <!-- ======= -->
    <!-- Modules -->
    <!-- ======= -->
    <goal name="modules:reactor:init">
        <!--
           | Determine the includes which the reactor will use.
           |
           | Uses 4 properties to control which modules will be include:
           |
           | module.types      Comma seperated list of module types (ie. specs or modules)
           | module.includes   Comma seperated list of module names (ie. common, core, ...)
           | modules           Same as module.includes, module.includes initializes to this value
           | module.excludes   Comma seperated list of module names to exclude
           |
           | The end result is that modules.reactor.includes is set to the project.xml files
           | to include.  This is the value the reactor will use.
           |
           | Example, to only build the common and core modules:
           |
           | maven -Dmodules=common,core
         -->

        <j:if test="${context.getVariable('module.types') == null}">
            <j:set var="module.types" value="modules,specs,applications"/>
        </j:if>

        <j:if test="${context.getVariable('modules') == null}">
            <!-- The default is to build everything -->
            <j:set var="modules" value="*"/>
        </j:if>

        <j:if test="${context.getVariable('module.includes') == null}">
            <j:set var="module.includes" value="${modules}"/>
        </j:if>

        <j:if test="${context.getVariable('module.excludes') == null}">
            <j:set var="module.excludes" value=""/>
        </j:if>

        <u:tokenize var="types" delim=",">${module.types}</u:tokenize>

        <ant:fileScanner var="scanner">
            <ant:fileset dir="${basedir}">
                <j:forEach var="type" items="${types}"><commit_msg>Removed specs from normal build.<commit_after><?xml version="1.0" encoding="UTF-8"?>

<!-- $Revision: 1.80 $ $Date: 2004/09/05 04:55:05 $ -->

<project default="default"
    xmlns:j="jelly:core"
    xmlns:u="jelly:util"
    xmlns:ant="jelly:ant"
    xmlns:maven="jelly:maven"
    xmlns:define="jelly:define"
    xmlns:modules="local:modules">

    <j:set var="release.id" value="${pom.standardToLegacyId(pom.id)}-${pom.currentVersion}"/>
    <j:set var="distDir" value="target/${pom.groupId}-${pom.currentVersion}"/>

    <goal name="run">
        <attainGoal name="run:server"/>
    </goal>

    <goal name="run:server">
        <j:set var="run.dir" value="${distDir}/bin"/>
        <ant:echo message="Running in ${run.dir}"/>

        <j:jelly xmlns="jelly:ant">

            <property environment="env"/>
            <java jar="${distDir}/bin/server.jar"
                fork="true"
                maxmemory="256m"
                failonerror="true"
                dir="${run.dir}">

                <jvmarg value="-ea"/>

                <arg value="org/apache/geronimo/Server"/>
            </java>
        </j:jelly>
    </goal>

    <goal name="debug">
        <attainGoal name="debug:server"/>
    </goal>

    <goal name="debug:server">
        <j:set var="run.dir" value="${distDir}/bin"/>
        <ant:echo message="Running in ${run.dir}"/>

        <j:jelly xmlns="jelly:ant">

            <property environment="env"/>
            <java jar="${distDir}/bin/server.jar"
                fork="true"
                maxmemory="256m"
                failonerror="true"
                dir="${run.dir}">

                <jvmarg value="-ea"/>
                <jvmarg value="-Xdebug"/>
                <jvmarg value="-Xnoagent"/>
                <jvmarg value="-Djava.compiler=NONE"/>
                <jvmarg value="-Xrunjdwp:transport=dt_socket,address=8888,server=y,suspend=y"/>

                <sysproperty key="java.compiler" value="NONE"/>

                <arg value="org/apache/geronimo/Server"/>
            </java>
        </j:jelly>
    </goal>

    <!-- ======= -->
    <!-- Modules -->
    <!-- ======= -->
    <goal name="modules:reactor:init">
        <!--
           | Determine the includes which the reactor will use.
           |
           | Uses 4 properties to control which modules will be include:
           |
           | module.types      Comma seperated list of module types (ie. specs or modules)
           | module.includes   Comma seperated list of module names (ie. common, core, ...)
           | modules           Same as module.includes, module.includes initializes to this value
           | module.excludes   Comma seperated list of module names to exclude
           |
           | The end result is that modules.reactor.includes is set to the project.xml files
           | to include.  This is the value the reactor will use.
           |
           | Example, to only build the common and core modules:
           |
           | maven -Dmodules=common,core
         -->

        <j:if test="${context.getVariable('module.types') == null}">
            <j:set var="module.types" value="modules,applications"/>
        </j:if>

        <j:if test="${context.getVariable('modules') == null}">
            <!-- The default is to build everything -->
            <j:set var="modules" value="*"/>
        </j:if>

        <j:if test="${context.getVariable('module.includes') == null}">
            <j:set var="module.includes" value="${modules}"/>
        </j:if>

        <j:if test="${context.getVariable('module.excludes') == null}">
            <j:set var="module.excludes" value=""/>
        </j:if>

        <u:tokenize var="types" delim=",">${module.types}</u:tokenize>

        <ant:fileScanner var="scanner">
            <ant:fileset dir="${basedir}">
                <j:forEach var="type" items="${types}">
{'fraction_non_alphanumeric': 0.17174730834090024, 'fraction_numerical': 0.00804254767155273, 'mean_word_length': 1.9722436391673093, 'pattern_counts': {'":': 0, '<': 125, '<?xml version=': 2, '>': 125, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 20}, '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': '1907065', 'n_tokens_mistral': 2423, 'n_tokens_neox': 2257, 'n_words': 467}