Ignore:
Timestamp:
2008-10-31T10:25:47+01:00 (16 years ago)
Author:
stotz
Message:

Added install targets for windows and linux plus automatic os detection

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

Legend:

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

    r11160 r11569  
    11<project name="openstreetbugs" default="dist" basedir=".">
    22
    3         <property file="build.properties"/>
    4        
     3        <property file="build.properties" />
     4
    55        <!-- compilation properties -->
    66        <property name="josm.build.dir" value="${josm.base.dir}/build" />
     
    3535                        <fileset dir="images" />
    3636                </copy>
    37                
     37
    3838                <!-- copy language files -->
    3939                <copy todir="${plugin.build.dir}">
     
    5353                        </manifest>
    5454                </jar>
    55                
     55
    5656                <copy todir="${josm.dist.dir}" file="${plugin.jar}" />
    5757        </target>
     
    6363
    6464        <target name="install" depends="dist">
     65                <condition property="isWindows">
     66                        <os family="windows" />
     67                </condition>
     68                <condition property="isUnix">
     69                        <os family="unix" />
     70                </condition>
     71                <antcall target="install_win" />
     72                <antcall target="install_linux" />
     73        </target>
     74
     75        <target name="install_win" if="isWindows">
     76                <property environment="env"/>
     77                <copy file="${plugin.jar}" todir="${env.APPDATA}/JOSM/plugins" />
     78        </target>
     79
     80        <target name="install_linux" if="isUnix">
    6581                <copy file="${plugin.jar}" todir="${user.home}/.josm/plugins" />
    6682        </target>
     
    6985                <java jar="${josm}" fork="true">
    7086                        <arg value="${osmfile}" />
    71                         <jvmarg value="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=7777"/>
     87                        <jvmarg value="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=7777" />
    7288                </java>
    7389        </target>
  • applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/OsbPlugin.java

    r11260 r11569  
    7171       
    7272        public OsbPlugin() {
     73            super();
    7374                initConfig();
    7475                dataSet = new DataSet();
    7576                uploadHook = new OsbUploadHook();
    7677                dialog = new OsbDialog(this);
    77                 OsbLayer.listeners.add(dialog);
    78                 OsbLayer.listeners.add(this);
     78        OsbLayer.listeners.add(dialog);
     79        OsbLayer.listeners.add(this);
    7980        }
    8081       
Note: See TracChangeset for help on using the changeset viewer.