You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Holger Prause <h....@gmx.net> on 2002/07/12 18:38:53 UTC
base dir problem - a example solution
Hello,
All ppl who know what a basedir is and how to use it, pls ignore that
posting.
I needed some time to understand how i can use relative paths with fop
u need to set the baseDir: this allows u to configure FOP to start all
relative paths at a certain directory
for all ppl which have to set the baseDir
Heres an example method how to set the basedir:
public void setBaseDirUrl(File baseDir) {
try {
String baseDirPath = baseDir.toURL().toString();
org.apache.fop.configuration.Configuration.put("baseDir",
baseDirPath);
}
catch(MalformedURLException mue) {
mue.printStackTrace();
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org