Hi..
Here it is.....
Regards
Avdhesh
On Thu, Jan 7, 2010 at 1:38 PM, Luciano Resende <[email protected]>wrote:
> On Wed, Jan 6, 2010 at 11:42 PM, Avdhesh Yadav <[email protected]>
> wrote:
> > Hi...
> > Check now its working...
> >
> > Regards
> > Avdhesh
> >
>
> Cool, it's working.... how about a patch ?
>
> --
> Luciano Resende
> http://people.apache.org/~lresende <http://people.apache.org/%7Elresende>
> http://lresende.blogspot.com/
>
Index: src/main/java/org/apache/photark/services/gallery/filesystem/GalleryImpl.java
===================================================================
--- src/main/java/org/apache/photark/services/gallery/filesystem/GalleryImpl.java (revision 896800)
+++ src/main/java/org/apache/photark/services/gallery/filesystem/GalleryImpl.java (working copy)
@@ -52,6 +52,11 @@
// Accomodate for J2EE classpath that starts in WEB-INF\classes
galleryURL = this.getClass().getClassLoader().getResource("../../" + name);
}
+ if(galleryURL == null) {
+ // Workaroud for Google apps Engine
+ String galleryDir = System.getProperty("user.dir") + "/" + name;
+ galleryURL = new URL("file://" + galleryDir);
+ }
if(galleryURL != null) {
File album = new File(galleryURL.toURI());