Fix eclipse_gen idea_gen for targets with both Java and Scala

Review Request #857 - Created Aug. 8, 2014 and submitted

Information
Evan Jones
pants
Reviewers
pants-reviews
benjyw, jsirois, lahosken
eclipse_gen.py was completely broken:
* Use self.context instead of argument (fixes 1d68bf9d0c)
* Add missing templates
* Fix paths to jars in generated .classpath
* Add test_eclipse_integration.py based on test_idea_integration.py

Both Eclipse and IntelliJ generators were broken for targets that depend on a
library with both Scala and Java source code. They failed to add the Java
dependencies.

ide_gen.py: recurse into Java source dependencies for ScalaLibraries
scaladepsonboth: Example target that depends on a mixed Scala/Java project
PANTS_DEV=1 ./pants goal test tests/python/pants_test/tasks:integration


I also verified that both IntelliJ and Eclipse can build the generated project for src/scala/com/pants/testproject/scaladepsonboth. The current master doesn't work on either, due to missing a Java source dependency.

Issues

  • 0
  • 4
  • 0
  • 4
Description From Last Updated
Patrick Lawson
Larry Hosken
Patrick Lawson
Evan Jones
Evan Jones
John Sirois
Evan Jones
John Sirois
John Sirois
Evan Jones
Review request changed

Status: Closed (submitted)

John Sirois
This broke CI: https://travis-ci.org/pantsbuild/pants/jobs/32904120
Fix coming.
  1. Fixes are here: https://rbcommons.com/s/twitter/r/916/
Loading...