Re: need to add dir to classpath
Re: need to add dir to classpath
- Subject: Re: need to add dir to classpath
- From: Kieran Kelleher <email@hidden>
- Date: Wed, 13 Jan 2010 09:58:24 -0500
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 started by wotaskd, it uses the WOBootstrap.jar to dynamically create the big old classpath at startup. So, for a quick test, you could add
APPROOT/Resources/KeystoreFiles/
to that file on a built woa, assuming you use a dir named KeystoreFiles in Resources and test that. if that works, then go look at how you can change the build.xml to automatically add the extra classpath dir to the MacOSClassPath.txt file during deployment build.
HTH, Kieran
On Jan 13, 2010, at 9:30 AM, 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 put into Contents/Resources/Java/, which *is* in the classpath.
>
> - Patrick
>
>
> On Jan 13, 2010, at 6:17 AM, David Avendasora wrote:
>
>> 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 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 include it in the classpath?
>>>
>>> - Patrick
>>>
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list (email@hidden)
>>> Help/Unsubscribe/Update your Subscription:
>>>
>>> This email sent to email@hidden
>>>
>>>
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden