Jar bundler ANT task and working directory - macos

There is a checkbox in Jar Bundler which allows to set working folder to inside package. Anybody knows how to do same thing using JarBundler ANT task? Thanks in advance!

I made it myself. Here's how:
<jarbundler dir="${deployment.dir}/bundled"
name="qqq"
mainclass="main.Main"
version="1.5"
jvmversion="1.6+"
icon="${deployment.dir}/Equals.icns"
workingdirectory="$APP_PACKAGE/Contents/Resources/Java">
Made a bundle and looked inside. There was a value "$APP_PACKAGE/Contents/Resources/Java". Jar Bundler uses it to set what i asked for. Thanks to those 9 people who at least read my question.

Related

Jenkins missing config.xml of Jobs under windows

I got a Problem with our Jenkins Server:
The Config.xml files for the jobs are missing after some time and we dont know why.
I'm rather sure that noone is deleting the files.
I already uninstalled the Plugin email-ext as I first noticed missing jobs after I first installed the Plugin.
However this morning there was again 1 config.xml missing.
Jenkins Version is 1.598 and its running under win7.
I appreciate any hints on what could be the source of my problem.
Thanks in advance.
You can use Process Monitor to see which process deletes xml files.

How to use leiningen to develop using local jars?

I realize that this question is pretty much the exact question found here. However, seeing as that question is 1.5 years old (or so), I would like to revisit it. How does one add local dependencies using leiningen? Surely this capability must exist by now?
Create a private Maven Repository, and then, add the following to your project.clj
:repositories {"local" ~(str (.toURI (java.io.File. "your_local_repository")))}
If the jars are based on your own projects, you can use lein install to put them into your local .m2, or use the checkout-dependencies feature.
You can also use the extra-classpaths feature, etc.
I found that the easiest (albeit somewhat hacky) solution is to do the following:
For an existing project that you're using as a dependency:
In your local project that has the dependency you want to modify, ensure you run lein deps
Clone the repo of this dependency so you can modify it locally (obv. make sure you're using the same tag as the version you specify in your project.clj file)
Run lein uberjar in this dependency dir (where the relevant project.clj file lives)
Copy the generated standalone jar in target/ to the exact path/file of your local maven files... (something like: ~/.m2/repository/project/.../file.jar); Ensure that you backup the original jar file so you can restore it later on if that is desirable
For development of your own project:
Within the project or plugin you're developing, simply run lein install
Find out where your local maven repo is (see above for an example path)
Enter dependency information in your test project like you would for any other leiningen project
Again, this is a quick hack and perhaps not the way you'd go about doing serious local development, but I found it easy enough for what I wanted. Check out lein help tutorial for much more info

Updating osgi bundle from batch file

(I use glassfish 3.1 with felix osgi)
I need to write a batch script that updates one of my OSGI bundles.
The most basic idea is to move bundle jar from autodeploy folder, and return it after a few seconds. Is there a "cleaner" way to do it? Can I easily run commands in felix telnet from a batch file?
thank you
you can also use BundleContext.installBundle method
http://www.osgi.org/javadoc/r4v43/org/osgi/framework/BundleContext.html#installBundle(java.lang.String, java.io.InputStream)

Regarding installation of HtmlUnit Driver

i am trying to installing selenium-server-standalone-2.0b1.jar actually for that i have to set all jar files into the classpath of a java project. But i don't know that where all the jars under this folder "selenium-server-standalone-2.0b1.jar" ? and how to install selenium-server-standalone-2.0b1.jar? Please help me out
I didn't get your question correctly. If you are looking for the jars,you can download from the following sites.Try to used the new jars,as these come with lot of fixes.
Just add to classpath & ready to go.
http://seleniumhq.org/download/
Archive Releases:- http://release.seleniumhq.org/

How do I set where my grails plugins should be installed?

I saw the light and install the joda-time plugin for grails.
However, when I tried to commit my changes to source control I realised that grails had located the files in:
C:\Users\Steve\.grails\1.1.1\plugins
instead of somewhere under the project directory of:
f:\grails\projects\myproject
Yeah I'm using windows :-\
So now when someone pulls down my changes from source control they are missing all the joda-time plugin lovelyness and they are wanting to spank me :)
What should I be setting so that grails doesn't put anything under my user directory?
(It isn't installed as a global plugin - just as a project one - at least I think so, I ran "grails install-plugin joda-time" )
Many thanks in advance.
P.S. Currently listening to Plug In Baby by Muse....how coincidental :D
The plugin is listed in application.properties, so when someone gets your code Grails will install missing plugins the first time they run 'grails run-app' or other commands.
If you want to revert to 1.0.x behavior just create grails-app/conf/BuildConfig.groovy with the line
grails.project.plugins.dir='plugins'
and your plugins will be in with the rest of the project files.

Resources