def build(self): destination = self.destination.fullpath() source = self.fullpath() # collect java files if the source is directory if os.path.isdir(source): sources = " ".join(self.collect_sources(source)) if len(sources) == 0: raise BaseException("No Java source files found in '%s'", source) else: sources = source # form command line and run it cmd = self.form_cmd('javac') + " -d " + destination + " " + sources ShellScriptHelper.run(cmd)
def build(self): path = self.fullpath() if os.path.isdir(path): path = os.path.join(path, "setup.py") if not os.path.exists(path): raise BaseException("Setup file '%s' doesn't exist." % path) pkg_folder = os.path.dirname(path) lib_root = os.path.join(Artifact.home_dir(), self.lib) if not os.path.exists(lib_root) or not os.path.isdir(lib_root): raise BaseException("Lib folder '%s' doesn't exist." % path) os.chdir(pkg_folder) cmd = "python %s -q " % os.path.basename(path) ShellScriptHelper.run(cmd + " build --build-lib %s" % lib_root) ShellScriptHelper.run(cmd + " install --install-lib %s --install-headers %s" % (lib_root, lib_root)) shutil.rmtree(os.path.join(pkg_folder, "build"))
def build(self): path = self.fullpath() if os.path.isdir(path): path = os.path.join(path, "setup.py") if not os.path.exists(path): raise BaseException("Setup file '%s' doesn't exist." % path) pkg_folder = os.path.dirname(path) lib_root = os.path.join(Artifact.home_dir(), self.lib) if not os.path.exists(lib_root) or not os.path.isdir(lib_root): raise BaseException("Lib folder '%s' doesn't exist." % path) os.chdir(pkg_folder) cmd = "python %s -q " % os.path.basename(path) ShellScriptHelper.run(cmd + " build --build-lib %s" % lib_root) ShellScriptHelper.run( cmd + " install --install-lib %s --install-headers %s" % (lib_root, lib_root)) shutil.rmtree(os.path.join(pkg_folder, "build"))
def build(self): ShellScriptHelper.run('git archive --format=tar --remote=%s --prefix=%s master | tar -xf -' % (self.repo, self.fullpath()))
def build(self): ShellScriptHelper.run('svn -q export %s %s' % (self.repo, self.fullpath()))
def build(self): cmd = self.form_cmd('java') + " " + self.class_name() ShellScriptHelper.run(cmd)
def build(self): ShellScriptHelper.run('python', self.fullpath())
def build(self): ShellScriptHelper.run("python", self.fullpath())