Skip to content

Commit

Permalink
* gradle plugin initial process improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
lomanyong committed Aug 26, 2016
1 parent 5bf3c33 commit f32aaa9
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class FreelineInitializer {

def freelineDir = new File(project.rootDir, "freeline")
if (freelineDir.exists()) {
freelineDir.delete()
FileUtils.deleteDirectory(freelineDir)
println 'removing existing freeline directory'
}
ant.unzip(src: "freeline.zip", dest: project.rootDir.absolutePath)
Expand All @@ -71,6 +71,11 @@ class FreelineInitializer {
Runtime.getRuntime().exec("ln -s freeline/freeline.py freeline.py")
}

def freelineZipFile = new File(project.rootDir, "freeline.zip")
if (freelineZipFile.exists()) {
freelineZipFile.delete()
}

generateProjectDescription(project)
}

Expand Down

0 comments on commit f32aaa9

Please sign in to comment.