Ignore:
Timestamp:
2010-09-29T00:12:24+02:00 (15 years ago)
Author:
postfix
Message:

some corrections in ant-files
Listener for osm changes now correctly dequeue if program exit
josm-menuItem handled now correctly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/smed/plugs/oseam/build.xml

    r23392 r23393  
    4646        <property name="plugin.build.dir"       value="build"/>
    4747        <property name="plugin.src.dir"         value="src"/>
     48        <property name="smed.build.dir"         value="../../../smed/build"/>
     49        <property name="smed.src.dir"           value="../../../smed/src"/>
    4850        <!-- this is the directory where the plugin jar is copied to -->
    4951        <property name="plugin.dist.dir"        value="../../../../dist"/>
    5052        <property name="ant.build.javac.target" value="1.5"/>
    51         <property name="plugin.dist.dir"        value="../../../../dist"/>
    5253        <property name="plugin.jar"             value="${plugin.dist.dir}/00_${DSTAMP}_${TSTAMP}_${ant.project.name}.jar"/>
    5354
     
    6364        <!--
    6465    **********************************************************
     66    ** init_smed - initializes the build of smed
     67    **********************************************************
     68    -->
     69        <target name="init_smed">
     70                <mkdir dir="${smed.build.dir}"/>
     71        </target>
     72
     73        <!--
     74    **********************************************************
     75    ** compile_smed - compiles the source tree of smed
     76    **********************************************************
     77    -->
     78        <target name="compile_smed" depends="init_smed">
     79                <echo message="compiling sources for smed.jar ... "/>
     80                <javac srcdir="${smed.src.dir}" classpath="${josm}" debug="true" destdir="${smed.build.dir}">
     81                        <compilerarg value="-Xlint:deprecation"/>
     82                        <compilerarg value="-Xlint:unchecked"/>
     83                </javac>
     84        </target>
     85       
     86        <!--
     87    **********************************************************
     88    ** dist_smed - creates smed.jar
     89    **********************************************************
     90    -->
     91        <target name="dist_smed" depends="compile_smed">
     92                <echo message="creating smed.jar ... "/>
     93
     94                <copy todir="${smed.build.dir}/images">
     95                        <fileset dir="${smed.src.dir}/images"/>
     96                </copy>
     97               
     98                <copy todir="${smed.build.dir}/images">
     99                        <fileset dir="../../../smed/images"/>
     100                </copy>
     101
     102                <copy todir="${smed.build.dir}/smed/msg">
     103                        <fileset dir="${smed.src.dir}/smed/msg"/>
     104                </copy>
     105
     106                <copy todir="${smed.build.dir}">
     107                        <fileset dir="../../../smed">
     108                <include name="*.txt" />
     109                        </fileset>
     110                </copy>
     111
     112                <jar destfile="${smed}" basedir="${smed.build.dir}">
     113                        <!--
     114        ************************************************
     115        ** configure these properties. Most of them will be copied to the plugins
     116        ** manifest file. Property values will also show up in the list available
     117        ** plugins: http://josm.openstreetmap.de/wiki/Plugins.
     118        **
     119        ************************************************
     120    -->
     121                        <manifest>
     122                                <attribute name="Author" value="Werner"/>
     123                                <attribute name="Plugin-Class" value="smed.Smed"/>
     124                                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
     125                                <attribute name="Plugin-Description" value="Create and edit seamaps for OpenSeaMap"/>
     126                                <attribute name="Plugin-Icon" value="images/Smed.png"/>
     127                                <attribute name="Plugin-Link" value="http://openseamap.org/"/>
     128                                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
     129                                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
     130                        </manifest>
     131                </jar>
     132        </target>
     133
     134        <!--
     135    **********************************************************
    65136    ** compile - complies the source tree
    66137    **********************************************************
    67138    -->
    68         <target name="compile" depends="init">
     139        <target name="compile" depends="init,dist_smed">
    69140                <echo message="compiling sources for  ${plugin.jar} ... "/>
    70141                <javac srcdir="src" classpath="${josm}:${smed}" debug="true" destdir="${plugin.build.dir}">
     
    73144                </javac>
    74145        </target>
     146
    75147
    76148        <!--
Note: See TracChangeset for help on using the changeset viewer.