<commit_before><!-- In order for this build file to be referenced by name on import into other build files, 
     it's much nicer to have a short name with no spaces. Please don't change it. -->
<project name="Kettle CE Assembly" basedir="." default="dist" xmlns:ivy="antlib:org.apache.ivy.ant">

  <!-- =================================================================================
       Property Defaults
       Any of these properties can be overridden in either assembly.properties or override.properties
       =================================================================================-->

  <!-- Load the properties files in the proper order -->
  <property file="override.properties"
            description="Properties customized for your development environment belong in this file.  This file will never be checked into the SCM." />
  <property file="build.properties"
            description="Properties customized for your particular project belong in this file." />
  
   <!-- TODO delete when plugins are resolved -->

  <property name="plugin-ids" value="kettle-gpload-plugin,kettle-palo-plugin,kettle-hl7-plugin,kettle-openerp-plugin,kettle-profiling-datacleaner,birt-output,star-modeler,market"/>

  <!-- the impl properties are used to create the manifest file -->
  <property name="impl.title" value="Kettle" />
  <property name="impl.version" value="${project.revision}" />
  <property name="impl.vendor" value="Pentaho Corporation" />

  <import file="build-res/subfloor-pkg.xml" />

  <target name="dist" depends="init,resolve,resolve-swtlibs,resolve-launcher,package" description="Builds and packages the application"/>
  	
	<target name="assemble-full" depends="init,resolve,resolve-swtlibs,resolve-launcher,assemble" description="Builds the application" />

	
  <target name="assemble" depends="subfloor-pkg.assemble" description="copy jar files to distribution directory" >
  	<echo>Construct the distribution package...</echo>
    <!-- make JavaApplicationStub executable for OSX -->
    <chmod file="${approot.stage.dir}/Data Integration 32-bit.app/Contents/MacOS/JavaApplicationStub" perm="ugo+rx"/>
    <chmod file="${approot.stage.dir}/Data Integration 64-bit.app/Contents/MacOS/JavaApplicationStub" perm="ugo+rx"/>
  	
    <!-- Unzip the libswt package into the libswt folder of the distribution -->
    <unzip dest="${stage.dir}/${package.root.dir}" overwrite="true">
      <fileset dir="${swtlib.dir}">
        <include name="**/*.zip"/>
      </fileset>
    </unzip>
  	
  	<!-- Insert launcher revision number into batch files -->
    <replace dir="${stage.dir}/${package.root.dir}">
      <include name="*.bat"/>
      <replacefilter token="launcher\launcher.jar" value="launcher\launcher-${launcher.revision}.jar"/>     
    </replace>
  	
  </target>
  	
	<!--=======================================================================
	        resolve-swtlibs
	        
	        Resolved the swtlibs configuration from ivy.xml
	    =====================================================================-->
	  <target name="resolve-swtlibs" depends="install-ivy">
	    <delete dir="${swtlib.dir}" />
	    <ivy:resolve file="${ivyfile}" conf="test" />
	    <ivy:retrieve conf="swtlibs" pattern="${swtlib.dir}/[module]-[revision](-[classifier]).[ext]" symlink="${ivy.use.symlinks.internal}" />
	  </target>
	
	    <target name="package.lib" depends="resolve">
	      <jar jarfile="dist/${lib.zip.filename}" basedir="lib" />
	    </target>	
	
	 <target name="resolve-launcher" depends="install-ivy">
      <ivy:resolve file="${ivyfile}" conf="launcher" />
      <ivy:retrieve conf="launcher" pattern="${stage.dir}/${package.root.dir}/launcher/[module]-[revision](-[classifier]).[ext]" symlink="${ivy.use.symlinks.internal}" />
    </target>
</project><commit_msg>[PDI-7968]: Updated assembly to insert launcher.jar version number into shell scripts and plist files<commit_after><!-- In order for this build file to be referenced by name on import into other build files, 
     it's much nicer to have a short name with no spaces. Please don't change it. -->
<project name="Kettle CE Assembly" basedir="." default="dist" xmlns:ivy="antlib:org.apache.ivy.ant">

  <!-- =================================================================================
       Property Defaults
       Any of these properties can be overridden in either assembly.properties or override.properties
       =================================================================================-->

  <!-- Load the properties files in the proper order -->
  <property file="override.properties"
            description="Properties customized for your development environment belong in this file.  This file will never be checked into the SCM." />
  <property file="build.properties"
            description="Properties customized for your particular project belong in this file." />
  
   <!-- TODO delete when plugins are resolved -->

  <property name="plugin-ids" value="kettle-gpload-plugin,kettle-palo-plugin,kettle-hl7-plugin,kettle-openerp-plugin,kettle-profiling-datacleaner,birt-output,star-modeler,market"/>

  <!-- the impl properties are used to create the manifest file -->
  <property name="impl.title" value="Kettle" />
  <property name="impl.version" value="${project.revision}" />
  <property name="impl.vendor" value="Pentaho Corporation" />

  <import file="build-res/subfloor-pkg.xml" />

  <target name="dist" depends="init,resolve,resolve-swtlibs,resolve-launcher,package" description="Builds and packages the application"/>
  	
	<target name="assemble-full" depends="init,resolve,resolve-swtlibs,resolve-launcher,assemble" description="Builds the application" />

	
  <target name="assemble" depends="subfloor-pkg.assemble" description="copy jar files to distribution directory" >
  	<echo>Construct the distribution package...</echo>
    <!-- make JavaApplicationStub executable for OSX -->
    <chmod file="${approot.stage.dir}/Data Integration 32-bit.app/Contents/MacOS/JavaApplicationStub" perm="ugo+rx"/>
    <chmod file="${approot.stage.dir}/Data Integration 64-bit.app/Contents/MacOS/JavaApplicationStub" perm="ugo+rx"/>
  	
    <!-- Unzip the libswt package into the libswt folder of the distribution -->
    <unzip dest="${stage.dir}/${package.root.dir}" overwrite="true">
      <fileset dir="${swtlib.dir}">
        <include name="**/*.zip"/>
      </fileset>
    </unzip>
  	
  	<!-- Insert launcher revision number into batch files -->
    <replace dir="${stage.dir}/${package.root.dir}">
      <include name="*.bat"/>
    	<include name="*.sh"/>
    	<include name="**/*.plist"/>
      <replacefilter token="launcher.jar" value="launcher-${launcher.revision}.jar"/>     
    </replace>
  	
  </target>
  	
	<!--=======================================================================
	        resolve-swtlibs
	        
	        Resolved the swtlibs configuration from ivy.xml
	    =====================================================================-->
	  <target name="resolve-swtlibs" depends="install-ivy">
	    <delete dir="${swtlib.dir}" />
	    <ivy:resolve file="${ivyfile}" conf="test" />
	    <ivy:retrieve conf="swtlibs" pattern="${swtlib.dir}/[module]-[revision](-[classifier]).[ext]" symlink="${ivy.use.symlinks.internal}" />
	  </target>
	
	    <target name="package.lib" depends="resolve">
	      <jar jarfile="dist/${lib.zip.filename}" basedir="lib" />
	    </target>	
	
	 <target name="resolve-launcher" depends="install-ivy">
      <ivy:resolve file="${ivyfile}" conf="launcher" />
      <ivy:retrieve conf="launcher" pattern="${stage.dir}/${package.root.dir}/launcher/[module]-[revision](-[classifier]).[ext]" symlink="${ivy.use.symlinks.internal}" />
    </target>
</project>
{'fraction_non_alphanumeric': 0.22423146473779385, 'fraction_numerical': 0.0018083182640144665, 'mean_word_length': 4.1723446893787575, 'pattern_counts': {'":': 0, '<': 99, '<?xml version=': 0, '>': 99, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '6111411', 'n_tokens_mistral': 2262, 'n_tokens_neox': 2097, 'n_words': 502}