Skip to content

Instantly share code, notes, and snippets.

@fredgrott
Created December 17, 2011 21:56
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/1491527 to your computer and use it in GitHub Desktop.
Save fredgrott/1491527 to your computer and use it in GitHub Desktop.
path jar.libs.ref android builds
<!-- create a path with all the jar files, from the main project and the
libraries -->
<if>
<condition>
<isreference refid="project.libraries"/>
</condition>
<then>
<path id="jar.libs.ref">
<fileset dir="${jar.libs.absolute.dir}" includes="*.jar" />
<path refid="project.libraries.jars" />
</path>
</then>
<else>
<path id="jar.libs.ref">
<fileset dir="${jar.libs.absolute.dir}" includes="*.jar" />
</path>
</else>
</if>
@fredgrott
Copy link
Author

cannot embed if statements in ant path stuff so reversed the order and logic to make it work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment