[appengine-java] Re: Set password for appcfg.sh update

2011-03-23 Thread Benjamin Muschko
Hi Ian,

Yeah, --email only lets you define your username. --passin is used to
make sure that it should _not_ store the password and ask you for the
password every time. I'd need something like --password. ;-)

Thanks,

Ben

On Mar 23, 3:24 am, Ian Marshall  wrote:
> Ben,
>
> Have you tried the option(s) ("--email" and) "--passin"?
>
> Ian
>
> On Mar 22, 7:08 pm, Benjamin Muschko 
> wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > Is there way to use a pre-defined password (e.g. set as a parameter or
> > from some file) for the update task (http://code.google.com/appengine/
> > docs/java/tools/uploadinganapp.html)? Unfortunately, I couldn't find
> > an appropriate parameter. I'd like to upload my app to App Engine as
> > part of an automated Continuous Integration process without having to
> > enter the password on the command-line.
>
> > Thanks,
>
> > Ben

-- 
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] Set password for appcfg.sh update

2011-03-22 Thread Benjamin Muschko
Hi,

Is there way to use a pre-defined password (e.g. set as a parameter or
from some file) for the update task (http://code.google.com/appengine/
docs/java/tools/uploadinganapp.html)? Unfortunately, I couldn't find
an appropriate parameter. I'd like to upload my app to App Engine as
part of an automated Continuous Integration process without having to
enter the password on the command-line.

Thanks,

Ben

-- 
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] Re: Local development server classpath - com.google.appengine.tools.KickStart

2011-03-19 Thread Benjamin Muschko
Didier,

Thanks for your reply. I am not using Eclipse. Instead I was trying to
run KickStart.main() within an existing Java process for a build
plugin. The Ant page you mentioned simply copies the JARs into WEB-INF/
lib. In the meantime I found a workaround for what I was trying to do.
Still...I'd still be interested to know if you can add additional JARs
when calling KickStart.main().

Thanks,

Ben

On Mar 19, 1:21 am, Didier Durand  wrote:
> Hi,
>
> You will be ok if you add not only 1 single gae jar (appengine-tools-
> api.jar) but all those (about 2) appearing in the GAE sdk library on
> Eclipse when you create a new project + those needed to run locally.
>
> The simplest way for you is to follow he hints given 
> inhttp://code.google.com/appengine/docs/java/tools/ant.html
>
> regards
>
> didier
>
> On Mar 18, 8:55 pm, Benjamin Muschko 
> wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > I have a question about the runtime classpath that is being used when
> > starting up a local development server. It is required to set
> > appengine-tools-api.jar in the classpath a parameter. My application
> > directory "web_app_dir" does not include some of the libraries that
> > are required at runtime (see below someother.jar); they sit in a
> > different directory. I tried to add them using the -cp parameter but
> > they don't seem to get evaluated. I get a
> > java.lang.NoClassDefFoundError. This is the call I make:
>
> > java -cp /home/ben/dev/tools/appengine-java-sdk-1.4.2/lib/appengine-
> > tools-api.jar:/home/ben/dev/someother.jar
> > com.google.appengine.tools.KickStart
> > com.google.appengine.tools.development.DevAppServerMain web_app_dir
>
> > Can somebody please shed some light on this? Are only the libraries
> > used that sit in web_app_dir/WEB-INF/lib? Is there any way I can add
> > additional libraries using an parameter?
>
> > Thanks,
>
> > Ben

-- 
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] Local development server classpath - com.google.appengine.tools.KickStart

2011-03-18 Thread Benjamin Muschko
Hi,

I have a question about the runtime classpath that is being used when
starting up a local development server. It is required to set
appengine-tools-api.jar in the classpath a parameter. My application
directory "web_app_dir" does not include some of the libraries that
are required at runtime (see below someother.jar); they sit in a
different directory. I tried to add them using the -cp parameter but
they don't seem to get evaluated. I get a
java.lang.NoClassDefFoundError. This is the call I make:

java -cp /home/ben/dev/tools/appengine-java-sdk-1.4.2/lib/appengine-
tools-api.jar:/home/ben/dev/someother.jar
com.google.appengine.tools.KickStart
com.google.appengine.tools.development.DevAppServerMain web_app_dir

Can somebody please shed some light on this? Are only the libraries
used that sit in web_app_dir/WEB-INF/lib? Is there any way I can add
additional libraries using an parameter?

Thanks,

Ben

-- 
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] Re: Datastore metadata property query (SDK 1.4)

2010-12-13 Thread Benjamin Muschko
Never mind. Got it resolved. Must have been an issue with my
environment.

Ben

-- 
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-j...@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] Datastore metadata property query (SDK 1.4)

2010-12-13 Thread Benjamin Muschko
Hi,

I was trying out the new 1.4 SDK datastore metadata queries. Querying
for kinds works perfectly fine with this query and I get back results:

Query query = new Query(Query.KIND_METADATA_KIND);
PreparedQuery preparedQuery =
DatastoreServiceFactory.getDatastoreService().prepare(query);
List kinds =
preparedQuery.asList(FetchOptions.Builder.withDefaults());

However, when I try a similar query for properties I don't get back
anything even though I know that there are entities for at least one
kind in the datastore:

Query query = new Query(Query.PROPERTY_METADATA_KIND);
PreparedQuery preparedQuery = datastore.prepare(query);
List propertyMetaData =
preparedQuery.asList(FetchOptions.Builder.withDefaults());

I am not quite sure what I am doing wrong. According to the
documentation (http://code.google.com/appengine/docs/java/datastore/
metadataqueries.html#Property_Queries) I am running the correct query.
Also, setting a specific ancestor doesn't work. Maybe somebody can
give me a hint here...

Thanks,

Ben

-- 
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-j...@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.