File tree 33 files changed +37
-33
lines changed
javatests/com/google/copybara
33 files changed +37
-33
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,6 @@ BASE_SRCS = [
99
99
"LocalParallelizer.java" ,
100
100
"Metadata.java" ,
101
101
"MigrationInfo.java" ,
102
- "NonReversibleValidationException.java" ,
103
102
"Option.java" ,
104
103
"Options.java" ,
105
104
"Origin.java" ,
Original file line number Diff line number Diff line change 35
35
import com .google .copybara .doc .annotations .Example ;
36
36
import com .google .copybara .doc .annotations .UsesFlags ;
37
37
import com .google .copybara .exception .EmptyChangeException ;
38
+ import com .google .copybara .exception .NonReversibleValidationException ;
38
39
import com .google .copybara .feedback .Action ;
39
40
import com .google .copybara .feedback .Feedback ;
40
41
import com .google .copybara .feedback .StarlarkAction ;
Original file line number Diff line number Diff line change 19
19
import com .google .common .base .Preconditions ;
20
20
import com .google .common .collect .ImmutableBiMap ;
21
21
import com .google .common .collect .ImmutableMap ;
22
+ import com .google .copybara .exception .NonReversibleValidationException ;
22
23
import com .google .copybara .transform .ReversibleFunction ;
23
24
24
25
public class MapMapper implements ReversibleFunction <String , String > {
Original file line number Diff line number Diff line change 16
16
17
17
package com .google .copybara ;
18
18
19
+ import com .google .copybara .exception .NonReversibleValidationException ;
19
20
import com .google .copybara .exception .RepoException ;
20
21
import com .google .copybara .exception .ValidationException ;
21
22
import java .io .IOException ;
Original file line number Diff line number Diff line change 19
19
import com .google .common .base .Preconditions ;
20
20
import com .google .common .collect .ImmutableList ;
21
21
import com .google .common .collect .Iterables ;
22
- import com .google .copybara .NonReversibleValidationException ;
22
+ import com .google .copybara .exception . NonReversibleValidationException ;
23
23
import com .google .copybara .TransformWork ;
24
24
import com .google .copybara .Transformation ;
25
25
import com .google .copybara .WorkflowOptions ;
Original file line number Diff line number Diff line change 20
20
21
21
import com .google .common .base .MoreObjects ;
22
22
import com .google .common .collect .ImmutableList ;
23
- import com .google .copybara .NonReversibleValidationException ;
23
+ import com .google .copybara .exception . NonReversibleValidationException ;
24
24
import com .google .copybara .TransformWork ;
25
25
import com .google .copybara .Transformation ;
26
26
import com .google .copybara .WorkflowOptions ;
Original file line number Diff line number Diff line change 20
20
21
21
import com .google .common .base .MoreObjects ;
22
22
import com .google .common .collect .ImmutableList ;
23
- import com .google .copybara .NonReversibleValidationException ;
23
+ import com .google .copybara .exception . NonReversibleValidationException ;
24
24
import com .google .copybara .TransformWork ;
25
25
import com .google .copybara .Transformation ;
26
26
import com .google .copybara .WorkflowOptions ;
Original file line number Diff line number Diff line change 21
21
import com .google .common .base .Joiner ;
22
22
import com .google .common .base .Preconditions ;
23
23
import com .google .common .base .Splitter ;
24
- import com .google .copybara .NonReversibleValidationException ;
24
+ import com .google .copybara .exception . NonReversibleValidationException ;
25
25
import java .util .ArrayList ;
26
26
import java .util .Collections ;
27
27
import java .util .List ;
Original file line number Diff line number Diff line change @@ -28,5 +28,8 @@ java_library(
28
28
["**/*.java" ],
29
29
),
30
30
javacopts = JAVACOPTS ,
31
- deps = ["//third_party:error_prone" ],
31
+ deps = [
32
+ "//third_party:starlark" ,
33
+ "//third_party:error_prone"
34
+ ],
32
35
)
Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
17
- package com .google .copybara ;
17
+ package com .google .copybara . exception ;
18
18
19
19
import net .starlark .java .eval .EvalException ;
20
20
21
21
/**
22
- * Exception thrown when a {@link Transformation} is not reversible but the configuration asked for
23
- * the reverse.
24
- *
25
- * TODO(malcon): Move to the exception package
22
+ * Exception thrown when a {@link com.google.copybara.Transformation} is not reversible
23
+ * but the configuration asked for the reverse.
26
24
*/
27
25
public class NonReversibleValidationException extends EvalException {
28
26
Original file line number Diff line number Diff line change 27
27
import com .google .common .collect .Iterables ;
28
28
import com .google .common .flogger .FluentLogger ;
29
29
import com .google .copybara .GeneralOptions ;
30
- import com .google .copybara .NonReversibleValidationException ;
30
+ import com .google .copybara .exception . NonReversibleValidationException ;
31
31
import com .google .copybara .TransformWork ;
32
32
import com .google .copybara .Transformation ;
33
33
import com .google .copybara .WorkflowOptions ;
Original file line number Diff line number Diff line change 21
21
import com .google .common .base .MoreObjects ;
22
22
import com .google .common .base .Preconditions ;
23
23
import com .google .common .collect .ImmutableList ;
24
- import com .google .copybara .NonReversibleValidationException ;
24
+ import com .google .copybara .exception . NonReversibleValidationException ;
25
25
import com .google .copybara .TransformWork ;
26
26
import com .google .copybara .Transformation ;
27
27
import com .google .copybara .WorkflowOptions ;
Original file line number Diff line number Diff line change 22
22
import com .google .common .collect .Iterables ;
23
23
import com .google .common .flogger .FluentLogger ;
24
24
import com .google .copybara .LocalParallelizer .TransformFunc ;
25
- import com .google .copybara .NonReversibleValidationException ;
25
+ import com .google .copybara .exception . NonReversibleValidationException ;
26
26
import com .google .copybara .TransformWork ;
27
27
import com .google .copybara .Transformation ;
28
28
import com .google .copybara .WorkflowOptions ;
Original file line number Diff line number Diff line change 20
20
21
21
import com .google .common .base .Preconditions ;
22
22
import com .google .common .flogger .FluentLogger ;
23
- import com .google .copybara .NonReversibleValidationException ;
23
+ import com .google .copybara .exception . NonReversibleValidationException ;
24
24
import com .google .copybara .TransformWork ;
25
25
import com .google .copybara .Transformation ;
26
26
import com .google .copybara .WorkflowOptions ;
Original file line number Diff line number Diff line change 25
25
import com .google .common .collect .Iterables ;
26
26
import com .google .common .flogger .FluentLogger ;
27
27
import com .google .copybara .LocalParallelizer ;
28
- import com .google .copybara .NonReversibleValidationException ;
28
+ import com .google .copybara .exception . NonReversibleValidationException ;
29
29
import com .google .copybara .TransformWork ;
30
30
import com .google .copybara .Transformation ;
31
31
import com .google .copybara .WorkflowOptions ;
Original file line number Diff line number Diff line change 21
21
import com .google .common .cache .CacheLoader ;
22
22
import com .google .common .cache .LoadingCache ;
23
23
import com .google .common .collect .ImmutableList ;
24
- import com .google .copybara .NonReversibleValidationException ;
24
+ import com .google .copybara .exception . NonReversibleValidationException ;
25
25
import com .google .copybara .transform .RegexTemplateTokens .Replacer ;
26
26
import java .util .concurrent .ExecutionException ;
27
27
Original file line number Diff line number Diff line change 16
16
17
17
package com .google .copybara .transform ;
18
18
19
- import com .google .copybara .NonReversibleValidationException ;
19
+ import com .google .copybara .exception . NonReversibleValidationException ;
20
20
import java .util .function .Function ;
21
21
import net .starlark .java .annot .StarlarkBuiltin ;
22
22
import net .starlark .java .eval .StarlarkValue ;
Original file line number Diff line number Diff line change 19
19
import com .google .common .annotations .VisibleForTesting ;
20
20
import com .google .common .base .Preconditions ;
21
21
import com .google .common .collect .ImmutableList ;
22
- import com .google .copybara .NonReversibleValidationException ;
22
+ import com .google .copybara .exception . NonReversibleValidationException ;
23
23
import com .google .copybara .TransformWork ;
24
24
import com .google .copybara .Transformation ;
25
25
import com .google .copybara .exception .RepoException ;
Original file line number Diff line number Diff line change 21
21
import com .google .common .base .Preconditions ;
22
22
import com .google .common .collect .ImmutableList ;
23
23
import com .google .common .collect .ImmutableMap ;
24
- import com .google .copybara .NonReversibleValidationException ;
24
+ import com .google .copybara .exception . NonReversibleValidationException ;
25
25
import com .google .copybara .TransformWork ;
26
26
import com .google .copybara .Transformation ;
27
27
import com .google .copybara .exception .EmptyChangeException ;
Original file line number Diff line number Diff line change 29
29
import com .google .common .collect .ImmutableMap ;
30
30
import com .google .common .collect .Iterables ;
31
31
import com .google .copybara .LocalParallelizer ;
32
- import com .google .copybara .NonReversibleValidationException ;
32
+ import com .google .copybara .exception . NonReversibleValidationException ;
33
33
import com .google .copybara .TransformWork ;
34
34
import com .google .copybara .Transformation ;
35
35
import com .google .copybara .exception .ValidationException ;
Original file line number Diff line number Diff line change 27
27
import com .google .common .collect .Maps ;
28
28
import com .google .common .hash .Hashing ;
29
29
import com .google .common .io .BaseEncoding ;
30
- import com .google .copybara .NonReversibleValidationException ;
30
+ import com .google .copybara .exception . NonReversibleValidationException ;
31
31
import com .google .copybara .TransformWork ;
32
32
import com .google .copybara .Transformation ;
33
33
import com .google .copybara .exception .RepoException ;
Original file line number Diff line number Diff line change 23
23
import com .google .common .collect .ImmutableBiMap ;
24
24
import com .google .common .collect .ImmutableMap ;
25
25
import com .google .copybara .Change ;
26
- import com .google .copybara .NonReversibleValidationException ;
26
+ import com .google .copybara .exception . NonReversibleValidationException ;
27
27
import com .google .copybara .TransformWork ;
28
28
import com .google .copybara .Transformation ;
29
29
import com .google .copybara .authoring .Author ;
Original file line number Diff line number Diff line change 18
18
19
19
import com .google .common .collect .Lists ;
20
20
import com .google .copybara .Change ;
21
- import com .google .copybara .NonReversibleValidationException ;
21
+ import com .google .copybara .exception . NonReversibleValidationException ;
22
22
import com .google .copybara .TransformWork ;
23
23
import com .google .copybara .Transformation ;
24
24
import com .google .copybara .exception .ValidationException ;
Original file line number Diff line number Diff line change 19
19
import static com .google .copybara .exception .ValidationException .checkCondition ;
20
20
21
21
import com .google .common .base .Preconditions ;
22
- import com .google .copybara .NonReversibleValidationException ;
22
+ import com .google .copybara .exception . NonReversibleValidationException ;
23
23
import com .google .copybara .TransformWork ;
24
24
import com .google .copybara .Transformation ;
25
25
import com .google .copybara .exception .ValidationException ;
Original file line number Diff line number Diff line change 20
20
import com .google .common .collect .ImmutableCollection ;
21
21
import com .google .common .collect .Iterables ;
22
22
import com .google .copybara .Change ;
23
- import com .google .copybara .NonReversibleValidationException ;
23
+ import com .google .copybara .exception . NonReversibleValidationException ;
24
24
import com .google .copybara .TransformWork ;
25
25
import com .google .copybara .Transformation ;
26
26
import com .google .copybara .authoring .Author ;
Original file line number Diff line number Diff line change 17
17
package com .google .copybara .transform .metadata ;
18
18
19
19
import com .google .common .base .Preconditions ;
20
- import com .google .copybara .NonReversibleValidationException ;
20
+ import com .google .copybara .exception . NonReversibleValidationException ;
21
21
import com .google .copybara .TransformWork ;
22
22
import com .google .copybara .Transformation ;
23
23
import com .google .copybara .exception .ValidationException ;
Original file line number Diff line number Diff line change 17
17
package com .google .copybara .transform .metadata ;
18
18
19
19
import com .google .common .base .Preconditions ;
20
- import com .google .copybara .NonReversibleValidationException ;
20
+ import com .google .copybara .exception . NonReversibleValidationException ;
21
21
import com .google .copybara .TransformWork ;
22
22
import com .google .copybara .Transformation ;
23
23
import com .google .copybara .exception .ValidationException ;
Original file line number Diff line number Diff line change 18
18
19
19
import com .google .common .base .Preconditions ;
20
20
import com .google .copybara .Change ;
21
- import com .google .copybara .NonReversibleValidationException ;
21
+ import com .google .copybara .exception . NonReversibleValidationException ;
22
22
import com .google .copybara .TransformWork ;
23
23
import com .google .copybara .Transformation ;
24
24
import com .google .copybara .exception .ValidationException ;
Original file line number Diff line number Diff line change 20
20
import static org .junit .Assert .assertThrows ;
21
21
22
22
import com .google .common .collect .ImmutableSet ;
23
+ import com .google .copybara .exception .NonReversibleValidationException ;
23
24
import com .google .copybara .exception .ValidationException ;
24
25
import com .google .copybara .testing .OptionsBuilder ;
25
26
import com .google .copybara .testing .SkylarkTestExecutor ;
Original file line number Diff line number Diff line change 23
23
24
24
import com .google .common .collect .ImmutableList ;
25
25
import com .google .common .jimfs .Jimfs ;
26
- import com .google .copybara .NonReversibleValidationException ;
26
+ import com .google .copybara .exception . NonReversibleValidationException ;
27
27
import com .google .copybara .Transformation ;
28
28
import com .google .copybara .exception .ValidationException ;
29
29
import com .google .copybara .testing .OptionsBuilder ;
Original file line number Diff line number Diff line change 18
18
19
19
import static com .google .common .truth .Truth .assertThat ;
20
20
import static java .nio .file .Paths .get ;
21
- import com .google .copybara .NonReversibleValidationException ;
21
+ import com .google .copybara .exception . NonReversibleValidationException ;
22
22
import com .google .copybara .TransformWork ;
23
23
import com .google .copybara .Transformation ;
24
24
import com .google .copybara .exception .ValidationException ;
Original file line number Diff line number Diff line change 23
23
24
24
import com .google .common .base .Joiner ;
25
25
import com .google .common .jimfs .Jimfs ;
26
- import com .google .copybara .NonReversibleValidationException ;
26
+ import com .google .copybara .exception . NonReversibleValidationException ;
27
27
import com .google .copybara .TransformWork ;
28
28
import com .google .copybara .Transformation ;
29
29
import com .google .copybara .exception .ValidationException ;
Original file line number Diff line number Diff line change 29
29
import com .google .common .collect .Iterables ;
30
30
import com .google .copybara .Change ;
31
31
import com .google .copybara .Changes ;
32
- import com .google .copybara .NonReversibleValidationException ;
32
+ import com .google .copybara .exception . NonReversibleValidationException ;
33
33
import com .google .copybara .TransformWork ;
34
34
import com .google .copybara .Transformation ;
35
35
import com .google .copybara .Workflow ;
You can’t perform that action at this time.
0 commit comments