[ 
http://jira.codehaus.org/browse/MWEBSTART-140?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Waldemar Klaczynski updated MWEBSTART-140:
------------------------------------------

    Comment: was deleted

(was: patch)

> I propose a new code
> --------------------
>
>                 Key: MWEBSTART-140
>                 URL: http://jira.codehaus.org/browse/MWEBSTART-140
>             Project: Maven 2.x Webstart Plugin
>          Issue Type: New Feature
>          Components: jnlps
>    Affects Versions: 1.0-alpha-3
>            Reporter: Waldemar Klaczynski
>         Attachments: maven-jnlp-plugin.tar.bz2
>
>
> I propose to make a greater revolution in the code. With my change that 
> tyczyły to rewrite the code again I got most of the functions that are 
> necessary to obtain the jnlp file.
> Poprawiłem wiele rzeczy, które uniemożliwiały używanie 
> wtyczki.
> Introduced the division into groups of resources. Established that the group 
> containing the main functionality becomes a super-group, so attained the 
> possibility of building the jnlp for multiple systems and use of native 
> libraries.
> Removed the ability to configure multiple jnlp files in a single execution. 
> The same effect can be achieved by defining the build of the jnlp files in 
> many executions in one plugin, further classifying execution.
> Jnlp configuration replaced the class PlexusConfiguration, then moved to the 
> configuration of the velocity context. Thus attained the possibility of 
> flexible configuration template jnlp file.
> Wprowadziłem wiele rozwiązań filtrowania zależności 
> bibliotek.
> Introduced a stronger verification of the signature on the compression 
> Pack200 and for nested classes can use less compression gzip.
> I introduced many solutions depending on library filtering.
> Description will try to join later.
> Now includes several examples of my configuration.
> By Servlet:
>     <plugin>
>         <groupId>org.codehaus.mojo.webstart</groupId>
>         <artifactId>maven-jnlp-plugin</artifactId>
>         <version>1.0-SNAPSHOT</version>
>         <executions>
>             <execution>
>                 <id>gen-center-menager-jnlp-4.2.3.GA</id>
>                 <phase>prepare-package</phase>
>                 <goals>
>                     <goal>jnlp-servlet</goal>
>                 </goals>
>                 <configuration>
>                     <outputDirectoryName>webstart</outputDirectoryName>
>                     <verbose>true</verbose>
>                     <templateFilename>manager-template.jnlp</templateFilename>
>                     <outputFilename>ibank-manager.jnlp</outputFilename>
>                     
> <resourcesDirectory>${project.basedir}/src/main/jnlp/resources</resourcesDirectory>
>                     <mainClass>com.saba.ibank.menager.Main</mainClass>
>                     <excludeGroupIds>org.jboss.jbossas</excludeGroupIds>
>                     
> <webappDirectory>${project.build.directory}/${project.build.finalName}-jboss-4.2.3.GA</webappDirectory>
>                     <pack200>true</pack200>
>                     <signConfig>
>                         <keystore>${sign.keystore}</keystore>
>                         <alias>${sign.alias}</alias>
>                         <storepass>${sign.storepass}</storepass>
>                         <keypass>${sign.keypass}</keypass>
>                         
> <removeExistingSignatures>true</removeExistingSignatures>
>                         <verify>true</verify>
>                     </signConfig>
>                     <jnlp>
>                         <offlineAllowed>true</offlineAllowed>
>                         <allPermissions>true</allPermissions>
>                         <javaVersion>1.6+</javaVersion>
>                         <icons>
>                             <icon>
>                                 <href>images/ibank-manager.png</href>
>                                 <width>35</width>
>                                 <height>26</height>
>                             </icon>
>                             <icon>
>                                 <href>images/ibank-manager-logo.png</href>
>                                 <kind>splash</kind>
>                             </icon>
>                         </icons>
>                     </jnlp>
>                     <resourcesGroups>
>                         <resourcesGroup>
>                             <extensions>
>                                 <extension>
>                                     <name>utils</name>
>                                     <href>http://localhost/utils.jnlp</href>
>                                 </extension>
>                             </extensions>
>                             <properties>
>                                 <property>
>                                     <name>com.test.myText</name>
>                                     <value>http://localhost/utils.jnlp</value>
>                                 </property>
>                             </properties>
>                             <resources>
>                                 <resource>
>                                     <groupId>saba.ibank</groupId>
>                                     
> <artifactId>ibank-application-manager</artifactId>
>                                     <version>${version}</version>
>                                     <excludes>
>                                         
> <exclude>org.jboss.jbossas:jboss-as-client</exclude>
>                                     </excludes>
>                                 </resource>
>                                 <resource>
>                                     <groupId>jboss</groupId>
>                                     <artifactId>jboss-ejb3</artifactId>
>                                     <version>4.2.3.GA</version>
>                                 </resource>
>                                 <resource>
>                                     <groupId>org.jboss.client</groupId>
>                                     <artifactId>jbossall-client</artifactId>
>                                     <version>4.2.3.GA</version>
>                                 </resource>
>                             </resources>
>                         </resourcesGroup>
>                         <resourcesGroup>
>                             <arch>i386:x86</arch>
>                             <os>Linux</os>
>                             <resources>
>                                 <resource>
>                                     <groupId>saba.utils</groupId>
>                                     
> <artifactId>saba-security-resources</artifactId>
>                                     
> <version>${saba_security_version}</version>
>                                     <classifier>linux-i586</classifier>
>                                     <nativeLib>true</nativeLib>
>                                 </resource>
>                             </resources>
>                         </resourcesGroup>
>                         <resourcesGroup>
>                             <arch>amd64:x86_64</arch>
>                             <os>Linux</os>
>                             <resources>
>                                 <resource>
>                                     <groupId>saba.utils</groupId>
>                                     
> <artifactId>saba-security-resources</artifactId>
>                                     
> <version>${saba_security_version}</version>
>                                     <classifier>linux-amd64</classifier>
>                                     <nativeLib>true</nativeLib>
>                                 </resource>
>                             </resources>
>                         </resourcesGroup>
>                         <resourcesGroup>
>                             <arch>x86</arch>
>                             <os>Windows</os>
>                             <resources>
>                                 <resource>
>                                     <groupId>saba.utils</groupId>
>                                     
> <artifactId>saba-security-resources</artifactId>
>                                     
> <version>${saba_security_version}</version>
>                                     <classifier>windows-i586</classifier>
>                                     <nativeLib>true</nativeLib>
>                                 </resource>
>                             </resources>
>                         </resourcesGroup>
>                     </resourcesGroups>
>                 </configuration>
>             </execution>
>         </executions>
>     </plugin>
> By ZIP file:
>     <plugin>
>         <groupId>org.codehaus.mojo.webstart</groupId>
>         <artifactId>maven-jnlp-plugin</artifactId>
>         <version>1.0-SNAPSHOT</version>
>         <executions>
>             <execution>
>                 <id>gen-center-menager-jnlp</id>
>                 <phase>package</phase>
>                 <goals>
>                     <goal>jnlp</goal>
>                 </goals>
>                 <configuration>
>                     <verbose>true</verbose>
>                     <name>Saba Crypto Applet</name>
>                     <outputDirectoryName>webstart</outputDirectoryName>
>                     <outputFilename>crypto.jnlp</outputFilename>
>                     <templateFilename>crypto-template.jnlp</templateFilename>
>                     
> <resourcesDirectory>${project.basedir}/src/main/jnlp/resources</resourcesDirectory>
>                     <mainClass>com.saba.crypt.KeyPanel</mainClass>
>                     <gzip>true</gzip>
>                     <pack200>true</pack200>
>                     <primaryArtifact>true</primaryArtifact>
>                     <signConfig>
>                         <keystore>${sign.keystore}</keystore>
>                         <alias>${sign.alias}</alias>
>                         <storepass>${sign.storepass}</storepass>
>                         <keypass>${sign.keypass}</keypass>
>                         
> <removeExistingSignatures>true</removeExistingSignatures>
>                         <verify>true</verify>
>                     </signConfig>
>                     <jnlp>
>                         <offlineAllowed>true</offlineAllowed>
>                         <allPermissions>true</allPermissions>
>                         <javaVersion>1.6+</javaVersion>
>                     </jnlp>
>                     <resourcesGroups>
>                         <resourcesGroup>
>                             <includeInJnlp>false</includeInJnlp>
>                             <resources>
>                                 <resource>
>                                     <groupId>saba.utils</groupId>
>                                     
> <artifactId>saba-applet-launcher</artifactId>
>                                     <version>2.1.0</version>
>                                 </resource>
>                             </resources>
>                         </resourcesGroup>
>                         <resourcesGroup>
>                             <arch>i386:x86</arch>
>                             <os>Linux</os>
>                             <resources>
>                                 <resource>
>                                     <groupId>saba.utils</groupId>
>                                     
> <artifactId>saba-security-resources</artifactId>
>                                     <version>${version}</version>
>                                     <classifier>linux-i586</classifier>
>                                     <nativeLib>true</nativeLib>
>                                 </resource>
>                             </resources>
>                         </resourcesGroup>
>                         <resourcesGroup>
>                             <arch>amd64:x86_64</arch>
>                             <os>Linux</os>
>                             <resources>
>                                 <resource>
>                                     <groupId>saba.utils</groupId>
>                                     
> <artifactId>saba-security-resources</artifactId>
>                                     <version>${version}</version>
>                                     <classifier>linux-amd64</classifier>
>                                     <nativeLib>true</nativeLib>
>                                 </resource>
>                             </resources>
>                         </resourcesGroup>
>                         <resourcesGroup>
>                             <arch>x86</arch>
>                             <os>Windows</os>
>                             <resources>
>                                 <resource>
>                                     <groupId>saba.utils</groupId>
>                                     
> <artifactId>saba-security-resources</artifactId>
>                                     <version>${version}</version>
>                                     <classifier>windows-i586</classifier>
>                                     <nativeLib>true</nativeLib>
>                                 </resource>
>                             </resources>
>                         </resourcesGroup>
>                     </resourcesGroups>
>                 </configuration>
>             </execution>
>         </executions>
>     </plugin>
> Template vm
> <jnlp
>   spec="$jnlpspec"
>   codebase="$$codebase"
>   context="$$context"
>   href="$$name">
>   <information>
>     <title>$project.Name</title>
>     <vendor>$project.Organization.Name</vendor>
>     <homepage href="$project.Url"/>
>     <description>$project.Description</description>
> #if($offlineAllowed)
>     <offline-allowed/>
> #end
> #foreach( $icon in $icons )
> #if($icon.kind == "splash")
>     <icon kind="splash" href="$icon.href"/>
> #else
>     <icon href="$icon.href"/>
> #end
> #end
>   </information>
>   
> #if($allPermissions)
>   <security>
>     <all-permissions/>
>   </security>
> #end
>   <resources>
>     <j2se version="$javaVersion"/>
> $superGroup
>   </resources>
> $otherGroups
>   <application-desc main-class="$mainClass">
>   </application-desc>
> </jnlp>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to