チェンジセット 7 : plugins/ExamplePlugin

差分発生行の前後
無視リスト:
更新日時:
2010/05/11 23:38:14 (2 年 前)
更新者:
h
ログメッセージ:

refs #3
本体の構成変更にともなう修正。

パス:
plugins/ExamplePlugin
ファイル:
8 追加
4 変更

凡例:

変更なし
追加
削除
  • plugins/ExamplePlugin

    • svn:ignore 属性が
      classes
      doc
      に 設定されました。
  • plugins/ExamplePlugin/META-INF/MANIFEST.MF

    r3 r7  
    11Mikuvat-Plugin: org.rayflood.mikuvat.plugin.ExamplePlugin 
    2 Mikuvat-Require-Version: 0.1 
     2Mikuvat-Min-Version: 0.1 
     3Mikuvat-Max-Version: 1.0 
  • plugins/ExamplePlugin/build.xml

    r3 r7  
    22<project basedir="." default="build" name="ExamplePlugin"> 
    33        <property name="mikuvat.location" value="../../"/> 
    4         <property name="debuglevel" value="source,lines,vars"/> 
    5         <path id="ExamplePlugin.classpath"> 
    6                 <pathelement location="src"/> 
     4        <property name="srcdir" value="src"/> 
     5        <property name="classesdir" value="classes"/> 
     6        <property name="docdir" value="doc"/> 
     7        <property name="plugindir" value=".."/> 
     8        <path id="classpath"> 
     9                <pathelement location="${classesdir}"/> 
    710                <pathelement location="${mikuvat.location}/mikuvat.jar"/> 
    811        </path> 
     12 
    913        <target name="build"> 
    10                 <echo message="${ant.project.name}: ${ant.file}"/> 
    11                 <javac debug="true" debuglevel="${debuglevel}" destdir="src"> 
    12                         <src path="src"/> 
    13                         <classpath refid="ExamplePlugin.classpath"/> 
     14                <mkdir dir="${classesdir}"/> 
     15                <javac debug="true" encoding="UTF-8" destdir="${classesdir}"> 
     16                        <src path="${srcdir}"/> 
     17                        <classpath refid="classpath"/> 
    1418                </javac> 
    15                 <jar basedir="src" manifest="META-INF/MANIFEST.MF" jarfile="../${ant.project.name}.jar"/> 
    16                 <javadoc destdir="doc" encoding="UTF-8" docencoding="UTF-8" charset="UTF-8"> 
    17                         <sourcepath path="src"/> 
     19                <copy todir="${classesdir}"> 
     20                        <fileset dir="${srcdir}"/> 
     21                </copy> 
     22                <jar manifest="META-INF/MANIFEST.MF" jarfile="${plugindir}/${ant.project.name}.jar"> 
     23                        <fileset dir="${classesdir}"/> 
     24                </jar> 
     25        </target> 
     26 
     27        <target name="doc" depends="build"> 
     28                <mkdir dir="${docdir}"/> 
     29                <javadoc access="private" destdir="${docdir}" encoding="UTF-8" docencoding="UTF-8" charset="UTF-8"> 
     30                        <link href="http://java.sun.com/javase/ja/6/docs/ja/api/"/> 
     31                        <sourcepath path="${srcdir}"/> 
     32                        <link href="../../../doc"/> 
    1833                        <classpath path="${mikuvat.location}/mikuvat.jar"/> 
    1934                        <doctitle>ミクバットプラグイン: サンプルプラグイン</doctitle> 
    2035                </javadoc> 
    2136        </target> 
     37 
     38        <target name="clean"> 
     39                <delete file="${plugindir}/${ant.project.name}.jar"/> 
     40                <delete dir="${classesdir}"/> 
     41        </target> 
     42 
     43        <target name="cleandoc"> 
     44                <delete dir="${docdir}"/> 
     45        </target> 
     46 
     47        <target name="cleanall" depends="clean,cleandoc"/> 
    2248</project> 
  • plugins/ExamplePlugin/src/org/rayflood/mikuvat/plugin/ExamplePlugin.java

    r3 r7  
    77 
    88import org.rayflood.mikuvat.gui.MikuvatFrame; 
    9 import org.rayflood.mikuvat.io.VSQFile; 
     9import org.rayflood.mikuvat.io.vsq.VSQFile; 
    1010 
    1111public class ExamplePlugin implements PluginInterface{ 
     
    3131                System.out.println(getPluginDescription()); 
    3232                try{ 
    33                         this.vsq = new VSQFile(args[1]); 
     33                        vsq = new VSQFile(args[1]); 
    3434                        System.out.println(getVSQText()); 
    3535                } 
     
    5050                try{ 
    5151                        List<List<String>> vsqtext = vsq.getVSQText(); 
    52                         //List<List<String>> vsqtext = ((VSQFile)new VSQFile().cover(vsq)).getVSQText(); 
    53                         //List<List<String>> vsqtext = ((VSQFile)VSQFile.getDefault().heap(vsq)).getVSQText(); 
    54                         //List<List<String>> vsqtext = ((VSQFile)new VSQFile().lay(vsq)).getVSQText(); 
     52//                      List<List<String>> vsqtext = ((VSQFile)new VSQFile().cover(vsq)).getVSQText(); 
     53//                      List<List<String>> vsqtext = ((VSQFile)VSQFile.getDefault().heap(vsq)).getVSQText(); 
     54//                      List<List<String>> vsqtext = ((VSQFile)new VSQFile().lay(vsq)).getVSQText(); 
     55                        vsq.writeVSQFile("test.vsq"); 
    5556                        for(int i = 0; i < vsqtext.size(); i++){ 
    5657                                List<String> section = vsqtext.get(i); 
     
    6465                } 
    6566                return sb.toString(); 
     67//              return vsq.toString(); 
    6668        } 
    6769}