netbeans_default_options

View: New views
2 Messages — Rating Filter:   Alert me  

netbeans_default_options

by Joan Pujol :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

How can I put things in netbeans_default_options of the /etc/app.conf for when I run aproject? (For example the --laf Nimbus to run the platform app with nimbus)

And how I can put the options in the project to have them when I make a zip distribution?

A lot of thanks in advance,

--
Joan Jesús Pujol Espinar
http://www.joanpujol.cat
http://lujop.deviantart.com

Re: netbeans_default_options

by cemerick :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I needed to solve this problem just this morning, and came up with adding this target to our suite's build.xml:

    <target name="build-launchers" depends="suite.build-launchers">
        <propertyfile file="${build.launcher.dir}/etc/${app.name}.conf">
            <entry key="default_options" value='"--branding ${branding.token} ${run.args.extra}"'/>
            <entry key="jdkhome" value="../jre"/>
        </propertyfile>
    </target>

That just drops in the same run.args.extra we use in development (and it'd be trivial to put together a run.args.distribution property that contained only stuff for use in production, which run.args.extra could build on top of for dev environments).

Cheers,

- Chas

Joan Pujol wrote:
Hi,

How can I put things in netbeans_default_options of the /etc/app.conf for
when I run aproject? (For example the --laf Nimbus to run the platform app
with nimbus)

And how I can put the options in the project to have them when I make a zip
distribution?

A lot of thanks in advance,

--
Joan Jesús Pujol Espinar
http://www.joanpujol.cat
http://lujop.deviantart.com