def _jvm_build(self, target): try: # TODO(John Sirois): think about moving away from the ant backend executor = AntBuilder(self.error, self.root_dir, self.is_ide, self.ide_transitivity) if self.options.quiet: self.build_args.insert(0, "-logger") self.build_args.insert(1, "org.apache.tools.ant.NoBannerLogger") self.build_args.insert(2, "-q") return executor.build(target, self.address.is_meta, self.build_args) except: self.error("Problem executing AntBuilder for target %s: %s" % (self.address, traceback.format_exc()))
def _generate_ivy(self, targets): jvmbuilder = AntBuilder(self.error, self.root_dir, is_ide = True, ide_transitivity = self.options.ide_transitivity) antargs = [] if self.options.clean: antargs.extend([ 'clean-all', 'compile' ]) _, ivyfile, _ = jvmbuilder.generate_and_build(targets, antargs, name = self.project_name) return ivyfile, os.path.join(self.root_dir, 'build-support/ivy/ivysettings.xml')
def _jvm_build(self, targets): try: # TODO(John Sirois): think about moving away from the ant backend executor = AntBuilder(self.error, self.root_dir, self.is_ide, self.ide_transitivity) if self.options.quiet: self.build_args.insert(0, "-logger") self.build_args.insert(1, "org.apache.tools.ant.NoBannerLogger") self.build_args.insert(2, "-q") return executor.build(targets, self.build_args) except: self.error("Problem executing AntBuilder for targets %s: %s" % (targets, traceback.format_exc()))
def _generate_ivy(self, targets): jvmbuilder = AntBuilder(self.error, self.root_dir, is_ide=True, ide_transitivity=self.options.ide_transitivity) antargs = [] if self.options.clean: antargs.extend(['clean-all', 'compile']) _, ivyfile, _ = jvmbuilder.generate_and_build(targets, antargs, name=self.project_name) return ivyfile, os.path.join(self.root_dir, 'build-support/ivy/ivysettings.xml')
def _create_ivy_file(self, target): ivy_file = os.path.abspath(os.path.join(self.target_path, 'ivy.xml')) AntBuilder.generate_ivy(self.root_dir, ivy_file, target) return ivy_file