Example #1
0
 def setup_parser(cls, option_group, args, mkflag):
     JvmBinaryTask.setup_parser(option_group, args, mkflag)
     option_group.add_option(
         mkflag("archive"),
         dest="bundle_create_archive",
         type="choice",
         choices=list(ARCHIVER_BY_TYPE.keys()),
         help="[%%default] Create an archive from the bundle. "
         "Choose from %s" % ARCHIVER_BY_TYPE.keys())
Example #2
0
 def setup_parser(cls, option_group, args, mkflag):
     JvmBinaryTask.setup_parser(option_group, args, mkflag)
     option_group.add_option(
         mkflag("compressed"),
         mkflag("compressed", negate=True),
         dest="binary_create_compressed",
         default=True,
         action="callback",
         callback=mkflag.set_bool,
         help="[%default] Create a compressed binary jar.")
Example #3
0
  def setup_parser(cls, option_group, args, mkflag):
    JvmBinaryTask.setup_parser(option_group, args, mkflag)
    option_group.add_option(mkflag("compressed"), mkflag("compressed", negate=True),
                            dest="binary_create_compressed", default=True,
                            action="callback", callback=mkflag.set_bool,
                            help="[%default] Create a compressed binary jar.")

    option_group.add_option(mkflag("zip64"), mkflag("zip64", negate=True),
                            dest="binary_create_zip64", default=False,
                            action="callback", callback=mkflag.set_bool,
                            help="[%default] Create the binary jar with zip64 extensions.")
Example #4
0
  def setup_parser(cls, option_group, args, mkflag):
    JvmBinaryTask.setup_parser(option_group, args, mkflag)

    archive_flag = mkflag("archive")
    option_group.add_option(archive_flag, dest="bundle_create_archive",
                            type="choice", choices=list(archive.TYPE_NAMES),
                            help="[%%default] Create an archive from the bundle. "
                                 "Choose from %s" % sorted(archive.TYPE_NAMES))

    option_group.add_option(mkflag("archive-prefix"), mkflag("archive-prefix", negate=True),
                            dest="bundle_create_prefix", default=False,
                            action="callback", callback=mkflag.set_bool,
                            help="[%%default] Used in conjunction with %s this packs the archive "
                                 "with its basename as the path prefix." % archive_flag)
Example #5
0
    def setup_parser(cls, option_group, args, mkflag):
        JvmBinaryTask.setup_parser(option_group, args, mkflag)

        archive_flag = mkflag("archive")
        option_group.add_option(
            archive_flag,
            dest="bundle_create_archive",
            type="choice",
            choices=list(archive.TYPE_NAMES),
            help="[%%default] Create an archive from the bundle. "
            "Choose from %s" % sorted(archive.TYPE_NAMES))

        option_group.add_option(
            mkflag("archive-prefix"),
            mkflag("archive-prefix", negate=True),
            dest="bundle_create_prefix",
            default=False,
            action="callback",
            callback=mkflag.set_bool,
            help=
            "[%%default] Used in conjunction with %s this packs the archive "
            "with its basename as the path prefix." % archive_flag)
Example #6
0
 def setup_parser(cls, option_group, args, mkflag):
   JvmBinaryTask.setup_parser(option_group, args, mkflag)
   option_group.add_option(mkflag("archive"), dest="bundle_create_archive",
                           type="choice", choices=list(ARCHIVER_BY_TYPE.keys()),
                           help="[%%default] Create an archive from the bundle. "
                                "Choose from %s" % ARCHIVER_BY_TYPE.keys())