Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android ant -pre-compile vs -pre-build

Tags:

android

build

ant

I'm working on an android project where we build our releases with ant. We use the Android-ant target -pre-compile when changing the versionName and some other flags in the code. There is also a -pre-build android-ant target you can use.

Does anyone know the difference between those two targets?

like image 951
giZm0 Avatar asked Feb 19 '26 05:02

giZm0


1 Answers

Looking at the build.xml in the SDK's ant tools folder we have:

<target name="-compile" depends="-build-setup, -pre-build, -code-gen, -pre-compile">

Both -pre-compile and -pre-build are empty targets by default and therefore do nothing. The only difference is that -pre-build will run before -code-gen (which is not empty), whilst -pre-compile runs after it.

like image 197
NickT Avatar answered Feb 20 '26 18:02

NickT



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!