[appengine-java] can not find created folder under war

2011-02-28 Thread
Hi guys,

I created a folder download under war, then deployed it to the server,
but can't find the folder in the server, I tried to enum the folders under
war by code, and found only the download folder has disappeared.

the code I used is:

   File fileDownload = new File();

String[] files = fileDownload.list();

for (int i = 0;i  files.length;i ++) {

logger.info(files[i]);

}


other folders like css are all exists, except the download folder.

can anyone tell me why?




-- 
Best regards,
Yuhui

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

attachment: Screen shot 2011-02-28 at 5.38.40 PM.png

Re: [appengine-java] Re: can not find created folder under war

2011-02-28 Thread
Yes, I saw this page, and found it says:
By default, all files in the WAR are treated as both static files and
resource files, except for JSP files.

Also I tried to config the download file as resource files, or static
files, neither can make the folder visible. I also tried to rename the
folder,
or delete and re-create it, or deploy the application to a new version, none
can solve the problem. so weird.


2011/2/28 Didier Durand durand.did...@gmail.com

 Hi,

 Did you configure the static / resource files: see

 http://code.google.com/appengine/docs/java/config/appconfig.html#Static_Files_and_Resource_Files

 that could be the cause.

 regards

 didier

 On Feb 28, 12:45 pm, 王宇辉 yuhui.w...@gmail.com wrote:
  Hi guys,
 
  I created a folder download under war, then deployed it to the
 server,
  but can't find the folder in the server, I tried to enum the folders
 under
  war by code, and found only the download folder has disappeared.
 
  the code I used is:
 
 File fileDownload = new File();
 
  String[] files = fileDownload.list();
 
  for (int i = 0;i  files.length;i ++) {
 
  logger.info(files[i]);
 
  }
 
  other folders like css are all exists, except the download folder.
 
  can anyone tell me why?
 
  --
  Best regards,
  Yuhui
 
   Screen shot 2011-02-28 at 5.38.40 PM.png
  8KViewDownload

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To post to this group, send email to
 google-appengine-java@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.




-- 
Best regards,
Yuhui

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: How to get all entity types?

2011-02-27 Thread
Thanks, dider

2011/2/24 Didier Durand durand.did...@gmail.com

 Hi,

 Look at
 http://code.google.com/appengine/docs/java/datastore/metadataqueries.html:
 all what you need is there.

 regards

 didier

 On Feb 24, 8:01 am, 王宇辉 yuhui.w...@gmail.com wrote:
  Hi guys,
 
  Is there any way to get all the entity names by code?
 
  --
  Best regards,
  Yuhui

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To post to this group, send email to
 google-appengine-java@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.




-- 
Best regards,
Yuhui

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] How to get all entity types?

2011-02-23 Thread
Hi guys,

Is there any way to get all the entity names by code?


-- 
Best regards,
Yuhui

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.