Commit 564c8e21 authored by Daniel Bluhm's avatar Daniel Bluhm

Fix pojofromjson

Signed-off-by: Daniel Bluhm's avatarDaniel Bluhm <bluhmdj@ornl.gov>
parent a2d28822
......@@ -5,7 +5,7 @@
<artifactId>org.eclipse.ice.dev.pojofromjson</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>org.eclipse.ice.dev.fromjson</name>
<name>org.eclipse.ice.dev.pojofromjson</name>
<url>http://maven.apache.org</url>
<properties>
<exec.mainClass>org.eclipse.ice.dev.pojofromjson.PojoFromJson</exec.mainClass>
......
......@@ -24,6 +24,7 @@ import org.eclipse.ice.dev.annotations.processors.DefaultFields;
import org.eclipse.ice.dev.annotations.processors.Fields;
import org.eclipse.ice.dev.annotations.processors.ImplementationWriter;
import org.eclipse.ice.dev.annotations.processors.InterfaceWriter;
import org.eclipse.ice.dev.annotations.processors.Types;
import com.beust.jcommander.JCommander;
import com.beust.jcommander.Parameter;
......@@ -89,6 +90,7 @@ public class PojoFromJson {
.packageName(pojo.getPackageName())
.interfaceName(pojo.getElement())
.fields(fields)
.types(new Types(fields.getInterfaceFields()))
.build()
.write(elementInterface);
}
......@@ -102,6 +104,7 @@ public class PojoFromJson {
.interfaceName(pojo.getElement())
.className(pojo.getImplementation())
.fields(fields)
.types(fields.getTypes())
.build()
.write(elementImpl);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment