Check Create links in Workspace, Create virtual folders, create link locations. Make an empty project(not Java one), let's name it _Global (we want to see it always on the top).But how can we reference those global build files from inside the Eclipse? How? Do you want to go into the workspace folder, change to the command line or shell window and run the ant from there, having the output in the external console and switching from Eclipse to that window and back? And the same problem for editing? Having two additional windows? No, surely you want to have all windows, editing and output, in Eclipse. Later you want to launch that global build file. Or you have created the common ant files (build and properties) in it by yourself. Very often you already have an Ant build file in the workspace folder. Thus, the workspace itself makes the global Project. Let's say we have some big Project consisting of many Eclipse projects. I would like to add to the excellent answer of Borja some important steps. You can search the common things to avoid the innecesary duplicated code (common paths, targets and so on) You can use compile for compile both projects (I call the other project other), and compileazeboster to compile the azeboster project. I put you an example with the compile target (and for init target too). And you can call the specific project target or the target for both. You have different ways to include both of them in only one file, maybe the easiest one is include a suffix for each project on each target. On this way you can use both ant file from one unique file.Īnd you can do all in only one file, if you replace the app1 and app2 targets, with the needed targets to compile them that you have in the separate files. On it you can create the following targets: Yes you can create a default.build file (in this way you don't need to specify the file, because it's used by default). Is there some way to get it running in a way that i have both the projects defined a common build-file and I can type something like ant app1 compile or ant app2 compile? Example: Ĭurrently I type ant -f build1.xml compile and it builds my application and I have to use two separate build files. Can I build multiple projects from one build-file.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |