[ 
https://issues.jenkins-ci.org/browse/JENKINS-12510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=160809#comment-160809
 ] 

Erik Lindberg commented on JENKINS-12510:
-----------------------------------------

I think it will be fixed like this:

diff --git a/src/main/java/au/com/rayh/XCodeBuilder.java 
b/src/main/java/au/com/rayh/XCodeBuilder.java
index f7d10e2..cbf4c13 100644
--- a/src/main/java/au/com/rayh/XCodeBuilder.java
+++ b/src/main/java/au/com/rayh/XCodeBuilder.java
@@ -92,7 +92,7 @@ public class XCodeBuilder extends Builder {
     /**
      * @since 1.3
      */
-    private String xcodebuildArguments;
+    public final String xcodebuildArguments;
     /**
      * @since 1.2
      */


Basically, change private String xcodebuildArguments to public final String 
xcodebuildArguments
                
> Custom xcodebuild arguments values are not persisted
> ----------------------------------------------------
>
>                 Key: JENKINS-12510
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-12510
>             Project: Jenkins
>          Issue Type: Bug
>          Components: xcode
>    Affects Versions: current
>            Reporter: Richard King
>            Assignee: Arnaud Héritier
>            Priority: Blocker
>
> If I add a custom xcode config parameter such as SELECTED_LOCALE=en  and 
> click save, the custom parameter is not persisted.  When I edit the project 
> config again the parameter isnt there.
> My config.xml file has the following entry for the XCode plugin:
> <builders>
>   <au.com.rayh.XCodeBuilder>
>     <cleanBeforeBuild>true</cleanBeforeBuild>
>     <cleanTestReports>false</cleanTestReports>
>     <configuration>In-House</configuration>
>     <target>NTC</target>
>     <sdk></sdk>
>     <symRoot></symRoot>
>     
> <configurationBuildDir>${WORKSPACE}/build/In-House-iphoneos</configurationBuildDir>
>     <xcodeProjectPath></xcodeProjectPath>
>     <xcodeProjectFile></xcodeProjectFile>
>     <xcodebuildArguments>SELECTED_LOCALE=${LOCALE}</xcodebuildArguments>
>     <xcodeSchema>In-House</xcodeSchema>
>     <xcodeWorkspaceFile></xcodeWorkspaceFile>
>     <embeddedProfileFile></embeddedProfileFile>
>     <cfBundleVersionValue>2.6</cfBundleVersionValue>
>     <cfBundleShortVersionStringValue>2.6</cfBundleShortVersionStringValue>
>     <buildIpa>true</buildIpa>
>     <unlockKeychain>false</unlockKeychain>
>     <keychainPath>${HOME}/Library/Keychains/login.keychain</keychainPath>
>     <keychainPwd></keychainPwd>
>   </au.com.rayh.XCodeBuilder>
> </builders>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to