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

 File:      $RCSfile: generate.xml,v $
 Version:   $Revision: 1.116.10.1 $
 Modified:  $Date: 2013/07/31 20:58:54 $

 (c) Copyright 2005-2014 Mentor Graphics Corporation  All rights reserved.

-->
<project name="bp.core" default="all" basedir=".">
  <target name="all"
          description="Generate all code for this project"
          depends="sql,schema,java,cme,cme_schema,cme_menus,inspector.java, cell_modifiers,generate_supertype_subtype_util, action_language_description_util, generate_rto_util, format_java">
  </target>

  <target name="nb_all"
          description="Generate all code for this project"
          depends="sql,schema,java,cme,cme_schema,cme_menus,inspector.java, cell_modifiers,generate_supertype_subtype_util, action_language_description_util, generate_rto_util">
  </target>

  <property name="eclipse-home" value="${basedir}/../.."/>
  <property name="plugins-home" value="${ant.home}/../.."/>
  <property name="util_bin_dir" value="${eclipse-home}/src/org.xtuml.bp.mc.c.source/mc3020/bin"/>

  <property name="sql.input" value="models/org.xtuml.bp.core/ooaofooa" />
  <property name="sql.output" value="ooaofooa.sql" />

  <property name="subsystems_to_remove" value="ACT_ V_ E_ GD_ CT_ TS_ DIM_ STY_" />

  <property name="context_menu_input"
      value="**/Context*Menu*Entry*Functions.xtuml" />
  <property name="oal_validation_input"
      value="**/OAL*Validation*Functions.xtuml" />
  <property name="oal_utility_input"
      value="**/OAL*Validation*Utility*Functions.xtuml" />

  <property name="model_excludes" value="${context_menu_input}, ${oal_validation_input}, ${oal_utility_input}" />

  <target name="sql.depends" >
    <echo >Eclipse home: ${eclipse-home}</echo>
    <echo >Plugins home: ${plugins-home}</echo>
    <echo >Util home (xtumlmc_build.exe): ${util_bin_dir}</echo>
  	
    <uptodate property="sql.buildNotNeeded" targetfile="sql/${sql.output}">
      <srcfiles dir="${sql.input}" excludes="${model_excludes}" includes="**/*.xtuml" />
    </uptodate>
  </target>

  <target name="sql" depends="sql.depends"
          description="Generate the sql version of the OoaofOoa model"
          unless="sql.buildNotNeeded" >
    <echo >Generating ${sql.output} ...</echo>
  	<copy file="gen/code_generation/ooaofooa-1.sql" tofile="gen/code_generation/ooaofooa.xtuml"/>
  	<exec vmlauncher="false" failonerror="true" executable="${util_bin_dir}/xtumlmc_build.exe" >
  	      <arg line="xtumlmc_cleanse_for_BridgePoint ${basedir}/gen/code_generation sql/ooaofooa.sql" />
  	</exec>
  	<delete file="gen/code_generation/ooaofooa.xtuml" />
  </target>

  <property name="cme.input" value="models/org.xtuml.bp.core/context_menu" />
  <property name="cme.output" value="context_menu.sql" />

  <target name="cme.depends" >
    <uptodate property="cme.buildNotNeeded" value="yes" targetfile="sql/${cme.output}">
        <srcfiles dir= "${cme.input}" includes="**/*.xtuml" />
     </uptodate>
  </target>

  <target name="cme" depends="cme.depends"
          description="Generate the sql version of the Context Menu Entry model"
          unless="cme.buildNotNeeded" >
    <echo >Generating ${cme.output} ...</echo>
  	<copy file="../org.xtuml.bp.pkg/globals/Globals.xtuml" tofile="${cme.input}/Globals.xtuml" />
  	<exec vmlauncher="false" failonerror="true" executable="${util_bin_dir}/xtumlmc_build.exe" >
      <arg line="xtumlmc_cleanse_for_BridgePoint ${cme.input} sql/${cme.output} ${subsystems_to_remove}" />
    </exec>
  	<delete file="${cme.input}/Globals.xtuml" />
  </target>

  <property name="mcj_path" value="../MC-Java" />
  <property file="${mcj_path}/mc_java.depends" />

  <property name="sg.dep" value="ooa_schema.sql,schema_gen.arc" />
  <property name="schema.output" value="metamodel_schema.sql" />

  <target name="schema.depends" >
    <uptodate property="schema.buildNotNeeded" targetfile="sql/${schema.output}">
       <srcfiles dir = "sql"        includes = "${sql.output}"/>
       <srcfiles dir = "${mcj_path}" includes = "${sg.dep}"/>
    </uptodate>
  </target>

  <target name="schema.copy" unless="schemaIsUpToDate">
    <echo>The ${mcj_path}/ooa_schema.sql file is out of date.  Updating it.</echo>
    <copy todir="${mcj_path}">
      <fileset dir="sql" includes="ooa_schema.sql">
          <different targetdir="${mcj_path}" ignoreFileTimes="true"/>
      </fileset>
    </copy>
  </target>
	
  <target name="schema"
          depends="schema.depends"
          description="Generate the Ooa of ooa database schema file"
          unless="schema.buildNotNeeded" >
    <echo >Generating ${schema.output} ...</echo>
    <ant antfile="${mcj_path}/build.xml" target="generate.schema" >
      <property name="param1" value="${sql.output}" />
      <property name="param2" value="${mcj_path}" />
      <property name="param3" value="TRUE" />
      <property name="param4" value="ooaofooa" />
    </ant>
    <!-- If necessary, freshen the schema used by MC-Java -->
    <!-- Need to move the output file since the archetype uses the domain
       name as the base name of the output file -->
    <move file="sql/ooaofooa_schema.sql" tofile="sql/ooa_schema.sql" />
    <condition property="schemaIsUpToDate">
      <filesmatch file1="sql/ooa_schema.sql" file2="${mcj_path}/ooa_schema.sql" textfile="true"/>
    </condition>
    <antcall target="schema.copy"/>
    <!-- Finally rename the output file to the one expected by the installer -->
    <move file="sql/ooa_schema.sql" tofile="sql/${schema.output}" />
  </target>

  <property name="cme_schema.output" value="context_menu_schema.sql" />

  <target name="cme_schema.depends" >
    <uptodate property="cme_schema.buildNotNeeded" targetfile="sql/${cme_schema.output}">
        <srcfiles dir = "sql"        includes = "${cme.output}"/>
        <srcfiles dir = "${mcj_path}" includes = "schema_gen.arc"/>
    </uptodate>
  </target>

  <target name="cme_schema"
          depends="cme_schema.depends"
          description="Generate the Context Menu Entry schema file"
          unless="cme_schema.buildNotNeeded" >
    <echo >Generating ${cme_schema.output} ...</echo>
  <ant antfile="${mcj_path}/build.xml" target="generate.schema" >
    <property name="param1" value="${cme.output}" />
    <property name="param2" value="${mcj_path}" />
    <property name="param3" value="FALSE" />
    <property name="param4" value="context_menu" />
  </ant>
  <!-- Need to touch the output file for the case where the input data
       changed, but the output didn't -->
  <touch file="sql/${cme_schema.output}" />
  </target>

  <property name="java.sql.dep" value="${sql.output}" />
  <property name="java.color.dep" value="ooaofooa_startspec.clr,ooaofooa_import_spec.clr,ooaofooa_package_spec.clr" />
  <property name="java.tj.dep" value="ooa_schema.sql,${java.arc.depends}" />

  <property name="java.output" value="src/org/xtuml/bp/core/Ooaofooa.java" />

  <target name="java.depends" >
    <uptodate property="java.buildNotNeeded" targetfile="${java.output}">
       <srcfiles dir = "sql"        includes = "${java.sql.dep}" />
       <srcfiles dir = "color"      includes = "${java.color.dep}" />
       <srcfiles dir = "${mcj_path}" includes = "${java.tj.dep}" />
       <srcfiles dir = "arc" includes = "generate_RGO_resolution_methods.inc" />
    </uptodate>
  </target>

  <target name="java" description="Generate java code for this project"
          depends="java.depends"
          unless="java.buildNotNeeded" >
    <echo >Generating java files ...</echo>
  	<!--<parallel>-->
  <ant antfile="${mcj_path}/build.xml" target="generate-with-file_io.java" >
    <property name="param1" value="ooaofooa" />
    <property name="param2" value="Ooaofooa" />
    <property name="param3" value="${mcj_path}" />
    <property name="param4" value="" />
    <property name="param5" value="Constants" />
    <property name="param6" value = "1"/>
    <property name="verify_selects" value="false" />
    <property name="mcjava.project.root" value="${basedir}"/>
  </ant>
    <ant antfile="${mcj_path}/build.xml" target="generate-with-file_io.java" >
      <property name="param1" value="ooaofooa" /><commit_msg>job #8442 - For now, at least, don't regen the schema with each build.<commit_after><?xml version="1.0" encoding="UTF-8"?>
<!--

 File:      $RCSfile: generate.xml,v $
 Version:   $Revision: 1.116.10.1 $
 Modified:  $Date: 2013/07/31 20:58:54 $

 (c) Copyright 2005-2014 Mentor Graphics Corporation  All rights reserved.

-->
<project name="bp.core" default="all" basedir=".">
  <target name="all"
          description="Generate all code for this project"
          depends="sql,java,cme,cme_schema,cme_menus,inspector.java, cell_modifiers,generate_supertype_subtype_util, action_language_description_util, generate_rto_util, format_java">
  </target>

  <target name="nb_all"
          description="Generate all code for this project"
          depends="sql,java,cme,cme_schema,cme_menus,inspector.java, cell_modifiers,generate_supertype_subtype_util, action_language_description_util, generate_rto_util">
  </target>

  <property name="eclipse-home" value="${basedir}/../.."/>
  <property name="plugins-home" value="${ant.home}/../.."/>
  <property name="util_bin_dir" value="${eclipse-home}/src/org.xtuml.bp.mc.c.source/mc3020/bin"/>

  <property name="sql.input" value="models/org.xtuml.bp.core/ooaofooa" />
  <property name="sql.output" value="ooaofooa.sql" />

  <property name="subsystems_to_remove" value="ACT_ V_ E_ GD_ CT_ TS_ DIM_ STY_" />

  <property name="context_menu_input"
      value="**/Context*Menu*Entry*Functions.xtuml" />
  <property name="oal_validation_input"
      value="**/OAL*Validation*Functions.xtuml" />
  <property name="oal_utility_input"
      value="**/OAL*Validation*Utility*Functions.xtuml" />

  <property name="model_excludes" value="${context_menu_input}, ${oal_validation_input}, ${oal_utility_input}" />

  <target name="sql.depends" >
    <echo >Eclipse home: ${eclipse-home}</echo>
    <echo >Plugins home: ${plugins-home}</echo>
    <echo >Util home (xtumlmc_build.exe): ${util_bin_dir}</echo>
  	
    <uptodate property="sql.buildNotNeeded" targetfile="sql/${sql.output}">
      <srcfiles dir="${sql.input}" excludes="${model_excludes}" includes="**/*.xtuml" />
    </uptodate>
  </target>

  <target name="sql" depends="sql.depends"
          description="Generate the sql version of the OoaofOoa model"
          unless="sql.buildNotNeeded" >
    <echo >Generating ${sql.output} ...</echo>
  	<copy file="gen/code_generation/ooaofooa-1.sql" tofile="gen/code_generation/ooaofooa.xtuml"/>
  	<exec vmlauncher="false" failonerror="true" executable="${util_bin_dir}/xtumlmc_build.exe" >
  	      <arg line="xtumlmc_cleanse_for_BridgePoint ${basedir}/gen/code_generation sql/ooaofooa.sql" />
  	</exec>
  	<delete file="gen/code_generation/ooaofooa.xtuml" />
  </target>

  <property name="cme.input" value="models/org.xtuml.bp.core/context_menu" />
  <property name="cme.output" value="context_menu.sql" />

  <target name="cme.depends" >
    <uptodate property="cme.buildNotNeeded" value="yes" targetfile="sql/${cme.output}">
        <srcfiles dir= "${cme.input}" includes="**/*.xtuml" />
     </uptodate>
  </target>

  <target name="cme" depends="cme.depends"
          description="Generate the sql version of the Context Menu Entry model"
          unless="cme.buildNotNeeded" >
    <echo >Generating ${cme.output} ...</echo>
  	<copy file="../org.xtuml.bp.pkg/globals/Globals.xtuml" tofile="${cme.input}/Globals.xtuml" />
  	<exec vmlauncher="false" failonerror="true" executable="${util_bin_dir}/xtumlmc_build.exe" >
      <arg line="xtumlmc_cleanse_for_BridgePoint ${cme.input} sql/${cme.output} ${subsystems_to_remove}" />
    </exec>
  	<delete file="${cme.input}/Globals.xtuml" />
  </target>

  <property name="mcj_path" value="../MC-Java" />
  <property file="${mcj_path}/mc_java.depends" />

  <property name="sg.dep" value="ooa_schema.sql,schema_gen.arc" />
  <property name="schema.output" value="metamodel_schema.sql" />

  <target name="schema.depends" >
    <uptodate property="schema.buildNotNeeded" targetfile="sql/${schema.output}">
       <srcfiles dir = "sql"        includes = "${sql.output}"/>
       <srcfiles dir = "${mcj_path}" includes = "${sg.dep}"/>
    </uptodate>
  </target>

  <target name="schema.copy" unless="schemaIsUpToDate">
    <echo>The ${mcj_path}/ooa_schema.sql file is out of date.  Updating it.</echo>
    <copy todir="${mcj_path}">
      <fileset dir="sql" includes="ooa_schema.sql">
          <different targetdir="${mcj_path}" ignoreFileTimes="true"/>
      </fileset>
    </copy>
  </target>
	
  <target name="schema"
          depends="schema.depends"
          description="Generate the Ooa of ooa database schema file"
          unless="schema.buildNotNeeded" >
    <echo >Generating ${schema.output} ...</echo>
    <ant antfile="${mcj_path}/build.xml" target="generate.schema" >
      <property name="param1" value="${sql.output}" />
      <property name="param2" value="${mcj_path}" />
      <property name="param3" value="TRUE" />
      <property name="param4" value="ooaofooa" />
    </ant>
    <!-- If necessary, freshen the schema used by MC-Java -->
    <!-- Need to move the output file since the archetype uses the domain
       name as the base name of the output file -->
    <move file="sql/ooaofooa_schema.sql" tofile="sql/ooa_schema.sql" />
    <condition property="schemaIsUpToDate">
      <filesmatch file1="sql/ooa_schema.sql" file2="${mcj_path}/ooa_schema.sql" textfile="true"/>
    </condition>
    <antcall target="schema.copy"/>
    <!-- Finally rename the output file to the one expected by the installer -->
    <move file="sql/ooa_schema.sql" tofile="sql/${schema.output}" />
  </target>

  <property name="cme_schema.output" value="context_menu_schema.sql" />

  <target name="cme_schema.depends" >
    <uptodate property="cme_schema.buildNotNeeded" targetfile="sql/${cme_schema.output}">
        <srcfiles dir = "sql"        includes = "${cme.output}"/>
        <srcfiles dir = "${mcj_path}" includes = "schema_gen.arc"/>
    </uptodate>
  </target>

  <target name="cme_schema"
          depends="cme_schema.depends"
          description="Generate the Context Menu Entry schema file"
          unless="cme_schema.buildNotNeeded" >
    <echo >Generating ${cme_schema.output} ...</echo>
  <ant antfile="${mcj_path}/build.xml" target="generate.schema" >
    <property name="param1" value="${cme.output}" />
    <property name="param2" value="${mcj_path}" />
    <property name="param3" value="FALSE" />
    <property name="param4" value="context_menu" />
  </ant>
  <!-- Need to touch the output file for the case where the input data
       changed, but the output didn't -->
  <touch file="sql/${cme_schema.output}" />
  </target>

  <property name="java.sql.dep" value="${sql.output}" />
  <property name="java.color.dep" value="ooaofooa_startspec.clr,ooaofooa_import_spec.clr,ooaofooa_package_spec.clr" />
  <property name="java.tj.dep" value="ooa_schema.sql,${java.arc.depends}" />

  <property name="java.output" value="src/org/xtuml/bp/core/Ooaofooa.java" />

  <target name="java.depends" >
    <uptodate property="java.buildNotNeeded" targetfile="${java.output}">
       <srcfiles dir = "sql"        includes = "${java.sql.dep}" />
       <srcfiles dir = "color"      includes = "${java.color.dep}" />
       <srcfiles dir = "${mcj_path}" includes = "${java.tj.dep}" />
       <srcfiles dir = "arc" includes = "generate_RGO_resolution_methods.inc" />
    </uptodate>
  </target>

  <target name="java" description="Generate java code for this project"
          depends="java.depends"
          unless="java.buildNotNeeded" >
    <echo >Generating java files ...</echo>
  	<!--<parallel>  -->
  <ant antfile="${mcj_path}/build.xml" target="generate-with-file_io.java" >
    <property name="param1" value="ooaofooa" />
    <property name="param2" value="Ooaofooa" />
    <property name="param3" value="${mcj_path}" />
    <property name="param4" value="" />
    <property name="param5" value="Constants" />
    <property name="param6" value = "1"/>
    <property name="verify_selects" value="false" />
    <property name="mcjava.project.root" value="${basedir}"/>
  </ant>
    <ant antfile="${mcj_path}/build.xml" target="generate-with-file_io.java" >
      <property name="param1" value="ooaofooa" />
{'fraction_non_alphanumeric': 0.17509893455098935, 'fraction_numerical': 0.006940639269406392, 'mean_word_length': 3.8974358974358974, 'pattern_counts': {'":': 0, '<': 281, '<?xml version=': 2, '>': 281, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 12}, 'pii_count': 2, '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': '1766867', 'n_tokens_mistral': 5696, 'n_tokens_neox': 5585, 'n_words': 1014}