Code Monkey home page Code Monkey logo

onexip / jarbundler Goto Github PK

View Code? Open in Web Editor NEW
72.0 13.0 17.0 278 KB

JarBundler is a feature-rich Ant task which will create a Mac OS X application bundle from a list of Jar files and a main class name. You can add an Icon resource, set various Mac OS X native look-and-feel bells and whistles, and maintain your application bundles as part of your normal build and release cycle. Project moved from http://sourceforge.net/projects/jarbundler/

License: Apache License 2.0

Java 100.00%

jarbundler's Issues

Wrong link to docs/index.html

The link on the main page:

"Take a look at ./docs/index.html (Currently outdated. Sorry.)"

points to a non-existing site instead of the ./docs/index.html from the current HEAD revision.

Regards, Peter.

Release v3.4.0 on Maven Central

@slajar @tobium I did a couple of fixes and refactoring this weekend. This is the changelog:

  • Massive code refactoring
    • code formatting
    • specify maven source encoding
    • fix Ant build files
    • run examples with a modern JavaApplicationStub (universalJavaApplicationStub)
  • Bugfix: JarBundler on Windows created a classpath with backward slashes which broke the Info.plist file on macOS
    • \ in classpath are now replaced with /
  • Remove support for Java 1.3
    • if no jvmversion attribute is set, the default version is now 1.4+
    • removed deprecated growboxintrudes attribute
    • removed deprecated liveresize attribute
    • removed deprecated smalltabs attribute
  • Updated HelloWorld example to show JVM details, classpath and mainArgs
  • Support for Java 9+ in jvmversion attribute

Additionally we already had these improvements on master since 3.3.0 release:

  • Updates to docs and examples
  • Optional supportsAutomaticGraphicsSwitching attribute which defaults to true (for Plist key NSSupportsAutomaticGraphicsSwitching)
    • PullRequest !14, thanks to Björn Kautler (@Vampire) for his contribution!
  • Update Ant from 1.9.3 to 1.9.14

I tested with Maven and Ant and it seems stable :-)

May I suggest to release version 3.4.0 on Maven central? You still need to update the SNAPSHOT version and Readme Changelog once you're ready, but everything else should be good to go.

some bug fixes?

I've been working on a cloned version of jarbundler-3.3.0. I had thought of publishing it myself, but are you interested in a pull request? Small things so far (getting rid of deprecation warnings; JVMVersion also in Oracle plist; parsing modern version numbers (e.g. "9+") in setJVMVersion).

If you are interested, I'll send a pull request. If not, I'll keep it to myself. :-)

Missing definition

It is not finding the class loader. I get this:

Marisas-Mini:ThudNG-1.0 fstltna$ ant
Buildfile: /Users/fstltna/Documents/ThudNG2/ThudNG2/ThudNG-1.0/build.xml

BUILD FAILED
/Users/fstltna/Documents/ThudNG2/ThudNG2/ThudNG-1.0/build.xml:19: taskdef class net.sourceforge.jarbundler.JarBundler cannot be found
 using the classloader AntClassLoader[]

Total time: 0 seconds

Please help!

How to use with existing .JAR

I’m building a GUI in Java using Eclipse and came across your AppBundler while looking for a way to bundle the .jar I had created as a mac application. I was wondering, after running the test code you had provided, how I can use the AppBundler with a .jar file that has already been made.

Getting the following after creating a .app although I have java 1.8x installed

screen shot 2016-11-27 at 5 19 04 am

<project name="Pataclysm" default="export" basedir=".">
	<target name="export">
		
		<jar destfile="tmp/app.jar" basedir="bin"/>
		
		<jarbundler dir="/Users/dhowe/Desktop/" name="Pataclysm" jvmversion="1.8" mainclass="core.Pataclysm">
			<jarfileset dir="lib">
				<include name="**/*.jar" />
			</jarfileset>
			<jarfileset dir="tmp">
				<include name="**/*.jar" />
			</jarfileset>
		</jarbundler>	
	</target>
</project>

screen shot 2016-11-27 at 5 20 58 am

Merge contributions from fork tofi86/Jarbundler

Hi,

I'm one of the recent contributors to informagen's JarBundler and I've added some improvements in the past year which didn't make it in the official release.
That's why they live in a separate repo here on GitHub: https://github.com/tofi86/Jarbundler/

It would be nice if you could merge these changes to your official repo now that you've taken over the ownership of JarBundler!

Modifications (also see my Readme):

  • version 2.5.0 (2015-11-06)
    • Added optional contentSize attribute to JarBundler task (for Plist key NSPreferencesContentSize)
  • version 2.4.0 (2015-05-15)
    • Added optional useJavaXKey attribute to JarBundler task (for universalJavaApplicationStub-Support)
    • Added optional hiResCapable attribute to JarBundler task (for Plist key NSHighResolutionCapable)
    • removed deprecated aboutmenuname attribute
    • removed deprecated infostring and shortinfostring attributes (use copyright attribute instead)
  • version 2.3.0 (2014-04-01)
    • Added optional copyright attribute to JarBundler task (for Plist key NSHumanReadableCopyright)
    • Issue a warning when using deprecated aboutmenuname attribute
    • Issue a warning when using deprecated shortinfostring attribute
  • version 2.2.1 (2014-01-25)
    • Added optional allowMixedLocalizations attribute to ant task. If true, the bundle supports the retrieval of localized strings from frameworks. This should be set to true if your app supports different languages. Default: false

version number mismatch

The maven version number in pom.xml (3.2.2) and the ant build version number in build.xml (2.3.2) deferr.

I assume they should be matching, right?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.