-
-
Notifications
You must be signed in to change notification settings - Fork 652
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Example of an additional planner that produces a Classpath for targets
This demonstrates an explosion when multiple Classpath products are produced for a single target, which will likely need to be dealt with via [#2484](#2484). I'll start working on a way to cause the _absence_ of required Configuration for a Planner to explode early during planning, rather than later when there is ambiguity due to too-much Configuration. - Add a semi-realistic BuildPropertiesPlanner, which promises to produce a Classpath entry - Add an `xfail`d test that covers a target with both JavaSources and a BuildProperties config Testing Done: https://travis-ci.org/pantsbuild/pants/builds/89165764 Bugs closed: 2484, 2495 Reviewed at https://rbcommons.com/s/twitter/r/3075/
- Loading branch information
Showing
6 changed files
with
91 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...ts_test/engine/exp/examples/scheduler_inputs/src/java/multiple_classpath_entries/BLD.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"type_alias": "target", | ||
"name": "multiple_classpath_entries", | ||
"sources": { | ||
"files": ["Example.java"] | ||
}, | ||
"dependencies": [ | ||
"3rdparty/jvm:guava" | ||
], | ||
"configurations": [ | ||
{ "type_alias": "build_properties" } | ||
] | ||
} |
1 change: 1 addition & 0 deletions
1
...est/engine/exp/examples/scheduler_inputs/src/java/multiple_classpath_entries/Example.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// Placeholder file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters