Skip to content

Package: AptTask$AptAdapter

AptTask$AptAdapter

nameinstructionbranchcomplexitylinemethod
AptTask.AptAdapter()
M: 3 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getMainClass()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getMainMethod()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
getToolName()
M: 2 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%

Coverage

1: /*
2: * Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved.
3: *
4: * This program and the accompanying materials are made available under the
5: * terms of the Eclipse Distribution License v. 1.0, which is available at
6: * http://www.eclipse.org/org/documents/edl-v10.php.
7: *
8: * SPDX-License-Identifier: BSD-3-Clause
9: */
10:
11: package com.sun.xml.ws.test.util;
12:
13: /**
14: * Ant task that invokes {@code APT} loaded in a separate classloader.
15: *
16: * @author Kohsuke Kawaguchi
17: */
18: public final class AptTask extends AbstractJavacTask {
19: public AptTask() {
20: super("APT", AptAdapter.class);
21: }
22:
23: public static final class AptAdapter extends JDKToolAdapter {
24: protected String getMainMethod() {
25: return "process";
26: }
27:
28: protected String getMainClass() {
29: return "com.sun.tools.apt.Main";
30: }
31:
32: protected String getToolName() {
33: return "APT";
34: }
35: }
36: }