Does a recursive Ant task exist to recover properties from external file?
        Posted  
        
            by Julia2020
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Julia2020
        
        
        
        Published on 2010-04-12T18:52:47Z
        Indexed on 
            2010/04/12
            20:43 UTC
        
        
        Read the original article
        Hit count: 412
        
Hi,
I ve got a problem in getting properties with ant from a properties file. With a simple target like this in my build.xml, i'd like to get at least two properties path1 and path2. I'd like to have a generic target to get this two properties.... in order to avoid modifying the build.xml (just adding a new prop)
Any suggestions? Thanks in advance !
build.xml :
<target name="TEST" description="test ant">
    <property file="dependencies.properties"/>  
    <svn>  
        <export srcUrl="${path.prop}" destPath="${workspace}/rep/" />  
    </svn>  
</target>  
dependencies.properties :
path1.prop = /path/to/src1
path2.prop = /path/to/src2
        © Stack Overflow or respective owner