how to use TextFile
Andreas Unterkircher <[email protected]>
| Newsgroups | gmane.comp.java.smartfrog.user |
|---|---|
| Message-ID | <[email protected]> |
Hello,
I'd like to create a simple textfile with SF. Therefore I use the TextFile
component:
#include "org/smartfrog/services/filesystem/components.sf"
file1 extends TextFile {
text "test";
absolutePath "/tmp";
filename "test.txt";
}
sfConfig extends Compound {
test extends file1;
}
But this only works when I start sfDaemon in /tmp. E.g. when I start
sfDaemon in /usr I get:
* Exception: 'SmartFrogLifecycleException:: [sfDeploy] HOST
oplabox03.cern.ch:rootProcess:file:test
cause: SmartFrogException:: When trying to write to /usr/test.txt
cause: java.io.FileNotFoundException: /usr/test.txt:
Permission denied
What is the correct way to use the TextFile component ?
Thanks,
Andreas
--
http://cern.ch/openlab
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf