properties - Ant read a property file from within a zip file -


is there way in ant load properties inside zip file?

i have project ant file needs use properties in file inside zip file. zip file stored in known location on our ci server.

/known location/file.zip    |    +--- properties/details.properties 

the following doesn't work

<project name="test" basedir="." >     <property file="/known location/file.zip/properties/details.properties"/>     .... </project> 

since zip files , jar files same, can use url form of property task, jar url.

<property url="jar:file:/known location/file.zip!/properties/details.properties" /> 

note jar:file: @ front of url, , !/ separating zip file location path of properties file within zip.

see jarurlconnection docs more info on syntax of jar: url.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -