FR [ 2508428 ] ModelClassGenerator requires trailing slash on directory
https://sourceforge.net/tracker/index.php?func=detail&aid=2508428&group_id=176962&atid=879332
This commit is contained in:
parent
402f643293
commit
7209b5b9f2
|
@ -66,7 +66,7 @@ public class ModelClassGenerator
|
||||||
/**
|
/**
|
||||||
* Generate PO Class
|
* Generate PO Class
|
||||||
* @param AD_Table_ID table id
|
* @param AD_Table_ID table id
|
||||||
* @param directory directory with \ or / at the end.
|
* @param directory directory
|
||||||
* @param packageName package name
|
* @param packageName package name
|
||||||
*/
|
*/
|
||||||
public ModelClassGenerator (int AD_Table_ID, String directory, String packageName)
|
public ModelClassGenerator (int AD_Table_ID, String directory, String packageName)
|
||||||
|
@ -81,6 +81,9 @@ public class ModelClassGenerator
|
||||||
String tableName = createHeader(AD_Table_ID, sb, mandatory, packageName);
|
String tableName = createHeader(AD_Table_ID, sb, mandatory, packageName);
|
||||||
|
|
||||||
// Save
|
// Save
|
||||||
|
if ( ! directory.endsWith(File.separator) )
|
||||||
|
directory += File.separator;
|
||||||
|
|
||||||
writeToFile (sb, directory + tableName + ".java");
|
writeToFile (sb, directory + tableName + ".java");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue