Module ImportFrom alias alias alias alias alias alias alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Assign NameStore Dict Str Str Str Str FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword ListLoad Call NameLoad keyword Str keyword Str keyword Str Call NameLoad keyword Str keyword Str keyword Str keyword Str Call NameLoad keyword Str keyword Str keyword Str keyword Str Call NameLoad keyword Str keyword Str keyword Str keyword Str Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad keyword ListLoad Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword Str keyword ListLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword ListLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword ListLoad AttributeLoad NameLoad attr keyword Str keyword ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Dict Str Str Str Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword ListLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword ListLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str keyword Str keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword ListLoad AttributeLoad NameLoad attr keyword Str keyword ListLoad NameLoad With Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword Str keyword ListLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword ListLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict AttributeLoad NameLoad attr ListLoad Call AttributeLoad Str attr keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad ListLoad Str Str Str Str Str Str Call NameLoad Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str AttributeLoad NameLoad attr With Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad ListLoad Str Str Call NameLoad Call AttributeLoad NameLoad attr decorator_list decorator_list
N/A __future__ absolute_import division generators nested_scopes print_function unicode_literals with_statement N/A os pants.backend.jvm.targets.jar_dependency JarDependency pants.backend.jvm.targets.jar_library JarLibrary pants.backend.jvm.targets.java_library JavaLibrary pants.backend.jvm.targets.jvm_app JvmApp pants.backend.jvm.targets.jvm_binary JvmBinary pants.backend.jvm.tasks.bundle_create BundleCreate pants.backend.jvm.tasks.classpath_util MissingClasspathEntryError pants.util.contextutil open_zip pants.util.dirutil safe_file_dump pants_test.backend.jvm.tasks.jvm_binary_task_test_base JvmBinaryTaskTestBase pants_test.testutils.file_test_util check_zip_file_content TestBundleCreate N/A JvmBinaryTaskTestBase N/A N/A FOO_JAR N/A Foo.class foo.txt task_type N/A N/A cls N/A N/A N/A BundleCreate N/A classmethod setUp N/A N/A self N/A N/A N/A Prepare targets, context, runtime classpath.  N/A N/A N/A N/A super TestBundleCreate self setUp N/A N/A self jar_artifact N/A N/A self create_artifact org org.example name foo rev 1.0.0 N/A N/A self zip_artifact N/A N/A self create_artifact org org.pantsbuild name bar rev 2.0.0 ext zip N/A N/A self bundle_artifact N/A N/A self create_artifact org org.apache name baz rev 3.0.0 classifier tests N/A N/A self tar_gz_artifact N/A N/A self create_artifact org org.gnu name gary rev 4.0.0 ext tar.gz N/A N/A self jar_lib N/A N/A self make_target spec 3rdparty/jvm/org/example:foo target_type JarLibrary jars N/A N/A JarDependency org org.example name foo rev 1.0.0 N/A JarDependency org org.pantsbuild name bar rev 2.0.0 ext zip N/A JarDependency org org.apache name baz rev 3.0.0 classifier tests N/A JarDependency org org.gnu name gary rev 4.0.0 ext tar.gz N/A N/A safe_file_dump N/A N/A N/A os path join N/A self build_root foo/Foo.java // dummy content N/A N/A self java_lib_target N/A N/A self make_target //foo:foo-library JavaLibrary sources N/A Foo.java N/A N/A self binary_target N/A N/A self make_target spec //foo:foo-binary target_type JvmBinary dependencies N/A N/A self java_lib_target N/A self jar_lib N/A N/A self app_target N/A N/A self make_target spec //foo:foo-app target_type JvmApp basename FooApp dependencies N/A N/A self binary_target N/A N/A self task_context N/A N/A self context target_roots N/A N/A self app_target N/A N/A N/A self _setup_classpath N/A self task_context N/A N/A self dist_root N/A N/A N/A os path join N/A self build_root dist N/A _setup_classpath N/A N/A self task_context N/A N/A N/A As a separate prep step because to test different option settings, this needs to rerun
    after context is re-created.
     N/A classpath_products N/A N/A self ensure_classpath_products task_context N/A N/A N/A classpath_products add_jars_for_targets targets N/A N/A self jar_lib conf default resolved_jars N/A N/A self jar_artifact N/A self zip_artifact N/A self bundle_artifact N/A self tar_gz_artifact N/A N/A N/A self add_to_runtime_classpath task_context N/A self binary_target N/A Foo.class foo.txt N/A test_jvm_bundle_products N/A N/A self N/A N/A N/A Test default setting outputs bundle products using `target.id`. N/A N/A N/A self execute N/A self task_context N/A N/A N/A self _check_bundle_products foo.foo-app N/A test_jvm_bundle_use_basename_prefix N/A N/A self N/A N/A N/A Test override default setting outputs bundle products using basename. N/A N/A N/A self set_options use_basename_prefix True N/A N/A self task_context N/A N/A self context target_roots N/A N/A self app_target N/A N/A N/A self _setup_classpath N/A self task_context N/A N/A N/A self execute N/A self task_context N/A N/A N/A self _check_bundle_products FooApp N/A test_bundle_non_app_target N/A N/A self N/A N/A N/A Test bundle does not apply to a non jvm_app/jvm_binary target. N/A N/A self task_context N/A N/A self context target_roots N/A N/A self java_lib_target N/A N/A N/A self _setup_classpath N/A self task_context N/A N/A N/A self execute N/A self task_context N/A N/A N/A self assertIsNone N/A N/A N/A N/A N/A N/A self task_context products get jvm_bundles get N/A self java_lib_target N/A N/A N/A self assertFalse N/A N/A N/A os path exists N/A self dist_root N/A test_jvm_bundle_missing_product N/A N/A self N/A N/A N/A Test exception is thrown in case of a missing jar. N/A missing_jar_artifact N/A N/A self create_artifact org org.example name foo rev 2.0.0 materialize False N/A classpath_products N/A N/A self ensure_classpath_products N/A self task_context N/A N/A N/A classpath_products add_jars_for_targets targets N/A N/A self binary_target conf default resolved_jars N/A missing_jar_artifact N/A N/A N/A self assertRaises MissingClasspathEntryError N/A N/A N/A N/A self execute N/A self task_context N/A test_conflicting_basename N/A N/A self N/A N/A N/A Test exception is thrown when two targets share the same basename. N/A conflict_app_target N/A N/A self make_target spec //foo:foo-app-conflict target_type JvmApp basename FooApp dependencies N/A N/A self binary_target N/A N/A N/A self set_options use_basename_prefix True N/A N/A self task_context N/A N/A self context target_roots N/A N/A self app_target conflict_app_target N/A N/A N/A self _setup_classpath N/A self task_context N/A N/A N/A self assertRaises N/A BundleCreate BasenameConflictError N/A N/A N/A N/A self execute N/A self task_context N/A _check_bundle_products N/A N/A self bundle_basename N/A N/A N/A products N/A N/A N/A N/A self task_context products get jvm_bundles N/A N/A N/A self assertIsNotNone products N/A product_data N/A N/A products get N/A self app_target N/A N/A N/A self assertEquals N/A N/A self dist_root N/A N/A N/A {basename}-bundle format basename bundle_basename product_data N/A N/A N/A self assertTrue N/A N/A N/A os path exists N/A self dist_root N/A bundle_root N/A N/A N/A os path join N/A self dist_root N/A N/A {basename}-bundle format basename bundle_basename N/A N/A N/A self assertEqual N/A sorted N/A foo-binary.jar libs/foo.foo-binary-0.jar libs/3rdparty.jvm.org.example.foo-0.jar libs/3rdparty.jvm.org.example.foo-1.zip libs/3rdparty.jvm.org.example.foo-2.jar libs/3rdparty.jvm.org.example.foo-3.gz N/A sorted N/A N/A self iter_files bundle_root N/A N/A check_zip_file_content N/A N/A N/A os path join bundle_root libs/foo.foo-binary-0.jar N/A self FOO_JAR N/A N/A open_zip N/A N/A N/A os path join bundle_root foo-binary.jar jar N/A N/A N/A N/A self assertEqual N/A sorted N/A META-INF/ META-INF/MANIFEST.MF N/A sorted N/A N/A jar namelist N/A N/A