Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added 'ant imReg' to register the IM libraries on Win32. Previously i…
…t worked only if IM was installed on the machine previously.
  • Loading branch information
Pierre-Luc Paour committed Sep 5, 2002
1 parent fb3060a commit cfa0b94
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions build.xml
Expand Up @@ -31,6 +31,29 @@
<java classname="com.gallery.GalleryRemote.GalleryRemote"
classpath="${build}" fork="true" />
</target>

<target name="testWin">
<condition property="onWin">
<os family="windows" />
</condition>
</target>

<target name="imReg" depends="init,testWin" if="onWin"
description="import registry stuff for ImageMagick">
<pathconvert dirsep="\\" property="impath">
<path>
<pathelement path="imagemagick/win32" />
</path>
</pathconvert>

<filter token="PATH" value="${impath}" />
<copy file="magick.reg" toFile="myMagick.reg" filtering="true" overwrite="true"/>

<exec executable="regedit">
<arg value="/s" />
<arg value="myMagick.reg" />
</exec>
</target>

<target name="clean"
description="clean up" >
Expand Down

0 comments on commit cfa0b94

Please sign in to comment.