Hi,
because the woproject ant task has problems copying resources from
subprojects i've some suggestions for the WOMapper.WOFileMapper class:
WOMapper (CVS Rev. 1.3)
public String[] mapFileName(String sourceFileName) {
...
// apply filters
String localizedPath = localizationFilter(sourceFileName);
String wocompPath = wocompFilter(localizedPath);
String finalPath = eomodelFilter(wocompPath);
...
private final String wocompFilter(String path) {
...
// WOComponent directory
if (path.endsWith(".wo") || path.endsWith(".api")) {
return flatten(f);
}
...
private final String eomodelFilter(String path) {
File f = new File(path);
// EOModel directory
if (path.endsWith(".eomodeld") && !path.endsWith("index.eomodeld")) {
return flatten(f);
}
// File in EOModel directory
String parent = f.getParent();
if (parent != null && parent.endsWith(".eomodeld")) {
return flattenWithParent(f);
}
// skip the filter
return path;
}
...
any comments?!
Markus Nolte
NEUSTA Computersprachen GmbH
Ostertorsteinweg 50
28203 Bremen
Tel: +49 421-20696-0 (-920)
Fax: +49 421-20696-99
eMail: mnolt..eusta.de
This archive was generated by hypermail 2.0.0 : Mon Oct 14 2002 - 10:12:40 EDT