1 |
|
package org.apache.torque.mojo; |
2 |
|
|
3 |
|
import java.io.File; |
4 |
|
|
5 |
|
import org.apache.maven.plugin.MojoExecutionException; |
6 |
|
import org.apache.torque.mojo.morph.MorphRequest; |
7 |
|
import org.apache.torque.mojo.morph.Morpher; |
8 |
|
import org.apache.torque.mojo.morph.SchemaMorpher; |
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
|
|
| 0% |
Uncovered Elements: 18 (18) |
Complexity: 7 |
Complexity Density: 0.64 |
|
16 |
|
public class MorphSchemaMojo extends AbstractMorphSingleMojo { |
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
private File newSchemaXMLFile; |
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
private File oldSchemaXMLFile; |
34 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
35 |
0
|
@Override... |
36 |
|
protected void beforeExecution() { |
37 |
0
|
setNewFile(newSchemaXMLFile); |
38 |
0
|
setOldFile(oldSchemaXMLFile); |
39 |
|
} |
40 |
|
|
|
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 1 |
Complexity Density: 0.25 |
|
41 |
0
|
@Override... |
42 |
|
protected void executeMojo() throws MojoExecutionException { |
43 |
0
|
getLog().info("------------------------------------------------------------------------"); |
44 |
0
|
getLog().info("Converting schema XML file"); |
45 |
0
|
getLog().info("------------------------------------------------------------------------"); |
46 |
0
|
super.executeMojo(); |
47 |
|
} |
48 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
49 |
0
|
@Override... |
50 |
|
protected Morpher getMorpher(final MorphRequest request, final String artifactId) { |
51 |
0
|
return new SchemaMorpher(request, artifactId); |
52 |
|
} |
53 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
54 |
0
|
public File getNewSchemaXMLFile() {... |
55 |
0
|
return newSchemaXMLFile; |
56 |
|
} |
57 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
58 |
0
|
public void setNewSchemaXMLFile(final File newSchemaXMLFile) {... |
59 |
0
|
this.newSchemaXMLFile = newSchemaXMLFile; |
60 |
|
} |
61 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
62 |
0
|
public File getOldSchemaXMLFile() {... |
63 |
0
|
return oldSchemaXMLFile; |
64 |
|
} |
65 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
66 |
0
|
public void setOldSchemaXMLFile(final File oldSchemaXMLFile) {... |
67 |
0
|
this.oldSchemaXMLFile = oldSchemaXMLFile; |
68 |
|
} |
69 |
|
} |