def get_tasks_to_build_jira(self, args, workspace_utils=WorkspaceUtils()): if not args.manifesto_jira: #for workspace build maven must be executed from parent directory maven = MavenCallable(args) maven.phase('package') maven.profile('ondemand').project(OD_WEBAPP_PROJECT_DIR).option('-am') maven.property('jira.home', args.layout.jira_home()) maven.projects.extend(workspace_utils.get_workspace_projects_without_jira(args)) self.add_devmode_plugins(args, maven) if not args.attach_sources: maven.property('skipSources') maven.skip_tests() if args.third_party_licensing: maven.profiles.extend(['third-party-licensing']) # return builder and manifesto plugins job: return [maven] else: mavenClean = MavenCallable(args, path=OD_WEBAPP_PROJECT_DIR) mavenClean.phase('clean') return [mavenClean, self.manifesto_jira(args, manifesto=self.manifesto), self.__create_target_dir_for_exploded_webapp(), SystemCallable(args, command='unzip *.war -d war/exploded', cwd=os.sep.join([OD_WEBAPP_PROJECT_DIR, 'target']))]
def get_tasks_to_build_jira(self, args, workspace_utils=WorkspaceUtils()): #for workspace build maven must be executed from parent directory maven = MavenCallable(args) maven.phase('package') if not args.build_war: maven.property('jira.do.not.prepare.war') maven.project('jira-components/jira-webapp').option('-am') maven.property('jira.home', args.layout.jira_home()) maven.projects.extend( workspace_utils.get_workspace_projects_without_jira(args)) self.add_plugins_maven_goals(args, maven) if not args.attach_sources: maven.property('skipSources') maven.skip_tests() if args.third_party_licensing: maven.profiles.extend(['third-party-licensing']) # return builder and the bundled plugins return [ maven, lambda logger: self.stale_plugins.remember_plugins_profiles( maven.profiles) or 0 ]
def define_install_actions(args, executor): if args.quick: maven = MavenCallable(args, 'jira-ondemand-project') maven.phase('install').skip_tests().profile('func-mode-plugins') executor.append(maven.require_mvn2()) else: maven = MavenCallable(args) maven.phase('install') maven.project('jira-ondemand-project/jira-ondemand-webapp') \ .project('jira-ondemand-project/jira-ondemand-acceptance-tests').option('-am') maven.skip_tests().profile('ondemand').profile('func-mode-plugins') executor.append(maven.require_mvn2())
def get_tasks_to_build_jira(self, args, workspace_utils=WorkspaceUtils()): #for workspace build maven must be executed from parent directory maven = MavenCallable(args) maven.phase('package') if not args.build_war: maven.property('jira.do.not.prepare.war') maven.project('jira-components/jira-webapp').option('-am') maven.property('jira.home', args.layout.jira_home()) maven.projects.extend(workspace_utils.get_workspace_projects_without_jira(args)) self.add_plugins_maven_goals(args, maven) if not args.attach_sources: maven.property('skipSources') maven.skip_tests() if args.third_party_licensing: maven.profiles.extend(['third-party-licensing']) # return builder and the bundled plugins return [maven, lambda logger: self.stale_plugins.remember_plugins_profiles(maven.profiles) or 0]