-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue with binding files, logging and more
- Loading branch information
1 parent
69eb26f
commit bb6e726
Showing
16 changed files
with
177 additions
and
111 deletions.
There are no files selected for viewing
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
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
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
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
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
22 changes: 22 additions & 0 deletions
22
integration-test/test-producer-3x-binding-files/build.gradle.kts
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,22 @@ | ||
plugins { | ||
id("com.github.bjornvester.xjc") | ||
id("com.github.bjornvester.xjc.internal.java-conventions") | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
xjc { | ||
xsdDir.set(layout.projectDirectory.dir("src/main/xsd")) | ||
bindingFiles.from(layout.projectDirectory.dir("src/main/xjb").asFileTree.matching { include("**/*.xjb") }) | ||
} | ||
|
||
dependencies { | ||
testImplementation("org.junit.jupiter:junit-jupiter-api:5.7.1") | ||
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.7.1") | ||
} | ||
|
||
tasks.test { | ||
useJUnitPlatform() | ||
} |
13 changes: 13 additions & 0 deletions
13
integration-test/test-producer-3x-binding-files/src/main/xjb/my-binding-file.xjb
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,13 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<jaxb:bindings | ||
xmlns:jaxb="https://jakarta.ee/xml/ns/jaxb" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
version="3.0"> | ||
|
||
<jaxb:bindings schemaLocation="../xsd/MySchemaWithSimpleType.xsd" node="//xs:schema"> | ||
<jaxb:schemaBindings> | ||
<jaxb:package name="com.github.bjornvester.custom"/> | ||
</jaxb:schemaBindings> | ||
</jaxb:bindings> | ||
|
||
</jaxb:bindings> |
17 changes: 17 additions & 0 deletions
17
integration-test/test-producer-3x-binding-files/src/main/xsd/MySchemaWithSimpleType.xsd
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,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
xmlns:tsk="http://github.com/bjornvester/producer" | ||
targetNamespace="http://github.com/bjornvester/producer" | ||
elementFormDefault="qualified" | ||
version="1.0"> | ||
<xs:element name="MyElement"> | ||
<xs:complexType> | ||
<xs:sequence> | ||
<xs:element name="name" type="tsk:MyDateType"/> | ||
</xs:sequence> | ||
</xs:complexType> | ||
</xs:element> | ||
<xs:simpleType name="MyDateType"> | ||
<xs:restriction base="xs:dateTime"/> | ||
</xs:simpleType> | ||
</xs:schema> |
12 changes: 12 additions & 0 deletions
12
...test/test-producer-3x-binding-files/src/test/java/com/github/bjornvester/xjc/XjcTest.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,12 @@ | ||
package com.github.bjornvester.xjc; | ||
|
||
import com.github.bjornvester.custom.ObjectFactory; | ||
import org.junit.jupiter.api.Assertions; | ||
import org.junit.jupiter.api.Test; | ||
|
||
class XjcTest { | ||
@Test | ||
void testXjc() { | ||
Assertions.assertEquals(new ObjectFactory().createMyElement().getClass().getPackage().getName(), "com.github.bjornvester.custom"); | ||
} | ||
} |
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
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
Oops, something went wrong.