Changeset 23206 in osm for applications/editors/josm


Ignore:
Timestamp:
2010-09-16T00:58:49+02:00 (14 years ago)
Author:
postfix
Message:

changes in ant-file to keep the dependencies between smed and plugins

Location:
applications/editors/josm/plugins/smed_ex
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/smed_ex/build.xml

    r23201 r23206  
    4343        <property name="smed"                                   location="../../dist/smed.jar/"/>
    4444        <property name="plugin.build.dir"       value="build"/>
     45        <property name="smed.build.dir"         value="../smed/build"/>
     46        <property name="smed.src.dir"           value="../smed/src"/>
    4547        <property name="plugin.src.dir"         value="src"/>
    4648        <!-- this is the directory where the plugin jar is copied to -->
     
    4951        <property name="plugin.dist.dir"        value="../../dist"/>
    5052        <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
     53        <property name="smed.jar"               value="${plugin.dist.dir}/smed.jar"/>
     54
    5155
    5256        <!--
     
    6165        <!--
    6266    **********************************************************
    63     ** compile - complies the source tree
    64     **********************************************************
    65     -->
    66         <target name="compile" depends="init">
     67    ** init_smed - initializes the build of smed
     68    **********************************************************
     69    -->
     70        <target name="init_smed">
     71                <mkdir dir="${smed.build.dir}"/>
     72        </target>
     73
     74        <!--
     75    **********************************************************
     76    ** compile_smed - compiles the source tree of smed
     77    **********************************************************
     78    -->
     79        <target name="compile_smed" depends="init_smed">
     80                <echo message="compiling sources for  ${smed.jar} ... "/>
     81                <javac srcdir="${smed.src.dir}" classpath="${josm}" debug="true" destdir="${smed.build.dir}">
     82                        <compilerarg value="-Xlint:deprecation"/>
     83                        <compilerarg value="-Xlint:unchecked"/>
     84                </javac>
     85        </target>
     86       
     87        <!--
     88    **********************************************************
     89    ** compile - compiles the source tree
     90    **********************************************************
     91    -->
     92        <target name="compile" depends="init,dist_smed">
    6793                <echo message="compiling sources for  ${plugin.jar} ... "/>
    6894                <javac srcdir="src" classpath="${josm}:${smed}" debug="true" destdir="${plugin.build.dir}">
     
    7096                        <compilerarg value="-Xlint:unchecked"/>
    7197                </javac>
     98        </target>
     99
     100        <!--
     101    **********************************************************
     102    ** dist_smed - creates smed.jar
     103    **********************************************************
     104    -->
     105        <target name="dist_smed" depends="compile_smed">
     106                <echo message="creating smed.jar ... "/>
     107
     108                <copy todir="${smed.build.dir}/images">
     109                        <fileset dir="${smed.src.dir}/images"/>
     110                </copy>
     111               
     112                <copy todir="${smed.build.dir}/images">
     113                        <fileset dir="../smed/images"/>
     114                </copy>
     115
     116                <copy todir="${smed.build.dir}/smed/msg">
     117                        <fileset dir="${smed.src.dir}/smed/msg"/>
     118                </copy>
     119
     120                <copy todir="${smed.build.dir}">
     121                        <fileset dir="../smed">
     122                <include name="copyright.txt" />
     123                <include name="LICENSE.txt" />
     124                        </fileset>
     125                </copy>
     126
     127                <jar destfile="${smed.jar}" basedir="${smed.build.dir}">
     128                        <!--
     129        ************************************************
     130        ** configure these properties. Most of them will be copied to the plugins
     131        ** manifest file. Property values will also show up in the list available
     132        ** plugins: http://josm.openstreetmap.de/wiki/Plugins.
     133        **
     134        ************************************************
     135    -->
     136                        <manifest>
     137                                <attribute name="Author" value="Werner, Malcolm"/>
     138                                <attribute name="Plugin-Class" value="smed.Smed"/>
     139                                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     140                                <attribute name="Plugin-Description" value="Create and edit seamaps for OpenSeaMap"/>
     141                                <attribute name="Plugin-Icon" value="images/Smed.png"/>
     142                                <attribute name="Plugin-Link" value="http://openseamap.org/"/>
     143                                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
     144                                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     145                        </manifest>
     146                </jar>
    72147        </target>
    73148
     
    127202                <delete dir="${plugin.build.dir}"/>
    128203                <delete file="${plugin.jar}"/>
     204                <delete dir="${smed.build.dir}"/>
     205                <delete file="${smed.jar}"/>
    129206        </target>
    130207
  • applications/editors/josm/plugins/smed_ex/src/smed_ex/SmedEx.java

    r23201 r23206  
    1818        private JPanel jPanel = null;  //  @jve:decl-index=0:visual-constraint="78,30"
    1919        private JButton jButton = null;
    20         @Override
    21         public boolean start() {
    22                 // TODO Auto-generated method stub
    23                 return false;
    24         }
    2520
    2621        @Override
     
    9287        }
    9388
     89        @Override
     90        public boolean start() {
     91                // TODO Auto-generated method stub
     92                return false;
     93        }
     94
    9495}
Note: See TracChangeset for help on using the changeset viewer.