org.openbakery.configuration.XcodeConfigTask.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xcode-plugin Show documentation
Show all versions of xcode-plugin Show documentation
XCode-Plugin is a plugin to allow custom XCode projects to build as generated by CMake
The newest version!
package org.openbakery.configuration
import org.gradle.api.tasks.TaskAction
import org.openbakery.AbstractXcodeTask
import org.openbakery.XcodeProjectFile
/**
* User: rene
* Date: 25/11/14
*/
class XcodeConfigTask extends AbstractXcodeTask {
XcodeProjectFile xcodeProjectFile
XcodeConfigTask() {
super()
this.description = "Parses the xcodeproj file and setups the configuration for the build"
}
@TaskAction
void configuration() {
def projectFile = new File(project.xcodebuild.projectFile, "project.pbxproj")
xcodeProjectFile = new XcodeProjectFile(project, projectFile)
xcodeProjectFile.parse()
project.xcodebuild.projectSettings = xcodeProjectFile.getProjectSettings()
}
}