Ant: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:
</source>
</source>


==Checksum==
<source lang="xml">
<source lang="xml">
<checksum file="${build.dir}/${jarname}.jar" algorithm="md5"  property="jarname.jar.md5" />
<checksum file="${build.dir}/${jarname}.jar" algorithm="md5"  property="jarname.jar.md5" />
Line 11: Line 12:
<checksum file="${build.dir}/${jarname}.jar" algorithm="md5"  fileext="md5" />
<checksum file="${build.dir}/${jarname}.jar" algorithm="md5"  fileext="md5" />
<checksum file="${build.dir}/${jarname}.jar" algorithm="sha1" fileext="sha1"/>
<checksum file="${build.dir}/${jarname}.jar" algorithm="sha1" fileext="sha1"/>
</source>
==DateTime==
<source lang="xml">
<tstamp>
    <format property="built.on" pattern="EEE, MMM dd yyyy, HH:mm Z" locale="en,GB"/>
</tstamp>
</source>
==Filtering==
<source lang="xml">
<filter token="built.on" value="${built.on}"/>
    <copy todir="${target.vendor.antrun.dir}" filtering="true">
    <filelist dir="${ext.app.vendor.antrun.dir}">
        <file name="header.js"/>
    </filelist>
</copy>
</source>
</source>



Revision as of 01:02, 26 February 2020

Running Ant via Java If you have installed Ant in the do-it-yourself way, Ant can be started from one of two entry points:

java -Dant.home=c:\ant org.apache.tools.ant.Main [options] [target]
java -Dant.home=c:\ant org.apache.tools.ant.launch.Launcher [options] [target]

Checksum

<checksum file="${build.dir}/${jarname}.jar" algorithm="md5"  property="jarname.jar.md5" />
<checksum file="${build.dir}/${jarname}.jar" algorithm="sha1" property="jarname.jar.sha1"/>

<checksum file="${build.dir}/${jarname}.jar" algorithm="md5"  fileext="md5" />
<checksum file="${build.dir}/${jarname}.jar" algorithm="sha1" fileext="sha1"/>

DateTime

<tstamp>
    <format property="built.on" pattern="EEE, MMM dd yyyy, HH:mm Z" locale="en,GB"/>
</tstamp>

Filtering

<filter token="built.on" value="${built.on}"/>
    <copy todir="${target.vendor.antrun.dir}" filtering="true">
    <filelist dir="${ext.app.vendor.antrun.dir}">
        <file name="header.js"/>
    </filelist>
</copy>

References