Ant-Task-Documentation

Tom Schindl tom.schindl at bestsolution.at
Wed Jul 11 05:51:40 PDT 2012


well I found out that splash and icon endup in the jnlp file - so my
guess is that they are only used for the webstart stuff but not for
native packaging stuff.

tom

Am 11.07.12 02:00, schrieb Jose Martinez:
> Have not had much luck setting the application executable's icon.  No
> matter what I try I keep getting this msg...
> 
> "Using default package resource [application icon] (add
> package/windows/TurretMaster.ico to the class path to customize)"
> 
> I tried using both fx:icon and fx:fileset but neither work.  Fx:fileset
> at least puts the icon in the 'app' directory.
> 
> Here are the ant commands I am using (arrows added to point out the two
> icon lines)...
>     <target name="-post-jfx-deploy">    
>         <fx:deploy width="${javafx.run.width}"
> height="${javafx.run.height}" 
>                    nativeBundles="all" verbose="true"
>                    outdir="${basedir}/${dist.dir}"
> outfile="${application.title}">
>             <fx:application name="${application.title}"
> mainClass="${javafx.main.class}"/>
>             <fx:resources>
>                 <fx:fileset dir="${basedir}/${dist.dir}"
> includes="${application.title}.jar"/>
> -->                <fx:fileset dir="${basedir}"
> includes="${application.title}.ico"/>              
>             </fx:resources>
>             <fx:info title="${application.title}"
> vendor="${application.vendor}">
> -->                <fx:icon href="${basedir}/${application.title}.ico" /> 
>             </fx:info>        
>         </fx:deploy>
>     </target>    
> 
> Was able to get the installation executable to have the correct icon but
> in a round about way.... had to prevent the ant script from launching
> Inno setup then I put in the correct icon and launched Inno Setup's
> compile myself.
>  
> jose
> ------------------------------------------------------------------------
> *From:* Tom Schindl <tom.schindl at bestsolution.at>
> *To:* "openjfx-dev at openjdk.java.net" <openjfx-dev at openjdk.java.net>
> *Sent:* Tuesday, July 10, 2012 5:07 PM
> *Subject:* Ant-Task-Documentation
> 
> Hi,
> 
> I'm just working on IDE support for fx-ant tasks but the documentation
> for things like fx:icon and fx:splash is a bit sparse (see
> http://docs.oracle.com/javafx/2/deployment/javafx_ant_task_reference002.htm#CIAIEJHG).
> 
> The biggest mystery for me what effect fx:icon what width/height/depth
> combination are expected to be set?
> 
> An educated guess from my eclipse applications is:
> 16x16 8bit
> 16x16 32bit
> 32x32 8bit
> 32x32 32bit
> 48x48 8bit
> 48x48 32bit
> 256x256 32bit
> 
> What are the icons used for (where do they show up)? What are the
> supported formats (guess is png,jpg,gif)?
> 
> Tom
> 
> -- 
> B e s t S o l u t i o n . a t                        EDV Systemhaus GmbH
> ------------------------------------------------------------------------
> tom schindl                geschäftsführer/CEO
> ------------------------------------------------------------------------
> eduard-bodem-gasse 5-7/1  A-6020 innsbruck    fax      ++43 512 935833
> http://www.BestSolution.at <http://www.bestsolution.at/>               
>       phone    ++43 512 935834
> 
> 
> 


-- 
B e s t S o l u t i o n . a t                        EDV Systemhaus GmbH
------------------------------------------------------------------------
tom schindl                 geschäftsführer/CEO
------------------------------------------------------------------------
eduard-bodem-gasse 5-7/1   A-6020 innsbruck     fax      ++43 512 935833
http://www.BestSolution.at                      phone    ++43 512 935834




More information about the openjfx-dev mailing list