Here's how I ended up solving this:
I created Resources/Keystores/, and put the .keystore file there.
The problem is how to get this directory into the app's classpath at
runtime, both when running from Eclipse, and when deployed.
To run this in Eclipse:
Edit the Run Configuration, select
Awesome Partick. Thanks for posting that. I just checked the wiki and under the
otherclasspath element, it said ? What does this do ??? - funny,
now we know, so I just updated the wiki based on your notes.
Regards, Kieran
On Jan 14, 2010, at 5:49 PM, Patrick Robinson wrote:
Here's
Hi Patrick,
This is just a stab-in-the-dark, but can't you just drop it into the Sources
directory?
Dave
On Jan 12, 2010, at 11:20 PM, Patrick Robinson wrote:
I need to use a java library that expects to find my java keystore file
(which would normally be specified by the
No, that didn't work... it just gets ignored. Thanks for the suggestion,
though; it sounded promising! I thought it might result in the file's being
put into Contents/Resources/Java/, which *is* in the classpath.
- Patrick
On Jan 13, 2010, at 6:17 AM, David Avendasora wrote:
Hi Patrick,
Another untested stab is:
For development, add a project dir to the classpath. I expect that is
straightforward and Eclipse will take care of it.
For deployment, have a look at the APP.woa/Contents/MacOS/MacOSClassPath.txt
file (or appropriate one if using other platform). When a WOA is
Some time ago I also needed a properties file on the classpath and after trying
and failing to convince the build system to help me, I gave up and added
-DWOEnvClassPath= to the app configuration on JavaMonitor. If you find a better
way let me know :-)
Henrique Gomes
On Jan 13, 2010, at
Hi Patrick
How about right-clicking it and trying WOLips Tools-Include as Resource?
Liz
On 13 Jan 2010, at 14:30, Patrick Robinson wrote:
No, that didn't work... it just gets ignored. Thanks for the suggestion,
though; it sounded promising! I thought it might result in the file's being
you need to put it in your source folder and add the file extension to the
classes.include.patternset ...
On Jan 13, 2010, at 11:01 AM, Elizabeth Lynch wrote:
Hi Patrick
How about right-clicking it and trying WOLips Tools-Include as Resource?
Liz
On 13 Jan 2010, at 14:30, Patrick
Ah! That works in Eclipse (it causes the .keystore file to be copied to
build/app.woa/Contents/Resources/Java/), but it doesn't work for deployment.
Do I need to add something to build.xml to make it do the same thing there?
On Jan 13, 2010, at 11:11 AM, Mike Schrag wrote:
you need to put
hmmm .. i thought class includes were used by build.xml also .
actually, i took a look at the project i have that uses Kerberos (and has a
krb5.conf in source):
wocompile srcdir=src destdir=bin
includes=**/*.java,**/*.conf
looks like i added it to the wocompile script.
On Jan 13, 2010, at 8:41 AM, Patrick Robinson wrote:
Ah! That works in Eclipse (it causes the .keystore file to be
copied to build/app.woa/Contents/Resources/Java/), but it doesn't
work for deployment. Do I need to add something to build.xml to
make it do the same thing there?
This actually isn't a directory dep .. it's really Adding a non-Java jar
resource or something like that, but yeah, probably someone should put this
info somewhere.
On Jan 13, 2010, at 11:55 AM, Ray Kiddy wrote:
On Jan 13, 2010, at 8:41 AM, Patrick Robinson wrote:
Ah! That works in
But even that isn't going to handle what this lib of mine needs,
which is that the *directory* where the keystore file lives be in the
classpath.
On Jan 13, 2010, at 11:47 AM, Mike Schrag wrote:
hmmm .. i thought class includes were used by build.xml also .
actually, i took a look at
When you put it in your source directory did you right click on it and choose
WOLIPS - Include as Class?
Jeffrey Simpson
Senior Software Engineer
Telephone: 240.235.2144
Fax: 240.235.2174
simp...@yfu.org
Youth For Understanding (YFU) prepares young people for their responsibilities
and
all that does is update the classes include patternset, though .. so if you did
it manually, it should end up the same thing
On Jan 13, 2010, at 2:21 PM, Jeffrey Simpson wrote:
When you put it in your source directory did you right click on it and choose
WOLIPS - Include as Class?
It looks to me like the otherclasspath ... / nested element of
woapplication / might be persuaded to add the right thing to the
various *ClassPath.txt files, but I haven't stumbled across the right
incantation, yet.
otherclasspath dir=Resources/Keystore / causes the following to
be added
I need to use a java library that expects to find my java keystore file (which
would normally be specified by the javax.net.ssl.keyStore system property) in a
directory on the classpath.
How do I do that? Is there a way to create a dir (perhaps under Resources),
and tell the build system to
17 matches
Mail list logo