build AppBundler?

Greg Brown greg.x.brown at oracle.com
Wed May 9 06:03:24 PDT 2012


Thanks!

On May 9, 2012, at 8:57 AM, Marco Dinacci wrote:

> Hi,
> 
> I also needed the LSApplicationCategoryType to be generated so I added
> support for it.
> It's in this very small patch against the latest svn:
> 
> Index: appbundler/src/com/oracle/appbundler/AppBundlerTask.java
> ===================================================================
> --- appbundler/src/com/oracle/appbundler/AppBundlerTask.java	(revision 20)
> +++ appbundler/src/com/oracle/appbundler/AppBundlerTask.java	(working copy)
> @@ -65,6 +65,8 @@
>     private String signature = "????";
>     private String copyright = "";
> 
> +    private String applicationCategoryType = "";
> +
>     // JVM info properties
>     private String mainClassName = null;
>     private FileSet runtime = null;
> @@ -121,6 +123,10 @@
>         this.mainClassName = mainClassName;
>     }
> 
> +    public void setApplicationCategoryType(String applicationCategoryType) {
> +        this.applicationCategoryType = applicationCategoryType;
> +    }
> +
>     public void addConfiguredRuntime(FileSet runtime) throws BuildException {
>         if (this.runtime != null) {
>             throw new BuildException("Runtime already specified.");
> @@ -389,6 +395,7 @@
>             writeProperty(xout, "CFBundleSignature", signature);
>             writeProperty(xout, "CFBundleVersion", "1");
>             writeProperty(xout, "NSHumanReadableCopyright", copyright);
> +            writeProperty(xout, "LSApplicationCategoryType",
> applicationCategoryType);
> 
>             // Write runtime
>             if (runtime != null) {
> 
> 
> 
> Best,
> Marco,
> 
> On 9 May 2012 13:49, Greg Brown <greg.x.brown at oracle.com> wrote:
>> The source code is here:
>> 
>> https://svn.java.net/svn/appbundler~svn/
>> 
>> You will need Java 7 and Ant 1.8.2 or later to build. Running "ant" from the root project directory will build the AppBundler JAR. "ant test-swingset" will create an app bundle for the SwingSet demo with an embedded JRE. "ant test-swingset-plugin" will create the same app but without the embedded JRE. Make sure you have JAVA_HOME defined, since that's how the script determines which JRE to embed.
>> 
>> If you just want to download the latest binary, you can find it here:
>> 
>> http://java.net/projects/appbundler/downloads



More information about the macosx-port-dev mailing list