• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Loading ant properties from other build files

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I want to run an ant target 'run_junit' in my build.xml which uses the properties defined in multiple build files say junit.xml in various sub directories. I want to load all the properties from all the junit.xml files in various sub dirs while invoking this particular target.

I tried following
1. import the junit.xml files - This cannot be imported within a target. I do not want to import the files always.
2. read the junit.xml files within a target say 'load_properties' but property set in one target is not available in another target.

Can someone suggest me a way to achieve this ?
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think what I would do is extract all of these common/shared properties into a properties file and change all of the build xml files to load that properties file.
 
reply
    Bookmark Topic Watch Topic
  • New Topic