Vincent Fiack avatar Vincent Fiack committed 99064fa

updated webstart publication

Comments (0)

Files changed (3)

blocks-ide-webstart/src/jnlp/template.vm

 <?xml version="1.0" encoding="utf-8"?>
 <jnlp
     spec="1.5+"
-    codebase="http://www.blocks-language.org/webstart/"
+    codebase="http://blocks.vfiack.fr/releases/unstable/webstart/"
     href="$outputFile">
   <information>
     <title>Blocks IDE</title>
     <vendor>Blocks</vendor>
-    <homepage href="../index.html"/>
+    <homepage href="http://blocks.vfiack.fr"/>
     <description>Blocks Ide</description>
     <description kind="short">Test the IDE</description>
     <icon href="images/blocks-logo.gif"/>

publish-webstart.blocks

-<blocks>
-  <define-block id="mvn install">
-    <code>
-      <call blockId="core.ExecuteCommand">
-        <param value="/usr/local/maven-2.0.7/bin/mvn clean install" name="command" type="text"/>
-        <param value="true" name="wait for termination" type="boolean"/>
-        <param variable="srcdir" name="working directory" type="text"/>
-      </call>
-      <call blockId="core.Test">
-        <callparam name="test" type="boolean">
-          <call blockId="core.Equals">
-            <param variable="_" name="left" type="integer"/>
-            <param variable="" value="0" name="right" type="integer"/>
-          </call>
-        </callparam>
-        <param name="ifTrue" type="block"/>
-        <blockparam name="ifFalse" type="block">
-          <block>
-            <code>
-              <call blockId="core.Exit">
-                <param value="1" name="status" type="integer"/>
-              </call>
-            </code>
-          </block>
-        </blockparam>
-      </call>
-    </code>
-  </define-block>
-  <define-block id="mvn webstart">
-    <code>
-      <call blockId="core.ExecuteCommand">
-        <param value="/usr/local/maven-2.0.7/bin/mvn clean package" name="command" type="text"/>
-        <param value="true" name="wait for termination" type="boolean"/>
-        <param variable="webstartdir" name="working directory" type="text"/>
-      </call>
-      <call blockId="core.Test">
-        <callparam name="test" type="boolean">
-          <call blockId="core.Equals">
-            <param variable="_" name="left" type="integer"/>
-            <param variable="" value="0" name="right" type="integer"/>
-          </call>
-        </callparam>
-        <param name="ifTrue" type="block"/>
-        <blockparam name="ifFalse" type="block">
-          <block>
-            <code>
-              <call blockId="core.Exit">
-                <param value="1" name="status" type="integer"/>
-              </call>
-            </code>
-          </block>
-        </blockparam>
-      </call>
-    </code>
-  </define-block>
-  <define-block id="upload">
-    <code>
-      <call blockId="core.Declare">
-        <param variable="" value="jnlpdir" name="varname" type="text"/>
-        <callparam name="value" type="text">
-          <call blockId="text.Concatenate">
-            <param variable="webstartdir" value="/target/jnlp" name="start" type="text"/>
-            <param value="/target/jnlp" name="end" type="text"/>
-          </call>
-        </callparam>
-      </call>
-      <call blockId="core.Declare">
-        <param value="imgdir" name="varname" type="text"/>
-        <callparam name="value" type="text">
-          <call blockId="text.Concatenate">
-            <param variable="jnlpdir" name="start" type="text"/>
-            <param value="/images" name="end" type="text"/>
-          </call>
-        </callparam>
-      </call>
-      <call blockId="net.ftp.FtpSession">
-        <param value="ftp.blocks-language.org" name="host" type="text"/>
-        <param name="port" type="integer"/>
-        <param value="blocksla" name="user" type="text"/>
-        <param variable="password" name="password" type="text"/>
-        <blockparam name="session" type="block">
-          <block>
-            <code>
-              <call blockId="net.ftp.FtpChangeDirectory">
-                <param variable="" value="www/webstart" name="dir" type="text"/>
-              </call>
-              <call blockId="core.ForEach">
-                <callparam name="list" type="other">
-                  <call blockId="file.ListFiles">
-                    <param variable="jnlpdir" name="in directory" type="text"/>
-                    <param name="with extension" type="text"/>
-                  </call>
-                </callparam>
-                <param variable="" value="file" name="varname" type="text"/>
-                <blockparam name="execute" type="block">
-                  <block>
-                    <code>
-                      <call blockId="core.Print">
-                        <param value="Uploading " name="message" type="text"/>
-                      </call>
-                      <call blockId="core.PrintLine">
-                        <param variable="file" name="message" type="text"/>
-                      </call>
-                      <call blockId="net.ftp.FtpUpload">
-                        <callparam name="localFile" type="text">
-                          <call blockId="get full path">
-                            <param variable="jnlpdir" name="dir" type="text"/>
-                            <param variable="file" value="" name="file" type="text"/>
-                          </call>
-                        </callparam>
-                        <param variable="file" name="remoteFile" type="text"/>
-                      </call>
-                    </code>
-                  </block>
-                </blockparam>
-              </call>
-              <call blockId="net.ftp.FtpChangeDirectory">
-                <param value="images" name="dir" type="text"/>
-              </call>
-              <call blockId="core.ForEach">
-                <callparam name="list" type="other">
-                  <call blockId="file.ListFiles">
-                    <param variable="imgdir" name="in directory" type="text"/>
-                    <param name="with extension" type="text"/>
-                  </call>
-                </callparam>
-                <param variable="" value="file" name="varname" type="text"/>
-                <blockparam name="execute" type="block">
-                  <block>
-                    <code>
-                      <call blockId="core.Print">
-                        <param variable="" value="Uploading " name="message" type="text"/>
-                      </call>
-                      <call blockId="core.PrintLine">
-                        <param variable="file" name="message" type="text"/>
-                      </call>
-                      <call blockId="net.ftp.FtpUpload">
-                        <callparam name="localFile" type="text">
-                          <call blockId="get full path">
-                            <param variable="imgdir" name="dir" type="text"/>
-                            <param variable="file" value="" name="file" type="text"/>
-                          </call>
-                        </callparam>
-                        <param variable="file" value="" name="remoteFile" type="text"/>
-                      </call>
-                    </code>
-                  </block>
-                </blockparam>
-              </call>
-            </code>
-          </block>
-        </blockparam>
-      </call>
-    </code>
-  </define-block>
-  <define-block id="get full path">
-    <slot name="dir" type="text" optional="false"/>
-    <slot name="file" type="text" optional="false"/>
-    <code>
-      <call blockId="core.Return">
-        <callparam name="value" type="text">
-          <call blockId="text.Concatenate">
-            <param variable="dir" name="start" type="text"/>
-            <callparam name="end" type="text">
-              <call blockId="text.Concatenate">
-                <param value="/" name="start" type="text"/>
-                <param variable="file" name="end" type="text"/>
-              </call>
-            </callparam>
-          </call>
-        </callparam>
-      </call>
-    </code>
-  </define-block>
-  <code>
-    <call blockId="core.Declare">
-      <param variable="" value="password" name="varname" type="text"/>
-      <param variable="$1" value="" name="value" type="text"/>
-    </call>
-    <call blockId="core.Test">
-      <callparam name="test" type="boolean">
-        <call blockId="core.IsSet">
-          <param variable="password" value="" name="check" type="text"/>
-        </call>
-      </callparam>
-      <param name="ifTrue" type="block"/>
-      <blockparam name="ifFalse" type="block">
-        <block>
-          <code>
-            <call blockId="core.PrintLine">
-              <param value="usage: publish-webstart.blocks &lt;ftp-password&gt;" name="message" type="text"/>
-            </call>
-            <call blockId="core.PrintLine">
-              <param value="Enter FTP password now: " name="message" type="text"/>
-            </call>
-            <call blockId="core.Declare">
-              <param value="password" name="varname" type="text"/>
-              <callparam name="value" type="text">
-                <call blockId="core.ReadLine"/>
-              </callparam>
-            </call>
-            <call blockId="core.PrintLine">
-              <param variable="password" name="message" type="text"/>
-            </call>
-          </code>
-          <slots/>
-        </block>
-      </blockparam>
-    </call>
-    <call blockId="core.Declare">
-      <param variable="" value="srcdir" name="varname" type="text"/>
-      <param value="/home/vincent/work/blocks/trunk" name="value" type="text"/>
-    </call>
-    <call blockId="core.Declare">
-      <param variable="" value="webstartdir" name="varname" type="text"/>
-      <callparam name="value" type="text">
-        <call blockId="text.Concatenate">
-          <param variable="srcdir" name="start" type="text"/>
-          <param value="/blocks-ide-webstart" name="end" type="text"/>
-        </call>
-      </callparam>
-    </call>
-    <call blockId="mvn install"/>
-    <call blockId="mvn webstart"/>
-    <call blockId="upload"/>
-    <call blockId="core.PrintLine">
-      <param value="======= END =========" name="message" type="text"/>
-    </call>
-  </code>
-</blocks>

publish-webstart.sh

  exit 1;
 fi
 
-FTP_UPLOAD="ftp-upload --host ftp.blocks-language.org --user blocksla --password $1 -d www -d webstart" 
+FTP_UPLOAD="ftp-upload --host ftp.vfiack.fr --user vfiack --password $1 -d www -d blocks -d releases -d unstable -d webstart" 
 
 echo "=== MVN INSTALL ==="
 mvn clean install
 $FTP_UPLOAD -d images *.gif
 
 echo "=== RUNNING ==="
-javaws -wait http://www.blocks-language.org/webstart/launch.jnlp
+javaws -wait http://blocks.vfiack.fr/releases/unstable/webstart/launch.jnlp
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.