private void writeIlinkArgs ( final PropertyWriter writer , final String linkID , final String [ ] args ) throws SAXException { for ( final String arg : args ) { if ( arg . charAt ( 0 ) == ' ' || arg . charAt ( 0 ) == ' ' ) { final int equalsPos = arg . indexOf ( ' ' ) ; if ( equalsPos > 0 ) { final String option = "option." + arg . substring ( 0 , equalsPos - 1 ) ; writer . write ( linkID , option + ".enabled" , "1" ) ; writer . write ( linkID , option + ".value" , arg . substring ( equalsPos + 1 ) ) ; } else { writer . write ( linkID , "option." + arg . substring ( 1 ) + ".enabled" , "1" ) ; } } } }
Writes ilink32 linker options to project file .