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:
phib 2009-01-14 23:45:19 +00:00
parent 402f643293
commit 7209b5b9f2
1 changed files with 4 additions and 1 deletions

View File

@ -66,7 +66,7 @@ public class ModelClassGenerator
/**
* Generate PO Class
* @param AD_Table_ID table id
* @param directory directory with \ or / at the end.
* @param directory directory
* @param packageName package name
*/
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);
// Save
if ( ! directory.endsWith(File.separator) )
directory += File.separator;
writeToFile (sb, directory + tableName + ".java");
}