Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Read ini files with Apache Ant

Tags:

apache

ant

ini

Is there a way to read properties from an INI file with apache ant? I stumbled across apache-contrib's IniFile but it's sole purpose seems to edit and write INI files - not to simply read them.

like image 879
tyrondis Avatar asked Mar 28 '11 13:03

tyrondis


1 Answers

If they are "name=value" format with no sections (I'm not sure what Ant would do with sections), you can use this.

<property file="myinifile.ini"/>
like image 84
JasonMArcher Avatar answered Oct 20 '22 15:10

JasonMArcher