• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pantsbuild / pants / 4545
0%
main: 93%

Build:
Build:
LAST BUILD BRANCH: go-modcache-named-cache
DEFAULT BRANCH: main
Ran 21 Apr 2015 01:07PM UTC
Jobs 10
Files 322
Run time 15min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
4545

push

travis-ci

ericzundel
Adds the ability to specify explicit fields in MANIFEST.MF in a jvm_binary target.

- Added 'manifest_entries' to jvm_binary target
- Added a query to see if the manifest is empty in Manifest
- Support detecting the git workdir from a directory other than cwd
- Allow setting of both a main entry point and a custom manifest file when invoking jar-tool
- Special 'git' value for Implementation-Version pulls the current git commit id for the directory where the jvm_binary() target is defined.

Testing Done:
Updated tests.
Modified the `hello/simple/BUILD` file

```
 jvm_binary(name = 'simple',
   source = 'HelloWorld.java',
-  main = 'org.pantsbuild.example.hello.simple.HelloWorld',
+  #main = 'org.pantsbuild.example.hello.simple.HelloWorld',
+  manifest_entries = {
+    'Main-Class' : 'org.pantsbuild.example.hello.simple.HelloWorld',
+    'Foo' : 'foo',
+    'Implementation-Version' : 'git',
+  }
 )
```

Then ran `./pants binary examples/src/java/org/pantsbuild/example/hello/simple/` and inspected the MANIFEST.MF file:

```
Manifest-Version: 1.0
Implementation-Version: 748d4daed
Foo: foo
Created-By: com.twitter.common.jar.tool.JarBuilder
Main-Class: org.pantsbuild.example.hello.simple.HelloWorld

```

Bugs closed: 1402

Reviewed at https://rbcommons.com/s/twitter/r/2084/

13074 of 18872 relevant lines covered (69.28%)

0.69 hits per line

Jobs
ID Job ID Ran Files Coverage
1 4545.1 (CI_FLAGS="-cjlpnet 'Various pants self checks'") 21 Apr 2015 01:07PM UTC 0
Travis Job 4545.1
2 4545.2 (CI_FLAGS="-fkmsrcjlpn 'Test examples and testprojects'") 21 Apr 2015 01:08PM UTC 0
Travis Job 4545.2
3 4545.3 (CI_FLAGS="-fkmsrcnet 'Unit tests for pants and pants-plugins'") 21 Apr 2015 01:08PM UTC 0
69.28
Travis Job 4545.3
4 4545.4 (CI_FLAGS="-fkmsrcjlpet 'Python contrib tests'") 21 Apr 2015 01:09PM UTC 0
Travis Job 4545.4
5 4545.5 (CI_FLAGS="-fkmsrjlpnet -i 6:0 'Python integration tests for pants - shard 1'") 21 Apr 2015 01:15PM UTC 0
Travis Job 4545.5
6 4545.6 (CI_FLAGS="-fkmsrjlpnet -i 6:1 'Python integration tests for pants - shard 2'") 21 Apr 2015 01:19PM UTC 0
Travis Job 4545.6
7 4545.7 (CI_FLAGS="-fkmsrjlpnet -i 6:2 'Python integration tests for pants - shard 3'") 21 Apr 2015 01:17PM UTC 0
Travis Job 4545.7
8 4545.8 (CI_FLAGS="-fkmsrjlpnet -i 6:3 'Python integration tests for pants - shard 4'") 21 Apr 2015 01:17PM UTC 0
Travis Job 4545.8
9 4545.9 (CI_FLAGS="-fkmsrjlpnet -i 6:4 'Python integration tests for pants - shard 5'") 21 Apr 2015 01:17PM UTC 0
Travis Job 4545.9
10 4545.10 (CI_FLAGS="-fkmsrjlpnet -i 6:5 'Python integration tests for pants - shard 6'") 21 Apr 2015 01:22PM UTC 0
Travis Job 4545.10
Source Files on build 4545
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4545
  • 40a4a5ba on github
  • Prev Build on master (#4540)
  • Next Build on master (#4547)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc