~ubuntu-branches/ubuntu/utopic/sikuli/utopic

« back to all changes in this revision

Viewing changes to .pc/install-extension.patch/sikuli-script/src/main/java/org/sikuli/script/ExtensionManager.java

  • Committer: Bazaar Package Importer
  • Author(s): Gilles Filippini
  • Date: 2011-10-04 23:32:13 UTC
  • mfrom: (4.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20111004233213-36fm78hx0z53tkuw
Tags: 1.0~x~rc3-dfsg1-2
* New patch fix-cmake-sikuli-ide.patch:
  + Fix random FTBFS due to missing inter target dependency

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2010-2011, Sikuli.org
 
3
 * Released under the MIT License.
 
4
 *
 
5
 */
1
6
package org.sikuli.script;
2
7
 
3
8
import java.io.*;
128
133
         if(targetFile.exists())
129
134
            targetFile.delete();
130
135
         if( !localFile.renameTo(targetFile) ){
131
 
            Debug.error("Failed to install " + localFile.getName() + " to " + extPath);
 
136
            Debug.error("Failed to install " + localFile.getName() + " to " + targetFile.getAbsolutePath());
132
137
            return false;
133
138
         }
134
139
         addExtension(name, url_, version_);
135
140
      }
136
141
      catch(IOException e){
137
142
         Debug.error("Failed to download " + url_);
 
143
         e.printStackTrace();
138
144
         return false;
139
145
      }
140
146
      return true;