def configure_profiles(self, scala_compiler_profile): checkstyle_enabled = len(Phase.goals_of_type(Checkstyle)) > 0 self.checkstyle_classpath = (binary_util.profile_classpath('checkstyle') if checkstyle_enabled else []) self.scala_compiler_classpath = [] if self.has_scala: self.scala_compiler_classpath.extend(binary_util.profile_classpath(scala_compiler_profile))
def execute(self, targets): """Stages IDE project artifacts to a project directory and generates IDE configuration files.""" checkstyle_enabled = len(Phase.goals_of_type(Checkstyle)) > 0 checkstyle_classpath = \ self._bootstrap_utils.get_jvm_build_tools_classpath(self.checkstyle_bootstrap_key) \ if checkstyle_enabled else [] scalac_classpath = \ self._bootstrap_utils.get_jvm_build_tools_classpath(self.scalac_bootstrap_key) \ if self.scalac_bootstrap_key else [] targets, self._project = self.configure_project( targets, self.checkstyle_suppression_files, self.debug_port) self._project.set_tool_classpaths(checkstyle_classpath, scalac_classpath) self.configure_compile_context(targets) self.map_internal_jars(targets) self.map_external_jars() idefile = self.generate_project(self._project) if idefile: binary_util.ui_open(idefile)
def configure_profiles(self, scala_compiler_profile): checkstyle_enabled = len(Phase.goals_of_type(Checkstyle)) > 0 self.checkstyle_classpath = profile_classpath( 'checkstyle') if checkstyle_enabled else [] self.scala_compiler_classpath = [] if self.has_scala: self.scala_compiler_classpath.extend( profile_classpath(scala_compiler_profile))
def configure_profiles(self, scala_compiler_profile): checkstyle_enabled = len(Phase.goals_of_type(Checkstyle)) > 0 self.checkstyle_classpath = \ (binary_util.profile_classpath('checkstyle', workunit_factory=self.workunit_factory) if checkstyle_enabled else []) self.scala_compiler_classpath = [] if self.has_scala: self.scala_compiler_classpath.extend( binary_util.profile_classpath( scala_compiler_profile, workunit_factory=self.workunit_factory))
def execute(self, targets): """Stages IDE project artifacts to a project directory and generates IDE configuration files.""" checkstyle_enabled = len(Phase.goals_of_type(Checkstyle)) > 0 if checkstyle_enabled: checkstyle_classpath = self._jvm_tool_bootstrapper.get_jvm_tool_classpath( self.checkstyle_bootstrap_key) else: checkstyle_classpath = [] if self.scalac_bootstrap_key: scalac_classpath = self._jvm_tool_bootstrapper.get_jvm_tool_classpath( self.scalac_bootstrap_key) else: scalac_classpath = [] self._project.set_tool_classpaths(checkstyle_classpath, scalac_classpath) self.map_internal_jars(targets) self.map_external_jars() idefile = self.generate_project(self._project) if idefile: binary_util.ui_open(idefile)