Importing properties from different build files for Ant
I have 2 build files into separate projects,
- build_common.xml,
- build.xml which is the main build file.
I am trying to import a property from build_common.xml without开发者_Go百科 importing the whole file. Is there a way to do that if I know the path to the build_common.xml?
Thanks
If you only want to import certain properties, they probably SHOULD be in separate files (broken apart by common use). That said, maybe one of your ant tasks could use grep, or some other collection of utilities to transform build_common.xml into a NEW file, that only contains what you want, and then import THAT?
I really don't think it's the BEST way to approach the problem, but I think it could work.
精彩评论