Changeset 18670 in osm


Ignore:
Timestamp:
2009-11-18T15:10:36+01:00 (15 years ago)
Author:
guggis
Message:

'Updated build.xml'

Location:
applications/editors/josm/plugins/wmsplugin
Files:
3 edited

Legend:

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

    r18597 r18670  
    1919** SVN, run
    2020**    - set the property commit.message
    21 **    - set the property josm.reference.release to lowest JOSM release number this
     21**    - set the property plugin.main.version to lowest JOSM release number this
    2222**      plugin build is compatible with
    2323**    > ant  deploy
     
    2626-->
    2727<project name="wmsplugin" default="dist" basedir=".">
    28     <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
     28       
     29       
     30        <property name="commit.message" value="Updated build.xml" />           
     31        <property name="plugin.main.version" value="2450" />
     32       
     33       
     34        <property name="josm"                   location="../../core/dist/josm-custom.jar"/>
    2935    <property name="plugin.dist.dir"        value="../../dist"/>
    3036    <property name="plugin.build.dir"       value="build"/>
    3137    <property name="plugin.jar"             value="${plugin.dist.dir}/${ant.project.name}.jar"/>
    3238    <property name="ant.build.javac.target" value="1.5"/>
    33         <property name="commit.message"         value="fixing JOSM issue #3186" />
    34         <property name="josm.reference.release" value="2450" />
    3539
    3640    <target name="init">
     
    5660                <attribute name="Plugin-Description" value="Display georeferenced images as background in JOSM (WMS servers, Yahoo, ...)."/>
    5761                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/wiki/JOSM/Plugins/WMSPlugin"/>
    58                 <attribute name="Plugin-Mainversion" value="${josm.reference.release}"/>
     62                <attribute name="Plugin-Mainversion" value="${plugin.main.version}"/>
    5963                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    6064                <attribute name="de_Plugin-Link" value="http://wiki.openstreetmap.org/wiki/DE:JOSM/Plugins/WMSPlugin"/>
     
    8690    </target>
    8791
    88         <target name="core-info">
    89                 <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
    90                             <env key="LANG" value="C"/>
    91                             <arg value="info"/>
    92                             <arg value="--xml"/>
    93                             <arg value="../../core"/>
    94                 </exec>
    95                 <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
    96                         <echo>Building against core revision ${coreversion.info.entry.revision} ...</echo>
    97                         <delete file="core.info.xml" />
    98                 </target>
     92        <!--
     93                 ************************** Publishing the plugin ***********************************
     94                -->
     95                        <!--
     96                          ** extracts the JOSM release for the JOSM version in ../core and saves it in the
     97                          ** property ${coreversion.info.entry.revision}
     98                          **
     99                        -->
     100                        <target name="core-info">
     101                        <exec append="false" output="core.info.xml" executable="svn" failifexecutionfails="false">
     102                                    <env key="LANG" value="C"/>
     103                                    <arg value="info"/>
     104                                    <arg value="--xml"/>
     105                                    <arg value="../../core"/>
     106                        </exec>
     107                        <xmlproperty file="core.info.xml" prefix="coreversion" keepRoot="true" collapseAttributes="true"/>
     108                                <echo>Building against core revision ${coreversion.info.entry.revision}.</echo>                 
     109                                <echo>Plugin-Mainversion is set to ${plugin.main.version}.</echo>
     110                                <delete file="core.info.xml" />
     111                        </target>
    99112
    100 
    101                 <target name="commit-current">
    102                         <echo>Commiting the plugin source ...</echo>
    103                     <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    104                                     <env key="LANG" value="C"/>
    105                                     <arg value="commit"/>
    106                                     <arg value="-m &quot;${commit.message}&quot;"/>
    107                                     <arg value="."/>
    108                     </exec>
    109                 </target>
    110 
    111 
    112                 <target name="update-current">
    113                         <echo>Updating basedir ...</echo>
    114                     <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    115                                     <env key="LANG" value="C"/>
    116                                     <arg value="up"/>
    117                                     <arg value="."/>
    118                     </exec>
    119                         <echo>Updating ${plugin.jar} ...</echo>
    120                     <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    121                                     <env key="LANG" value="C"/>
    122                                     <arg value="up"/>
    123                                     <arg value="${plugin.jar}"/>
    124                     </exec>
    125                 </target>
    126 
    127                 <target name="commit-dist">
    128                                 <echo>Commiting ${plugin.jar} ...</echo>
     113                        <!--
     114                         ** commits the source tree for this plugin
     115                        -->
     116                        <target name="commit-current">
     117                                <echo>Commiting the plugin source with message '${commit.message}' ...</echo>
    129118                            <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
    130119                                            <env key="LANG" value="C"/>
    131120                                            <arg value="commit"/>
    132                                                 <arg value="-m &quot;${commit.message}&quot;"/>
    133                                             <arg value="${plugin.jar}"/>
    134                             </exec>
    135                 </target>
     121                                            <arg value="-m '${commit.message}'"/>
     122                                            <arg value="."/>
     123                            </exec>         
     124                        </target>
    136125
    137                 <target name="deploy" depends="core-info,commit-current,update-current,clean,dist,commit-dist">
    138                 </target>
     126                        <!--
     127                        ** updates (svn up) the source tree for this plugin
     128                        -->
     129                        <target name="update-current">
     130                                <echo>Updating plugin source ...</echo>
     131                            <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
     132                                            <env key="LANG" value="C"/>
     133                                            <arg value="up"/>
     134                                            <arg value="."/>
     135                            </exec>         
     136                                <echo>Updating ${plugin.jar} ...</echo>
     137                            <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
     138                                            <env key="LANG" value="C"/>
     139                                            <arg value="up"/>
     140                                            <arg value="../dist/${plugin.jar}"/>
     141                            </exec>         
     142                        </target>
     143                       
     144                        <!--
     145                         ** commits the plugin.jar
     146                         -->
     147                        <target name="commit-dist">
     148                                        <echo>
     149        ***** Properties of published ${plugin.jar} *****
     150        Commit message    : '${commit.message}'                                 
     151        Plugin-Mainversion: ${plugin.main.version}
     152        JOSM build version: ${coreversion.info.entry.revision}
     153        Plugin-Version    : ${version.entry.commit.revision}
     154        ***** / Properties of published ${plugin.jar} *****                                     
     155                                               
     156        Now commiting ${plugin.jar} ...
     157        </echo>                                 
     158                                    <exec append="true" output="svn.log" executable="svn" failifexecutionfails="false">
     159                                                    <env key="LANG" value="C"/>
     160                                                                <arg value="-m '${commit.message}'"/>
     161                                                                <arg value="commit"/>                                           
     162                                                <arg value="${plugin.jar}"/>
     163                                    </exec>         
     164                        </target>
     165                                       
     166                        <target name="publish" depends="core-info,commit-current,update-current,clean,dist,commit-dist">
     167                        </target>
    139168</project>
  • applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSAdjustAction.java

    r17552 r18670  
    1010import java.awt.event.MouseMotionListener;
    1111import java.util.List;
     12import java.util.logging.Logger;
    1213
    1314import javax.swing.DefaultComboBoxModel;
     
    3031
    3132
    32 public class WMSAdjustAction extends MapMode implements
    33     MouseListener, MouseMotionListener{
    34 
     33public class WMSAdjustAction extends MapMode implements MouseListener, MouseMotionListener{
     34        static private final Logger logger = Logger.getLogger(WMSAdjustAction.class.getName());
     35       
    3536    GeorefImage selectedImage;
    3637    boolean mouseDown;
     
    212213   }
    213214
    214 
    215 
    216215        @Override
    217216        protected void updateEnabledState() {
  • applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSLayer.java

    r18597 r18670  
    9191
    9292                executor = Executors.newFixedThreadPool(3);
    93                 if (!baseURL.startsWith("html:") && !WMSGrabber.isUrlWithPatterns(baseURL)) {
     93                if (baseURL != null && !baseURL.startsWith("html:") && !WMSGrabber.isUrlWithPatterns(baseURL)) {
    9494                        if (!(baseURL.endsWith("&") || baseURL.endsWith("?"))) {
    9595                                if (!confirmMalformedUrl(baseURL)) {
Note: See TracChangeset for help on using the changeset viewer.