Ignore:
Timestamp:
2010-12-17T10:10:17+01:00 (14 years ago)
Author:
beata.jancso
Message:

the build file was not working.

File:
1 edited

Legend:

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

    r24696 r24781  
    55        <property name="commit.message" value="MapDust bug reporter plugin" />
    66        <property name="plugin.main.version" value="3592" />
     7        <property name="josm.dir" value="../../core/dist/" />
    78        <property name="plugin.build.dir" value="build/classes" />
    89        <property name="apidoc.dir" value="build/doc" />
     
    1718        <path id="classpath">
    1819                <fileset dir="${plugin.lib.dir}" includes="**/*.jar" />
    19                 <pathelement path="${josm}"/>
     20                <fileset dir="${josm.dir}" includes="josm-custom.jar" />
    2021        </path>
    2122
     
    3435        <target name="compile" depends="init">
    3536                <echo message="compiling sources for  ${plugin.jar} ... " />
    36                 <javac srcdir="src" classpathref="classpath" debug="true" destdir="${plugin.build.dir}" includeantruntime="true" target="1.5" source="1.5">
     37                <javac srcdir="src" classpathref="classpath" debug="true"
     38                        destdir="${plugin.build.dir}" includeantruntime="true" target="1.5"
     39                        source="1.5">
    3740                        <compilerarg value="-Xlint:deprecation" />
    3841                        <compilerarg value="-Xlint:unchecked" />
     
    4346        <target name="javadoc">
    4447                <mkdir dir="${apidoc.dir}" />
    45                 <javadoc destdir="${apidoc.dir}" source="1.6" classpathref="classpath" windowtitle="MapDust plugin API">
     48                <javadoc destdir="${apidoc.dir}" source="1.6" classpathref="classpath"
     49                        windowtitle="MapDust plugin API">
    4650                        <link href="http://java.sun.com/javase/6/docs/api/" />
    4751                        <link href="http://docs.jboss.org/hibernate/stable/core/api/" />
     
    5458        <!-- revision -->
    5559        <target name="revision">
    56                 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="false">
     60                <exec append="false" output="REVISION" executable="svn"
     61                        failifexecutionfails="false">
    5762                        <env key="LANG" value="C" />
    5863                        <arg value="info" />
     
    6065                        <arg value="." />
    6166                </exec>
    62                 <xmlproperty file="REVISION" prefix="version" keepRoot="false" collapseAttributes="true" />
     67                <xmlproperty file="REVISION" prefix="version" keepRoot="false"
     68                        collapseAttributes="true" />
    6369                <delete file="REVISION" />
    6470        </target>
     
    8389                        <manifest>
    8490                                <attribute name="Author" value="Beata Jancso" />
    85                                 <attribute name="Plugin-Class" value="org.openstreetmap.josm.plugins.mapdust.MapdustPlugin" />
     91                                <attribute name="Plugin-Class"
     92                                        value="org.openstreetmap.josm.plugins.mapdust.MapdustPlugin" />
    8693                                <attribute name="Plugin-Date" value="${version.entry.commit.date}" />
    87                                 <attribute name="Plugin-Description" value="The MapDust Plug-In shows the MapDust bug reports
    88                                         on the map. You can create, close, invalidate, re-open and
    89                                         comment bug reports by using this plugin." />
    90                                 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/MapDust" />
    91                                 <attribute name="Plugin-Mainversion" value="${plugin.main.version}" />
    92                                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}" />
    93                                 <attribute name="Plugin-Icon" value="images/dialogs/mapdust_icon25.png" />
     94                                <attribute name="Plugin-Description"
     95                                        value="The MapDust Plug-In shows the MapDust bug reports on
     96                                        the map. You can create, close,invalidate, re-open and comment
     97                                        bug reports by using this plugin." />
     98                                <attribute name="Plugin-Link"
     99                                        value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/MapDust" />
     100                                <attribute name="Plugin-Mainversion"
     101                                        value="${plugin.main.version}" />
     102                                <attribute name="Plugin-Version"
     103                                        value="${version.entry.commit.revision}" />
     104                                <attribute name="Plugin-Icon"
     105                                        value="images/dialogs/mapdust_icon25.png" />
    94106                        </manifest>
    95107                </jar>
     
    99111        <target name="install" depends="dist">
    100112                <property environment="env" />
    101                 <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins" else="${user.home}/.josm/plugins">
     113                <condition property="josm.plugins.dir" value="${env.APPDATA}/JOSM/plugins"
     114                        else="${user.home}/.josm/plugins">
    102115                        <and>
    103116                                <os family="windows" />
     
    109122        <!-- displays the information about the core josm -->
    110123        <target name="core-info">
    111                 <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
     124                <exec append="false" output="core.info.xml" executable="svn"
     125                        failifexecutionfails="false">
    112126                        <env key="LANG" value="C" />
    113127                        <arg value="info" />
     
    115129                        <arg value="../../core" />
    116130                </exec>
    117                 <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true" />
     131                <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true"
     132                        collapseAttributes="true" />
    118133                <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
    119134                <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
     
    124139        <target name="commit-current">
    125140                <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
    126                 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
     141                <exec append="true" output="svn.log" executable="svn"
     142                        failifexecutionfails="false">
    127143                        <env key="LANG" value="C" />
    128144                        <arg value="commit" />
     
    135151        <target name="update-current">
    136152                <echo>Updating plugin source ...</echo>
    137                 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
     153                <exec append="true" output="svn.log" executable="svn"
     154                        failifexecutionfails="false">
    138155                        <env key="LANG" value="C" />
    139156                        <arg value="up" />
     
    141158                </exec>
    142159                <echo>Updating ${plugin.jar} ...</echo>
    143                 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
     160                <exec append="true" output="svn.log" executable="svn"
     161                        failifexecutionfails="false">
    144162                        <env key="LANG" value="C" />
    145163                        <arg value="up" />
     
    160178    Now commiting ${plugin.jar} ...
    161179    </echo>
    162                 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
     180                <exec append="true" output="svn.log" executable="svn"
     181                        failifexecutionfails="false">
    163182                        <env key="LANG" value="C" />
    164183                        <arg value="-m '${commit.message}'" />
     
    170189        <!-- ** make sure svn is present as a command line tool ** -->
    171190        <target name="ensure-svn-present">
    172                 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
     191                <exec append="true" output="svn.log" executable="svn"
     192                        failifexecutionfails="false" failonerror="false"
     193                        resultproperty="svn.exit.code">
    173194                        <env key="LANG" value="C" />
    174195                        <arg value="--version" />
    175196                </exec>
    176                 <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
     197                <fail message="Fatal: command 'svn --version' failed. Please make sure
     198                        svn is installed on your system.">
    177199                        <!-- return code not set at all? Most likely svn isn't installed -->
    178200                        <condition>
     
    182204                        </condition>
    183205                </fail>
    184                 <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
     206                <fail message="Fatal: command 'svn --version' failed. Please make sure
     207                        a working copy of svn is installed on your system.">
    185208                        <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
    186209                        <condition>
     
    191214
    192215        <!-- publish the plugin -->
    193         <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
     216        <target name="publish" depends="ensure-svn-present,core-info,commit-current,
     217                update-current,clean,dist,commit-dist">
    194218        </target>
    195219</project>
Note: See TracChangeset for help on using the changeset viewer.