No, I do not mean just jar files, and yes, I used ant some ten years ago while working on a fairly large Java project.
What I mean is this: I have an Eclipse Android Application project that depends on several Eclipse Android Library projects. Some of those Eclipse Android Library projects depend on one another. There is a way to generate Ant build scripts for existing Eclipse Android projects by running "android" on the command line with appropriate command line arguments. This generates a build.xml that relies on a rules file defined in the Android SDK. So, will building the main Android application with ant, using the build script generated for it by "android...." -- build the Android libraries that the main project depends on? -- or do those Android libraries have to be built first with some higher level script? And if the answer is yes, does it really work, or does it "sort of work most of the time", like Android library projects in Eclipse? Is that any more clearer now? -- Kostya 14 декабря 2011 г. 20:39 пользователь Lew <[email protected]> написал: > Generated scripts? Why are you relying on generated scripts? > > Ant "build.xml" files usually have to be hand crafted. > > Have you read any of the Ant documentation? Googled for information? > > The short answer, if by "library project dependencies" you mean JAR files > and I'm not sure that you do, is yes. Ant builds can account for > dependencies. > > If you mean _project_ dependencies you have two choices. Turn it into the > former interpretation by having one project emit a JAR and have the other > depend on that JAR, or use the same "build.xml" to specify both projects in > the correct order. It depends on the nature of the dependency. > > Your questions are the kind better served by your independent study of the > documentation than by posting to Usenet. > > -- > Lew > > Kostya Vasilyev wrote: >> >> Do Ant scripts for Android take care of library project dependencies? >> >> Or does this have to do be done at a higher level, outside the >> generated scripts? >> >> > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

