summaryrefslogtreecommitdiffstats
path: root/src/java/com/sun/gluegen/JavaConfiguration.java
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-02-12 02:22:24 +0100
committerMichael Bien <[email protected]>2010-02-12 02:22:24 +0100
commit0fa706b4eef533ead671310a9a7e063a910198cb (patch)
treeb02b31aa6215c7b2f627ae785d4bdaf9242e0e70 /src/java/com/sun/gluegen/JavaConfiguration.java
parentdd7facc1dd5f6a34d2c4542b7435995c4d2d25b1 (diff)
added support for arrays in generated StructAccessors.
Specifying JavaClass or JavaImplClass is no longer a requirement. It is now possible to generate StructAccessors from c headers without emitting any other binding code (force with EmitStruct <name>).
Diffstat (limited to 'src/java/com/sun/gluegen/JavaConfiguration.java')
-rw-r--r--src/java/com/sun/gluegen/JavaConfiguration.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/java/com/sun/gluegen/JavaConfiguration.java b/src/java/com/sun/gluegen/JavaConfiguration.java
index 0d7b3cc..d5e71e2 100644
--- a/src/java/com/sun/gluegen/JavaConfiguration.java
+++ b/src/java/com/sun/gluegen/JavaConfiguration.java
@@ -214,7 +214,7 @@ public class JavaConfiguration {
}
if (className == null && (emissionStyle() != JavaEmitter.IMPL_ONLY)) {
- throw new RuntimeException("Output class name was not specified in configuration file \"" + filename + "\"");
+// throw new RuntimeException("Output class name was not specified in configuration file \"" + filename + "\"");
}
if (packageName == null && (emissionStyle() != JavaEmitter.IMPL_ONLY)) {
throw new RuntimeException("Output package name was not specified in configuration file \"" + filename + "\"");
@@ -268,6 +268,10 @@ public class JavaConfiguration {
return implClassName;
}
+ public boolean structsOnly() {
+ return className == null && implClassName == null;
+ }
+
/** Returns the Java code output directory parsed from the configuration file. */
public String javaOutputDir() {
return (null != outputRootDir) ? (outputRootDir + "/" + javaOutputDir) : javaOutputDir;