Ignore:
Timestamp:
2009-06-03T01:31:58+02:00 (17 years ago)
Author:
rcernoch
Message:

Reasoner and Conflict resolver now work. The current version is still unstable, but already usable.

File:
1 edited

Legend:

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

    r15461 r15558  
    2626        <!-- compile the plugin -->
    2727        <javac srcdir="src"
    28                sourcepath=""
    2928               classpath="${josm.jar}"
    3029               destdir="${plugin.build.dir}"
    31                debug="true">
     30               debug="true"/>
    3231
    33             <include name="**/Status*.java"/>
    34             <include name="**/StringUtils.java"/>
    35             <include name="**/NotNull*.java"/>
    36             <include name="**/addressdatabase/*.java"/>
    37             <include name="**/proposal*/*.java"/>
    38             <include name="**/intelligence/Reasoner*.java"/>
    39             <include name="**/intelligence/Match.java"/>
    40         </javac>
     32        <!-- create the manifest -->
     33        <manifest file="${plugin.build.dir}/${plugin.basepackage.dir}/MANIFEST.MF">
     34            <attribute name="Author" value="Radomír Černoch"/>
     35            <attribute name="Plugin-Description" value="Creating and handling address nodes and buildings within Czech Republic."/>
     36            <attribute name="Plugin-Mainversion" value="1607"/>
     37            <attribute name="Plugin-Version" value="0.1.2"/>
     38            <attribute name="Plugin-Class" value="${plugin.basepackage}.CzechAddressPlugin"/>
     39        </manifest>
    4140
     41        <!-- include the images -->
     42        <copy todir="${plugin.build.dir}/images">
     43            <fileset dir="images"/>
     44        </copy>
    4245    </target>
    4346
     47    <target name="dist"
     48            depends="compile"
     49            description="Create the .jar file for distribution">
     50        <mkdir dir="${plugin.dist.dir}"/>
     51        <jar destfile="${plugin.jar}"
     52             basedir="${plugin.build.dir}"
     53             manifest="${plugin.build.dir}/${plugin.basepackage.dir}/MANIFEST.MF"/>
     54    </target>
     55
     56    <target name="doc" description="Create Javadoc API documentation">
     57        <ant antfile="build.xml" target="doc" dir="${josm.base}"/>
     58        <mkdir dir="${plugin.javadoc.dir}"/>
     59        <javadoc sourcepath="src"
     60                 packagenames="*"
     61                 destdir="${plugin.javadoc.dir}"
     62                 use="true"
     63                 charset="UTF-8">
     64            <doctitle><![CDATA[Czech Address JOSM plugin]]></doctitle>
     65            <bottom><![CDATA[<i>Licenced under GPLv3. Bugreports should be sent to
     66                    <a href='mailto:radomir.cernoch@gmail.com'>Radomír Černoch</a></i>]]>
     67            </bottom>
     68            <!--<tag name="todo" scope="all" description="To do:"/>-->
     69            <link href="http://java.sun.com/j2se/1.5.0/docs/api/"/>
     70            <link href="http://developer.java.sun.com/developer/products/xml/docs/api/"/>
     71            <!--<link href="file://${user.home}/devel/core/doc"/>-->
     72        </javadoc>
     73    </target>
     74
     75    <target name="install" depends="dist">
     76        <property environment="env"/>
     77        <condition property="josm.plugins.dir"
     78                   value="${env.APPDATA}/JOSM/plugins"
     79                   else="${user.home}/.josm/plugins">
     80            <and><os family="windows"/></and>
     81        </condition>
     82        <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
     83    </target>
    4484
    4585    <!-- Before running "run" target, please "ant dist" the JOSM. -->
    4686    <target name="run" depends="compile">
    47         <java classname="org.openstreetmap.josm.plugins.czechaddress.intelligence.Reasoner">
     87        <java classname="JOSM" fork="true">
    4888            <jvmarg value="-Xmx1024m"/>
    4989            <jvmarg value="-Xdebug"/>
     
    5797                <pathelement path="${java.class.path}"/>
    5898            </classpath>
     99        <arg value="/home/radek/Desktop/Hustopeče.osm"/>
    59100        </java>
    60         <exec executable="xsltproc" output="log.html">
    61             <arg value="log.xsl"/>
    62             <arg value="log.xml"/>
    63         </exec>
    64101    </target>
    65102
Note: See TracChangeset for help on using the changeset viewer.