加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
custom_rules.xml 2.88 KB
一键复制 编辑 原始数据 按行查看 历史
Xiaocong He 提交于 2013-08-08 16:50 . initial commit
<?xml version="1.0" encoding="UTF-8"?>
<project name="custom_rules">
<!-- Include external libs -->
<property name="jar.libs.dir" value="libs" />
<property name="jar.libs.absolute.dir" location="${jar.libs.dir}" />
<path id="classpath">
<fileset dir="${jar.libs.absolute.dir}">
<include name="**/*.jar"/>
</fileset>
</path>
<property name="dex.file.name" value="classes.dex" />
<property name="out.dir" value="bin" />
<property name="out.absolute.dir" location="${out.dir}" />
<property name="out.absolute.bundle.dir" location="${out.absolute.dir}/bundle" />
<property name="intermediate.dex.bundle.file" location="${out.absolute.bundle.dir}/${dex.file.name}" />
<property name="out.bundle.file" value="${out.absolute.dir}/bundle.jar" />
<target name="-pre-compile">
<mkdir dir="${out.absolute.bundle.dir}" />
</target>
<!-- overwrite the compile target in uibuild.xml to include to external jars -->
<target name="compile" depends="-build-setup, -pre-compile">
<javac encoding="${java.encoding}"
source="${java.source}" target="${java.target}"
debug="true" extdirs="" includeantruntime="false"
destdir="${out.classes.absolute.dir}"
bootclasspathref="project.target.class.path"
verbose="${verbose}"
fork="${need.javac.fork}">
<src path="${source.absolute.dir}" />
<classpath refid="classpath"/>
<compilerarg line="${java.compilerargs}" />
</javac>
</target>
<!-- empty default post-dex target. Create a similar target in
your build.xml and it'll be called instead of this one. -->
<target name="-post-dex">
<dex executable="${dx}"
output="${intermediate.dex.bundle.file}"
nolocals="@{nolocals}"
verbose="${verbose}">
<fileset dir="${jar.libs.absolute.dir}">
<include name="**/*.jar"/>
</fileset>
</dex>
</target>
<!-- empty default post-jar target. Create a similar target in
your build.xml and it'll be called instead of this one. -->
<target name="-post-jar">
<jar destfile="${out.bundle.file}">
<fileset file="${intermediate.dex.bundle.file}" />
</jar>
</target>
<target name="install" description="Install the test package">
<exec executable="${adb}" failonerror="true">
<arg line="${adb.device.arg}" />
<arg value="push" />
<arg value="${out.file}" />
<arg value="/data/local/tmp" />
</exec>
<exec executable="${adb}" failonerror="true">
<arg line="${adb.device.arg}" />
<arg value="push" />
<arg value="${out.bundle.file}" />
<arg value="/data/local/tmp" />
</exec>
</target>
</project>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化