mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-13 21:01:01 +08:00
2052: Fixed problem with AntMetaDataExporter not being able to add custom types using build.xml file, or a gradle ant task
This commit is contained in:
parent
8f96f41627
commit
fd6799f0f3
@ -176,7 +176,7 @@ public class AntMetaDataExporter extends Task {
|
||||
/**
|
||||
* custom types to use
|
||||
*/
|
||||
private String[] customTypes;
|
||||
private List<String> customTypes = Lists.newArrayList();
|
||||
|
||||
/**
|
||||
* scala generation mode
|
||||
@ -592,12 +592,11 @@ public class AntMetaDataExporter extends Task {
|
||||
this.columnAnnotations = columnAnnotations;
|
||||
}
|
||||
|
||||
public String[] getCustomTypes() {
|
||||
return customTypes;
|
||||
}
|
||||
|
||||
public void setCustomTypes(String[] customTypes) {
|
||||
this.customTypes = customTypes;
|
||||
/**
|
||||
* Adds custom type to ant
|
||||
*/
|
||||
public void addCustomType(String customType) {
|
||||
customTypes.add(customType);
|
||||
}
|
||||
|
||||
public boolean isCreateScalaSources() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user