OSDN Git Service

ADD: Java Web Start
authorTakuya Ono <takuya-o@users.sourceforge.jp>
Thu, 14 Aug 2008 17:50:09 +0000 (17:50 +0000)
committerTakuya Ono <takuya-o@users.sourceforge.jp>
Thu, 14 Aug 2008 17:50:09 +0000 (17:50 +0000)
build.xml
jws/.htaccess [new file with mode: 0644]

index ad5cc50..392fefe 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -3,9 +3,10 @@
 <!-- some examples of how to customize the build. -->
 <!-- (If you delete it and reopen the project it will be recreated.) -->
 <project name="mdc2" default="default" basedir=".">
-    <description>Builds, tests, and runs the project mdc2.</description>
-    <import file="nbproject/build-impl.xml"/>
-    <!--
+  <description>Builds, tests, and runs the project mdc2.</description>
+  <import file="nbproject/build-impl.xml"/>
+  <import file="nbproject/build-jaws-impl.xml"/>
+  <!--
 
     There exist several targets which are by default empty and which can be 
     used for execution of your tasks. These targets are usually executed 
@@ -70,6 +71,7 @@
   <!-- Add by tkyn -->
   <target name="-signjar" if="signjar.storepass" >
     <signjar jar="${dist.jar}" alias="CodeSigning" storepass="${signjar.storepass}"/>
+    <signjar jar="${dist.jar.dir}/lib/swing-layout-1.0.1.jar" alias="CodeSigning" storepass="${signjar.storepass}" />
   </target>
   <target name="-post-jar" depends="-signjar" >
     <!-- tkyn
           <fileset dir="./dist/"/>
         </copy> -->
     <zip destfile="./deploy/mdc.zip"
-         basedir="./dist/"
+         basedir="${dist.jar.dir}"
          excludes="**/README.TXT" />
   </target>
-
+  
+  <target name="-debug-javaws-debuggee" depends="jar" description="start javaws debuggee.">
+    <exec dir="${javaws.dir}" executable="${javaws.dir}/javaws">   <!--NetBeans Bug? javaws is not absoute path-->
+      <env key="JAVAWS_VM_ARGS" value="-Xdebug -Xnoagent -Djava.compiler=none -Xrunjdwp:transport=dt_socket,address=${jpda.address} ${run.jvmargs}"/>
+      <arg line="${javaws.debug.includes}"/>
+    </exec>
+  </target>
+  
 </project>
diff --git a/jws/.htaccess b/jws/.htaccess
new file mode 100644 (file)
index 0000000..54a637c
--- /dev/null
@@ -0,0 +1,2 @@
+AddType application/x-java-jnlp-file jnlp
+DirectoryIndex mdc2.jnlp