Ignore:
Timestamp:
2010-01-06T21:13:56+01:00 (15 years ago)
Author:
guggis
Message:

'Update to JOSM r2748'

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

Legend:

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

    r18971 r19296  
    3434
    3535
    36         <property name="commit.message" value="Removed dependency to perl, made build.xml more robust" />
    37         <property name="plugin.main.version" value="2565" />
     36        <property name="commit.message" value="Update to JOSM r2748" />
     37        <property name="plugin.main.version" value="2748" />
    3838
    3939        <target name="init">
     
    6363        </target>
    6464        <target name="revision">
    65                 <exec append="false" output="REVISION" executable="perl" failifexecutionfails="false">
    66                         <env key="LANG" value="C"/>
    67                         <arg value="../getrevision.pl"/>
    68                         <arg value="xslt"/>
    69                         <arg value="stylesheets"/>
    70                         <arg value="." />
    71                 </exec>
    72                 <exec append="false" output="REVISION" executable="svn" failifexecutionfails="true" failonerror="true">
     65                <exec append="false" output="REVISION" executable="perl" failifexecutionfails="false">
     66                        <env key="LANG" value="C"/>
     67                        <arg value="../getrevision.pl"/>
     68                        <arg value="xslt"/>
     69                        <arg value="stylesheets"/>
     70                        <arg value="." />
     71                </exec>
     72                <exec append="false" output="REVISION" executable="svn" failifexecutionfails="true" failonerror="true">
    7373                        <env key="LANG" value="C" />
    7474                        <arg value="info" />
     
    9393        </target>
    9494
    95         <!-- ************************** Publishing the plugin *********************************** -->
    9695        <!--
    97         ** extracts the JOSM release for the JOSM version in ../core and saves it in the
    98         ** property ${coreversion.info.entry.revision}
    99         **
    100         -->
     96                 ************************** Publishing the plugin ***********************************
     97                -->
     98        <!--
     99                ** extracts the JOSM release for the JOSM version in ../core and saves it in the
     100                ** property ${coreversion.info.entry.revision}
     101                **
     102                -->
    101103        <target name="core-info">
    102                 <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="true" failonerror="true">
    103                         <env key="LANG" value="C" />
    104                         <arg value="info" />
    105                         <arg value="--xml" />
    106                         <arg value="../../core" />
     104                <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
     105                        <env key="LANG" value="C"/>
     106                        <arg value="info"/>
     107                        <arg value="--xml"/>
     108                        <arg value="../../core"/>
    107109                </exec>
    108                 <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true" />
     110                <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
    109111                <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>
    110112                <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
     
    112114        </target>
    113115
    114         <!-- ** commits the source tree for this plugin ** -->
     116        <!--
     117                ** commits the source tree for this plugin
     118                -->
    115119        <target name="commit-current">
    116120                <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
    117                 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="true" failonerror="true">
    118                         <env key="LANG" value="C" />
    119                         <arg value="commit" />
    120                         <arg value="-m '${commit.message}'" />
    121                         <arg value="." />
     121                <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
     122                        <env key="LANG" value="C"/>
     123                        <arg value="commit"/>
     124                        <arg value="-m '${commit.message}'"/>
     125                        <arg value="."/>
    122126                </exec>
    123127        </target>
    124128
    125         <!-- ** updates (svn up) the source tree for this plugin -->
     129        <!--
     130                ** updates (svn up) the source tree for this plugin
     131                -->
    126132        <target name="update-current">
    127133                <echo>Updating plugin source ...</echo>
    128                 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="true" failonerror="true">
    129                         <env key="LANG" value="C" />
    130                         <arg value="up" />
    131                         <arg value="." />
     134                <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
     135                        <env key="LANG" value="C"/>
     136                        <arg value="up"/>
     137                        <arg value="."/>
    132138                </exec>
    133139                <echo>Updating ${plugin.jar} ...</echo>
    134                 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="true" failonerror="true">
    135                         <env key="LANG" value="C" />
    136                         <arg value="up" />
    137                         <arg value="../dist/${plugin.jar}" />
     140                <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
     141                        <env key="LANG" value="C"/>
     142                        <arg value="up"/>
     143                        <arg value="../dist/${plugin.jar}"/>
    138144                </exec>
    139145        </target>
    140146
    141         <!-- ** commits the plugin.jar  -->
     147        <!--
     148                ** commits the plugin.jar
     149                -->
    142150        <target name="commit-dist">
    143151                <echo>
     
    151159        Now commiting ${plugin.jar} ...
    152160        </echo>
    153                 <exec append="true" output="svn.log" executable="svn" failifexecutionfails="true" failonerror="true">
    154                         <env key="LANG" value="C" />
    155                         <arg value="-m '${commit.message}'" />
    156                         <arg value="commit" />
    157                         <arg value="${plugin.jar}" />
     161                <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
     162                        <env key="LANG" value="C"/>
     163                        <arg value="-m '${commit.message}'"/>
     164                        <arg value="commit"/>
     165                        <arg value="${plugin.jar}"/>
    158166                </exec>
    159167        </target>
     
    161169        <!-- ** make sure svn is present as a command line tool ** -->
    162170        <target name="ensure-svn-present">
    163                 <exec append="true" output="svn.log" executable="svn" failonerror="false" resultproperty="svn.exit.code">
    164                         <env key="LANG" value="C"  />
    165                         <arg value="--version"/>
     171                <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false" failonerror="false" resultproperty="svn.exit.code">
     172                        <env key="LANG" value="C" />
     173                        <arg value="--version" />
    166174                </exec>
    167                 <fail message="Fatal: command 'svn' not found. Please make sure svn is installed on your system.">
     175                <fail message="Fatal: command 'svn --version' failed. Please make sure svn is installed on your system.">
     176                        <!-- return code not set at all? Most likely svn isn't installed -->
     177                        <condition>
     178                                <not>
     179                                        <isset property="svn.exit.code" />
     180                                </not>
     181                        </condition>
     182                </fail>
     183                <fail message="Fatal: command 'svn --version' failed. Please make sure a working copy of svn is installed on your system.">
     184                        <!-- error code from SVN? Most likely svn is not what we are looking on this system -->
    168185                        <condition>
    169186                                <isfailure code="${svn.exit.code}" />
     
    172189        </target>
    173190
    174         <!-- ** checkin source, build the plugin from scratch and finally checkin the plugin ** -->
    175191        <target name="publish" depends="ensure-svn-present,core-info,commit-current,update-current,clean,dist,commit-dist">
    176192        </target>
  • applications/editors/josm/plugins/osmarender/src/org/openstreetmap/josm/plugins/osmarender/OsmarenderPlugin.java

    r18969 r19296  
    3434import org.openstreetmap.josm.gui.preferences.PreferenceDialog;
    3535import org.openstreetmap.josm.gui.preferences.PreferenceSetting;
     36import org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane;
    3637import org.openstreetmap.josm.io.OsmWriter;
    3738import org.openstreetmap.josm.plugins.Plugin;
     
    127128        return new PreferenceSetting(){
    128129            private JTextField firefox = new JTextField(10);
    129             public void addGui(PreferenceDialog gui) {
     130            public void addGui(PreferenceTabbedPane gui) {
    130131                final JPanel panel = new JPanel(new GridBagLayout());
    131132                panel.setBorder(BorderFactory.createEmptyBorder( 0, 0, 0, 0 ));
Note: See TracChangeset for help on using the changeset viewer.