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
Post a Comment