Ignore:
Timestamp:
2007-11-10T12:45:07+01:00 (18 years ago)
Author:
ulf
Message:

change the install target, so it uses the right home dir even on windows

File:
1 edited

Legend:

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

    r5197 r5428  
    11<project name="surveyor" default="dist" basedir=".">
    22 
     3  <!-- josm "user home" directory depends on the platform used (windows has a different place than unix/linux) -->
     4  <property environment="env"/>
     5  <condition property="josm.home.dir" value="${env.APPDATA}/JOSM" else="${user.home}/.josm">
     6    <and>
     7      <os family="windows"/>
     8    </and>
     9  </condition>
     10
    311  <!-- compilation properties -->
    412  <property name="josm.build.dir"       value="../../core"/>
    5   <property name="josm.home.dir"        value="${user.home}/.josm"/>
     13  <property name="josm.plugins.dir" value="${josm.home.dir}/plugins"/>
    614  <property name="josm"                 location="../../core/dist/josm-custom.jar" />
    715  <property name="plugin.build.dir"     value="build"/>
     
    5058  <target name="compile" depends="init">
    5159    <mkdir dir="${plugin.build.dir}"/>
     60    <copy todir="build/images" >
     61      <fileset dir="images" />
     62    </copy>
    5263    <javac srcdir="src" destdir="${plugin.build.dir}" debug="true" source="1.5" target="1.5">
    5364      <classpath>
     
    6273 
    6374  <target name="install" depends="dist">
    64     <copy file="${plugin.jar}" todir="${josm.home.dir}/plugins" />
     75    <copy file="${plugin.jar}" todir="${josm.plugins.dir}"/>
    6576  </target>
    6677
Note: See TracChangeset for help on using the changeset viewer.