Revision: 1724
          http://svn.sourceforge.net/spring-rich-c/?rev=1724&view=rev
Author:   ge0ffrey
Date:     2007-02-25 09:30:37 -0800 (Sun, 25 Feb 2007)

Log Message:
-----------
webstart petclinic standalone and spring skin

Modified Paths:
--------------
    trunk/spring-richclient/pom.xml
    trunk/spring-richclient/samples/petclinic/standalone/pom.xml
    trunk/spring-richclient/src/site/apt/development/developmentSetup.apt
    trunk/spring-richclient/src/site/site.xml

Added Paths:
-----------
    trunk/spring-richclient/samples/petclinic/standalone/src/jnlp/
    trunk/spring-richclient/samples/petclinic/standalone/src/jnlp/template.vm

Modified: trunk/spring-richclient/pom.xml
===================================================================
--- trunk/spring-richclient/pom.xml     2007-02-21 12:48:36 UTC (rev 1723)
+++ trunk/spring-richclient/pom.xml     2007-02-25 17:30:37 UTC (rev 1724)
@@ -337,6 +337,12 @@
                     <version>2.1</version>
                 </plugin>
                 <plugin>
+                    <!-- Only used in profile production -->
+                    <groupId>org.codehaus.mojo</groupId>
+                    <artifactId>webstart-maven-plugin</artifactId>
+                    <version>1.0-alpha-1</version>
+                </plugin>
+                <plugin>
                     <groupId>org.apache.maven.plugins</groupId>
                     <artifactId>maven-archetype-plugin</artifactId>
                     <version>1.0-alpha-4</version>
@@ -486,6 +492,37 @@
                 <maven.test.skip>true</maven.test.skip>
             </properties>
         </profile>
+        <profile>
+            <id>production</id>
+            <build>
+                <pluginManagement>
+                    <plugins>
+                        <plugin>
+                            <groupId>org.codehaus.mojo</groupId>
+                            <artifactId>webstart-maven-plugin</artifactId>
+                            <executions>
+                                <execution>
+                                    <goals>
+                                        <goal>jnlp</goal>
+                                    </goals>
+                                </execution>
+                            </executions>
+                            <configuration>
+                                <sign>
+                                    <!-- Keep in sync with 
/src/keystore/spring-richclient_keystore_comment.txt -->
+                                    
<!--<keystore>${basedir}/???/src/keystore/spring-richclient_keystore.jks</keystore>-->
+                                    <keypass>spring-richclient</keypass>
+                                    <storepass>spring-richclient</storepass>
+                                    <storetype>jks</storetype>
+                                    <alias>spring-richclient</alias>
+                                    <verify>true</verify>
+                                </sign>
+                            </configuration>
+                        </plugin>
+                    </plugins>
+                </pluginManagement>
+            </build>
+        </profile>
     </profiles>
 
     <modules>

Modified: trunk/spring-richclient/samples/petclinic/standalone/pom.xml
===================================================================
--- trunk/spring-richclient/samples/petclinic/standalone/pom.xml        
2007-02-21 12:48:36 UTC (rev 1723)
+++ trunk/spring-richclient/samples/petclinic/standalone/pom.xml        
2007-02-25 17:30:37 UTC (rev 1724)
@@ -16,6 +16,9 @@
         This produces an executable jar.
     </description>
 
+    <properties>
+        
<project.mainClass>org.springframework.richclient.samples.petclinic.PetClinicStandalone</project.mainClass>
+    </properties>
     <build>
         <plugins>
             <plugin>
@@ -24,7 +27,7 @@
                 <configuration>
                     <archive>
                         <manifest>
-                            
<mainClass>org.springframework.richclient.samples.petclinic.PetClinicStandalone</mainClass>
+                            <mainClass>${project.mainClass}</mainClass>
                             <addClasspath>true</addClasspath>
                         </manifest>
                     </archive>
@@ -46,6 +49,17 @@
         <dependency>
             <groupId>org.springframework.richclient.samples.petclinic</groupId>
             <artifactId>spring-richclient-petclinic-gui</artifactId>
+            <!--
+              TODO remove jdnc entirely from petclinic
+              or unsign the jar so webstart can sign it
+              or wait for double-signing fix in webstart/jar plugin
+            -->
+            <exclusions>
+                <exclusion>
+                    <groupId>org.jdesktop</groupId>
+                    <artifactId>jdnc</artifactId>
+                </exclusion>
+            </exclusions>
         </dependency>
 
         <!-- Spring rich -->
@@ -76,4 +90,33 @@
         </dependency>
     </dependencies>
 
+    <profiles>
+        <profile>
+            <id>production</id>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.codehaus.mojo</groupId>
+                        <artifactId>webstart-maven-plugin</artifactId>
+                        <configuration>
+                            <jnlp>
+                                <mainClass>${project.mainClass}</mainClass>
+                            </jnlp>
+                            <sign>
+                                
<keystore>${basedir}/../../../src/keystore/spring-richclient_keystore.jks</keystore>
+                            </sign>
+                        </configuration>
+                    </plugin>
+                </plugins>
+            </build>
+            <reporting>
+                <plugins>
+                    <plugin>
+                        <groupId>org.codehaus.mojo</groupId>
+                        <artifactId>webstart-maven-plugin</artifactId>
+                    </plugin>
+                </plugins>
+            </reporting>
+        </profile>
+    </profiles>
 </project>

Added: trunk/spring-richclient/samples/petclinic/standalone/src/jnlp/template.vm
===================================================================
--- trunk/spring-richclient/samples/petclinic/standalone/src/jnlp/template.vm   
                        (rev 0)
+++ trunk/spring-richclient/samples/petclinic/standalone/src/jnlp/template.vm   
2007-02-25 17:30:37 UTC (rev 1724)
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="utf-8"?>
+<jnlp
+    spec="1.0+"
+    
codebase="http://spring-rich-c.sourceforge.net/spring-richclient-samples/spring-richclient-petclinic/spring-richclient-petclinic-standalone";
+    href="$outputFile">
+  <information>
+    <title>Petclinic</title>
+    <vendor>The Spring Framework</vendor>
+    <homepage href="http://spring-rich-c.sf.net"/>
+    <description kind="one-line">Petclinic</description>
+    <description kind="short">Petclinic</description>
+    <description kind="tooltip">Petclinic</description>
+  </information>
+  <security>
+    <all-permissions/>
+  </security>
+  <resources>
+    <j2se version="1.5+"/>
+    $dependencies
+  </resources>
+  <application-desc main-class="$mainClass"/>
+</jnlp>
\ No newline at end of file

Modified: trunk/spring-richclient/src/site/apt/development/developmentSetup.apt
===================================================================
--- trunk/spring-richclient/src/site/apt/development/developmentSetup.apt       
2007-02-21 12:48:36 UTC (rev 1723)
+++ trunk/spring-richclient/src/site/apt/development/developmentSetup.apt       
2007-02-25 17:30:37 UTC (rev 1724)
@@ -400,22 +400,18 @@
 
     Note: this configuration will also be reused when deploying artifacts to 
our remove maven repository.
 
-    Now run:
+    Test if you can access the SF shell:
 
 +--
-mvn site-deploy
+ssh [EMAIL PROTECTED]
 +--
 
-Code style
+    This probably won't work and you 'll need to create a private key at 
<<<~/.ssh/id_rsa>>> first
+    and log in to SF's website and paste your public key in their webform.
+    Afther that it should work.
 
-* Eclipse
+    Now run:
 
-    Import this: TODO
-
-    * {{SunCodingConventionsWith120CharsPerLineForEclipse.xml}}
-
-* Idea
-
-    Copy this: TODO
-
-    * {{SunCodingConventionsWith120CharsPerLineForIdea.xml}}
++--
+mvn site-deploy
++--

Modified: trunk/spring-richclient/src/site/site.xml
===================================================================
--- trunk/spring-richclient/src/site/site.xml   2007-02-21 12:48:36 UTC (rev 
1723)
+++ trunk/spring-richclient/src/site/site.xml   2007-02-25 17:30:37 UTC (rev 
1724)
@@ -1,13 +1,13 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project>
     <skin>
-        <groupId>org.apache.maven.skins</groupId>
-        <artifactId>maven-default-skin</artifactId>
+        <groupId>org.springframework.maven.skins</groupId>
+        <artifactId>maven-spring-skin</artifactId>
         <version>1.0</version>
-    </skin>
-    <bannerLeft>
-        <name>${project.name}</name>
-        <href>${project.url}</href>
+    </skin>
+    <bannerLeft>
+        <name>${project.name}</name>
+        <href>${project.url}</href>
     </bannerLeft>
     <bannerRight>
         <name>Spring framework</name>


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
spring-rich-c-cvs mailing list
spring-rich-c-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/spring-rich-c-cvs

Reply via email to