Changeset 27369


Ignore:
Timestamp:
05/20/13 19:19:05 (8 years ago)
Author:
ak19
Message:

Adding in the write-env target to write out the environment, which will hopefully help debug the releasekit compilation on the mac.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/build.xml

    r27238 r27369  
    524524    <echo>os.unix: ${os.unix}</echo>
    525525  </target>
     526
     527  <!-- Appends the current env to the file environment.txt. For debugging env vars used by the release-kit. -->
     528  <target name="write-env">
     529    <echo message="*****************ENVIRONMENT OUTPUT:****************${line.separator}" file="environment.txt" append="true" />
     530
     531    <if><bool><istrue value="${current.os.iswindows}"/></bool>
     532      <exec executable="set" dir="${basedir}" failonerror="false" output="environment.txt" append="true" />     
     533      <else>
     534    <exec executable="env" dir="${basedir}" failonerror="false" output="environment.txt" append="true" />
     535      </else>
     536    </if>
     537
     538    <echo message="${line.separator}" file="environment.txt" append="true" />
     539  </target>
     540
    526541 
    527542  <!-- ==================== Primary and Global Targets ============================= -->
Note: See TracChangeset for help on using the changeset viewer.