Updated NailgunExecutor to take the java version into account when deciding if the server needs to be re-started.

Testing Done:
CI passed @ https://travis-ci.org/pantsbuild/pants/builds/31273593

setjdk 1.7
pants goal bundle src/java/com/pants/examples/hello/main
ps auxww | grep NGServer  (all are running java 1.7)

setjdk 1.8
ants goal bundle src/java/com/pants/examples/hello/main
ps auxww | grep NGServer  (get info messages about NG servers killed.  All are now running java 1.8)

Bugs closed: 423

Reviewed at https://rbcommons.com/s/twitter/r/802/
Updated scala-compile ref to scala-compiler in goal idea. Also updated build target reference strings to be absolute addresses

Updated scala-compile ref to scala-compiler. Also updated build target reference strings to be absolute addresses

Testing Done:
I'm not sure if I actually tickled the code that this affects, I just found this outdated reference while researching another problem.

This only changes some default strings, so I went into pants.ini and commented out the references to //:twitter-checkstyle and //:scala-compiler-2.9.3 then ran:

PANTS_DEV=1 ./pants goal idea src:: --exclude-target-regexp='.*android.*'

Things seemed to work.

ci.sh is running @ https://travis-ci.org/pantsbuild/pants/builds/31411849

Bugs closed: 431

Reviewed at https://rbcommons.com/s/twitter/r/816/
Convert options registered in the new style into old-style options.

Temporary code needed only during migration to the new options system.

Note: No __init__.py or BUILD files here. They are in another commit.
A command-line argument splitter.

Splits a Pants command line into a set of scoped flags and a set of targets.

Not wired up to anything yet.
A specialized container for option values.

This container supports key forwarding and ranked values. See docstrings
for details.
A custom argparse help formatter.

Squelches the extraneous parts of the argparse help message
(headers, usage etc.) since we format those ourselves. Leaves
just the per-flag help.

Note that subclassing the formatter is an official part of the
argparse API, so this is not underhanded or fragile.
Hook up the pants/option tests to pants_test:all.

Also fix a bug in a test.
more descriptive __name__ for curry_context'd things

If you ask a build_file_aliases curry_context-thingy for its __module__.__name__ , it says pants.base.build_file_aliases.<lambda>

That seems less useful than, say, pants.base.build_file_aliases.curry_context.pants.backend.python.python_requirements.python_requirements

Testing Done:
./build-support/bin/publish_docs.sh

https://travis-ci.org/pantsbuild/pants/builds/31350494

Bugs closed: 354

Reviewed at https://rbcommons.com/s/twitter/r/756/
docs: Close paren on TaskDeveloper code snippet

Someone might want to copypasta this and then would get an error.

I am sure I don't know anyone who would just go around
copypasta-ing the docs. But if they did, is all I am saying.

*whistling*

Testing Done:
Published the docs and gave an eyeball.

Reviewed at https://rbcommons.com/s/twitter/r/809/
Get rid of a spurious dep on t.c.lang.Compatibility.
Add missing dependency.
Add JarDep to aaptGen create_target method

This is two commits, one by me and another patch from jsirois.

This adds the android.jar to the created target and allows
the android target to properly compile. This outputs
java class files.

The java compile requires a java target. This also
finishes adding the android.jar. AndroidTargets will
now compile through pants. ivy requires a rev to resolve
jars and that fits so we can process each sdk group
together.

Reviewed at https://rbcommons.com/s/twitter/r/822/
Point to the new maven-central https endpoint.
This was brought to my attention by aurora threads and the announce was this weekend here: http://central.stage.sonatype.org/articles/2014/Aug/03/https-support-launching-now/

Also kill an unused resolver copied over from twitter/commons.

Testing Done:
$ rm -rf ~/.pants.d/tools/
$ PANTS_DEV=1 ./pants goal clean-all
$ PANTS_IVY_CACHE_DIR=/tmp/ivy2 PANTS_DEV=1 ./pants goal test {src,tests}/{scala,java}/::
...
               Executing goals in phases: bootstrap -> imports -> gen -> check-exclusives -> resolve -> compile -> resources -> test
13:10:18 00:17   [bootstrap]
13:10:18 00:17     [bootstrap-jvm-tools]
13:10:18 00:17   [imports]
13:10:18 00:17     [ivy-imports] INFO]
Downloading https://repo1.maven.org/maven2/org/apache/ivy/ivy/2.3.0/ivy-2.3.0.jar
 INFO] Starting new HTTPS connection (1): repo1.maven.org
100% .................................................. 1193 KB 6.273s
 INFO] sha1: c5ebf1c253ad4959a29f4acfe696ee48cdd9f473
...
13:20:11 10:10   [test]
13:20:11 10:10     [pytest]
13:20:11 10:10     [junit]
13:20:11 10:10       [bootstrap-junit]
13:20:40 10:39       [run]
                     ..........
                     Time: 0.177

                     OK (10 tests)

13:20:41 10:40     [specs]
               Waiting for background workers to finish.
               SUCCESS

$ find /tmp/ivy2 -name "ivydata-*.properties" | xargs grep location | cut -d= -f2 | cut -d/ -f-4 | sort | uniq -c
     15 http\://maven.twttr.com/com
      3 http\://maven.twttr.com/org
    225 https\://repo1.maven.org/maven2

Bugs closed: 438

Reviewed at https://rbcommons.com/s/twitter/r/824/
Add a new jvm specific fingerprinting for reintroducing the java and scala versions into the artifact hash. This is needed to avoid build cache artifacts mixing classes from different versions.

Reviewed here: https://rbcommons.com/s/twitter/r/808/
foo/README.md and bar/README.md don't clobber each other.

'./pants goal markdown ::' has a problem: every .../README.md file generates to the same path (.pants.d/markdown/markdown/html/README.html)

With this change, you instead get
.pants.d/markdown/markdown/html/_.readme.html
.pants.d/markdown/markdown/html/_src.java.com.pants.examples.hello.main.readme.html
.pants.d/markdown/markdown/html/_src.java.com.pants.testproject.page.readme.html
.pants.d/markdown/markdown/html/_src.python.pants.backend.python.readme.html
.pants.d/markdown/markdown/html/_src.python.pants.readme.html

Also in this change:
Turned some unnecessarily complex python into simple mustache templates.

Added src/java/com/pants/testproject/page to make sure I didn't break [[pants(...)]] "wikilinks".
Doesn't contain java, despite the dir.

Testing Done:
(got confluence goal temporarily working to make sure that markdown-page-moves didn't break confluence publish)

https://travis-ci.org/pantsbuild/pants/builds/31464526

Reviewed at https://rbcommons.com/s/twitter/r/750/
Ensime support: code navigation

Testing done:
generate ensime project for ensime-server, ran ci.sh

https://travis-ci.org/pantsbuild/pants/builds/31647409

Reviewed at: https://rbcommons.com/s/twitter/r/753/
Remove all deps on twitter.common.quantity.

The benefits it provides aren't worth the added external depenency.
Upgrade pex dependency from twitter.common.python 0.6.0 to pex 0.7.0.

Testing Done:
$ ./build-support/bin/ci.sh

Bugs closed: 439

Reviewed at https://rbcommons.com/s/twitter/r/825/
Fixup idea integration test to ignore ~/.pants.rc if present.

commit fe4d3517b998adf4f566c7e2a93bacff93ee1ee0
Author: John Sirois <jsirois@twitter.com>
Date:   Tue Aug 5 01:13:05 2014 -0600

    Fixup idea integration test to ignore ~/.pants.rc if present.

 tests/python/pants_test/tasks/test_idea_integration.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Testing Done:
Locally this used to fail for me with a customized ~/.pants.rc [idea]options, but now passes:
===
$ PANTS_DEV=1 ./pants goal test tests/python/pants_test/tasks/:idea_integration
...
01:15:51 00:00   [test]
01:15:51 00:00     [pytest]
01:15:51 00:00       [run]
                     ============== test session starts ===============
                     platform linux2 -- Python 2.6.9 -- py-1.4.23 -- pytest-2.6.0
                     plugins: cov, timeout
                     collected 8 items

                     tests/python/pants_test/tasks/test_idea_integration.py ........

                     =========== 8 passed in 17.78 seconds ============

01:16:10 00:19     [junit]
01:16:10 00:19     [specs]
               SUCCESS

Travis CI went green here: https://travis-ci.org/pantsbuild/pants/builds/31685448

Bugs closed: 441

Reviewed at https://rbcommons.com/s/twitter/r/828/
catch a file that didn't make it into the Ensime support commit

The patch for the change that became sha 8313f22a89f06f4bf6595c4cc7f87bd0367cc17f
didn't apply cleanly. I tweaked it by hand, but a day later, I see
this modified file in my repo: the BUILD change to pull in the test.
Computering: it's difficult.

So here's the BUILD change. Good news: the test passes.

Testing Done:
https://travis-ci.org/pantsbuild/pants/builds/31726091

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