7
голосов
6ответов
1435 просмотров

Как распространять собственные скрипты Perl без дополнительных затрат на пользовательский модуль?

Как кто-то может распространять собственные (не "скомпилированные / perl2exe / ...") сценарии Perl, не заставляя пользователей знать о пользовательских (не CPAN) модулях, которые необходимы сценариям для запуска?> Проблема в том, что пользователи неизбежно копируют скрипт в другое место в с...

0
голосов
1ответов
384 просмотров

Новые обработчики URLStreamHandlers в Glassfish

У меня есть устаревшее приложение, которое я пытаюсь перенести на Java EE. В настоящее время это приложение вызывает URL.setURLStreamHandlerFactory () для регистрации некоторых обработчиков пользовательских протоколов URL. Этот вызов не выполняется в Glassfish v 2.1 и 3, потому что Glassfish уже...

1
голосов
2ответов
1973 просмотров

How to externalize a Spring MessageSources bundle outside the WAR

I have to externalize the Spring MessageSources bundle for i18n support (properties files) outside the classpath in order to modify properties more easily. How can I do that ? <bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource"> <property...

3
голосов
1ответов
311 просмотров

Bundle additional executables with py2exe

I have a python script that calls out to two Sysinternals tools (sigcheck and accesschk). Is there a way I can bundle these executables into a py2exe so that subprocess.Popen can see it when it runs? Full explanation: My script is made to execute over a network share (S:\share\my_script.exe) a...

1
голосов
2ответов
1649 просмотров

OSGi: programmatically add imports to a bundle

How can I add packages to a bundle's import from within code? I need it since I use libraries which rely on reflection and require other packages and I don't want to need to manually add those packages to MANIFEST.MF for each bundle I develop

4
голосов
3ответов
5242 просмотров

Create a new resource bundle in Grails?

I'd like to create another resource bundle to organize my Grails app. Grails provides a 'messages' resource bundle and I need to create a 'myApp' resource bundle. How can I create a new resource bundle and read its properties with the 'g:message' GSP tag?

2
голосов
1ответов
2003 просмотров

iPhone: Change application Bundle files

in my application bundle, there are a XML file. i want to change this XML with other XMl file which have same name (without open Xcode). so i want to ask that whether there are any problem arise when i run this application in iPhone

16
голосов
4ответов
15116 просмотров

How to get classloader for a bundle in equinox?

I have read a lot of equinox code for this, but still can't figure out a non-hacky way of getting the classloader for a osgi bundle in eclipse equinox setup. Is there one?

0
голосов
1ответов
179 просмотров

Equinox Bundle import conflict

1) Bundle A reexports package com.X, which it gets from bundle C 2) Bundle B exports package com.X 3) Now bunlde D has dependency on both A and B. From where will the bundle D get the package com.X from?

1
голосов
1ответов
1820 просмотров

Application bundle Mac OS X Leopard

I had a working application bundle on Mac OS X Tiger. I was easily able to just replace the jar file and everything worked as i made changes. I take that app bundle now, and when it is on Leopard, I get the error message along the lines of "Cannot open this application because it is not supported...

3
голосов
2ответов
979 просмотров

How are objects defined in an XIB file and how are they created at runtime?

I've just purchased a Mac and am beginning to explore software development using Cocoa and Objective-C using XCode in Snow Leaped having come from a strong Microsoft and C# backgrund All of the documentation and tutorials I have read use Interface Builder and XCode to create applications with us...

3
голосов
2ответов
2065 просмотров

How to setup bundle development environment (Eclipse Equinox Maven)

I'am trying to setup eclipse environment to develop bundles (With maven-bundle-plugin-bnd) and run & debug that bundles equinox from eclipse I created sample bundles with org.apache.felix maven-bundle-plugin and can install and start that bundles from eclipse equinox, but every time i ne...

0
голосов
1ответов
234 просмотров

Objective-c application plugin quick start

I need to add a few methods to an already identified class in a closed source application. Using f-script anwywhere and gdb I know what I need to interact with to acheive my goals. However I am struggling to find a solution to allow me to inject some code (preferably objective-c) into the runni...

7
голосов
4ответов
4933 просмотров

Any way to get a Cached UIImage from my 'Documents' directory?

I know that the -imageNamed: method returns a Cached UIImage, but the problem is that my image file is stored in 'Documents', and the -imageNamed: method seems to only search the Bundle... I am currently (reluctantly) using -imageWithContentsOfFile: to get my image from 'Documents' but it is not ...

0
голосов
1ответов
421 просмотров

The document NSBundle.h could no be saved

I'm having some troubles with the bundle and somehow I can't save images from bundle to docs directory any more. Now I've got this error before building: The document NSBundle.h could no be saved It apparently compiles well. This is the kind of code I'm using: //Get every name from plist...

1
голосов
3ответов
271 просмотров

Is having Eclipse OSGI Activators inheriting from each other a good idea?

If you have a common eclipse/osgi code platform on which you build various products can you/should you inherit activators from the common code E.g. org.test.common.PluginActivator org.test.common.ui.UIPluginActivator org.test.product1.Product1PluginActivator org.test.product1.ui.Product1UIPlug...

1
голосов
1ответов
874 просмотров

Apache Felix Bundle Repository - Calling from another bundle

I have a simple test program which is designed to consume the Apache Felix Bundle Repository bundle service however I am having trouble configuring it through eclipse. I am using the jar for the bundle (org.apache.felix.bundlerepository-1.4.0.jar) as an referenced library and have added it to th...

2
голосов
3ответов
2224 просмотров

Two executables in one bundle on MAC

Is it possible to have two executables each with its own plist to share the same bundle. Then depends on the way app is executed (parameters) to load the appropriate executable. Imagine the case where we have a main application (executable with UI) and the mini application (shorter version of th...

0
голосов
1ответов
1966 просмотров

Bundle Identifier

I'm running a small team of iPhone developers and am a bit concerned about the application transfers into iPhone from Xcode. The problem is that whenever an app is transfered into the iphone the earlier transfered app is mysteriously replaced. My question is, "How do I ensure that every app tak...

1
голосов
1ответов
131 просмотров

Felix 'pref' bundle requires 'log version>=1.3', but D/L 'log' bundle version = 1.0

the Felix download page shows Log bundle version 1.0.0 Preferences bundle version 1.0.2 But preferences requires log-bundle version>= 1.3 It just want to get an idea of how 'preferences' works, so any log compatible bundle is welcome :) Regards.

6
голосов
2ответов
4402 просмотров

iPhone - Change app icon pointed to by info.plist within the application?

Is there any way to change the 47x47 PNG, pointed to within info.plist, for the iPhone springboard icon from within code? I understand I can add a translation and change the springboard icon per language that the iPhone supports via a changed info.plist per language, but I would like to change t...

2
голосов
1ответов
1381 просмотров

How do I set an OS X application bundle's working directory?

Is there a key I can set in my application bundle to set what the working directory will be for the executable? It needs to be the $BUNDLE/Contents/MacOS directory (because of some library dependencies that do runtime loading that I can't easily modify). I'm aware this can be done by wrapping wi...

8
голосов
2ответов
7618 просмотров

Change intent bundle data before an activity is re-created after orientation change

I have a notification that starts my activity and passes a messages using the intent's putExtra() function. The message is then displayed to the user in the activity's onCreate function. When the application is restarted due to a orientation change, the message is shown again as it is still in t...

0
голосов
1ответов
1010 просмотров

How to bundle (zip/tar/?) sets of files so that an iPhone app can expand them?

How can I bundle up an arbitrary directory of files, preserving their hierarchical paths so that they can be expanded by an iPhone app? More background on what I am trying to do: I would like to add dynamic content updates for my iPhone app. I'll make a bundle of html files available on a se...

208
голосов
13ответов
150811 просмотров

How to send parameters from a notification-click to an activity?

I can find a way to send parameters to my activity from my notification. I have a service that creates a notification. When the user clicks on the notification I want to open my main activity with some special parameters. E.g an item id, so my activity can load and present a special item detail ...

0
голосов
1ответов
1482 просмотров

Problem in plug-in development: Eclipse 3.4 can't find a bundle that is definitively there!

Today I had a problem with my old Eclipse 3.4 installation and I had to re-download the entire package. However, I don't think that I got the exact package as before, and I'm having some problems. The problem can be summarized as follows: when developing a plug-in, I cannot resolve dependencies ...

2
голосов
1ответов
651 просмотров

Check signature of OSX bundle before load

Goal: Load .so/.bundle that has been verified to be signed (or verified against an arbitrary algorithm). I want to be able to verify a .so/.bundle either using OSX's builtin binary signature tools or some custom algorithm and then load that .so/.bundle with dlopen... The wrench in this is that ...

0
голосов
2ответов
579 просмотров

Is it possible to copy a different plist into the application bundle code wise?

My question is stated above in the title but I'll write it here again Is it possible to copy a different plist into the application bundle code wise?? This is actually a bit related on my previous question ;) Create a dictionary property list programmatically But since I can write out the pli...

0
голосов
1ответов
441 просмотров

Using symbolic links inside OS X application bundles

I'm having a following problem. I have a bundle that has the following structure: B.app/Contents/Frameworks -> link to an existing FS location [1] B.app/Contents/Info.plist B.app/Contents/MacOS B.app/Contents/MacOS/AliasBinary -> link to an existing binary called ExistingBinary [2] B.app/...

50
голосов
17ответов
137768 просмотров

Цикл был обнаружен в пути сборки проекта xxx - проблема пути сборки

Я сейчас конвертирую свои проекты в пакеты OSGI с помощью maven и eclipse. Maven отлично собирает материал, только теперь я получаю указанную выше ошибку в Eclipse. Как я могу узнать, какой проект вызывает это? Есть ли какой-то особый вид? Как это может случиться, я бы ожидал, что maven также мо...