forked from pantsbuild/pants
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reproduces problem with deploy_excludes()
This defines a test that reproduces the problem noted in github issue 2359. I went ahead and marked it 'xfail' for now so we could patch it in and experiment with different strategies to fix the problem. Testing Done: passed CI at https://travis-ci.org/pantsbuild/pants/builds/84784374 Bugs closed: 2359, 2360 Reviewed at https://rbcommons.com/s/twitter/r/2961/
- Loading branch information
1 parent
7c59ebc
commit 5c73023
Showing
3 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
testprojects/src/java/org/pantsbuild/testproject/deployexcludes/BUILD
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,19 @@ | ||
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). | ||
# Licensed under the Apache License, Version 2.0 (see LICENSE). | ||
|
||
jvm_binary(name='deployexcludes', | ||
main='org.pantsbuild.testproject.deployexcludes.DeployExcludesMain', | ||
dependencies=[ | ||
':lib', | ||
], | ||
deploy_excludes=[ | ||
exclude(org='com.google.guava', name='guava'), | ||
], | ||
) | ||
|
||
java_library(name='lib', | ||
sources=['DeployExcludesMain.java'], | ||
dependencies=[ | ||
'3rdparty:guava', | ||
], | ||
) |
16 changes: 16 additions & 0 deletions
16
testprojects/src/java/org/pantsbuild/testproject/deployexcludes/DeployExcludesMain.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,16 @@ | ||
// Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). | ||
// Licensed under the Apache License, Version 2.0 (see LICENSE). | ||
|
||
package org.pantsbuild.testproject.deployexcludes; | ||
|
||
import com.google.common.base.Joiner; | ||
import com.google.common.collect.ImmutableSortedSet; | ||
import java.util.Set; | ||
|
||
public class DeployExcludesMain { | ||
public static void main(String[] args) { | ||
Set values = ImmutableSortedSet.of("Hello", "World"); | ||
System.out.println("DeployExcludes " + Joiner.on(" ").join(values)); | ||
} | ||
} | ||
|
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