Skip to content

Instantly share code, notes, and snippets.

@fredgrott
Created April 5, 2012 08:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fredgrott/2308939 to your computer and use it in GitHub Desktop.
Save fredgrott/2308939 to your computer and use it in GitHub Desktop.
android_lint_ant
<condition property="bash.it" value="/bin/bash" else="cmd">
<and>
<not>
<os family="windows"/>
</not>
</and>
</condition>
<property name="lint.script" value="${sdk.dir}/tools/lint"/>
<property name="lint.report" location="${basedir}/project.docs/lintreport.html"/>
<property name="lint.project.loc" location="${basedir}"/>
<target name="-post-compile">
<!-- lint -->
<exec executable="${bash.it}">
<arg value="${lint.script}"/>
<arg value="--html"/>
<arg value="${lint.report}"/>
<arg value="${lint.project.loc}"/>
</exec>
</target>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment