Example #1
0
  def setup_parser(self, parser):
    Ide.setup_parser(self, parser)

    supported_versions = list(_VERSIONS.keys())
    supported_versions.sort()
    parser.add_option("-i", "--idea-version", dest = "version",
                      default = '10', type = "choice", choices = supported_versions,
                      help = "[%%default] The IntelliJ IDEA version the project configuration "
                      "should be generated for; can be one of: %s" % supported_versions)

    parser.add_option("-o", "--idea-project-file-dir", dest = "project_file_dir",
                      default = self.root_dir, help = "[%default] Specifies the directory to "
                      "output the generated project files to.")
    parser.add_option("-m", "--merge", action = "store_true", dest = "merge",
                      default = False, help = "Merges manual customizations from existing Intellij "
                      "IDEA configuration into the generated configuration.")
    parser.add_option("--idea-build-output-dir", dest = "intellij_output_dir",
                      default = os.path.join(self.root_dir, 'target/intellij/out'),
                      help = "[%default] Specifies the directory IntelliJ IDEA should use for its "
                      "own build output.")
    parser.add_option("-b", "--bash", action = "store_true", dest = "bash",
                      default = False, help = "Adds a bash facet to the generated project "
                      "configuration.")
    parser.add_option("-f", "--fsc", action = "store_true", dest = "fsc",
                      default = False, help = "If the project contains any scala targets this "
                      "specifies the fsc compiler should be enabled.")
    parser.epilog = """Creates an IntelliJ IDEA project appropriate for editing, debugging and
Example #2
0
    def setup_parser(self, parser):
        Ide.setup_parser(self, parser)

        supported_versions = list(_VERSIONS.keys())
        supported_versions.sort()
        parser.add_option(
            "-i",
            "--idea-version",
            dest="version",
            default='10',
            type="choice",
            choices=supported_versions,
            help=
            "[%%default] The IntelliJ IDEA version the project configuration "
            "should be generated for; can be one of: %s" % supported_versions)

        parser.add_option("-o",
                          "--idea-project-file-dir",
                          dest="project_file_dir",
                          default=self.root_dir,
                          help="[%default] Specifies the directory to "
                          "output the generated project files to.")
        parser.add_option(
            "--nomerge",
            action="store_true",
            dest="nomerge",
            default=False,
            help="Stomp any manual customizations in existing Intellij "
            "IDEA configuration. If unspecified, manual customizations will be merged "
            "into the new configuration.")
        parser.add_option(
            "--idea-build-output-dir",
            dest="intellij_output_dir",
            default=os.path.join(self.root_dir, 'target/intellij/out'),
            help=
            "[%default] Specifies the directory IntelliJ IDEA should use for its "
            "own build output.")
        parser.add_option("-b",
                          "--bash",
                          action="store_true",
                          dest="bash",
                          default=False,
                          help="Adds a bash facet to the generated project "
                          "configuration.")
        parser.add_option(
            "-f",
            "--fsc",
            action="store_true",
            dest="fsc",
            default=False,
            help="If the project contains any scala targets this "
            "specifies the fsc compiler should be enabled.")
        parser.add_option(
            "-e",
            "--java-encoding",
            dest="java_encoding",
            default="UTF-8",
            help="[%default] Sets the file encoding for java files "
            "in this project.")
        parser.epilog = """Creates an IntelliJ IDEA project appropriate for editing, debugging and
Example #3
0
  def __init__(self, root_dir, parser, argv):
    Ide.__init__(self, root_dir, parser, argv)

    idea_version = _VERSIONS[self.options.version]
    self.project_template = os.path.join(_TEMPLATE_BASEDIR, 'project-%s.mk' % idea_version)
    self.module_template = os.path.join(_TEMPLATE_BASEDIR, 'module-%s.mk' % idea_version)

    project_file_dir = os.path.abspath(self.options.project_file_dir)
    if not os.path.exists(project_file_dir):
      os.makedirs(project_file_dir)

    self.project_filename = os.path.join(project_file_dir, '%s.ipr' % self.project_name)
    self.module_filename = os.path.join(project_file_dir, '%s.iml' % self.project_name)
Example #4
0
  def __init__(self, root_dir, parser, argv):
    Ide.__init__(self, root_dir, parser, argv)

    eclipse_version = _VERSIONS[self.options.version]
    self.project_template = os.path.join(_TEMPLATE_BASEDIR, 'project-%s.mk' % eclipse_version)
    self.classpath_template = os.path.join(_TEMPLATE_BASEDIR, 'classpath-%s.mk' % eclipse_version)
    self.pydev_template = os.path.join(_TEMPLATE_BASEDIR, 'pydevproject-%s.mk' % eclipse_version)

    self.project_name = self.options.project_name

    self.project_filename = os.path.join(self.root_dir, '.project')
    self.classpath_filename = os.path.join(self.root_dir, '.classpath')
    self.pydev_filename = os.path.join(self.root_dir, '.pydevproject')
Example #5
0
  def setup_parser(self, parser):
    Ide.setup_parser(self, parser)

    supported_versions = list(_VERSIONS.keys())
    supported_versions.sort()
    parser.add_option("-i", "--eclipse-version", dest = "version",
                      default = '3.5', type = "choice", choices = supported_versions,
                      help = "[%%default] The Eclipse version the project configuration "
                      "should be generated for; can be one of: %s" % supported_versions)

    parser.add_option("--eclipse-build-output-dir", dest = "eclipse_output_dir",
                      default = os.path.join(self.root_dir, 'target/eclipse/bin'),
                      help = "[%default] Specifies the directory Eclipse should use for its own "
                      "build output.")

    parser.epilog = """Creates an Eclipse project appropriate for editing, debugging and testing
Example #6
0
    def __init__(self, root_dir, parser, argv):
        Ide.__init__(self, root_dir, parser, argv)

        idea_version = _VERSIONS[self.options.version]
        self.project_template = os.path.join(_TEMPLATE_BASEDIR,
                                             'project-%s.mk' % idea_version)
        self.module_template = os.path.join(_TEMPLATE_BASEDIR,
                                            'module-%s.mk' % idea_version)

        project_file_dir = os.path.abspath(self.options.project_file_dir)
        if not os.path.exists(project_file_dir):
            os.makedirs(project_file_dir)

        self.project_filename = os.path.join(project_file_dir,
                                             '%s.ipr' % self.project_name)
        self.module_filename = os.path.join(project_file_dir,
                                            '%s.iml' % self.project_name)