The filter and tmpdir properties were updated in the docs yesterday, but were probably not pushed from the wiki until last night. Looks like they are live now: http://felix.apache.org/site/apache-felix-file-install.html
Chris -- Chris Custine FUSESource :: http://fusesource.com My Blog :: http://blog.organicelement.com Apache ServiceMix :: http://servicemix.apache.org Apache Directory Server :: http://directory.apache.org On Tue, Sep 15, 2009 at 9:56 AM, Matthias Neubert <[email protected]>wrote: > Hello, > > I had a Problem using FileInstall 2.0.0 (I recently upgraded my project > from 1.2.0 > While writing this mail I found the solution, which I now want to share. > > > I configure fileisntall when i configure my embedded felix : (in java code > embedded) > ("felix.fileinstall.dir", absNewBundle); > ("felix.fileinstall.debug", "1"); > ("felix.fileinstall.poll", "3000"); > > this worked until using version 2.0.0 > > Version 2.0.0 tries to create a folder ./tmp and then proclaims about > not beeing able to create that folder. This leads fileinstall not to work. > (see error message at bottom) > > On googleing I found this page; > > http://mail-archives.apache.org/mod_mbox/felix-commits/200909.mbox/%3c1324519852.4906.1252930140018.javamail.www-d...@brutus%3e > > Here a property I never have seen before is mentioned: > ... > <td class='confluenceTd'><tt>felix.fileinstall.tmpdir</tt></td> > <td class='confluenceTd'>./tmp</td> > <td class='confluenceTd'>The name of the temporary directory to use with > exploded or > transformed bundles</td> > </tr> > > Then I found this in standard message, which showed me the solution: > 09-15 17:25:21.316: INFO/System.out(12502): {felix.fileinstall.poll (ms) = > 3000, felix.fileinstall.dir = > /data/data/de.mnsoft.felixhostapp/files/felix/newbundles, > felix.fileinstall.debug = 1, felix.fileinstall.bundles.new.start = true, > felix.fileinstall.tmpdir = ./tmp, felix.fileinstall.filter = null} > > I may have overseen it, but when upgrading I checked the properties on > fileinstalls webpage, and it wasn't mentioned there that this important > key exists. It would be nice (if not already happend) if this would be > somehow mentioned in all fileinstall docs on the apache felix sites. > > regards > matthias > > > > > > > > > Error message: > > 09-15 17:26:06.487: INFO/System.out(12502): Cannot create folder ./tmp. Is > the folder write-protected? > 09-15 17:26:06.497: INFO/System.out(12502): In main loop, we have serious > trouble: java.lang.RuntimeException: Cannot create folder: ./tmp > 09-15 17:26:06.497: INFO/System.out(12502): java.lang.RuntimeException: > Cannot create folder: ./tmp > 09-15 17:26:06.507: INFO/System.out(12502): at > org.apache.felix.fileinstall.internal.DirectoryWatcher.prepareDir(DirectoryWatcher.java:385) > 09-15 17:26:06.507: INFO/System.out(12502): at > org.apache.felix.fileinstall.internal.DirectoryWatcher.transformArtifact(DirectoryWatcher.java:333) > 09-15 17:26:06.507: INFO/System.out(12502): at > org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:271) > >

