Skip to content

Commit d0ac511

Browse files
author
lexi
committed
[maven-scm] copy for tag 0.8.2
1 parent e69860c commit d0ac511

File tree

424 files changed

+23280
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

424 files changed

+23280
-0
lines changed

basics/tags/0.8.2/ant/.classpath

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" output="target/classes" path="src/main/java">
4+
<attributes>
5+
<attribute name="optional" value="true"/>
6+
<attribute name="maven.pomderived" value="true"/>
7+
</attributes>
8+
</classpathentry>
9+
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
10+
<attributes>
11+
<attribute name="optional" value="true"/>
12+
<attribute name="maven.pomderived" value="true"/>
13+
</attributes>
14+
</classpathentry>
15+
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
16+
<attributes>
17+
<attribute name="maven.pomderived" value="true"/>
18+
</attributes>
19+
</classpathentry>
20+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6">
21+
<attributes>
22+
<attribute name="maven.pomderived" value="true"/>
23+
</attributes>
24+
</classpathentry>
25+
<classpathentry kind="output" path="target/classes"/>
26+
</classpath>

basics/tags/0.8.2/ant/.project

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>jaxb2-basics-ant</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.m2e.core.maven2Builder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
</buildSpec>
19+
<natures>
20+
<nature>org.eclipse.jdt.core.javanature</nature>
21+
<nature>org.eclipse.m2e.core.maven2Nature</nature>
22+
</natures>
23+
</projectDescription>

basics/tags/0.8.2/ant/pom.xml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
<groupId>org.jvnet.jaxb2_commons</groupId>
6+
<artifactId>jaxb2-basics-ant</artifactId>
7+
<packaging>jar</packaging>
8+
<name>JAXB2 Basics - Ant Task</name>
9+
<parent>
10+
<groupId>org.jvnet.jaxb2_commons</groupId>
11+
<artifactId>jaxb2-basics-project</artifactId>
12+
<version>0.8.2</version>
13+
<relativePath>../pom.xml</relativePath>
14+
</parent>
15+
<dependencies>
16+
<dependency>
17+
<groupId>com.sun.xml.bind</groupId>
18+
<artifactId>jaxb-xjc</artifactId>
19+
<scope>provided</scope>
20+
</dependency>
21+
<dependency>
22+
<groupId>org.apache.ant</groupId>
23+
<artifactId>ant</artifactId>
24+
<scope>provided</scope>
25+
</dependency>
26+
<dependency>
27+
<groupId>org.apache.ant</groupId>
28+
<artifactId>ant-launcher</artifactId>
29+
<scope>test</scope>
30+
</dependency>
31+
</dependencies>
32+
<build>
33+
<defaultGoal>install</defaultGoal>
34+
</build>
35+
</project>
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
package org.jvnet.jaxb2_commons.xjc;
2+
3+
import java.io.File;
4+
import java.lang.reflect.Field;
5+
6+
import org.apache.tools.ant.BuildException;
7+
import org.apache.tools.ant.types.Path;
8+
9+
public class XJC2Task extends com.sun.tools.xjc.XJC2Task {
10+
11+
@Override
12+
public void execute() throws BuildException {
13+
14+
hack();
15+
super.execute();
16+
}
17+
18+
protected void hack() {
19+
try {
20+
final Field declaredField = getClass().getSuperclass()
21+
.getDeclaredField("classpath");
22+
declaredField.setAccessible(true);
23+
final Path path = (Path) declaredField.get(this);
24+
if (path != null) {
25+
for (String pathElement : path.list()) {
26+
options.classpaths.add(new File(pathElement).toURI()
27+
.toURL());
28+
}
29+
}
30+
} catch (Exception ex) {
31+
throw new BuildException(ex);
32+
}
33+
}
34+
}

basics/tags/0.8.2/basic/.classpath

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" output="target/classes" path="src/main/java">
4+
<attributes>
5+
<attribute name="optional" value="true"/>
6+
<attribute name="maven.pomderived" value="true"/>
7+
</attributes>
8+
</classpathentry>
9+
<classpathentry including="**/*.java" kind="src" output="target/classes" path="src/main/resources"/>
10+
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
11+
<attributes>
12+
<attribute name="optional" value="true"/>
13+
<attribute name="maven.pomderived" value="true"/>
14+
</attributes>
15+
</classpathentry>
16+
<classpathentry including="**/*.java" kind="src" output="target/test-classes" path="src/test/resources"/>
17+
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
18+
<attributes>
19+
<attribute name="maven.pomderived" value="true"/>
20+
</attributes>
21+
</classpathentry>
22+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6">
23+
<attributes>
24+
<attribute name="maven.pomderived" value="true"/>
25+
</attributes>
26+
</classpathentry>
27+
<classpathentry kind="output" path="target/classes"/>
28+
</classpath>

basics/tags/0.8.2/basic/.project

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>jaxb2-basics</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.m2e.core.maven2Builder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
</buildSpec>
19+
<natures>
20+
<nature>org.eclipse.jdt.core.javanature</nature>
21+
<nature>org.eclipse.m2e.core.maven2Nature</nature>
22+
</natures>
23+
</projectDescription>

basics/tags/0.8.2/basic/pom.xml

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
<groupId>org.jvnet.jaxb2_commons</groupId>
6+
<artifactId>jaxb2-basics</artifactId>
7+
<packaging>jar</packaging>
8+
<version>0.8.2</version>
9+
<name>JAXB2 Basics - Basic Plugins</name>
10+
<parent>
11+
<groupId>org.jvnet.jaxb2_commons</groupId>
12+
<artifactId>jaxb2-basics-project</artifactId>
13+
<version>0.8.2</version>
14+
<relativePath>../pom.xml</relativePath>
15+
</parent>
16+
<dependencies>
17+
<dependency>
18+
<groupId>org.jvnet.jaxb2_commons</groupId>
19+
<artifactId>jaxb2-basics-runtime</artifactId>
20+
</dependency>
21+
<dependency>
22+
<groupId>org.jvnet.jaxb2_commons</groupId>
23+
<artifactId>jaxb2-basics-tools</artifactId>
24+
</dependency>
25+
<dependency>
26+
<groupId>com.sun.xml.bind</groupId>
27+
<artifactId>jaxb-impl</artifactId>
28+
<scope>provided</scope>
29+
</dependency>
30+
<dependency>
31+
<groupId>com.sun.xml.bind</groupId>
32+
<artifactId>jaxb-xjc</artifactId>
33+
<scope>provided</scope>
34+
</dependency>
35+
<dependency>
36+
<groupId>com.google.code.javaparser</groupId>
37+
<artifactId>javaparser</artifactId>
38+
<version>1.0.11</version>
39+
</dependency>
40+
<dependency>
41+
<groupId>org.jvnet.jaxb2.maven2</groupId>
42+
<artifactId>maven-jaxb2-plugin-testing</artifactId>
43+
<scope>test</scope>
44+
</dependency>
45+
</dependencies>
46+
<build>
47+
<defaultGoal>install</defaultGoal>
48+
<pluginManagement>
49+
<plugins>
50+
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
51+
<plugin>
52+
<groupId>org.eclipse.m2e</groupId>
53+
<artifactId>lifecycle-mapping</artifactId>
54+
<version>1.0.0</version>
55+
<configuration>
56+
<lifecycleMappingMetadata>
57+
<pluginExecutions>
58+
<pluginExecution>
59+
<pluginExecutionFilter>
60+
<groupId>
61+
org.apache.felix
62+
</groupId>
63+
<artifactId>
64+
maven-bundle-plugin
65+
</artifactId>
66+
<versionRange>
67+
[2.3.7,)
68+
</versionRange>
69+
<goals>
70+
<goal>manifest</goal>
71+
</goals>
72+
</pluginExecutionFilter>
73+
<action>
74+
<ignore></ignore>
75+
</action>
76+
</pluginExecution>
77+
<pluginExecution>
78+
<pluginExecutionFilter>
79+
<groupId>
80+
org.jvnet.jaxb2.maven2
81+
</groupId>
82+
<artifactId>
83+
maven-jaxb2-plugin
84+
</artifactId>
85+
<versionRange>
86+
[0.8.1,)
87+
</versionRange>
88+
<goals>
89+
<goal>generate</goal>
90+
</goals>
91+
</pluginExecutionFilter>
92+
<action>
93+
<ignore></ignore>
94+
</action>
95+
</pluginExecution>
96+
</pluginExecutions>
97+
</lifecycleMappingMetadata>
98+
</configuration>
99+
</plugin>
100+
</plugins>
101+
</pluginManagement>
102+
</build>
103+
</project>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package org.jvnet.jaxb2_commons.plugin;
2+
3+
import javax.xml.namespace.QName;
4+
5+
public class Customizations {
6+
7+
public static String NAMESPACE_URI = "http://jaxb2-commons.dev.java.net/basic";
8+
9+
public static QName GENERATED_ELEMENT_NAME = new QName(NAMESPACE_URI,
10+
"generated");
11+
12+
public static QName IGNORED_ELEMENT_NAME = new QName(NAMESPACE_URI,
13+
"ignored");
14+
15+
}
Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
package org.jvnet.jaxb2_commons.plugin;
2+
3+
import javax.xml.namespace.QName;
4+
5+
import org.jvnet.jaxb2_commons.util.CustomizationUtils;
6+
7+
import com.sun.tools.xjc.model.CClassInfo;
8+
import com.sun.tools.xjc.model.CEnumLeafInfo;
9+
import com.sun.tools.xjc.model.CPropertyInfo;
10+
import com.sun.tools.xjc.outline.ClassOutline;
11+
import com.sun.tools.xjc.outline.EnumOutline;
12+
import com.sun.tools.xjc.outline.FieldOutline;
13+
14+
public class CustomizedIgnoring implements Ignoring {
15+
16+
private final QName[] ignoredCustomizationElementNames;
17+
18+
public CustomizedIgnoring(QName... names) {
19+
this.ignoredCustomizationElementNames = names;
20+
}
21+
22+
public QName[] getIgnoredCustomizationElementNames() {
23+
return ignoredCustomizationElementNames;
24+
}
25+
26+
public boolean isIgnored(ClassOutline classOutline) {
27+
for (QName name : getIgnoredCustomizationElementNames()) {
28+
if (CustomizationUtils.containsCustomization(classOutline, name)) {
29+
return true;
30+
}
31+
}
32+
return false;
33+
}
34+
35+
public boolean isIgnored(EnumOutline enumOutline) {
36+
for (QName name : getIgnoredCustomizationElementNames()) {
37+
if (CustomizationUtils.containsCustomization(enumOutline, name)) {
38+
return true;
39+
}
40+
}
41+
return false;
42+
}
43+
44+
public boolean isIgnored(FieldOutline fieldOutline) {
45+
for (QName name : getIgnoredCustomizationElementNames()) {
46+
if (CustomizationUtils.containsCustomization(fieldOutline, name)) {
47+
return true;
48+
}
49+
}
50+
return false;
51+
}
52+
53+
public boolean isIgnored(CClassInfo classInfo) {
54+
for (QName name : getIgnoredCustomizationElementNames()) {
55+
if (CustomizationUtils.containsCustomization(classInfo, name)) {
56+
return true;
57+
}
58+
}
59+
return false;
60+
}
61+
62+
public boolean isIgnored(CEnumLeafInfo enumLeafInfo) {
63+
for (QName name : getIgnoredCustomizationElementNames()) {
64+
if (CustomizationUtils.containsCustomization(enumLeafInfo, name)) {
65+
return true;
66+
}
67+
}
68+
return false;
69+
}
70+
71+
public boolean isIgnored(CPropertyInfo propertyInfo) {
72+
for (QName name : getIgnoredCustomizationElementNames()) {
73+
if (CustomizationUtils.containsCustomization(propertyInfo, name)) {
74+
return true;
75+
}
76+
}
77+
return false;
78+
}
79+
80+
}

0 commit comments

Comments
 (0)